Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Initial implementation #2

Merged
merged 58 commits into from
May 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
70a85dc
WIP
stefanfoulis Jul 10, 2017
71a8eaf
WIP
stefanfoulis Jul 26, 2017
e36a862
WIP
stefanfoulis Jul 26, 2017
12a5d69
WIP
stefanfoulis Jul 26, 2017
7807e71
WIP
stefanfoulis Jul 26, 2017
80c00b8
WIP
stefanfoulis Jul 28, 2017
5754455
WIP placeholder
stefanfoulis Jul 28, 2017
072cfdf
Many fixes
stefanfoulis Aug 3, 2017
d93c5a0
WIP better buttons
stefanfoulis Aug 3, 2017
fb94cb8
Make flake8 happy and test setup tweaks
stefanfoulis Aug 3, 2017
e9a3393
Fix absolute import and remove currently unused code
stefanfoulis Aug 3, 2017
4cb9d0e
Button fixes
stefanfoulis Aug 3, 2017
1f22c42
More button fixes
stefanfoulis Aug 3, 2017
f5f1acf
flake8 setup
stefanfoulis Aug 3, 2017
e26031a
parler i18n publishing and testsuite
stefanfoulis Aug 7, 2017
8c60b54
don't test docs yet
stefanfoulis Aug 7, 2017
f0bfed2
fix requirements path for travis
stefanfoulis Aug 7, 2017
70799fb
WIP
stefanfoulis Aug 7, 2017
d17597a
Test less while developing
stefanfoulis Aug 7, 2017
6583e97
WIP
stefanfoulis Aug 7, 2017
f476a56
parler WIP
stefanfoulis Aug 9, 2017
3535c56
WIP
stefanfoulis Aug 10, 2017
ab159c3
WIP
stefanfoulis Aug 10, 2017
6de4448
better translation deletion handling and language labels for action b…
stefanfoulis Aug 10, 2017
7efc09a
Better states
stefanfoulis Aug 10, 2017
4f14eeb
ugly hack to create draft when needed for translations
stefanfoulis Aug 10, 2017
ef5f80b
Include css
stefanfoulis Aug 11, 2017
089afd7
load static so it works
stefanfoulis Aug 11, 2017
dff368f
debug helper in template
stefanfoulis Aug 11, 2017
39a6372
cleanup
stefanfoulis Aug 11, 2017
7c6ad9f
Language specific copy_relations
stefanfoulis Aug 11, 2017
6da3cd7
discriptor step 1
stefanfoulis Aug 16, 2017
5b2bca3
More
stefanfoulis Aug 16, 2017
2f242a5
Minimal admin tests and submit line without filer fix
stefanfoulis Aug 17, 2017
4fd0e73
WIP
stefanfoulis Aug 18, 2017
241b7e8
WIP
stefanfoulis Aug 18, 2017
f4e0280
WIP
stefanfoulis Aug 18, 2017
96ad4f6
Language Tabs
stefanfoulis Aug 18, 2017
52d180a
WIP
stefanfoulis Aug 18, 2017
bf442bf
nicer admin list view
stefanfoulis Aug 18, 2017
648fdd4
rename method
stefanfoulis Aug 18, 2017
82a7237
More Admin stuff
stefanfoulis Aug 18, 2017
cc32c12
cleanup
stefanfoulis Aug 18, 2017
e95aa05
Admin views for actions
stefanfoulis Aug 20, 2017
e9a1c9d
Fixes and workarounds
stefanfoulis Aug 21, 2017
a270757
more cleanup
stefanfoulis Aug 21, 2017
771885f
fix non parler
stefanfoulis Aug 21, 2017
719907d
don't forget language
stefanfoulis Aug 21, 2017
2aa4319
languages in toolbar button dropdown. ajax redirect not working.
stefanfoulis Aug 21, 2017
d7379b3
nicer deletelink
stefanfoulis Aug 21, 2017
4c152e8
avoid template recursion problem
stefanfoulis Aug 21, 2017
29c6acb
Cleanup
stefanfoulis Aug 21, 2017
ab1231c
Ajax Redirect. Language picker and cleanup.
stefanfoulis Aug 21, 2017
7d0aea6
toolbar cleanup. different edit button style based on create/view draft
stefanfoulis Aug 22, 2017
71f3e99
Many deletion related fixes
stefanfoulis Aug 22, 2017
7748768
Monkeypatch to prevent plugin editing of published
stefanfoulis Aug 23, 2017
a47ffad
object states
vxsx Aug 24, 2017
251a1a7
Prevent editing published objects
stefanfoulis Aug 25, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[run]
source = djangocms_publisher
branch = True
omit =
djangocms_publisher/migrations/*
djangocms_publisher/tests/*

[report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[*]
end_of_line = lf
insert_final_newline = true

[*.{js,py}]
charset = utf-8

[*.py]
indent_style = space
indent_size = 4
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
*.pyc
*.pyo
.installed.cfg
bin
develop-eggs
dist
downloads
eggs
parts
build
tmp
*.egg-info
*.egg
.DS_Store
.project
.pydevproject
.settings
*~
docs/_build
distribute*
lib/
include/
tests/tmp/
*.coverage
coverage.xml
pep8.txt
htmlcov/
share/
.idea
/env
/envs
.tox
testenv1
node_modules/
.python-version
74 changes: 74 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
language: python

sudo: false

python:
# - "3.6"
# - "3.5"
# - "3.4"
- "2.7"

install:
- pip install tox-travis coveralls

branches:
only:
- master

script:
- tox

after_success:
- coveralls --config_file=.coveragerc
- mkdir -p shippable/codecoverage && cp coverage.xml shippable/codecoverage/coverage.xml

env:
- DJANGO="1.8"
# - DJANGO="1.9"
# - DJANGO="1.10"
# - DJANGO="1.11"

matrix:
include:
# - env: DOCS="yes"
# python: "3.6"
- env: FLAKE8="yes"
python: "3.6"

# - os: osx
# language: generic
# python: "2.7"
# env: DJANGO="1.8"
# - os: osx
# language: generic
# python: "2.7"
# env: DJANGO="1.9"
# - os: osx
# language: generic
# python: "2.7"
# env: DJANGO="1.10"
# - os: osx
# language: generic
# python: "2.7"
# env: DJANGO="1.11"
#
# - os: linux
# python: "3.4"
# env: DJANGO="master"
# - os: linux
# python: "3.5"
# env: DJANGO="master"
# - os: linux
# python: "3.6"
# env: DJANGO="master"

# allow_failures:
# - os: linux
# python: "3.4"
# env: DJANGO="master"
# - os: linux
# python: "3.5"
# env: DJANGO="master"
# - os: linux
# python: "3.6"
# env: DJANGO="master"
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Divio AG (divio.ch) https://github.com/divio/
* Stefan Foulis <[email protected]> https://github.com/stefanfoulis
9 changes: 9 additions & 0 deletions BUGS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Bugs

## aldryn-newsblog

When creating/editing an article (tested in the window opened from the
toolbar menu):

* ckeditor for the lead has the CMS Plugins menu, but it is empty/not usable
* "related articles" filter is super confusing
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CHANGELOG
=========

0.0.1 (unreleased)
------------------


24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2017, Divio AG and contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the authors nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7 changes: 7 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include AUTHORS
include LICENSE
include README.rst
include CHANGELOG.rst
recursive-include djangocms_publisher/templates *
recursive-include djangocms_publisher/static *
recursive-include djangocms_publisher/locale *
3 changes: 0 additions & 3 deletions README.md

This file was deleted.

21 changes: 21 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Django CMS Publisher
====================

A toolkit to build draft/published support for 3rd party apps (Addons).
With djangocms-publisher support your app will have a draft version of
objects that can then be published to the live version. Only the live
version is visible to visitors. Permissions can be set for who is
allowed to publish a draft.

Optionally integrates with the django CMS Toolbar.

Integration
-----------

djangocms-publisher follows a loose integration model. It defines some
basic conventions on how draft/live logic can be implemented and
provides helpers, mixins and hints.

Add ``djangocms-publisher`` as a dependency of your package.

...
2 changes: 2 additions & 0 deletions djangocms_publisher/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '0.0.1'
Loading