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

Commit

Permalink
Initial implementation (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanfoulis authored and czpython committed May 8, 2018
1 parent 34477cf commit e43a5b4
Show file tree
Hide file tree
Showing 76 changed files with 4,238 additions and 3 deletions.
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

0 comments on commit e43a5b4

Please sign in to comment.