Compare commits
No commits in common. "master" and "1.0b1" have entirely different histories.
4
.ctags
4
.ctags
|
@ -1,3 +1,5 @@
|
||||||
--python-kinds
|
|
||||||
--languages=python
|
--languages=python
|
||||||
|
--exclude=".git"
|
||||||
|
--exclude="tags"
|
||||||
|
--exclude="*.pyc"
|
||||||
-R
|
-R
|
||||||
|
|
|
@ -1,18 +1,9 @@
|
||||||
.*.sw*
|
.*.sw*
|
||||||
.#*
|
|
||||||
*.log
|
*.log
|
||||||
taiga/search
|
greenmine/search
|
||||||
settings/local.py
|
greenmine/settings/local.py
|
||||||
settings/celery_local.py
|
|
||||||
database.sqlite
|
database.sqlite
|
||||||
logs
|
logs
|
||||||
media
|
media
|
||||||
static
|
|
||||||
*.pyc
|
*.pyc
|
||||||
*.mo
|
*.mo
|
||||||
.venv
|
|
||||||
.coverage
|
|
||||||
.cache
|
|
||||||
.\#*
|
|
||||||
.project
|
|
||||||
.env
|
|
||||||
|
|
33
.travis.yml
33
.travis.yml
|
@ -1,25 +1,22 @@
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "3.5"
|
- "3.3"
|
||||||
- "3.6"
|
|
||||||
addons:
|
|
||||||
postgresql: "9.4"
|
|
||||||
services:
|
services:
|
||||||
- rabbitmq
|
- rabbitmq # will start rabbitmq-server
|
||||||
- postgresql
|
before_script:
|
||||||
cache:
|
- psql -c 'create database greenmine;' -U postgres
|
||||||
- apt
|
|
||||||
- pip
|
|
||||||
before_install:
|
|
||||||
- sudo apt-get -qq update
|
|
||||||
- sudo /etc/init.d/postgresql stop
|
|
||||||
- sudo apt-get install -y postgresql-plpython-9.4
|
|
||||||
- sudo /etc/init.d/postgresql start 9.4
|
|
||||||
- psql -c 'create database taiga;' -U postgres
|
|
||||||
install:
|
install:
|
||||||
- travis_retry pip install pipenv
|
- pip install -r requirements.txt --use-mirrors
|
||||||
- travis_retry pipenv sync --dev
|
- pip install coveralls --use-mirrors
|
||||||
script:
|
script:
|
||||||
- travis_retry pipenv run coverage run --source=taiga --omit='*tests*,*commands*,*migrations*,*admin*,*.jinja,*dashboard*,*settings*,*wsgi*,*questions*,*documents*' -m pytest -v --tb=native
|
- coverage run --source=greenmine --omit='*tests*,*commands*,*admin*,*.jinja,*dashboard*,*settings*,*wsgi*,*questions*,*documents*' manage.py test --settings=greenmine.settings.travis greenmine
|
||||||
|
notifications:
|
||||||
|
email:
|
||||||
|
recipients:
|
||||||
|
- jespinog@gmail.com
|
||||||
|
- andrei.antoukh@gmail.com
|
||||||
|
- bameda@dbarragan.com
|
||||||
|
on_success: change
|
||||||
|
on_failure: change
|
||||||
after_success:
|
after_success:
|
||||||
- coveralls
|
- coveralls
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
[main]
|
|
||||||
host = https://www.transifex.com
|
|
||||||
lang_map = sr@latin:sr_Latn, zh_CN:zh_Hans, zh_TW:zh_Hant, fa_IR:fa
|
|
||||||
|
|
||||||
[taiga-back.taiga]
|
|
||||||
file_filter = taiga/locale/<lang>/LC_MESSAGES/django.po
|
|
||||||
source_file = taiga/locale/en/LC_MESSAGES/django.po
|
|
||||||
source_lang = en
|
|
||||||
type = PO
|
|
31
AUTHORS.rst
31
AUTHORS.rst
|
@ -1,38 +1,15 @@
|
||||||
The PRIMARY AUTHORS are:
|
The PRIMARY AUTHORS are:
|
||||||
|
|
||||||
- Andrey Antukh <niwi@niwi.nz>
|
- Andrey Antukh <niwi@niwi.be>
|
||||||
- Jesus Espino Garcia <jespinog@gmail.com>
|
- Jesus Espino Garcia <jespinog@gmail.com>
|
||||||
- David Barragán Merino <dbarragan@dbarragan.com>
|
- David Barragán Merino <dbarragan@dbarragan.com>
|
||||||
- Alejandro Alonso <alejandro.alonso@kaleidos.net>
|
- Alejandro Alonso <alejandro.alonso@kaleidos.net>
|
||||||
- Xavi Julian <xavier.julian@kaleidos.net>
|
|
||||||
- Anler Hernández <hello@anler.me>
|
|
||||||
|
|
||||||
Special thanks to Kaleidos Open Source S.L. for provice time for Taiga
|
Special thanks to Kaleidos Open Source S.L for provice time for greenmine
|
||||||
development.
|
development.
|
||||||
|
|
||||||
And here is an inevitably incomplete list of MUCH-APPRECIATED CONTRIBUTORS --
|
And here is an inevitably incomplete list of MUCH-APPRECIATED CONTRIBUTORS --
|
||||||
people who have submitted patches, reported bugs, added translations, helped
|
people who have submitted patches, reported bugs, added translations, helped
|
||||||
answer newbie questions, and generally made taiga that much better:
|
answer newbie questions, and generally made greenmine that much better:
|
||||||
|
|
||||||
- Alejandro Gómez <alejandro.gomez@kaleidos.net>
|
- ...
|
||||||
- Allister Antosik <me@allisterantosik.com>
|
|
||||||
- Alonso Torres <alonso.torres@kaleidos.net>
|
|
||||||
- Andrea Stagi <stagi.andrea@gmail.com>
|
|
||||||
- Andrés Moya <andres.moya@kaleidos.net>
|
|
||||||
- Andrey Alekseenko <al42and@gmail.com>
|
|
||||||
- Brett Profitt <brett.profitt@gmail.com>
|
|
||||||
- Bruno Clermont <bruno@robotinfra.com>
|
|
||||||
- Chris Wilson <chris.wilson@aridhia.com>
|
|
||||||
- David Burke <david@burkesoftware.com>
|
|
||||||
- Everardo Medina <everblut@gmail.com>
|
|
||||||
- Hector Colina <hcolina@gmail.com>
|
|
||||||
- Joe Letts
|
|
||||||
- Julien Palard
|
|
||||||
- luyikei <luyikei.qmltu@gmail.com>
|
|
||||||
- Michael Jurke <m.jurke@gmx.de>
|
|
||||||
- Motius GmbH <mail@motius.de>
|
|
||||||
- Riccardo Coccioli <riccardo.coccioli@immobiliare.it>
|
|
||||||
- Ricky Posner <e@eposner.com>
|
|
||||||
- Stefan Auditor <stefan.auditor@erdfisch.de>
|
|
||||||
- Yamila Moreno <yamila.moreno@kaleidos.net>
|
|
||||||
- Yaser Alraddadi <yaser@yr.sa>
|
|
||||||
|
|
510
CHANGELOG.md
510
CHANGELOG.md
|
@ -1,510 +0,0 @@
|
||||||
# Changelog
|
|
||||||
|
|
||||||
## Unreleased
|
|
||||||
|
|
||||||
## 4.1.0 (2019-02-04)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Fix Close sprints
|
|
||||||
|
|
||||||
### Features:
|
|
||||||
|
|
||||||
- Negative filters
|
|
||||||
- Activate the Ukrainian language
|
|
||||||
|
|
||||||
## 4.0.4 (2019-01-15)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Minor bug fixes.
|
|
||||||
|
|
||||||
## 4.0.3 (2018-12-11)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Add extra requirements for oauthlib
|
|
||||||
|
|
||||||
## 4.0.2 (2018-12-04)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Update messages catalog.
|
|
||||||
|
|
||||||
## 4.0.1 (2018-11-28)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Minor bug fix.
|
|
||||||
|
|
||||||
## 4.0.0 Larix cajanderi (2018-11-28)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- Custom home section (https://tree.taiga.io/project/taiga/issue/3059)
|
|
||||||
- Custom fields (https://tree.taiga.io/project/taiga/issue/3725):
|
|
||||||
- Dropdown
|
|
||||||
- Checkbox
|
|
||||||
- Number
|
|
||||||
- Bulk move unfinished objects in sprint (https://tree.taiga.io/project/taiga/issue/5451)
|
|
||||||
- Paginate history activity
|
|
||||||
- Improve notifications area (https://tree.taiga.io/project/taiga/issue/2165 and
|
|
||||||
https://tree.taiga.io/project/taiga/issue/3752)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Minor icon changes
|
|
||||||
- Lots of small bugfixes
|
|
||||||
|
|
||||||
## 3.4.5 (2018-10-15)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- Prevent local Webhooks
|
|
||||||
|
|
||||||
## 3.4.4 (2018-09-19)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Small fixes
|
|
||||||
|
|
||||||
## 3.4.3 (2018-09-19)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Refactor attachment url's in timeline
|
|
||||||
- Avoid receive feedkback in private projects from non-members
|
|
||||||
- Allow delete reports uuid's
|
|
||||||
- Small fixes
|
|
||||||
|
|
||||||
## 3.4.0 Pinus contorta (2018-08-13)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- Due dates configuration (https://tree.taiga.io/project/taiga/issue/3070):
|
|
||||||
- Add due dates to admin attributes
|
|
||||||
- Update project templates
|
|
||||||
- Issues to Sprints (https://tree.taiga.io/project/taiga/issue/1181):
|
|
||||||
- Add milestone filters
|
|
||||||
|
|
||||||
## 3.3.14 (2018-08-06)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Improve US reorder algorithm.
|
|
||||||
- Drop python 3.4 and add python 3.6 to travis configuration.
|
|
||||||
|
|
||||||
## 3.3.13 (2018-07-05)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Minor bug fixes.
|
|
||||||
|
|
||||||
## 3.3.11 (2018-06-27)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- Add assigned users kanban/taskboard filter.
|
|
||||||
- Improve US reorder in kanban.
|
|
||||||
- Upgrade psycopg2 library.
|
|
||||||
|
|
||||||
## 3.3.8 (2018-06-14)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Minor bug fix.
|
|
||||||
|
|
||||||
## 3.3.7 (2018-05-31)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Minor bug fix related with project import.
|
|
||||||
|
|
||||||
- Pin requirements to solve incompatible versions detected by pip 10.
|
|
||||||
|
|
||||||
## 3.3.4 (2018-05-24)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Add features to fulfill GDPR.
|
|
||||||
|
|
||||||
## 3.3.3 (2018-05-10)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Update locales.
|
|
||||||
- Minor bug fixes.
|
|
||||||
|
|
||||||
## 3.3.1 (2018-04-30)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Minor bug fixes.
|
|
||||||
|
|
||||||
## 3.3.1 (2018-04-30)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Minor bug fixes.
|
|
||||||
|
|
||||||
## 3.3.0 Picea mariana (2018-04-26)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
|
|
||||||
- Add "live notifications" to Taiga:
|
|
||||||
- Migration for user configuration.
|
|
||||||
- Add due date to US, tasks and issues (https://tree.taiga.io/project/taiga/issue/3070):
|
|
||||||
- Add to csv export.
|
|
||||||
- Add to projects import/export.
|
|
||||||
- Add to webhooks.
|
|
||||||
- Add to django admin.
|
|
||||||
- Add multiple assignement only in US (https://tree.taiga.io/project/taiga/issue/1961):
|
|
||||||
- The `assigned_to` field is still active.
|
|
||||||
- Add to csv export.
|
|
||||||
- Add to projects import/export.
|
|
||||||
- Add to webhooks.
|
|
||||||
- Add to django admin.
|
|
||||||
- Delete cards in Kanban and sprint Taskboard (https://tree.taiga.io/project/taiga/issue/2683).
|
|
||||||
|
|
||||||
## 3.2.3 (2018-04-04)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Fix milestone burndown graph with empty US.
|
|
||||||
- Upgrade markdown library to solve bug.
|
|
||||||
- Update locales.
|
|
||||||
|
|
||||||
## 3.2.2 (2018-03-15)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
|
|
||||||
- Minor bug fixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 3.2.0 Betula nana (2018-03-07)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Add role filtering in US.
|
|
||||||
|
|
||||||
|
|
||||||
## 3.1.3 (2018-02-28)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Increase token entropy.
|
|
||||||
- Squash field changes on notification emails
|
|
||||||
- Minor bug fixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 3.1.0 Perovskia Atriplicifolia (2017-03-10)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Contact with the project: if the projects have this module enabled Taiga users can contact them.
|
|
||||||
- Ability to create rich text custom fields in Epics, User Stories, Tasks and Isues.
|
|
||||||
- Full text search now use simple as tokenizer so search with non-english text are allowed.
|
|
||||||
- Duplicate project: allows creating a new project based on the structure of another (status, tags, colors, default values...)
|
|
||||||
- Add thumbnails and preview for PSD files.
|
|
||||||
- Add thumbnails and preview for SVG files (Cario lib is needed).
|
|
||||||
- i18n:
|
|
||||||
- Add japanese (ja) translation.
|
|
||||||
- Add korean (ko) translation.
|
|
||||||
- Add chinese simplified (zh-Hans) translation.
|
|
||||||
- Third party services project importers:
|
|
||||||
- Trello
|
|
||||||
- Jira 7
|
|
||||||
- Github
|
|
||||||
- Asana
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- API:
|
|
||||||
- Memberships API endpoints now allows using usernames and emails instead of using only emails.
|
|
||||||
- Contacts API allow full text search (by the username, full name or email).
|
|
||||||
- Filter milestones, user stories and tasks by estimated_start and estimated_finish dates.
|
|
||||||
- Add project_extra_info to epics, tasks, milestones, issues and wiki pages endpoints.
|
|
||||||
- Gogs integration: Adding new Gogs signature method.
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 3.0.0 Stellaria Borealis (2016-10-02)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Add Epics.
|
|
||||||
- Include created, modified and finished dates for tasks in CSV reports.
|
|
||||||
- Add gravatar url to Users API endpoint.
|
|
||||||
- ProjectTemplates now are sorted by the attribute 'order'.
|
|
||||||
- Create enpty wiki pages (if not exist) when a new link is created.
|
|
||||||
- Diff messages in history entries now show only the relevant changes (with some context).
|
|
||||||
- User stories and tasks listing API call support extra params to include more data (tasks and attachemnts and attachments, respectively)
|
|
||||||
- Comments:
|
|
||||||
- Now comment owners and project admins can edit existing comments with the history Entry endpoint.
|
|
||||||
- Add a new permissions to allow add comments instead of use the existent modify permission for this purpose.
|
|
||||||
- Tags:
|
|
||||||
- New API endpoints over projects to create, rename, edit, delete and mix tags.
|
|
||||||
- Tag color assignation is not automatic.
|
|
||||||
- Select a color (or not) to a tag when add it to stories, issues and tasks.
|
|
||||||
- Improve search system over stories, tasks and issues:
|
|
||||||
- Search into tags too. (thanks to [Riccardo Cocciol](https://github.com/volans-))
|
|
||||||
- Weights are applied: (subject = ref > tags > description).
|
|
||||||
- Import/Export:
|
|
||||||
- Gzip export/import support.
|
|
||||||
- Export performance improvements.
|
|
||||||
- Add filter by email domain registration and invitation by setting.
|
|
||||||
- Third party integrations:
|
|
||||||
- Included gogs as builtin integration.
|
|
||||||
- Improve messages generated on webhooks input.
|
|
||||||
- Add mentions support in commit messages.
|
|
||||||
- Cleanup hooks code.
|
|
||||||
- Rework webhook signature header to align with larger implementations and defined [standards](https://superfeedr-misc.s3.amazonaws.com/pubsubhubbub-core-0.4.html\#authednotify). (thanks to [Stefan Auditor](https://github.com/sanduhrs))
|
|
||||||
- Add created-, modified-, finished- and finish_date queryset filters
|
|
||||||
- Support exact match, gt, gte, lt, lte
|
|
||||||
- added issues, tasks and userstories accordingly
|
|
||||||
- i18n:
|
|
||||||
- Add norwegian Bokmal (nb) translation.
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- [API] Improve performance of some calls over list.
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 2.1.0 Ursus Americanus (2016-05-03)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Add sprint name and slug on search results for user stories (thanks to [@everblut](https://github.com/everblut))
|
|
||||||
- [API] projects resource: Random order if `discover_mode=true` and `is_featured=true`.
|
|
||||||
- Webhooks: Improve webhook data:
|
|
||||||
- add permalinks
|
|
||||||
- owner, assigned_to, status, type, priority, severity, user_story, milestone, project are objects
|
|
||||||
- add role to 'points' object
|
|
||||||
- add the owner to every notification ('by' field)
|
|
||||||
- add the date of the notification ('date' field)
|
|
||||||
- show human diffs in 'changes'
|
|
||||||
- remove unnecessary data
|
|
||||||
- CSV Reports:
|
|
||||||
- Change field name: 'milestone' to 'sprint'
|
|
||||||
- Add new fields: 'sprint_estimated_start' and 'sprint_estimated_end'
|
|
||||||
- Importer:
|
|
||||||
- Remove project after load a dump file fails
|
|
||||||
- Add more info the the logger if load a dump file fails
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 2.0.0 Pulsatilla Patens (2016-04-04)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Ability to create url custom fields. (thanks to [@astagi](https://github.com/astagi)).
|
|
||||||
- Blocked projects support
|
|
||||||
- Transfer projects ownership support
|
|
||||||
- Customizable max private and public projects per user
|
|
||||||
- Customizable max of memberships per owned private and public projects
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.10.0 Dryas Octopetala (2016-01-30)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Add logo field to project model
|
|
||||||
- Add is_featured field to project model
|
|
||||||
- Add is_looking_for_people and looking_for_people_note fields to project model
|
|
||||||
- Filter projects list by
|
|
||||||
- is_looking_for_people
|
|
||||||
- is_featured
|
|
||||||
- is_backlog_activated
|
|
||||||
- is_kanban_activated
|
|
||||||
- Search projects by text query (order by ranking name > tags > description)
|
|
||||||
- Order projects list:
|
|
||||||
- alphabetically by default
|
|
||||||
- by fans (last week/moth/year/all time)
|
|
||||||
- by activity (last week/moth/year/all time)
|
|
||||||
- Show stats for discover secction
|
|
||||||
- i18n.
|
|
||||||
- Add swedish (sv) translation.
|
|
||||||
- Add turkish (tr) translation.
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.9.1 Taiga Tribe (2016-01-05)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- [CSV Reports] Add fields "created_date", "modified_date", "finished_date" to issues CSV report.
|
|
||||||
- [Attachment] Generate 'card-image' size (300x200) thumbnails for attached image files.
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Improve login and forgot password: allow username or email case-insensitive if the query only
|
|
||||||
match with one user.
|
|
||||||
- Improve the django admin panel, now it is more usable and all the selector fields works properly.
|
|
||||||
- [API] Add tribe_gig field to user stories (improve integration between Taiga and Taiga Tribe).
|
|
||||||
- [API] Performance improvements for project stats.
|
|
||||||
- [Events] Add command to send an instant notifications to all the currently online users.
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.9.0 Abies Siberica (2015-11-02)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Project can be starred or unstarred and the fans list can be obtained.
|
|
||||||
- US, tasks and Issues can be upvoted or downvoted and the voters list can be obtained.
|
|
||||||
- Now users can watch public issues, tasks and user stories.
|
|
||||||
- Add endpoints to show the watchers list for issues, tasks and user stories.
|
|
||||||
- Add a "field type" property for custom fields: 'text', 'multiline text' and 'date' right nowi
|
|
||||||
(thanks to [@artlepool](https://github.com/artlepool)).
|
|
||||||
- Allow multiple actions in the commit messages.
|
|
||||||
- Now every user that coments USs, Issues or Tasks will be involved in it (add author to the watchers list).
|
|
||||||
- Now profile timelines only show content about the objects (US/Tasks/Issues/Wiki pages) you are involved.
|
|
||||||
- Add custom videoconference system.
|
|
||||||
- Fix the compatibility with BitBucket webhooks and add issues and issues comments integration.
|
|
||||||
- Add support for comments in the Gitlab webhooks integration.
|
|
||||||
- Add externall apps: now Taiga can integrate with hundreds of applications and service.
|
|
||||||
- Improve searching system, now full text searchs are supported
|
|
||||||
- Add sha1 hash to attachments to verify the integrity of files (thanks to [@astagi](https://github.com/astagi)).
|
|
||||||
- i18n.
|
|
||||||
- Add italian (it) translation.
|
|
||||||
- Add polish (pl) translation.
|
|
||||||
- Add portuguese (Brazil) (pt_BR) translation.
|
|
||||||
- Add russian (ru) translation.
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Made compatible with python 3.5.
|
|
||||||
- Migrated to django 1.8.
|
|
||||||
- Update the rest of requirements to the last version.
|
|
||||||
- Improve export system, now is more efficient and prevents possible crashes with heavy projects.
|
|
||||||
- API: Mixin fields 'users', 'members' and 'memberships' in ProjectDetailSerializer.
|
|
||||||
- API: Add stats/system resource with global server stats (total project, total users....)
|
|
||||||
- API: Improve and fix some errors in issues/filters_data and userstories/filters_data.
|
|
||||||
- API: resolver suport ref GET param and return a story, task or issue.
|
|
||||||
- Webhooks: Add deleted datetime to webhooks responses when isues, tasks or USs are deleted.
|
|
||||||
- Add headers to allow threading for notification emails about changes to issues, tasks, user stories,
|
|
||||||
and wiki pages. (thanks to [@brett](https://github.com/brettp)).
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.8.0 Saracenia Purpurea (2015-06-18)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Improve timeline resource.
|
|
||||||
- Add sitemap of taiga-front (the web client).
|
|
||||||
- Search by reference (thanks to [@artlepool](https://github.com/artlepool))
|
|
||||||
- Add call 'by_username' to the API resource User
|
|
||||||
- i18n.
|
|
||||||
- Add deutsch (de) translation.
|
|
||||||
- Add nederlands (nl) translation.
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.7.0 Empetrum Nigrum (2015-05-21)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Make Taiga translatable (i18n support).
|
|
||||||
- i18n.
|
|
||||||
- Add spanish (es) translation.
|
|
||||||
- Add french (fr) translation.
|
|
||||||
- Add finish (fi) translation.
|
|
||||||
- Add catalan (ca) translation.
|
|
||||||
- Add traditional chinese (zh-Hant) translation.
|
|
||||||
- Add Jitsi to our supported videoconference apps list
|
|
||||||
- Add tags field to CSV reports.
|
|
||||||
- Improve history (and email) comments created by all the GitHub actions
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- New contrib plugin for letschat (by Δndrea Stagi)
|
|
||||||
- Remove djangorestframework from requirements. Move useful code to core.
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.6.0 Abies Bifolia (2015-03-17)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Added custom fields per project for user stories, tasks and issues.
|
|
||||||
- Support of export to CSV user stories, tasks and issues.
|
|
||||||
- Allow public projects.
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- New contrib plugin for HipChat (by Δndrea Stagi).
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
- Updated some requirements.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.5.0 Betula Pendula - FOSDEM 2015 (2015-01-29)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Improving SQL queries and performance.
|
|
||||||
- Now you can export and import projects between Taiga instances.
|
|
||||||
- Email redesign.
|
|
||||||
- Support for archived status (not shown by default in Kanban).
|
|
||||||
- Removing files from filesystem when deleting attachments.
|
|
||||||
- Support for contrib plugins (existing yet: slack, hall and gogs).
|
|
||||||
- Webhooks added (crazy integrations are welcome).
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.4.0 Abies veitchii (2014-12-10)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Bitbucket integration:
|
|
||||||
+ Change status of user stories, tasks and issues with the commit messages.
|
|
||||||
- Gitlab integration:
|
|
||||||
+ Change status of user stories, tasks and issues with the commit messages.
|
|
||||||
+ Sync issues creation in Taiga from Gitlab.
|
|
||||||
- Support throttling.
|
|
||||||
+ for anonymous users
|
|
||||||
+ for authenticated users
|
|
||||||
+ in import mode
|
|
||||||
- Add project members stats endpoint.
|
|
||||||
- Support of leave project.
|
|
||||||
- Control of leave a project without admin user.
|
|
||||||
- Improving OCC (Optimistic concurrency control)
|
|
||||||
- Improving some SQL queries using djrom directly
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.3.0 Dryas hookeriana (2014-11-18)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- GitHub integration (Phase I):
|
|
||||||
+ Login/singin connector.
|
|
||||||
+ Change status of user stories, tasks and issues with the commit messages.
|
|
||||||
+ Sync issues creation in Taiga from GitHub.
|
|
||||||
+ Sync comments in Taiga from GitHub issues.
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.2.0 Picea obovata (2014-11-04)
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- Send an email to the user on signup.
|
|
||||||
- Emit django signal on user signout.
|
|
||||||
- Support for custom text when inviting users.
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Lots of small and not so small bugfixes.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.1.0 Alnus maximowiczii (2014-10-13)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Fix bugs related to unicode chars on attachments.
|
|
||||||
- Fix wrong static url resolve usage on emails.
|
|
||||||
- Fix some bugs on import/export api related with attachments.
|
|
||||||
|
|
||||||
|
|
||||||
## 1.0.0 (2014-10-07)
|
|
||||||
|
|
||||||
### Misc
|
|
||||||
- Lots of small and not so small bugfixes
|
|
||||||
|
|
||||||
### Features
|
|
||||||
- New data exposed in the API for taskboard and backlog summaries
|
|
||||||
- Allow feedback for users from the platform
|
|
||||||
- Real time changes for backlog, taskboard, kanban and issues
|
|
|
@ -1,51 +0,0 @@
|
||||||
# Taiga.io Community CoC (Code of Conduct)
|
|
||||||
### Version 0.1
|
|
||||||
|
|
||||||
As contributors and maintainers of any Taiga.io project, and in the interest of
|
|
||||||
fostering an open and welcoming community, we pledge to respect all people who
|
|
||||||
contribute through reporting issues, posting feature requests, updating
|
|
||||||
documentation, submitting pull requests or patches, and other activities.
|
|
||||||
|
|
||||||
We are committed to making participation in this projects a harassment-free
|
|
||||||
experience for everyone, regardless of level of experience, gender, gender
|
|
||||||
identity and expression, sexual orientation, disability, personal appearance,
|
|
||||||
body size, race, ethnicity, age, religion, or nationality.
|
|
||||||
|
|
||||||
Examples of unacceptable behavior by participants include:
|
|
||||||
|
|
||||||
* The use of sexualized language or imagery
|
|
||||||
* Personal attacks
|
|
||||||
* Trolling or insulting/derogatory comments
|
|
||||||
* Public or private harassment
|
|
||||||
* Publishing other's private information, such as physical or electronic
|
|
||||||
addresses, without explicit permission
|
|
||||||
* Other unethical or unprofessional conduct
|
|
||||||
|
|
||||||
Project maintainers have the right and responsibility to remove, edit, or
|
|
||||||
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
||||||
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
||||||
permanently any contributor for other behaviors that they deem inappropriate,
|
|
||||||
threatening, offensive, or harmful.
|
|
||||||
|
|
||||||
By adopting this Code of Conduct, project maintainers commit themselves to
|
|
||||||
fairly and consistently applying these principles to every aspect of managing
|
|
||||||
this project. Project maintainers who do not follow or enforce the Code of
|
|
||||||
Conduct may be permanently removed from the project team.
|
|
||||||
|
|
||||||
This code of conduct applies both within project spaces and in public spaces
|
|
||||||
when an individual is representing the project or its community (like our
|
|
||||||
mailing list, Google Groups, in Twitter, Facebook, etc.).
|
|
||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
||||||
reported by contacting a project maintainer at
|
|
||||||
[conduct@taiga.io](mailto:coc@taiga.io). All complaints will be reviewed
|
|
||||||
and investigated and will result in a response that is deemed necessary and
|
|
||||||
appropriate to the circumstances. Maintainers are obligated to maintain
|
|
||||||
confidentiality with regard to the reporter of an incident.
|
|
||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
||||||
version 1.3.0, available at
|
|
||||||
[http://contributor-covenant.org/version/1/3/0/][version]
|
|
||||||
|
|
||||||
[homepage]: http://contributor-covenant.org
|
|
||||||
[version]: http://contributor-covenant.org/version/1/3/0/
|
|
122
CONTRIBUTING.md
122
CONTRIBUTING.md
|
@ -1,122 +0,0 @@
|
||||||
# How can I contribute to Taiga?
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Developer Certificate of Origin + License
|
|
||||||
|
|
||||||
By contributing to Taiga Agile LLC., You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Taiga Agile LLC. Except for the license granted herein to Taiga Agile LLC. and recipients of software distributed by Taiga Agile LLC., You reserve all right, title, and interest in and to Your Contributions.
|
|
||||||
|
|
||||||
All Contributions are subject to the following DCO + License terms.
|
|
||||||
|
|
||||||
[DCO + License](https://github.com/taiga/taiga-back/blob/master/DCOLICENSE)
|
|
||||||
|
|
||||||
_This notice should stay as the first item in the CONTRIBUTING.md file._
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
We will be very happy to help us to improve Taiga, there are many different ways to contribute to Taiga's development, just find the one that best fits with your skills. Here are the guidelines we'd like you to follow.
|
|
||||||
|
|
||||||
## Our Code of Conduct
|
|
||||||
|
|
||||||
Help us keep the Taiga Community open and inclusive. Please read and follow our [Code of Conduct][CoC].
|
|
||||||
|
|
||||||
## Our License
|
|
||||||
|
|
||||||
Every code patch accepted in Taiga codebase is licensed under [AGPL v3.0][AGPL v3.0]. You must be careful to not include any code that can not be licensed under this license.
|
|
||||||
|
|
||||||
Please read carefully [our license][Taiga license] and ask us if you have any questions.
|
|
||||||
|
|
||||||
## Setup problems
|
|
||||||
|
|
||||||
If you follow our [setup guide][taiga Dev/Setup documentation] and you have some problem, please tell with us in our [mailing list][Taiga Mailing List].
|
|
||||||
|
|
||||||
## Sent us your feedback or questions
|
|
||||||
|
|
||||||
If you want to send us your feedback or have some questions about how to use Taiga, please direct these to our [mailing list][Taiga Mailing List]. If it's related to our SaaS https://taiga.io please write us to our support email [support@taiga.io][Support email].
|
|
||||||
|
|
||||||
Remember that you can find some help in our [support pages][Taiga User documentation].
|
|
||||||
|
|
||||||
## Did you find an issue or bug?
|
|
||||||
|
|
||||||
If you find an issue using the app (UX or UI bug) or reading our source code and it's not on our [Bug list][Taiga Bug list] at Taiga.io, please report it:
|
|
||||||
|
|
||||||
- in our [mailing list][Taiga Mailing List]
|
|
||||||
- in the issue section of the appropriate repository at [GitHub][Taiga in GitHub].
|
|
||||||
- send us a mail to [support@taiga.io][Support email] if is a bug related to [tree.taiga.io][Taiga.io].
|
|
||||||
- send a mail to [security@taiga.io][Security email] if is a **security bug**.
|
|
||||||
|
|
||||||
Even better: you can submit a Pull Request with a fix.
|
|
||||||
|
|
||||||
Please, before reporting a bug write down
|
|
||||||
|
|
||||||
- explain why this is a bug for you
|
|
||||||
- how can we reproduce it
|
|
||||||
- your operating System
|
|
||||||
- your browser and version
|
|
||||||
- if it's possible, a screenshot
|
|
||||||
|
|
||||||
Sometimes it takes less time to fix a bug if the developer knows how to find it and we will solve your problem as fast as possible.
|
|
||||||
|
|
||||||
**Localization Issue:** Taiga use Transifex to manage the i18n files so don't submit a pull request to those files (except `-en.json`), to fix it just access our team of translators, set up an account in the [Taiga Transifex project][Taiga in Transifex] and start contributing.
|
|
||||||
|
|
||||||
## Propose some feature or enhancement
|
|
||||||
|
|
||||||
You can propose a new enhancement to our [mailing list][Taiga Mailing List] or review and upvote in the existing [list of enhancements][Taiga Enhancement list] in Taiga.io.
|
|
||||||
|
|
||||||
If you would like to implement it by yourself consider what kind of change it is:
|
|
||||||
|
|
||||||
### Small Changes
|
|
||||||
|
|
||||||
It can be crafted and submitted to the [GitHub Repositories][Taiga in GitHub] as a Pull Request.
|
|
||||||
|
|
||||||
### Major Changes
|
|
||||||
|
|
||||||
Before contributing with a major change to Taiga it should be discussed first with the Taiga Team so that we can better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project. Please, contact us in the [mailing list][Taiga mailing list] or via [support@taiga.io][Support email].
|
|
||||||
|
|
||||||
We have defined a concrete workflow for this changes:
|
|
||||||
|
|
||||||
1. **User Story**: Send us a complete description of the functionality you'd like to develop, how it should work, for which profiles, as if you were writing a User Story. Please include some ideas of what would be a definition of Done of the User Story. The team will review it, decide whether or not it could make it into Taiga Core. If not, you can always write a plugin.
|
|
||||||
2. **Mentorship**: If accepted, Taiga team will help you, and a person from the team will be your contact in the development process. The Story will be visible in the [Taiga Kanban][Taiga Kanban]
|
|
||||||
3. **User Experience**: The functionality will require some wireframes or ideas to be developed correctly. A good UX its an essential part of Taiga success. You should create a user experience proposal and the Taiga UX team will help you.
|
|
||||||
4. **Design**: The design should respect the Taiga style. Try to reproduce other areas of the site. The taiga design team will review this proposal as well.
|
|
||||||
5. **Development**: The last step is the development. Remember to add unit and integration test in `taiga-back` code and unit and e2e test for `taiga-back` part. We have the API well documented too in [taiga-doc][Taiga Dev/Setup documentation].
|
|
||||||
6. **Pull request**: Remember to add a good description and screenshots are welcome too. Once the pull request is done, someone else from the team will review the code to ensure that it fits with the good practices and styles. If it does, the PR will be merged and will be on the next Taiga release.
|
|
||||||
|
|
||||||
If you think you are not able to do one or more of the parts of the process, your contribution is still welcome, but we cannot ensure that it will make it soon into the Taiga core anytime soon. It will depend on our priority backlog.
|
|
||||||
|
|
||||||
Thanks a lot! It is really great that we could make Taiga better with the help of the community.
|
|
||||||
|
|
||||||
### Contrib plugins
|
|
||||||
|
|
||||||
Taiga support contrib plugins to add or overwrite some functionalities. You can find some example in [our organization at GitHub][Taiga in GitHub].
|
|
||||||
|
|
||||||
## Improve the documentation
|
|
||||||
|
|
||||||
We are gathering lots of information from our users to build and enhance our documentation. If you use the documentation to install or develop with Taiga and find any mistakes, omissions or confused sequences, it is enormously helpful to report it. Or better still, if you believe you can author additions, please make a pull-request to taiga project.
|
|
||||||
|
|
||||||
Currently, we have authored three main documentation hubs:
|
|
||||||
|
|
||||||
- [Taiga Setup/Dev documentation][Taiga Dev/Setup documentation repo]: If you need to install Taiga on your own server, this is the place to find some guides or our API documentation and reference for developing from Taiga API.
|
|
||||||
- [Taiga User documentation][Taiga User documentation repo]: This page is intended to be the support reference page for the users. If you find any mistake, please report or fix it.
|
|
||||||
|
|
||||||
[Taiga.io]: https://taiga.io
|
|
||||||
|
|
||||||
[CoC]: https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
|
|
||||||
[AGPL v3.0]: http://www.gnu.org/licenses/agpl-3.0.html
|
|
||||||
[Taiga license]: https://github.com/taigaio/taiga-back/blob/master/LICENSE
|
|
||||||
|
|
||||||
[Taiga Mailing List]: http://groups.google.co.uk/d/forum/taigaio
|
|
||||||
[Support email]: mailto:support@taiga.io
|
|
||||||
[Security email]: mailto:security@taiga.io
|
|
||||||
|
|
||||||
[Taiga in Transifex]: https://www.transifex.com/organization/taiga-agile-llc/
|
|
||||||
[Taiga in GitHub]: https://github.com/taigaio
|
|
||||||
|
|
||||||
[Taiga kanban]: https://tree.taiga.io/project/taiga/kanban
|
|
||||||
[Taiga Bug list]: https://tree.taiga.io/project/taiga/issues?statuses=1,2&orderBy=-created_date&page=1&types=1
|
|
||||||
[Taiga Enhancement list]: https://tree.taiga.io/project/taiga/issues?statuses=1,2&orderBy=-total_voters&page=1&status=1,2&types=6
|
|
||||||
|
|
||||||
[Taiga Dev/Setup documentation]: http://taigaio.github.io/taiga-doc/dist/
|
|
||||||
[Taiga Dev/Setup documentation repo]: https://github.com/taigaio/taiga-doc
|
|
||||||
[Taiga User documentation]: https://tree.taiga.io/support/
|
|
||||||
[Taiga User documentation repo]: https://github.com/taigaio/taiga-support
|
|
705
DCOLICENSE
705
DCOLICENSE
|
@ -1,705 +0,0 @@
|
||||||
Developer Certificate of Origin + License
|
|
||||||
|
|
||||||
By contributing to Taiga Agile LLC., You accept and agree to the following
|
|
||||||
terms and conditions for Your present and future Contributions submitted to
|
|
||||||
Taiga Agile LLC. Except for the license granted herein to Taiga Agile LLC. and
|
|
||||||
recipients of software distributed by Taiga Agile LLC., You reserve all right,
|
|
||||||
title, and interest in and to Your Contributions.
|
|
||||||
|
|
||||||
Developer Certificate of Origin
|
|
||||||
Version 1.1
|
|
||||||
|
|
||||||
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
|
|
||||||
1 Letterman Drive
|
|
||||||
Suite D4700
|
|
||||||
San Francisco, CA, 94129
|
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies of this license
|
|
||||||
document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Developer's Certificate of Origin 1.1
|
|
||||||
|
|
||||||
By making a contribution to this project, I certify that:
|
|
||||||
|
|
||||||
(a) The contribution was created in whole or in part by me and I have the right
|
|
||||||
to submit it under the open source license indicated in the file; or
|
|
||||||
|
|
||||||
(b) The contribution is based upon previous work that, to the best of my
|
|
||||||
knowledge, is covered under an appropriate open source license and I have the
|
|
||||||
right under that license to submit that work with modifications, whether
|
|
||||||
created in whole or in part by me, under the same open source license
|
|
||||||
(unless I am permitted to submit under a different license), as indicated
|
|
||||||
in the file; or
|
|
||||||
|
|
||||||
(c) The contribution was provided directly to me by some other person who
|
|
||||||
certified (a), (b) or (c) and I have not modified it.
|
|
||||||
|
|
||||||
(d) I understand and agree that this project and the contribution are public
|
|
||||||
and that a record of the contribution (including all personal information I
|
|
||||||
submit with it, including my sign-off) is maintained indefinitely and may be
|
|
||||||
redistributed consistent with this project or the open source license(s)
|
|
||||||
involved.
|
|
||||||
|
|
||||||
All Contributions to this project are licensed under the following license:
|
|
||||||
|
|
||||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
||||||
Version 3, 19 November 2007
|
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The GNU Affero General Public License is a free, copyleft license for
|
|
||||||
software and other kinds of works, specifically designed to ensure
|
|
||||||
cooperation with the community in the case of network server software.
|
|
||||||
|
|
||||||
The licenses for most software and other practical works are designed
|
|
||||||
to take away your freedom to share and change the works. By contrast,
|
|
||||||
our General Public Licenses are intended to guarantee your freedom to
|
|
||||||
share and change all versions of a program--to make sure it remains free
|
|
||||||
software for all its users.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
them if you wish), that you receive source code or can get it if you
|
|
||||||
want it, that you can change the software or use pieces of it in new
|
|
||||||
free programs, and that you know you can do these things.
|
|
||||||
|
|
||||||
Developers that use our General Public Licenses protect your rights
|
|
||||||
with two steps: (1) assert copyright on the software, and (2) offer
|
|
||||||
you this License which gives you legal permission to copy, distribute
|
|
||||||
and/or modify the software.
|
|
||||||
|
|
||||||
A secondary benefit of defending all users' freedom is that
|
|
||||||
improvements made in alternate versions of the program, if they
|
|
||||||
receive widespread use, become available for other developers to
|
|
||||||
incorporate. Many developers of free software are heartened and
|
|
||||||
encouraged by the resulting cooperation. However, in the case of
|
|
||||||
software used on network servers, this result may fail to come about.
|
|
||||||
The GNU General Public License permits making a modified version and
|
|
||||||
letting the public access it on a server without ever releasing its
|
|
||||||
source code to the public.
|
|
||||||
|
|
||||||
The GNU Affero General Public License is designed specifically to
|
|
||||||
ensure that, in such cases, the modified source code becomes available
|
|
||||||
to the community. It requires the operator of a network server to
|
|
||||||
provide the source code of the modified version running there to the
|
|
||||||
users of that server. Therefore, public use of a modified version, on
|
|
||||||
a publicly accessible server, gives the public access to the source
|
|
||||||
code of the modified version.
|
|
||||||
|
|
||||||
An older license, called the Affero General Public License and
|
|
||||||
published by Affero, was designed to accomplish similar goals. This is
|
|
||||||
a different license, not a version of the Affero GPL, but Affero has
|
|
||||||
released a new version of the Affero GPL which permits relicensing under
|
|
||||||
this license.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
0. Definitions.
|
|
||||||
|
|
||||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
|
||||||
|
|
||||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
|
||||||
works, such as semiconductor masks.
|
|
||||||
|
|
||||||
"The Program" refers to any copyrightable work licensed under this
|
|
||||||
License. Each licensee is addressed as "you". "Licensees" and
|
|
||||||
"recipients" may be individuals or organizations.
|
|
||||||
|
|
||||||
To "modify" a work means to copy from or adapt all or part of the work
|
|
||||||
in a fashion requiring copyright permission, other than the making of an
|
|
||||||
exact copy. The resulting work is called a "modified version" of the
|
|
||||||
earlier work or a work "based on" the earlier work.
|
|
||||||
|
|
||||||
A "covered work" means either the unmodified Program or a work based
|
|
||||||
on the Program.
|
|
||||||
|
|
||||||
To "propagate" a work means to do anything with it that, without
|
|
||||||
permission, would make you directly or secondarily liable for
|
|
||||||
infringement under applicable copyright law, except executing it on a
|
|
||||||
computer or modifying a private copy. Propagation includes copying,
|
|
||||||
distribution (with or without modification), making available to the
|
|
||||||
public, and in some countries other activities as well.
|
|
||||||
|
|
||||||
To "convey" a work means any kind of propagation that enables other
|
|
||||||
parties to make or receive copies. Mere interaction with a user through
|
|
||||||
a computer network, with no transfer of a copy, is not conveying.
|
|
||||||
|
|
||||||
An interactive user interface displays "Appropriate Legal Notices"
|
|
||||||
to the extent that it includes a convenient and prominently visible
|
|
||||||
feature that (1) displays an appropriate copyright notice, and (2)
|
|
||||||
tells the user that there is no warranty for the work (except to the
|
|
||||||
extent that warranties are provided), that licensees may convey the
|
|
||||||
work under this License, and how to view a copy of this License. If
|
|
||||||
the interface presents a list of user commands or options, such as a
|
|
||||||
menu, a prominent item in the list meets this criterion.
|
|
||||||
|
|
||||||
1. Source Code.
|
|
||||||
|
|
||||||
The "source code" for a work means the preferred form of the work
|
|
||||||
for making modifications to it. "Object code" means any non-source
|
|
||||||
form of a work.
|
|
||||||
|
|
||||||
A "Standard Interface" means an interface that either is an official
|
|
||||||
standard defined by a recognized standards body, or, in the case of
|
|
||||||
interfaces specified for a particular programming language, one that
|
|
||||||
is widely used among developers working in that language.
|
|
||||||
|
|
||||||
The "System Libraries" of an executable work include anything, other
|
|
||||||
than the work as a whole, that (a) is included in the normal form of
|
|
||||||
packaging a Major Component, but which is not part of that Major
|
|
||||||
Component, and (b) serves only to enable use of the work with that
|
|
||||||
Major Component, or to implement a Standard Interface for which an
|
|
||||||
implementation is available to the public in source code form. A
|
|
||||||
"Major Component", in this context, means a major essential component
|
|
||||||
(kernel, window system, and so on) of the specific operating system
|
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
|
||||||
produce the work, or an object code interpreter used to run it.
|
|
||||||
|
|
||||||
The "Corresponding Source" for a work in object code form means all
|
|
||||||
the source code needed to generate, install, and (for an executable
|
|
||||||
work) run the object code and to modify the work, including scripts to
|
|
||||||
control those activities. However, it does not include the work's
|
|
||||||
System Libraries, or general-purpose tools or generally available free
|
|
||||||
programs which are used unmodified in performing those activities but
|
|
||||||
which are not part of the work. For example, Corresponding Source
|
|
||||||
includes interface definition files associated with source files for
|
|
||||||
the work, and the source code for shared libraries and dynamically
|
|
||||||
linked subprograms that the work is specifically designed to require,
|
|
||||||
such as by intimate data communication or control flow between those
|
|
||||||
subprograms and other parts of the work.
|
|
||||||
|
|
||||||
The Corresponding Source need not include anything that users
|
|
||||||
can regenerate automatically from other parts of the Corresponding
|
|
||||||
Source.
|
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that
|
|
||||||
same work.
|
|
||||||
|
|
||||||
2. Basic Permissions.
|
|
||||||
|
|
||||||
All rights granted under this License are granted for the term of
|
|
||||||
copyright on the Program, and are irrevocable provided the stated
|
|
||||||
conditions are met. This License explicitly affirms your unlimited
|
|
||||||
permission to run the unmodified Program. The output from running a
|
|
||||||
covered work is covered by this License only if the output, given its
|
|
||||||
content, constitutes a covered work. This License acknowledges your
|
|
||||||
rights of fair use or other equivalent, as provided by copyright law.
|
|
||||||
|
|
||||||
You may make, run and propagate covered works that you do not
|
|
||||||
convey, without conditions so long as your license otherwise remains
|
|
||||||
in force. You may convey covered works to others for the sole purpose
|
|
||||||
of having them make modifications exclusively for you, or provide you
|
|
||||||
with facilities for running those works, provided that you comply with
|
|
||||||
the terms of this License in conveying all material for which you do
|
|
||||||
not control copyright. Those thus making or running the covered works
|
|
||||||
for you must do so exclusively on your behalf, under your direction
|
|
||||||
and control, on terms that prohibit them from making any copies of
|
|
||||||
your copyrighted material outside their relationship with you.
|
|
||||||
|
|
||||||
Conveying under any other circumstances is permitted solely under
|
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10
|
|
||||||
makes it unnecessary.
|
|
||||||
|
|
||||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
||||||
|
|
||||||
No covered work shall be deemed part of an effective technological
|
|
||||||
measure under any applicable law fulfilling obligations under article
|
|
||||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
||||||
similar laws prohibiting or restricting circumvention of such
|
|
||||||
measures.
|
|
||||||
|
|
||||||
When you convey a covered work, you waive any legal power to forbid
|
|
||||||
circumvention of technological measures to the extent such circumvention
|
|
||||||
is effected by exercising rights under this License with respect to
|
|
||||||
the covered work, and you disclaim any intention to limit operation or
|
|
||||||
modification of the work as a means of enforcing, against the work's
|
|
||||||
users, your or third parties' legal rights to forbid circumvention of
|
|
||||||
technological measures.
|
|
||||||
|
|
||||||
4. Conveying Verbatim Copies.
|
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you
|
|
||||||
receive it, in any medium, provided that you conspicuously and
|
|
||||||
appropriately publish on each copy an appropriate copyright notice;
|
|
||||||
keep intact all notices stating that this License and any
|
|
||||||
non-permissive terms added in accord with section 7 apply to the code;
|
|
||||||
keep intact all notices of the absence of any warranty; and give all
|
|
||||||
recipients a copy of this License along with the Program.
|
|
||||||
|
|
||||||
You may charge any price or no price for each copy that you convey,
|
|
||||||
and you may offer support or warranty protection for a fee.
|
|
||||||
|
|
||||||
5. Conveying Modified Source Versions.
|
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to
|
|
||||||
produce it from the Program, in the form of source code under the
|
|
||||||
terms of section 4, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified
|
|
||||||
it, and giving a relevant date.
|
|
||||||
|
|
||||||
b) The work must carry prominent notices stating that it is
|
|
||||||
released under this License and any conditions added under section
|
|
||||||
7. This requirement modifies the requirement in section 4 to
|
|
||||||
"keep intact all notices".
|
|
||||||
|
|
||||||
c) You must license the entire work, as a whole, under this
|
|
||||||
License to anyone who comes into possession of a copy. This
|
|
||||||
License will therefore apply, along with any applicable section 7
|
|
||||||
additional terms, to the whole of the work, and all its parts,
|
|
||||||
regardless of how they are packaged. This License gives no
|
|
||||||
permission to license the work in any other way, but it does not
|
|
||||||
invalidate such permission if you have separately received it.
|
|
||||||
|
|
||||||
d) If the work has interactive user interfaces, each must display
|
|
||||||
Appropriate Legal Notices; however, if the Program has interactive
|
|
||||||
interfaces that do not display Appropriate Legal Notices, your
|
|
||||||
work need not make them do so.
|
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent
|
|
||||||
works, which are not by their nature extensions of the covered work,
|
|
||||||
and which are not combined with it such as to form a larger program,
|
|
||||||
in or on a volume of a storage or distribution medium, is called an
|
|
||||||
"aggregate" if the compilation and its resulting copyright are not
|
|
||||||
used to limit the access or legal rights of the compilation's users
|
|
||||||
beyond what the individual works permit. Inclusion of a covered work
|
|
||||||
in an aggregate does not cause this License to apply to the other
|
|
||||||
parts of the aggregate.
|
|
||||||
|
|
||||||
6. Conveying Non-Source Forms.
|
|
||||||
|
|
||||||
You may convey a covered work in object code form under the terms
|
|
||||||
of sections 4 and 5, provided that you also convey the
|
|
||||||
machine-readable Corresponding Source under the terms of this License,
|
|
||||||
in one of these ways:
|
|
||||||
|
|
||||||
a) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by the
|
|
||||||
Corresponding Source fixed on a durable physical medium
|
|
||||||
customarily used for software interchange.
|
|
||||||
|
|
||||||
b) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by a
|
|
||||||
written offer, valid for at least three years and valid for as
|
|
||||||
long as you offer spare parts or customer support for that product
|
|
||||||
model, to give anyone who possesses the object code either (1) a
|
|
||||||
copy of the Corresponding Source for all the software in the
|
|
||||||
product that is covered by this License, on a durable physical
|
|
||||||
medium customarily used for software interchange, for a price no
|
|
||||||
more than your reasonable cost of physically performing this
|
|
||||||
conveying of source, or (2) access to copy the
|
|
||||||
Corresponding Source from a network server at no charge.
|
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the
|
|
||||||
written offer to provide the Corresponding Source. This
|
|
||||||
alternative is allowed only occasionally and noncommercially, and
|
|
||||||
only if you received the object code with such an offer, in accord
|
|
||||||
with subsection 6b.
|
|
||||||
|
|
||||||
d) Convey the object code by offering access from a designated
|
|
||||||
place (gratis or for a charge), and offer equivalent access to the
|
|
||||||
Corresponding Source in the same way through the same place at no
|
|
||||||
further charge. You need not require recipients to copy the
|
|
||||||
Corresponding Source along with the object code. If the place to
|
|
||||||
copy the object code is a network server, the Corresponding Source
|
|
||||||
may be on a different server (operated by you or a third party)
|
|
||||||
that supports equivalent copying facilities, provided you maintain
|
|
||||||
clear directions next to the object code saying where to find the
|
|
||||||
Corresponding Source. Regardless of what server hosts the
|
|
||||||
Corresponding Source, you remain obligated to ensure that it is
|
|
||||||
available for as long as needed to satisfy these requirements.
|
|
||||||
|
|
||||||
e) Convey the object code using peer-to-peer transmission, provided
|
|
||||||
you inform other peers where the object code and Corresponding
|
|
||||||
Source of the work are being offered to the general public at no
|
|
||||||
charge under subsection 6d.
|
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded
|
|
||||||
from the Corresponding Source as a System Library, need not be
|
|
||||||
included in conveying the object code work.
|
|
||||||
|
|
||||||
A "User Product" is either (1) a "consumer product", which means any
|
|
||||||
tangible personal property which is normally used for personal, family,
|
|
||||||
or household purposes, or (2) anything designed or sold for incorporation
|
|
||||||
into a dwelling. In determining whether a product is a consumer product,
|
|
||||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
||||||
product received by a particular user, "normally used" refers to a
|
|
||||||
typical or common use of that class of product, regardless of the status
|
|
||||||
of the particular user or of the way in which the particular user
|
|
||||||
actually uses, or expects or is expected to use, the product. A product
|
|
||||||
is a consumer product regardless of whether the product has substantial
|
|
||||||
commercial, industrial or non-consumer uses, unless such uses represent
|
|
||||||
the only significant mode of use of the product.
|
|
||||||
|
|
||||||
"Installation Information" for a User Product means any methods,
|
|
||||||
procedures, authorization keys, or other information required to install
|
|
||||||
and execute modified versions of a covered work in that User Product from
|
|
||||||
a modified version of its Corresponding Source. The information must
|
|
||||||
suffice to ensure that the continued functioning of the modified object
|
|
||||||
code is in no case prevented or interfered with solely because
|
|
||||||
modification has been made.
|
|
||||||
|
|
||||||
If you convey an object code work under this section in, or with, or
|
|
||||||
specifically for use in, a User Product, and the conveying occurs as
|
|
||||||
part of a transaction in which the right of possession and use of the
|
|
||||||
User Product is transferred to the recipient in perpetuity or for a
|
|
||||||
fixed term (regardless of how the transaction is characterized), the
|
|
||||||
Corresponding Source conveyed under this section must be accompanied
|
|
||||||
by the Installation Information. But this requirement does not apply
|
|
||||||
if neither you nor any third party retains the ability to install
|
|
||||||
modified object code on the User Product (for example, the work has
|
|
||||||
been installed in ROM).
|
|
||||||
|
|
||||||
The requirement to provide Installation Information does not include a
|
|
||||||
requirement to continue to provide support service, warranty, or updates
|
|
||||||
for a work that has been modified or installed by the recipient, or for
|
|
||||||
the User Product in which it has been modified or installed. Access to a
|
|
||||||
network may be denied when the modification itself materially and
|
|
||||||
adversely affects the operation of the network or violates the rules and
|
|
||||||
protocols for communication across the network.
|
|
||||||
|
|
||||||
Corresponding Source conveyed, and Installation Information provided,
|
|
||||||
in accord with this section must be in a format that is publicly
|
|
||||||
documented (and with an implementation available to the public in
|
|
||||||
source code form), and must require no special password or key for
|
|
||||||
unpacking, reading or copying.
|
|
||||||
|
|
||||||
7. Additional Terms.
|
|
||||||
|
|
||||||
"Additional permissions" are terms that supplement the terms of this
|
|
||||||
License by making exceptions from one or more of its conditions.
|
|
||||||
Additional permissions that are applicable to the entire Program shall
|
|
||||||
be treated as though they were included in this License, to the extent
|
|
||||||
that they are valid under applicable law. If additional permissions
|
|
||||||
apply only to part of the Program, that part may be used separately
|
|
||||||
under those permissions, but the entire Program remains governed by
|
|
||||||
this License without regard to the additional permissions.
|
|
||||||
|
|
||||||
When you convey a copy of a covered work, you may at your option
|
|
||||||
remove any additional permissions from that copy, or from any part of
|
|
||||||
it. (Additional permissions may be written to require their own
|
|
||||||
removal in certain cases when you modify the work.) You may place
|
|
||||||
additional permissions on material, added by you to a covered work,
|
|
||||||
for which you have or can give appropriate copyright permission.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, for material you
|
|
||||||
add to a covered work, you may (if authorized by the copyright holders of
|
|
||||||
that material) supplement the terms of this License with terms:
|
|
||||||
|
|
||||||
a) Disclaiming warranty or limiting liability differently from the
|
|
||||||
terms of sections 15 and 16 of this License; or
|
|
||||||
|
|
||||||
b) Requiring preservation of specified reasonable legal notices or
|
|
||||||
author attributions in that material or in the Appropriate Legal
|
|
||||||
Notices displayed by works containing it; or
|
|
||||||
|
|
||||||
c) Prohibiting misrepresentation of the origin of that material, or
|
|
||||||
requiring that modified versions of such material be marked in
|
|
||||||
reasonable ways as different from the original version; or
|
|
||||||
|
|
||||||
d) Limiting the use for publicity purposes of names of licensors or
|
|
||||||
authors of the material; or
|
|
||||||
|
|
||||||
e) Declining to grant rights under trademark law for use of some
|
|
||||||
trade names, trademarks, or service marks; or
|
|
||||||
|
|
||||||
f) Requiring indemnification of licensors and authors of that
|
|
||||||
material by anyone who conveys the material (or modified versions of
|
|
||||||
it) with contractual assumptions of liability to the recipient, for
|
|
||||||
any liability that these contractual assumptions directly impose on
|
|
||||||
those licensors and authors.
|
|
||||||
|
|
||||||
All other non-permissive additional terms are considered "further
|
|
||||||
restrictions" within the meaning of section 10. If the Program as you
|
|
||||||
received it, or any part of it, contains a notice stating that it is
|
|
||||||
governed by this License along with a term that is a further
|
|
||||||
restriction, you may remove that term. If a license document contains
|
|
||||||
a further restriction but permits relicensing or conveying under this
|
|
||||||
License, you may add to a covered work material governed by the terms
|
|
||||||
of that license document, provided that the further restriction does
|
|
||||||
not survive such relicensing or conveying.
|
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you
|
|
||||||
must place, in the relevant source files, a statement of the
|
|
||||||
additional terms that apply to those files, or a notice indicating
|
|
||||||
where to find the applicable terms.
|
|
||||||
|
|
||||||
Additional terms, permissive or non-permissive, may be stated in the
|
|
||||||
form of a separately written license, or stated as exceptions;
|
|
||||||
the above requirements apply either way.
|
|
||||||
|
|
||||||
8. Termination.
|
|
||||||
|
|
||||||
You may not propagate or modify a covered work except as expressly
|
|
||||||
provided under this License. Any attempt otherwise to propagate or
|
|
||||||
modify it is void, and will automatically terminate your rights under
|
|
||||||
this License (including any patent licenses granted under the third
|
|
||||||
paragraph of section 11).
|
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your
|
|
||||||
license from a particular copyright holder is reinstated (a)
|
|
||||||
provisionally, unless and until the copyright holder explicitly and
|
|
||||||
finally terminates your license, and (b) permanently, if the copyright
|
|
||||||
holder fails to notify you of the violation by some reasonable means
|
|
||||||
prior to 60 days after the cessation.
|
|
||||||
|
|
||||||
Moreover, your license from a particular copyright holder is
|
|
||||||
reinstated permanently if the copyright holder notifies you of the
|
|
||||||
violation by some reasonable means, this is the first time you have
|
|
||||||
received notice of violation of this License (for any work) from that
|
|
||||||
copyright holder, and you cure the violation prior to 30 days after
|
|
||||||
your receipt of the notice.
|
|
||||||
|
|
||||||
Termination of your rights under this section does not terminate the
|
|
||||||
licenses of parties who have received copies or rights from you under
|
|
||||||
this License. If your rights have been terminated and not permanently
|
|
||||||
reinstated, you do not qualify to receive new licenses for the same
|
|
||||||
material under section 10.
|
|
||||||
|
|
||||||
9. Acceptance Not Required for Having Copies.
|
|
||||||
|
|
||||||
You are not required to accept this License in order to receive or
|
|
||||||
run a copy of the Program. Ancillary propagation of a covered work
|
|
||||||
occurring solely as a consequence of using peer-to-peer transmission
|
|
||||||
to receive a copy likewise does not require acceptance. However,
|
|
||||||
nothing other than this License grants you permission to propagate or
|
|
||||||
modify any covered work. These actions infringe copyright if you do
|
|
||||||
not accept this License. Therefore, by modifying or propagating a
|
|
||||||
covered work, you indicate your acceptance of this License to do so.
|
|
||||||
|
|
||||||
10. Automatic Licensing of Downstream Recipients.
|
|
||||||
|
|
||||||
Each time you convey a covered work, the recipient automatically
|
|
||||||
receives a license from the original licensors, to run, modify and
|
|
||||||
propagate that work, subject to this License. You are not responsible
|
|
||||||
for enforcing compliance by third parties with this License.
|
|
||||||
|
|
||||||
An "entity transaction" is a transaction transferring control of an
|
|
||||||
organization, or substantially all assets of one, or subdividing an
|
|
||||||
organization, or merging organizations. If propagation of a covered
|
|
||||||
work results from an entity transaction, each party to that
|
|
||||||
transaction who receives a copy of the work also receives whatever
|
|
||||||
licenses to the work the party's predecessor in interest had or could
|
|
||||||
give under the previous paragraph, plus a right to possession of the
|
|
||||||
Corresponding Source of the work from the predecessor in interest, if
|
|
||||||
the predecessor has it or can get it with reasonable efforts.
|
|
||||||
|
|
||||||
You may not impose any further restrictions on the exercise of the
|
|
||||||
rights granted or affirmed under this License. For example, you may
|
|
||||||
not impose a license fee, royalty, or other charge for exercise of
|
|
||||||
rights granted under this License, and you may not initiate litigation
|
|
||||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
||||||
any patent claim is infringed by making, using, selling, offering for
|
|
||||||
sale, or importing the Program or any portion of it.
|
|
||||||
|
|
||||||
11. Patents.
|
|
||||||
|
|
||||||
A "contributor" is a copyright holder who authorizes use under this
|
|
||||||
License of the Program or a work on which the Program is based. The
|
|
||||||
work thus licensed is called the contributor's "contributor version".
|
|
||||||
|
|
||||||
A contributor's "essential patent claims" are all patent claims
|
|
||||||
owned or controlled by the contributor, whether already acquired or
|
|
||||||
hereafter acquired, that would be infringed by some manner, permitted
|
|
||||||
by this License, of making, using, or selling its contributor version,
|
|
||||||
but do not include claims that would be infringed only as a
|
|
||||||
consequence of further modification of the contributor version. For
|
|
||||||
purposes of this definition, "control" includes the right to grant
|
|
||||||
patent sublicenses in a manner consistent with the requirements of
|
|
||||||
this License.
|
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
||||||
patent license under the contributor's essential patent claims, to
|
|
||||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
|
||||||
propagate the contents of its contributor version.
|
|
||||||
|
|
||||||
In the following three paragraphs, a "patent license" is any express
|
|
||||||
agreement or commitment, however denominated, not to enforce a patent
|
|
||||||
(such as an express permission to practice a patent or covenant not to
|
|
||||||
sue for patent infringement). To "grant" such a patent license to a
|
|
||||||
party means to make such an agreement or commitment not to enforce a
|
|
||||||
patent against the party.
|
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license,
|
|
||||||
and the Corresponding Source of the work is not available for anyone
|
|
||||||
to copy, free of charge and under the terms of this License, through a
|
|
||||||
publicly available network server or other readily accessible means,
|
|
||||||
then you must either (1) cause the Corresponding Source to be so
|
|
||||||
available, or (2) arrange to deprive yourself of the benefit of the
|
|
||||||
patent license for this particular work, or (3) arrange, in a manner
|
|
||||||
consistent with the requirements of this License, to extend the patent
|
|
||||||
license to downstream recipients. "Knowingly relying" means you have
|
|
||||||
actual knowledge that, but for the patent license, your conveying the
|
|
||||||
covered work in a country, or your recipient's use of the covered work
|
|
||||||
in a country, would infringe one or more identifiable patents in that
|
|
||||||
country that you have reason to believe are valid.
|
|
||||||
|
|
||||||
If, pursuant to or in connection with a single transaction or
|
|
||||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
||||||
covered work, and grant a patent license to some of the parties
|
|
||||||
receiving the covered work authorizing them to use, propagate, modify
|
|
||||||
or convey a specific copy of the covered work, then the patent license
|
|
||||||
you grant is automatically extended to all recipients of the covered
|
|
||||||
work and works based on it.
|
|
||||||
|
|
||||||
A patent license is "discriminatory" if it does not include within
|
|
||||||
the scope of its coverage, prohibits the exercise of, or is
|
|
||||||
conditioned on the non-exercise of one or more of the rights that are
|
|
||||||
specifically granted under this License. You may not convey a covered
|
|
||||||
work if you are a party to an arrangement with a third party that is
|
|
||||||
in the business of distributing software, under which you make payment
|
|
||||||
to the third party based on the extent of your activity of conveying
|
|
||||||
the work, and under which the third party grants, to any of the
|
|
||||||
parties who would receive the covered work from you, a discriminatory
|
|
||||||
patent license (a) in connection with copies of the covered work
|
|
||||||
conveyed by you (or copies made from those copies), or (b) primarily
|
|
||||||
for and in connection with specific products or compilations that
|
|
||||||
contain the covered work, unless you entered into that arrangement,
|
|
||||||
or that patent license was granted, prior to 28 March 2007.
|
|
||||||
|
|
||||||
Nothing in this License shall be construed as excluding or limiting
|
|
||||||
any implied license or other defenses to infringement that may
|
|
||||||
otherwise be available to you under applicable patent law.
|
|
||||||
|
|
||||||
12. No Surrender of Others' Freedom.
|
|
||||||
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot convey a
|
|
||||||
covered work so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you may
|
|
||||||
not convey it at all. For example, if you agree to terms that obligate you
|
|
||||||
to collect a royalty for further conveying from those to whom you convey
|
|
||||||
the Program, the only way you could satisfy both those terms and this
|
|
||||||
License would be to refrain entirely from conveying the Program.
|
|
||||||
|
|
||||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, if you modify the
|
|
||||||
Program, your modified version must prominently offer all users
|
|
||||||
interacting with it remotely through a computer network (if your version
|
|
||||||
supports such interaction) an opportunity to receive the Corresponding
|
|
||||||
Source of your version by providing access to the Corresponding Source
|
|
||||||
from a network server at no charge, through some standard or customary
|
|
||||||
means of facilitating copying of software. This Corresponding Source
|
|
||||||
shall include the Corresponding Source for any work covered by version 3
|
|
||||||
of the GNU General Public License that is incorporated pursuant to the
|
|
||||||
following paragraph.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, you have
|
|
||||||
permission to link or combine any covered work with a work licensed
|
|
||||||
under version 3 of the GNU General Public License into a single
|
|
||||||
combined work, and to convey the resulting work. The terms of this
|
|
||||||
License will continue to apply to the part which is the covered work,
|
|
||||||
but the work with which it is combined will remain governed by version
|
|
||||||
3 of the GNU General Public License.
|
|
||||||
|
|
||||||
14. Revised Versions of this License.
|
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of
|
|
||||||
the GNU Affero General Public License from time to time. Such new versions
|
|
||||||
will be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the
|
|
||||||
Program specifies that a certain numbered version of the GNU Affero General
|
|
||||||
Public License "or any later version" applies to it, you have the
|
|
||||||
option of following the terms and conditions either of that numbered
|
|
||||||
version or of any later version published by the Free Software
|
|
||||||
Foundation. If the Program does not specify a version number of the
|
|
||||||
GNU Affero General Public License, you may choose any version ever published
|
|
||||||
by the Free Software Foundation.
|
|
||||||
|
|
||||||
If the Program specifies that a proxy can decide which future
|
|
||||||
versions of the GNU Affero General Public License can be used, that proxy's
|
|
||||||
public statement of acceptance of a version permanently authorizes you
|
|
||||||
to choose that version for the Program.
|
|
||||||
|
|
||||||
Later license versions may give you additional or different
|
|
||||||
permissions. However, no additional obligations are imposed on any
|
|
||||||
author or copyright holder as a result of your choosing to follow a
|
|
||||||
later version.
|
|
||||||
|
|
||||||
15. Disclaimer of Warranty.
|
|
||||||
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
||||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
||||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
||||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
||||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
||||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
16. Limitation of Liability.
|
|
||||||
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
||||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
||||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
||||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
||||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
||||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
||||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGES.
|
|
||||||
|
|
||||||
17. Interpretation of Sections 15 and 16.
|
|
||||||
|
|
||||||
If the disclaimer of warranty and limitation of liability provided
|
|
||||||
above cannot be given local legal effect according to their terms,
|
|
||||||
reviewing courts shall apply local law that most closely approximates
|
|
||||||
an absolute waiver of all civil liability in connection with the
|
|
||||||
Program, unless a warranty or assumption of liability accompanies a
|
|
||||||
copy of the Program in return for a fee.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
state the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Affero General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU Affero General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Affero General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If your software can interact with users remotely through a computer
|
|
||||||
network, you should also make sure that it provides a way for users to
|
|
||||||
get its source. For example, if your program is a web application, its
|
|
||||||
interface could display a "Source" link that leads users to an archive
|
|
||||||
of the code. There are many ways you could offer source, and different
|
|
||||||
solutions will be better for different programs; see section 13 for the
|
|
||||||
specific requirements.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school,
|
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
||||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
|
||||||
<http://www.gnu.org/licenses/>.
|
|
|
@ -1,19 +0,0 @@
|
||||||
**Before adding an issue**
|
|
||||||
Please ensure that your issue is not already reported in our [issues list](https://tree.taiga.io/project/taiga/issues?order_by=-created_date).
|
|
||||||
If this issue was already reported, remember that you can upvote it to raise its importance.
|
|
||||||
|
|
||||||
**Do you want to request a *feature* or report a *bug*?**
|
|
||||||
|
|
||||||
**What is the current behavior?**
|
|
||||||
|
|
||||||
**If the current behavior is a bug, please provide the steps to reproduce.**
|
|
||||||
|
|
||||||
**What is the expected behavior?**
|
|
||||||
|
|
||||||
**Is it happening in taiga.io or in your own instance?**
|
|
||||||
|
|
||||||
**What browser/version are you using?**
|
|
||||||
|
|
||||||
**Are there any console errors *(Ctrl + F12)* in red?**
|
|
||||||
|
|
||||||
Thanks for reporting!
|
|
836
LICENSE
836
LICENSE
|
@ -1,661 +1,177 @@
|
||||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
||||||
Version 3, 19 November 2007
|
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
Apache License
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Version 2.0, January 2004
|
||||||
of this license document, but changing it is not allowed.
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
Preamble
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
The GNU Affero General Public License is a free, copyleft license for
|
1. Definitions.
|
||||||
software and other kinds of works, specifically designed to ensure
|
|
||||||
cooperation with the community in the case of network server software.
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
The licenses for most software and other practical works are designed
|
|
||||||
to take away your freedom to share and change the works. By contrast,
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
our General Public Licenses are intended to guarantee your freedom to
|
the copyright owner that is granting the License.
|
||||||
share and change all versions of a program--to make sure it remains free
|
|
||||||
software for all its users.
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
When we speak of free software, we are referring to freedom, not
|
control with that entity. For the purposes of this definition,
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
have the freedom to distribute copies of free software (and charge for
|
direction or management of such entity, whether by contract or
|
||||||
them if you wish), that you receive source code or can get it if you
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
want it, that you can change the software or use pieces of it in new
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
free programs, and that you know you can do these things.
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
Developers that use our General Public Licenses protect your rights
|
exercising permissions granted by this License.
|
||||||
with two steps: (1) assert copyright on the software, and (2) offer
|
|
||||||
you this License which gives you legal permission to copy, distribute
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
and/or modify the software.
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
A secondary benefit of defending all users' freedom is that
|
|
||||||
improvements made in alternate versions of the program, if they
|
"Object" form shall mean any form resulting from mechanical
|
||||||
receive widespread use, become available for other developers to
|
transformation or translation of a Source form, including but
|
||||||
incorporate. Many developers of free software are heartened and
|
not limited to compiled object code, generated documentation,
|
||||||
encouraged by the resulting cooperation. However, in the case of
|
and conversions to other media types.
|
||||||
software used on network servers, this result may fail to come about.
|
|
||||||
The GNU General Public License permits making a modified version and
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
letting the public access it on a server without ever releasing its
|
Object form, made available under the License, as indicated by a
|
||||||
source code to the public.
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
The GNU Affero General Public License is designed specifically to
|
|
||||||
ensure that, in such cases, the modified source code becomes available
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
to the community. It requires the operator of a network server to
|
form, that is based on (or derived from) the Work and for which the
|
||||||
provide the source code of the modified version running there to the
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
users of that server. Therefore, public use of a modified version, on
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
a publicly accessible server, gives the public access to the source
|
of this License, Derivative Works shall not include works that remain
|
||||||
code of the modified version.
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
An older license, called the Affero General Public License and
|
|
||||||
published by Affero, was designed to accomplish similar goals. This is
|
"Contribution" shall mean any work of authorship, including
|
||||||
a different license, not a version of the Affero GPL, but Affero has
|
the original version of the Work and any modifications or additions
|
||||||
released a new version of the Affero GPL which permits relicensing under
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
this license.
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
The precise terms and conditions for copying, distribution and
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
modification follow.
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
TERMS AND CONDITIONS
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
0. Definitions.
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
works, such as semiconductor masks.
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
"The Program" refers to any copyrightable work licensed under this
|
|
||||||
License. Each licensee is addressed as "you". "Licensees" and
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
"recipients" may be individuals or organizations.
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
To "modify" a work means to copy from or adapt all or part of the work
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
in a fashion requiring copyright permission, other than the making of an
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
exact copy. The resulting work is called a "modified version" of the
|
Work and such Derivative Works in Source or Object form.
|
||||||
earlier work or a work "based on" the earlier work.
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
A "covered work" means either the unmodified Program or a work based
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
on the Program.
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
To "propagate" a work means to do anything with it that, without
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
permission, would make you directly or secondarily liable for
|
where such license applies only to those patent claims licensable
|
||||||
infringement under applicable copyright law, except executing it on a
|
by such Contributor that are necessarily infringed by their
|
||||||
computer or modifying a private copy. Propagation includes copying,
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
distribution (with or without modification), making available to the
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
public, and in some countries other activities as well.
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
To "convey" a work means any kind of propagation that enables other
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
parties to make or receive copies. Mere interaction with a user through
|
or contributory patent infringement, then any patent licenses
|
||||||
a computer network, with no transfer of a copy, is not conveying.
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
An interactive user interface displays "Appropriate Legal Notices"
|
|
||||||
to the extent that it includes a convenient and prominently visible
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
feature that (1) displays an appropriate copyright notice, and (2)
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
tells the user that there is no warranty for the work (except to the
|
modifications, and in Source or Object form, provided that You
|
||||||
extent that warranties are provided), that licensees may convey the
|
meet the following conditions:
|
||||||
work under this License, and how to view a copy of this License. If
|
|
||||||
the interface presents a list of user commands or options, such as a
|
(a) You must give any other recipients of the Work or
|
||||||
menu, a prominent item in the list meets this criterion.
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
1. Source Code.
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
The "source code" for a work means the preferred form of the work
|
|
||||||
for making modifications to it. "Object code" means any non-source
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
form of a work.
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
A "Standard Interface" means an interface that either is an official
|
excluding those notices that do not pertain to any part of
|
||||||
standard defined by a recognized standards body, or, in the case of
|
the Derivative Works; and
|
||||||
interfaces specified for a particular programming language, one that
|
|
||||||
is widely used among developers working in that language.
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
The "System Libraries" of an executable work include anything, other
|
include a readable copy of the attribution notices contained
|
||||||
than the work as a whole, that (a) is included in the normal form of
|
within such NOTICE file, excluding those notices that do not
|
||||||
packaging a Major Component, but which is not part of that Major
|
pertain to any part of the Derivative Works, in at least one
|
||||||
Component, and (b) serves only to enable use of the work with that
|
of the following places: within a NOTICE text file distributed
|
||||||
Major Component, or to implement a Standard Interface for which an
|
as part of the Derivative Works; within the Source form or
|
||||||
implementation is available to the public in source code form. A
|
documentation, if provided along with the Derivative Works; or,
|
||||||
"Major Component", in this context, means a major essential component
|
within a display generated by the Derivative Works, if and
|
||||||
(kernel, window system, and so on) of the specific operating system
|
wherever such third-party notices normally appear. The contents
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
of the NOTICE file are for informational purposes only and
|
||||||
produce the work, or an object code interpreter used to run it.
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
The "Corresponding Source" for a work in object code form means all
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
the source code needed to generate, install, and (for an executable
|
that such additional attribution notices cannot be construed
|
||||||
work) run the object code and to modify the work, including scripts to
|
as modifying the License.
|
||||||
control those activities. However, it does not include the work's
|
|
||||||
System Libraries, or general-purpose tools or generally available free
|
You may add Your own copyright statement to Your modifications and
|
||||||
programs which are used unmodified in performing those activities but
|
may provide additional or different license terms and conditions
|
||||||
which are not part of the work. For example, Corresponding Source
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
includes interface definition files associated with source files for
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
the work, and the source code for shared libraries and dynamically
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
linked subprograms that the work is specifically designed to require,
|
the conditions stated in this License.
|
||||||
such as by intimate data communication or control flow between those
|
|
||||||
subprograms and other parts of the work.
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
The Corresponding Source need not include anything that users
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
can regenerate automatically from other parts of the Corresponding
|
this License, without any additional terms or conditions.
|
||||||
Source.
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
The Corresponding Source for a work in source code form is that
|
with Licensor regarding such Contributions.
|
||||||
same work.
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
2. Basic Permissions.
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
All rights granted under this License are granted for the term of
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
copyright on the Program, and are irrevocable provided the stated
|
|
||||||
conditions are met. This License explicitly affirms your unlimited
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
permission to run the unmodified Program. The output from running a
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
covered work is covered by this License only if the output, given its
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
content, constitutes a covered work. This License acknowledges your
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
rights of fair use or other equivalent, as provided by copyright law.
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
You may make, run and propagate covered works that you do not
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
convey, without conditions so long as your license otherwise remains
|
appropriateness of using or redistributing the Work and assume any
|
||||||
in force. You may convey covered works to others for the sole purpose
|
risks associated with Your exercise of permissions under this License.
|
||||||
of having them make modifications exclusively for you, or provide you
|
|
||||||
with facilities for running those works, provided that you comply with
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
the terms of this License in conveying all material for which you do
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
not control copyright. Those thus making or running the covered works
|
unless required by applicable law (such as deliberate and grossly
|
||||||
for you must do so exclusively on your behalf, under your direction
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
and control, on terms that prohibit them from making any copies of
|
liable to You for damages, including any direct, indirect, special,
|
||||||
your copyrighted material outside their relationship with you.
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
Conveying under any other circumstances is permitted solely under
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
makes it unnecessary.
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
No covered work shall be deemed part of an effective technological
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
measure under any applicable law fulfilling obligations under article
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
or other liability obligations and/or rights consistent with this
|
||||||
similar laws prohibiting or restricting circumvention of such
|
License. However, in accepting such obligations, You may act only
|
||||||
measures.
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
When you convey a covered work, you waive any legal power to forbid
|
defend, and hold each Contributor harmless for any liability
|
||||||
circumvention of technological measures to the extent such circumvention
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
is effected by exercising rights under this License with respect to
|
of your accepting any such warranty or additional liability.
|
||||||
the covered work, and you disclaim any intention to limit operation or
|
|
||||||
modification of the work as a means of enforcing, against the work's
|
END OF TERMS AND CONDITIONS
|
||||||
users, your or third parties' legal rights to forbid circumvention of
|
|
||||||
technological measures.
|
|
||||||
|
|
||||||
4. Conveying Verbatim Copies.
|
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you
|
|
||||||
receive it, in any medium, provided that you conspicuously and
|
|
||||||
appropriately publish on each copy an appropriate copyright notice;
|
|
||||||
keep intact all notices stating that this License and any
|
|
||||||
non-permissive terms added in accord with section 7 apply to the code;
|
|
||||||
keep intact all notices of the absence of any warranty; and give all
|
|
||||||
recipients a copy of this License along with the Program.
|
|
||||||
|
|
||||||
You may charge any price or no price for each copy that you convey,
|
|
||||||
and you may offer support or warranty protection for a fee.
|
|
||||||
|
|
||||||
5. Conveying Modified Source Versions.
|
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to
|
|
||||||
produce it from the Program, in the form of source code under the
|
|
||||||
terms of section 4, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified
|
|
||||||
it, and giving a relevant date.
|
|
||||||
|
|
||||||
b) The work must carry prominent notices stating that it is
|
|
||||||
released under this License and any conditions added under section
|
|
||||||
7. This requirement modifies the requirement in section 4 to
|
|
||||||
"keep intact all notices".
|
|
||||||
|
|
||||||
c) You must license the entire work, as a whole, under this
|
|
||||||
License to anyone who comes into possession of a copy. This
|
|
||||||
License will therefore apply, along with any applicable section 7
|
|
||||||
additional terms, to the whole of the work, and all its parts,
|
|
||||||
regardless of how they are packaged. This License gives no
|
|
||||||
permission to license the work in any other way, but it does not
|
|
||||||
invalidate such permission if you have separately received it.
|
|
||||||
|
|
||||||
d) If the work has interactive user interfaces, each must display
|
|
||||||
Appropriate Legal Notices; however, if the Program has interactive
|
|
||||||
interfaces that do not display Appropriate Legal Notices, your
|
|
||||||
work need not make them do so.
|
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent
|
|
||||||
works, which are not by their nature extensions of the covered work,
|
|
||||||
and which are not combined with it such as to form a larger program,
|
|
||||||
in or on a volume of a storage or distribution medium, is called an
|
|
||||||
"aggregate" if the compilation and its resulting copyright are not
|
|
||||||
used to limit the access or legal rights of the compilation's users
|
|
||||||
beyond what the individual works permit. Inclusion of a covered work
|
|
||||||
in an aggregate does not cause this License to apply to the other
|
|
||||||
parts of the aggregate.
|
|
||||||
|
|
||||||
6. Conveying Non-Source Forms.
|
|
||||||
|
|
||||||
You may convey a covered work in object code form under the terms
|
|
||||||
of sections 4 and 5, provided that you also convey the
|
|
||||||
machine-readable Corresponding Source under the terms of this License,
|
|
||||||
in one of these ways:
|
|
||||||
|
|
||||||
a) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by the
|
|
||||||
Corresponding Source fixed on a durable physical medium
|
|
||||||
customarily used for software interchange.
|
|
||||||
|
|
||||||
b) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by a
|
|
||||||
written offer, valid for at least three years and valid for as
|
|
||||||
long as you offer spare parts or customer support for that product
|
|
||||||
model, to give anyone who possesses the object code either (1) a
|
|
||||||
copy of the Corresponding Source for all the software in the
|
|
||||||
product that is covered by this License, on a durable physical
|
|
||||||
medium customarily used for software interchange, for a price no
|
|
||||||
more than your reasonable cost of physically performing this
|
|
||||||
conveying of source, or (2) access to copy the
|
|
||||||
Corresponding Source from a network server at no charge.
|
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the
|
|
||||||
written offer to provide the Corresponding Source. This
|
|
||||||
alternative is allowed only occasionally and noncommercially, and
|
|
||||||
only if you received the object code with such an offer, in accord
|
|
||||||
with subsection 6b.
|
|
||||||
|
|
||||||
d) Convey the object code by offering access from a designated
|
|
||||||
place (gratis or for a charge), and offer equivalent access to the
|
|
||||||
Corresponding Source in the same way through the same place at no
|
|
||||||
further charge. You need not require recipients to copy the
|
|
||||||
Corresponding Source along with the object code. If the place to
|
|
||||||
copy the object code is a network server, the Corresponding Source
|
|
||||||
may be on a different server (operated by you or a third party)
|
|
||||||
that supports equivalent copying facilities, provided you maintain
|
|
||||||
clear directions next to the object code saying where to find the
|
|
||||||
Corresponding Source. Regardless of what server hosts the
|
|
||||||
Corresponding Source, you remain obligated to ensure that it is
|
|
||||||
available for as long as needed to satisfy these requirements.
|
|
||||||
|
|
||||||
e) Convey the object code using peer-to-peer transmission, provided
|
|
||||||
you inform other peers where the object code and Corresponding
|
|
||||||
Source of the work are being offered to the general public at no
|
|
||||||
charge under subsection 6d.
|
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded
|
|
||||||
from the Corresponding Source as a System Library, need not be
|
|
||||||
included in conveying the object code work.
|
|
||||||
|
|
||||||
A "User Product" is either (1) a "consumer product", which means any
|
|
||||||
tangible personal property which is normally used for personal, family,
|
|
||||||
or household purposes, or (2) anything designed or sold for incorporation
|
|
||||||
into a dwelling. In determining whether a product is a consumer product,
|
|
||||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
||||||
product received by a particular user, "normally used" refers to a
|
|
||||||
typical or common use of that class of product, regardless of the status
|
|
||||||
of the particular user or of the way in which the particular user
|
|
||||||
actually uses, or expects or is expected to use, the product. A product
|
|
||||||
is a consumer product regardless of whether the product has substantial
|
|
||||||
commercial, industrial or non-consumer uses, unless such uses represent
|
|
||||||
the only significant mode of use of the product.
|
|
||||||
|
|
||||||
"Installation Information" for a User Product means any methods,
|
|
||||||
procedures, authorization keys, or other information required to install
|
|
||||||
and execute modified versions of a covered work in that User Product from
|
|
||||||
a modified version of its Corresponding Source. The information must
|
|
||||||
suffice to ensure that the continued functioning of the modified object
|
|
||||||
code is in no case prevented or interfered with solely because
|
|
||||||
modification has been made.
|
|
||||||
|
|
||||||
If you convey an object code work under this section in, or with, or
|
|
||||||
specifically for use in, a User Product, and the conveying occurs as
|
|
||||||
part of a transaction in which the right of possession and use of the
|
|
||||||
User Product is transferred to the recipient in perpetuity or for a
|
|
||||||
fixed term (regardless of how the transaction is characterized), the
|
|
||||||
Corresponding Source conveyed under this section must be accompanied
|
|
||||||
by the Installation Information. But this requirement does not apply
|
|
||||||
if neither you nor any third party retains the ability to install
|
|
||||||
modified object code on the User Product (for example, the work has
|
|
||||||
been installed in ROM).
|
|
||||||
|
|
||||||
The requirement to provide Installation Information does not include a
|
|
||||||
requirement to continue to provide support service, warranty, or updates
|
|
||||||
for a work that has been modified or installed by the recipient, or for
|
|
||||||
the User Product in which it has been modified or installed. Access to a
|
|
||||||
network may be denied when the modification itself materially and
|
|
||||||
adversely affects the operation of the network or violates the rules and
|
|
||||||
protocols for communication across the network.
|
|
||||||
|
|
||||||
Corresponding Source conveyed, and Installation Information provided,
|
|
||||||
in accord with this section must be in a format that is publicly
|
|
||||||
documented (and with an implementation available to the public in
|
|
||||||
source code form), and must require no special password or key for
|
|
||||||
unpacking, reading or copying.
|
|
||||||
|
|
||||||
7. Additional Terms.
|
|
||||||
|
|
||||||
"Additional permissions" are terms that supplement the terms of this
|
|
||||||
License by making exceptions from one or more of its conditions.
|
|
||||||
Additional permissions that are applicable to the entire Program shall
|
|
||||||
be treated as though they were included in this License, to the extent
|
|
||||||
that they are valid under applicable law. If additional permissions
|
|
||||||
apply only to part of the Program, that part may be used separately
|
|
||||||
under those permissions, but the entire Program remains governed by
|
|
||||||
this License without regard to the additional permissions.
|
|
||||||
|
|
||||||
When you convey a copy of a covered work, you may at your option
|
|
||||||
remove any additional permissions from that copy, or from any part of
|
|
||||||
it. (Additional permissions may be written to require their own
|
|
||||||
removal in certain cases when you modify the work.) You may place
|
|
||||||
additional permissions on material, added by you to a covered work,
|
|
||||||
for which you have or can give appropriate copyright permission.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, for material you
|
|
||||||
add to a covered work, you may (if authorized by the copyright holders of
|
|
||||||
that material) supplement the terms of this License with terms:
|
|
||||||
|
|
||||||
a) Disclaiming warranty or limiting liability differently from the
|
|
||||||
terms of sections 15 and 16 of this License; or
|
|
||||||
|
|
||||||
b) Requiring preservation of specified reasonable legal notices or
|
|
||||||
author attributions in that material or in the Appropriate Legal
|
|
||||||
Notices displayed by works containing it; or
|
|
||||||
|
|
||||||
c) Prohibiting misrepresentation of the origin of that material, or
|
|
||||||
requiring that modified versions of such material be marked in
|
|
||||||
reasonable ways as different from the original version; or
|
|
||||||
|
|
||||||
d) Limiting the use for publicity purposes of names of licensors or
|
|
||||||
authors of the material; or
|
|
||||||
|
|
||||||
e) Declining to grant rights under trademark law for use of some
|
|
||||||
trade names, trademarks, or service marks; or
|
|
||||||
|
|
||||||
f) Requiring indemnification of licensors and authors of that
|
|
||||||
material by anyone who conveys the material (or modified versions of
|
|
||||||
it) with contractual assumptions of liability to the recipient, for
|
|
||||||
any liability that these contractual assumptions directly impose on
|
|
||||||
those licensors and authors.
|
|
||||||
|
|
||||||
All other non-permissive additional terms are considered "further
|
|
||||||
restrictions" within the meaning of section 10. If the Program as you
|
|
||||||
received it, or any part of it, contains a notice stating that it is
|
|
||||||
governed by this License along with a term that is a further
|
|
||||||
restriction, you may remove that term. If a license document contains
|
|
||||||
a further restriction but permits relicensing or conveying under this
|
|
||||||
License, you may add to a covered work material governed by the terms
|
|
||||||
of that license document, provided that the further restriction does
|
|
||||||
not survive such relicensing or conveying.
|
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you
|
|
||||||
must place, in the relevant source files, a statement of the
|
|
||||||
additional terms that apply to those files, or a notice indicating
|
|
||||||
where to find the applicable terms.
|
|
||||||
|
|
||||||
Additional terms, permissive or non-permissive, may be stated in the
|
|
||||||
form of a separately written license, or stated as exceptions;
|
|
||||||
the above requirements apply either way.
|
|
||||||
|
|
||||||
8. Termination.
|
|
||||||
|
|
||||||
You may not propagate or modify a covered work except as expressly
|
|
||||||
provided under this License. Any attempt otherwise to propagate or
|
|
||||||
modify it is void, and will automatically terminate your rights under
|
|
||||||
this License (including any patent licenses granted under the third
|
|
||||||
paragraph of section 11).
|
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your
|
|
||||||
license from a particular copyright holder is reinstated (a)
|
|
||||||
provisionally, unless and until the copyright holder explicitly and
|
|
||||||
finally terminates your license, and (b) permanently, if the copyright
|
|
||||||
holder fails to notify you of the violation by some reasonable means
|
|
||||||
prior to 60 days after the cessation.
|
|
||||||
|
|
||||||
Moreover, your license from a particular copyright holder is
|
|
||||||
reinstated permanently if the copyright holder notifies you of the
|
|
||||||
violation by some reasonable means, this is the first time you have
|
|
||||||
received notice of violation of this License (for any work) from that
|
|
||||||
copyright holder, and you cure the violation prior to 30 days after
|
|
||||||
your receipt of the notice.
|
|
||||||
|
|
||||||
Termination of your rights under this section does not terminate the
|
|
||||||
licenses of parties who have received copies or rights from you under
|
|
||||||
this License. If your rights have been terminated and not permanently
|
|
||||||
reinstated, you do not qualify to receive new licenses for the same
|
|
||||||
material under section 10.
|
|
||||||
|
|
||||||
9. Acceptance Not Required for Having Copies.
|
|
||||||
|
|
||||||
You are not required to accept this License in order to receive or
|
|
||||||
run a copy of the Program. Ancillary propagation of a covered work
|
|
||||||
occurring solely as a consequence of using peer-to-peer transmission
|
|
||||||
to receive a copy likewise does not require acceptance. However,
|
|
||||||
nothing other than this License grants you permission to propagate or
|
|
||||||
modify any covered work. These actions infringe copyright if you do
|
|
||||||
not accept this License. Therefore, by modifying or propagating a
|
|
||||||
covered work, you indicate your acceptance of this License to do so.
|
|
||||||
|
|
||||||
10. Automatic Licensing of Downstream Recipients.
|
|
||||||
|
|
||||||
Each time you convey a covered work, the recipient automatically
|
|
||||||
receives a license from the original licensors, to run, modify and
|
|
||||||
propagate that work, subject to this License. You are not responsible
|
|
||||||
for enforcing compliance by third parties with this License.
|
|
||||||
|
|
||||||
An "entity transaction" is a transaction transferring control of an
|
|
||||||
organization, or substantially all assets of one, or subdividing an
|
|
||||||
organization, or merging organizations. If propagation of a covered
|
|
||||||
work results from an entity transaction, each party to that
|
|
||||||
transaction who receives a copy of the work also receives whatever
|
|
||||||
licenses to the work the party's predecessor in interest had or could
|
|
||||||
give under the previous paragraph, plus a right to possession of the
|
|
||||||
Corresponding Source of the work from the predecessor in interest, if
|
|
||||||
the predecessor has it or can get it with reasonable efforts.
|
|
||||||
|
|
||||||
You may not impose any further restrictions on the exercise of the
|
|
||||||
rights granted or affirmed under this License. For example, you may
|
|
||||||
not impose a license fee, royalty, or other charge for exercise of
|
|
||||||
rights granted under this License, and you may not initiate litigation
|
|
||||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
||||||
any patent claim is infringed by making, using, selling, offering for
|
|
||||||
sale, or importing the Program or any portion of it.
|
|
||||||
|
|
||||||
11. Patents.
|
|
||||||
|
|
||||||
A "contributor" is a copyright holder who authorizes use under this
|
|
||||||
License of the Program or a work on which the Program is based. The
|
|
||||||
work thus licensed is called the contributor's "contributor version".
|
|
||||||
|
|
||||||
A contributor's "essential patent claims" are all patent claims
|
|
||||||
owned or controlled by the contributor, whether already acquired or
|
|
||||||
hereafter acquired, that would be infringed by some manner, permitted
|
|
||||||
by this License, of making, using, or selling its contributor version,
|
|
||||||
but do not include claims that would be infringed only as a
|
|
||||||
consequence of further modification of the contributor version. For
|
|
||||||
purposes of this definition, "control" includes the right to grant
|
|
||||||
patent sublicenses in a manner consistent with the requirements of
|
|
||||||
this License.
|
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
||||||
patent license under the contributor's essential patent claims, to
|
|
||||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
|
||||||
propagate the contents of its contributor version.
|
|
||||||
|
|
||||||
In the following three paragraphs, a "patent license" is any express
|
|
||||||
agreement or commitment, however denominated, not to enforce a patent
|
|
||||||
(such as an express permission to practice a patent or covenant not to
|
|
||||||
sue for patent infringement). To "grant" such a patent license to a
|
|
||||||
party means to make such an agreement or commitment not to enforce a
|
|
||||||
patent against the party.
|
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license,
|
|
||||||
and the Corresponding Source of the work is not available for anyone
|
|
||||||
to copy, free of charge and under the terms of this License, through a
|
|
||||||
publicly available network server or other readily accessible means,
|
|
||||||
then you must either (1) cause the Corresponding Source to be so
|
|
||||||
available, or (2) arrange to deprive yourself of the benefit of the
|
|
||||||
patent license for this particular work, or (3) arrange, in a manner
|
|
||||||
consistent with the requirements of this License, to extend the patent
|
|
||||||
license to downstream recipients. "Knowingly relying" means you have
|
|
||||||
actual knowledge that, but for the patent license, your conveying the
|
|
||||||
covered work in a country, or your recipient's use of the covered work
|
|
||||||
in a country, would infringe one or more identifiable patents in that
|
|
||||||
country that you have reason to believe are valid.
|
|
||||||
|
|
||||||
If, pursuant to or in connection with a single transaction or
|
|
||||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
||||||
covered work, and grant a patent license to some of the parties
|
|
||||||
receiving the covered work authorizing them to use, propagate, modify
|
|
||||||
or convey a specific copy of the covered work, then the patent license
|
|
||||||
you grant is automatically extended to all recipients of the covered
|
|
||||||
work and works based on it.
|
|
||||||
|
|
||||||
A patent license is "discriminatory" if it does not include within
|
|
||||||
the scope of its coverage, prohibits the exercise of, or is
|
|
||||||
conditioned on the non-exercise of one or more of the rights that are
|
|
||||||
specifically granted under this License. You may not convey a covered
|
|
||||||
work if you are a party to an arrangement with a third party that is
|
|
||||||
in the business of distributing software, under which you make payment
|
|
||||||
to the third party based on the extent of your activity of conveying
|
|
||||||
the work, and under which the third party grants, to any of the
|
|
||||||
parties who would receive the covered work from you, a discriminatory
|
|
||||||
patent license (a) in connection with copies of the covered work
|
|
||||||
conveyed by you (or copies made from those copies), or (b) primarily
|
|
||||||
for and in connection with specific products or compilations that
|
|
||||||
contain the covered work, unless you entered into that arrangement,
|
|
||||||
or that patent license was granted, prior to 28 March 2007.
|
|
||||||
|
|
||||||
Nothing in this License shall be construed as excluding or limiting
|
|
||||||
any implied license or other defenses to infringement that may
|
|
||||||
otherwise be available to you under applicable patent law.
|
|
||||||
|
|
||||||
12. No Surrender of Others' Freedom.
|
|
||||||
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot convey a
|
|
||||||
covered work so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you may
|
|
||||||
not convey it at all. For example, if you agree to terms that obligate you
|
|
||||||
to collect a royalty for further conveying from those to whom you convey
|
|
||||||
the Program, the only way you could satisfy both those terms and this
|
|
||||||
License would be to refrain entirely from conveying the Program.
|
|
||||||
|
|
||||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, if you modify the
|
|
||||||
Program, your modified version must prominently offer all users
|
|
||||||
interacting with it remotely through a computer network (if your version
|
|
||||||
supports such interaction) an opportunity to receive the Corresponding
|
|
||||||
Source of your version by providing access to the Corresponding Source
|
|
||||||
from a network server at no charge, through some standard or customary
|
|
||||||
means of facilitating copying of software. This Corresponding Source
|
|
||||||
shall include the Corresponding Source for any work covered by version 3
|
|
||||||
of the GNU General Public License that is incorporated pursuant to the
|
|
||||||
following paragraph.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, you have
|
|
||||||
permission to link or combine any covered work with a work licensed
|
|
||||||
under version 3 of the GNU General Public License into a single
|
|
||||||
combined work, and to convey the resulting work. The terms of this
|
|
||||||
License will continue to apply to the part which is the covered work,
|
|
||||||
but the work with which it is combined will remain governed by version
|
|
||||||
3 of the GNU General Public License.
|
|
||||||
|
|
||||||
14. Revised Versions of this License.
|
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of
|
|
||||||
the GNU Affero General Public License from time to time. Such new versions
|
|
||||||
will be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the
|
|
||||||
Program specifies that a certain numbered version of the GNU Affero General
|
|
||||||
Public License "or any later version" applies to it, you have the
|
|
||||||
option of following the terms and conditions either of that numbered
|
|
||||||
version or of any later version published by the Free Software
|
|
||||||
Foundation. If the Program does not specify a version number of the
|
|
||||||
GNU Affero General Public License, you may choose any version ever published
|
|
||||||
by the Free Software Foundation.
|
|
||||||
|
|
||||||
If the Program specifies that a proxy can decide which future
|
|
||||||
versions of the GNU Affero General Public License can be used, that proxy's
|
|
||||||
public statement of acceptance of a version permanently authorizes you
|
|
||||||
to choose that version for the Program.
|
|
||||||
|
|
||||||
Later license versions may give you additional or different
|
|
||||||
permissions. However, no additional obligations are imposed on any
|
|
||||||
author or copyright holder as a result of your choosing to follow a
|
|
||||||
later version.
|
|
||||||
|
|
||||||
15. Disclaimer of Warranty.
|
|
||||||
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
||||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
||||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
||||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
||||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
||||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
16. Limitation of Liability.
|
|
||||||
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
||||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
||||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
||||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
||||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
||||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
||||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGES.
|
|
||||||
|
|
||||||
17. Interpretation of Sections 15 and 16.
|
|
||||||
|
|
||||||
If the disclaimer of warranty and limitation of liability provided
|
|
||||||
above cannot be given local legal effect according to their terms,
|
|
||||||
reviewing courts shall apply local law that most closely approximates
|
|
||||||
an absolute waiver of all civil liability in connection with the
|
|
||||||
Program, unless a warranty or assumption of liability accompanies a
|
|
||||||
copy of the Program in return for a fee.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
state the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Affero General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU Affero General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Affero General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If your software can interact with users remotely through a computer
|
|
||||||
network, you should also make sure that it provides a way for users to
|
|
||||||
get its source. For example, if your program is a web application, its
|
|
||||||
interface could display a "Source" link that leads users to an archive
|
|
||||||
of the code. There are many ways you could offer source, and different
|
|
||||||
solutions will be better for different programs; see section 13 for the
|
|
||||||
specific requirements.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school,
|
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
||||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
|
||||||
<http://www.gnu.org/licenses/>.
|
|
||||||
|
|
5
NOTICE
5
NOTICE
|
@ -1,6 +1,5 @@
|
||||||
This product is licensed to you under the GNU Affero General Public License,
|
This product is licensed to you under the Apache License, Version 2.0 (the "License").
|
||||||
Version 3 (the "License"). You may not use this product except in compliance
|
You may not use this product except in compliance with the License.
|
||||||
with the License.
|
|
||||||
|
|
||||||
This product may include a number of subcomponents with
|
This product may include a number of subcomponents with
|
||||||
separate copyright notices and license terms. Your use of the source
|
separate copyright notices and license terms. Your use of the source
|
||||||
|
|
53
Pipfile
53
Pipfile
|
@ -1,53 +0,0 @@
|
||||||
[[source]]
|
|
||||||
url = "https://pypi.org/simple"
|
|
||||||
verify_ssl = true
|
|
||||||
name = "pypi"
|
|
||||||
|
|
||||||
[packages]
|
|
||||||
asana = "==0.6.7"
|
|
||||||
bleach = "==2.1.4"
|
|
||||||
celery = "==4.0.2"
|
|
||||||
cryptography = "==2.3.1"
|
|
||||||
diff-match-patch = "==20121119"
|
|
||||||
django-ipware = "==1.1.6"
|
|
||||||
django-jinja = "==2.3.1"
|
|
||||||
django-picklefield = "==0.3.2"
|
|
||||||
django-pglocks = "==1.0.2"
|
|
||||||
django-sampledatahelper = "==0.4.1"
|
|
||||||
django-sites = "==0.9"
|
|
||||||
django-sr = "==0.0.4"
|
|
||||||
djmail = "==1.0.1"
|
|
||||||
easy-thumbnails = "==2.4.1"
|
|
||||||
fn = "==0.4.3"
|
|
||||||
gunicorn = "==19.7.1"
|
|
||||||
kombu = "==4.0.2" # The same as celery
|
|
||||||
netaddr = "==0.7.19"
|
|
||||||
premailer = "==3.0.1"
|
|
||||||
psd-tools = "==1.4"
|
|
||||||
"psycopg2-binary" = "==2.7.5"
|
|
||||||
python-dateutil = "==2.7.5"
|
|
||||||
python-magic = "==0.4.13"
|
|
||||||
pytz = "*"
|
|
||||||
raven = "==6.1.0"
|
|
||||||
redis = "==2.10.5"
|
|
||||||
requests = "==2.20.0"
|
|
||||||
requests_oauthlib = "*"
|
|
||||||
serpy = "==0.1.1"
|
|
||||||
webcolors = "==1.7"
|
|
||||||
CairoSVG = "==2.0.3"
|
|
||||||
Django = "~=1.11.15"
|
|
||||||
Markdown = "==3.0.1"
|
|
||||||
Pillow = "==4.1.1"
|
|
||||||
Unidecode = "==0.4.20"
|
|
||||||
Pygments = "==2.2.0"
|
|
||||||
oauthlib = {extras = ["signedtoken"],version = "*"}
|
|
||||||
|
|
||||||
[dev-packages]
|
|
||||||
coverage = "*"
|
|
||||||
coveralls = "*"
|
|
||||||
pytest = "*"
|
|
||||||
pytest-django = "*"
|
|
||||||
factory-boy = "*"
|
|
||||||
|
|
||||||
[requires]
|
|
||||||
python_version = "3.6"
|
|
|
@ -1,805 +0,0 @@
|
||||||
{
|
|
||||||
"_meta": {
|
|
||||||
"hash": {
|
|
||||||
"sha256": "2505838cdc4b5390130990ae63647a4447c5f146ab37ca8bf29f627091112cf7"
|
|
||||||
},
|
|
||||||
"pipfile-spec": 6,
|
|
||||||
"requires": {
|
|
||||||
"python_version": "3.6"
|
|
||||||
},
|
|
||||||
"sources": [
|
|
||||||
{
|
|
||||||
"name": "pypi",
|
|
||||||
"url": "https://pypi.org/simple",
|
|
||||||
"verify_ssl": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"default": {
|
|
||||||
"amqp": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:073dd02fdd73041bffc913b767866015147b61f2a9bc104daef172fc1a0066eb",
|
|
||||||
"sha256:eed41946890cd43e8dee44a316b85cf6fee5a1a34bb4a562b660a358eb529e1b"
|
|
||||||
],
|
|
||||||
"version": "==2.3.2"
|
|
||||||
},
|
|
||||||
"asana": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:412398ff0f72104f5fb602653b994cdd36de89aedff2d37229b237f300f5f01b",
|
|
||||||
"sha256:d576601116764050c4cf63b417f1c24700b76cf6686f0e51e6b0b77d450e7973"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==0.6.7"
|
|
||||||
},
|
|
||||||
"asn1crypto": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:2f1adbb7546ed199e3c90ef23ec95c5cf3585bac7d11fb7eb562a3fe89c64e87",
|
|
||||||
"sha256:9d5c20441baf0cb60a4ac34cc447c6c189024b6b4c6cd7877034f4965c464e49"
|
|
||||||
],
|
|
||||||
"version": "==0.24.0"
|
|
||||||
},
|
|
||||||
"billiard": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:42d9a227401ac4fba892918bba0a0c409def5435c4b483267ebfe821afaaba0e"
|
|
||||||
],
|
|
||||||
"version": "==3.5.0.5"
|
|
||||||
},
|
|
||||||
"bleach": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:0ee95f6167129859c5dce9b1ca291ebdb5d8cd7e382ca0e237dfd0dad63f63d8",
|
|
||||||
"sha256:24754b9a7d530bf30ce7cbc805bc6cce785660b4a10ff3a43633728438c105ab"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.1.4"
|
|
||||||
},
|
|
||||||
"cairocffi": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:15386c3a9e08823d6826c4491eaccc7b7254b1dc587a3b9ce60c350c3f990337"
|
|
||||||
],
|
|
||||||
"version": "==0.9.0"
|
|
||||||
},
|
|
||||||
"cairosvg": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:d2da5aaa31ded26affd5cdffc371ec4cc48800bc2d822a9c28504360482418a1"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.0.3"
|
|
||||||
},
|
|
||||||
"celery": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:0e5b7e0d7f03aa02061abfd27aa9da05b6740281ca1f5228a54fbf7fe74d8afa",
|
|
||||||
"sha256:e3d5a6c56a73ff8f2ddd4d06dc37f4c2afe4bb4da7928b884d0725ea865ef54d"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==4.0.2"
|
|
||||||
},
|
|
||||||
"certifi": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:47f9c83ef4c0c621eaef743f133f09fa8a74a9b75f037e8624f83bd1b6626cb7",
|
|
||||||
"sha256:993f830721089fef441cdfeb4b2c8c9df86f0c63239f06bd025a76a7daddb033"
|
|
||||||
],
|
|
||||||
"version": "==2018.11.29"
|
|
||||||
},
|
|
||||||
"cffi": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:151b7eefd035c56b2b2e1eb9963c90c6302dc15fbd8c1c0a83a163ff2c7d7743",
|
|
||||||
"sha256:1553d1e99f035ace1c0544050622b7bc963374a00c467edafac50ad7bd276aef",
|
|
||||||
"sha256:1b0493c091a1898f1136e3f4f991a784437fac3673780ff9de3bcf46c80b6b50",
|
|
||||||
"sha256:2ba8a45822b7aee805ab49abfe7eec16b90587f7f26df20c71dd89e45a97076f",
|
|
||||||
"sha256:3bb6bd7266598f318063e584378b8e27c67de998a43362e8fce664c54ee52d30",
|
|
||||||
"sha256:3c85641778460581c42924384f5e68076d724ceac0f267d66c757f7535069c93",
|
|
||||||
"sha256:3eb6434197633b7748cea30bf0ba9f66727cdce45117a712b29a443943733257",
|
|
||||||
"sha256:495c5c2d43bf6cebe0178eb3e88f9c4aa48d8934aa6e3cddb865c058da76756b",
|
|
||||||
"sha256:4c91af6e967c2015729d3e69c2e51d92f9898c330d6a851bf8f121236f3defd3",
|
|
||||||
"sha256:57b2533356cb2d8fac1555815929f7f5f14d68ac77b085d2326b571310f34f6e",
|
|
||||||
"sha256:770f3782b31f50b68627e22f91cb182c48c47c02eb405fd689472aa7b7aa16dc",
|
|
||||||
"sha256:79f9b6f7c46ae1f8ded75f68cf8ad50e5729ed4d590c74840471fc2823457d04",
|
|
||||||
"sha256:7a33145e04d44ce95bcd71e522b478d282ad0eafaf34fe1ec5bbd73e662f22b6",
|
|
||||||
"sha256:857959354ae3a6fa3da6651b966d13b0a8bed6bbc87a0de7b38a549db1d2a359",
|
|
||||||
"sha256:87f37fe5130574ff76c17cab61e7d2538a16f843bb7bca8ebbc4b12de3078596",
|
|
||||||
"sha256:95d5251e4b5ca00061f9d9f3d6fe537247e145a8524ae9fd30a2f8fbce993b5b",
|
|
||||||
"sha256:9d1d3e63a4afdc29bd76ce6aa9d58c771cd1599fbba8cf5057e7860b203710dd",
|
|
||||||
"sha256:a36c5c154f9d42ec176e6e620cb0dd275744aa1d804786a71ac37dc3661a5e95",
|
|
||||||
"sha256:a6a5cb8809091ec9ac03edde9304b3ad82ad4466333432b16d78ef40e0cce0d5",
|
|
||||||
"sha256:ae5e35a2c189d397b91034642cb0eab0e346f776ec2eb44a49a459e6615d6e2e",
|
|
||||||
"sha256:b0f7d4a3df8f06cf49f9f121bead236e328074de6449866515cea4907bbc63d6",
|
|
||||||
"sha256:b75110fb114fa366b29a027d0c9be3709579602ae111ff61674d28c93606acca",
|
|
||||||
"sha256:ba5e697569f84b13640c9e193170e89c13c6244c24400fc57e88724ef610cd31",
|
|
||||||
"sha256:be2a9b390f77fd7676d80bc3cdc4f8edb940d8c198ed2d8c0be1319018c778e1",
|
|
||||||
"sha256:ca1bd81f40adc59011f58159e4aa6445fc585a32bb8ac9badf7a2c1aa23822f2",
|
|
||||||
"sha256:d5d8555d9bfc3f02385c1c37e9f998e2011f0db4f90e250e5bc0c0a85a813085",
|
|
||||||
"sha256:e55e22ac0a30023426564b1059b035973ec82186ddddbac867078435801c7801",
|
|
||||||
"sha256:e90f17980e6ab0f3c2f3730e56d1fe9bcba1891eeea58966e89d352492cc74f4",
|
|
||||||
"sha256:ecbb7b01409e9b782df5ded849c178a0aa7c906cf8c5a67368047daab282b184",
|
|
||||||
"sha256:ed01918d545a38998bfa5902c7c00e0fee90e957ce036a4000a88e3fe2264917",
|
|
||||||
"sha256:edabd457cd23a02965166026fd9bfd196f4324fe6032e866d0f3bd0301cd486f",
|
|
||||||
"sha256:fdf1c1dc5bafc32bc5d08b054f94d659422b05aba244d6be4ddc1c72d9aa70fb"
|
|
||||||
],
|
|
||||||
"version": "==1.11.5"
|
|
||||||
},
|
|
||||||
"chardet": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
|
|
||||||
"sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
|
|
||||||
],
|
|
||||||
"version": "==3.0.4"
|
|
||||||
},
|
|
||||||
"contextlib2": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:509f9419ee91cdd00ba34443217d5ca51f5a364a404e1dce9e8979cea969ca48",
|
|
||||||
"sha256:f5260a6e679d2ff42ec91ec5252f4eeffdcf21053db9113bd0a8e4d953769c00"
|
|
||||||
],
|
|
||||||
"version": "==0.5.5"
|
|
||||||
},
|
|
||||||
"cryptography": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:02602e1672b62e803e08617ec286041cc453e8d43f093a5f4162095506bc0beb",
|
|
||||||
"sha256:10b48e848e1edb93c1d3b797c83c72b4c387ab0eb4330aaa26da8049a6cbede0",
|
|
||||||
"sha256:17db09db9d7c5de130023657be42689d1a5f60502a14f6f745f6f65a6b8195c0",
|
|
||||||
"sha256:227da3a896df1106b1a69b1e319dce218fa04395e8cc78be7e31ca94c21254bc",
|
|
||||||
"sha256:2cbaa03ac677db6c821dac3f4cdfd1461a32d0615847eedbb0df54bb7802e1f7",
|
|
||||||
"sha256:31db8febfc768e4b4bd826750a70c79c99ea423f4697d1dab764eb9f9f849519",
|
|
||||||
"sha256:4a510d268e55e2e067715d728e4ca6cd26a8e9f1f3d174faf88e6f2cb6b6c395",
|
|
||||||
"sha256:6a88d9004310a198c474d8a822ee96a6dd6c01efe66facdf17cb692512ae5bc0",
|
|
||||||
"sha256:76936ec70a9b72eb8c58314c38c55a0336a2b36de0c7ee8fb874a4547cadbd39",
|
|
||||||
"sha256:7e3b4aecc4040928efa8a7cdaf074e868af32c58ffc9bb77e7bf2c1a16783286",
|
|
||||||
"sha256:8168bcb08403ef144ff1fb880d416f49e2728101d02aaadfe9645883222c0aa5",
|
|
||||||
"sha256:8229ceb79a1792823d87779959184a1bf95768e9248c93ae9f97c7a2f60376a1",
|
|
||||||
"sha256:8a19e9f2fe69f6a44a5c156968d9fc8df56d09798d0c6a34ccc373bb186cee86",
|
|
||||||
"sha256:8d10113ca826a4c29d5b85b2c4e045ffa8bad74fb525ee0eceb1d38d4c70dfd6",
|
|
||||||
"sha256:be495b8ec5a939a7605274b6e59fbc35e76f5ad814ae010eb679529671c9e119",
|
|
||||||
"sha256:dc2d3f3b1548f4d11786616cf0f4415e25b0fbecb8a1d2cd8c07568f13fdde38",
|
|
||||||
"sha256:e4aecdd9d5a3d06c337894c9a6e2961898d3f64fe54ca920a72234a3de0f9cb3",
|
|
||||||
"sha256:e79ab4485b99eacb2166f3212218dd858258f374855e1568f728462b0e6ee0d9",
|
|
||||||
"sha256:f995d3667301e1754c57b04e0bae6f0fa9d710697a9f8d6712e8cca02550910f"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.3.1"
|
|
||||||
},
|
|
||||||
"cssselect": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:066d8bc5229af09617e24b3ca4d52f1f9092d9e061931f4184cd572885c23204",
|
|
||||||
"sha256:3b5103e8789da9e936a68d993b70df732d06b8bb9a337a05ed4eb52c17ef7206"
|
|
||||||
],
|
|
||||||
"version": "==1.0.3"
|
|
||||||
},
|
|
||||||
"cssutils": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:a2fcf06467553038e98fea9cfe36af2bf14063eb147a70958cfcaa8f5786acaf",
|
|
||||||
"sha256:c74dbe19c92f5052774eadb15136263548dd013250f1ed1027988e7fef125c8d"
|
|
||||||
],
|
|
||||||
"version": "==1.0.2"
|
|
||||||
},
|
|
||||||
"diff-match-patch": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:9dba5611fbf27893347349fd51cc1911cb403682a7163373adacc565d11e2e4c"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==20121119"
|
|
||||||
},
|
|
||||||
"django": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:29268cc47816a44f27308e60f71da635f549c47d8a1d003b28de55141df75791",
|
|
||||||
"sha256:37f5876c1fbfd66085001f4c06fa0bf96ef05442c53daf8d4294b6f29e7fa6b8"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==1.11.16"
|
|
||||||
},
|
|
||||||
"django-ipware": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:93a90f9dd8caf2c633172aa8c8ba4e76e2b44f92a6942fa35e7624281e81ea03"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==1.1.6"
|
|
||||||
},
|
|
||||||
"django-jinja": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:5e826a0cce967f40e6fdc037ea23667a2d3cd072807c4c87ffcc010b3c59121f",
|
|
||||||
"sha256:ebfde44cb716e57a9cdff6c1a4935fc49c7419ea4cd0b2b89bcecc696b9c0c86"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.3.1"
|
|
||||||
},
|
|
||||||
"django-pglocks": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:9405ee54bbf157bb16b814f20ea7ad9d82d5cf26f9bf3ea8e3a71032179844cf"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==1.0.2"
|
|
||||||
},
|
|
||||||
"django-picklefield": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:5489fef164de43725242d56e65e016137d3df0d1a00672bda72d807f5b2b0d99",
|
|
||||||
"sha256:fab48a427c6310740755b242128f9300283bef159ffee42d3231a274c65d9ae2"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==0.3.2"
|
|
||||||
},
|
|
||||||
"django-sampledatahelper": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:96d0a599054979eb9669d44a1735236da42d56be0c45d4bcd34c2a3acefb259d"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==0.4.1"
|
|
||||||
},
|
|
||||||
"django-sites": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:fa1470bd72be589f3891b7cd28dd2d782d8b34539665d9334e49154566f3d916"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==0.9"
|
|
||||||
},
|
|
||||||
"django-sr": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:3586b852ae8af1b4b2796590534b0b867b523f47a5779b2ccb6ce010efc57e34"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==0.0.4"
|
|
||||||
},
|
|
||||||
"djmail": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:370f57230bf79004840ddd1cb8150a5b7676b2aa14bc5b62027106cb708a47a0"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==1.0.1"
|
|
||||||
},
|
|
||||||
"docopt": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
|
|
||||||
],
|
|
||||||
"version": "==0.6.2"
|
|
||||||
},
|
|
||||||
"easy-thumbnails": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:5cc51c6ec7de110355d0f8cd56c9ede6e2949e87c2fcb34bc864a20ecd424270",
|
|
||||||
"sha256:6e41e70a182a6d00af9f3f3a6d1cc87cb7da060a3d56982da51d266e40fc9b59"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.4.1"
|
|
||||||
},
|
|
||||||
"fn": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:f8cd80cdabf15367a2f07e7a9951fdc013d7200412743d85b88f2c896c95bada"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==0.4.3"
|
|
||||||
},
|
|
||||||
"gunicorn": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:75af03c99389535f218cc596c7de74df4763803f7b63eb09d77e92b3956b36c6",
|
|
||||||
"sha256:eee1169f0ca667be05db3351a0960765620dad53f53434262ff8901b68a1b622"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==19.7.1"
|
|
||||||
},
|
|
||||||
"html5lib": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:20b159aa3badc9d5ee8f5c647e5efd02ed2a66ab8d354930bd9ff139fc1dc0a3",
|
|
||||||
"sha256:66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736"
|
|
||||||
],
|
|
||||||
"version": "==1.0.1"
|
|
||||||
},
|
|
||||||
"idna": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:156a6814fb5ac1fc6850fb002e0852d56c0c8d2531923a51032d1b70760e186e",
|
|
||||||
"sha256:684a38a6f903c1d71d6d5fac066b58d7768af4de2b832e426ec79c30daa94a16"
|
|
||||||
],
|
|
||||||
"version": "==2.7"
|
|
||||||
},
|
|
||||||
"jinja2": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:74c935a1b8bb9a3947c50a54766a969d4846290e1e788ea44c1392163723c3bd",
|
|
||||||
"sha256:f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4"
|
|
||||||
],
|
|
||||||
"version": "==2.10"
|
|
||||||
},
|
|
||||||
"kombu": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:385bf38e6de7f3851f674671dbfe24572ce999608d293a85fb8a630654d8bd9c",
|
|
||||||
"sha256:d0fc6f2a36610a308f838db4b832dad79a681b516ac1d1a1f9d42edb58cc11a2"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==4.0.2"
|
|
||||||
},
|
|
||||||
"lxml": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:02bc220d61f46e9b9d5a53c361ef95e9f5e1d27171cd461dddb17677ae2289a5",
|
|
||||||
"sha256:22f253b542a342755f6cfc047fe4d3a296515cf9b542bc6e261af45a80b8caf6",
|
|
||||||
"sha256:2f31145c7ff665b330919bfa44aacd3a0211a76ca7e7b441039d2a0b0451e415",
|
|
||||||
"sha256:36720698c29e7a9626a0dc802ef8885f8f0239bfd1689628ecd459a061f2807f",
|
|
||||||
"sha256:438a1b0203545521f6616132bfe0f4bca86f8a401364008b30e2b26ec408ce85",
|
|
||||||
"sha256:4815892904c336bbaf73dafd54f45f69f4021c22b5bad7332176bbf4fb830568",
|
|
||||||
"sha256:5be031b0f15ad63910d8e5038b489d95a79929513b3634ad4babf77100602588",
|
|
||||||
"sha256:5c93ae37c3c588e829b037fdfbd64a6e40c901d3f93f7beed6d724c44829a3ad",
|
|
||||||
"sha256:60842230678674cdac4a1cf0f707ef12d75b9a4fc4a565add4f710b5fcf185d5",
|
|
||||||
"sha256:62939a8bb6758d1bf923aa1c13f0bcfa9bf5b2fc0f5fa917a6e25db5fe0cfa4e",
|
|
||||||
"sha256:75830c06a62fe7b8fe3bbb5f269f0b308f19f3949ac81cfd40062f47c1455faf",
|
|
||||||
"sha256:81992565b74332c7c1aff6a913a3e906771aa81c9d0c68c68113cffcae45bc53",
|
|
||||||
"sha256:8c892fb0ee52c594d9a7751c7d7356056a9682674b92cc1c4dc968ff0f30c52f",
|
|
||||||
"sha256:9d862e3cf4fc1f2837dedce9c42269c8c76d027e49820a548ac89fdcee1e361f",
|
|
||||||
"sha256:a623965c086a6e91bb703d4da62dabe59fe88888e82c4117d544e11fd74835d6",
|
|
||||||
"sha256:a7783ab7f6a508b0510490cef9f857b763d796ba7476d9703f89722928d1e113",
|
|
||||||
"sha256:aab09fbe8abfa3b9ce62aaf45aca2d28726b1b9ee44871dbe644050a2fff4940",
|
|
||||||
"sha256:abf181934ac3ef193832fb973fd7f6149b5c531903c2ec0f1220941d73eee601",
|
|
||||||
"sha256:ae07fa0c115733fce1e9da96a3ac3fa24801742ca17e917e0c79d63a01eeb843",
|
|
||||||
"sha256:b9c78242219f674ab645ec571c9a95d70f381319a23911941cd2358a8e0521cf",
|
|
||||||
"sha256:bccb267678b870d9782c3b44d0cefe3ba0e329f9af8c946d32bf3778e7a4f271",
|
|
||||||
"sha256:c4df4d27f4c93b2cef74579f00b1d3a31a929c7d8023f870c4b476f03a274db4",
|
|
||||||
"sha256:caf0e50b546bb60dfa99bb18dfa6748458a83131ecdceaf5c071d74907e7e78a",
|
|
||||||
"sha256:d3266bd3ac59ac4edcd5fa75165dee80b94a3e5c91049df5f7c057ccf097551c",
|
|
||||||
"sha256:db0d213987bcd4e6d41710fb4532b22315b0d8fb439ff901782234456556aed1",
|
|
||||||
"sha256:dbbd5cf7690a40a9f0a9325ab480d0fccf46d16b378eefc08e195d84299bfae1",
|
|
||||||
"sha256:e16e07a0ec3a75b5ee61f2b1003c35696738f937dc8148fbda9fe2147ccb6e61",
|
|
||||||
"sha256:e175a006725c7faadbe69e791877d09936c0ef2cf49d01b60a6c1efcb0e8be6f",
|
|
||||||
"sha256:edd9c13a97f6550f9da2236126bb51c092b3b1ce6187f2bd966533ad794bbb5e",
|
|
||||||
"sha256:fa39ea60d527fbdd94215b5e5552f1c6a912624521093f1384a491a8ad89ad8b"
|
|
||||||
],
|
|
||||||
"version": "==4.2.5"
|
|
||||||
},
|
|
||||||
"markdown": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:c00429bd503a47ec88d5e30a751e147dcb4c6889663cd3e2ba0afe858e009baa",
|
|
||||||
"sha256:d02e0f9b04c500cde6637c11ad7c72671f359b87b9fe924b2383649d8841db7c"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==3.0.1"
|
|
||||||
},
|
|
||||||
"markupsafe": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:048ef924c1623740e70204aa7143ec592504045ae4429b59c30054cb31e3c432",
|
|
||||||
"sha256:130f844e7f5bdd8e9f3f42e7102ef1d49b2e6fdf0d7526df3f87281a532d8c8b",
|
|
||||||
"sha256:19f637c2ac5ae9da8bfd98cef74d64b7e1bb8a63038a3505cd182c3fac5eb4d9",
|
|
||||||
"sha256:1b8a7a87ad1b92bd887568ce54b23565f3fd7018c4180136e1cf412b405a47af",
|
|
||||||
"sha256:1c25694ca680b6919de53a4bb3bdd0602beafc63ff001fea2f2fc16ec3a11834",
|
|
||||||
"sha256:1f19ef5d3908110e1e891deefb5586aae1b49a7440db952454b4e281b41620cd",
|
|
||||||
"sha256:1fa6058938190ebe8290e5cae6c351e14e7bb44505c4a7624555ce57fbbeba0d",
|
|
||||||
"sha256:31cbb1359e8c25f9f48e156e59e2eaad51cd5242c05ed18a8de6dbe85184e4b7",
|
|
||||||
"sha256:3e835d8841ae7863f64e40e19477f7eb398674da6a47f09871673742531e6f4b",
|
|
||||||
"sha256:4e97332c9ce444b0c2c38dd22ddc61c743eb208d916e4265a2a3b575bdccb1d3",
|
|
||||||
"sha256:525396ee324ee2da82919f2ee9c9e73b012f23e7640131dd1b53a90206a0f09c",
|
|
||||||
"sha256:52b07fbc32032c21ad4ab060fec137b76eb804c4b9a1c7c7dc562549306afad2",
|
|
||||||
"sha256:52ccb45e77a1085ec5461cde794e1aa037df79f473cbc69b974e73940655c8d7",
|
|
||||||
"sha256:5c3fbebd7de20ce93103cb3183b47671f2885307df4a17a0ad56a1dd51273d36",
|
|
||||||
"sha256:5e5851969aea17660e55f6a3be00037a25b96a9b44d2083651812c99d53b14d1",
|
|
||||||
"sha256:5edfa27b2d3eefa2210fb2f5d539fbed81722b49f083b2c6566455eb7422fd7e",
|
|
||||||
"sha256:7d263e5770efddf465a9e31b78362d84d015cc894ca2c131901a4445eaa61ee1",
|
|
||||||
"sha256:83381342bfc22b3c8c06f2dd93a505413888694302de25add756254beee8449c",
|
|
||||||
"sha256:857eebb2c1dc60e4219ec8e98dfa19553dae33608237e107db9c6078b1167856",
|
|
||||||
"sha256:98e439297f78fca3a6169fd330fbe88d78b3bb72f967ad9961bcac0d7fdd1550",
|
|
||||||
"sha256:bf54103892a83c64db58125b3f2a43df6d2cb2d28889f14c78519394feb41492",
|
|
||||||
"sha256:d9ac82be533394d341b41d78aca7ed0e0f4ba5a2231602e2f05aa87f25c51672",
|
|
||||||
"sha256:e982fe07ede9fada6ff6705af70514a52beb1b2c3d25d4e873e82114cf3c5401",
|
|
||||||
"sha256:edce2ea7f3dfc981c4ddc97add8a61381d9642dc3273737e756517cc03e84dd6",
|
|
||||||
"sha256:efdc45ef1afc238db84cb4963aa689c0408912a0239b0721cb172b4016eb31d6",
|
|
||||||
"sha256:f137c02498f8b935892d5c0172560d7ab54bc45039de8805075e19079c639a9c",
|
|
||||||
"sha256:f82e347a72f955b7017a39708a3667f106e6ad4d10b25f237396a7115d8ed5fd",
|
|
||||||
"sha256:fb7c206e01ad85ce57feeaaa0bf784b97fa3cad0d4a5737bc5295785f5c613a1"
|
|
||||||
],
|
|
||||||
"version": "==1.1.0"
|
|
||||||
},
|
|
||||||
"netaddr": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:38aeec7cdd035081d3a4c306394b19d677623bf76fa0913f6695127c7753aefd",
|
|
||||||
"sha256:56b3558bd71f3f6999e4c52e349f38660e54a7a8a9943335f73dfc96883e08ca"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==0.7.19"
|
|
||||||
},
|
|
||||||
"oauthlib": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:ac35665a61c1685c56336bda97d5eefa246f1202618a1d6f34fccb1bdd404162",
|
|
||||||
"sha256:d883b36b21a6ad813953803edfa563b1b579d79ca758fe950d1bc9e8b326025b"
|
|
||||||
],
|
|
||||||
"version": "==2.1.0"
|
|
||||||
},
|
|
||||||
"olefile": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:133b031eaf8fd2c9399b78b8bc5b8fcbe4c31e85295749bb17a87cba8f3c3964"
|
|
||||||
],
|
|
||||||
"version": "==0.46"
|
|
||||||
},
|
|
||||||
"pillow": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:00b6a5f28d00f720235a937ebc2f50f4292a5c7e2d6ab9a8b26153b625c4f431",
|
|
||||||
"sha256:025208f835383f425e93d574842f9c5d28918cd4cdf632c1ce2e72ab80d8fcc8",
|
|
||||||
"sha256:059a9b4e064b70e1396a3ae64781a91512f773cae548c24b12014616f723f22d",
|
|
||||||
"sha256:17f7702f22729ffeb69f5226abf3261ef2d2eb73ab5854c1294daa3bdb5bdfb7",
|
|
||||||
"sha256:20a3549d7a83e969eb900c726d54b34673efc1d0e3c9856b8227350f7e21d968",
|
|
||||||
"sha256:24258e1875c8a9de1b176bf1873436397669440d1561b06b00eb270bffefcb42",
|
|
||||||
"sha256:318b4404c8ca34cc1514d60de81ac4a0b0d11031a70341c2b7cd4fc01c914d89",
|
|
||||||
"sha256:33a71986741227c8c085ee5929171cd4c9376b2eee189cdc7acc7d81e1a3ca84",
|
|
||||||
"sha256:3499deb97561d6cc75de725fcf744491dd2d10d6213a29c4d62e3980e1522715",
|
|
||||||
"sha256:3ad24690882b68599b9e6b25309000881eebcc731ca499f8dcc549fab006e4a3",
|
|
||||||
"sha256:3c05df947656d8538dfb39fb8ddb9fe3594c9345911aa19f07e2ed0a8d148a6d",
|
|
||||||
"sha256:48cdae5e5291d355fc215ede2ea93738e243c2467b11e41fa5010a76fd278fc5",
|
|
||||||
"sha256:4b382c0ee6ac822673e1a57c2e9878d2ac4cd52038be097bac8535a2ee60ec0e",
|
|
||||||
"sha256:6458293cf299f02f17f58a1ee4b91f77b8ce7a38bc0e757838767f1389479953",
|
|
||||||
"sha256:8ef6627adfe9314b4132d4f5207563ba147e3977019ab1ca3f0b11b04c83c84f",
|
|
||||||
"sha256:9c508bf0b2aadad4349f69aebe080977dbf0cd055cefc15793c4165851a96933",
|
|
||||||
"sha256:9d7c0706cd86fc17643d78674cdac7f05590a2da1d71c42c2ebfb27df3889f17",
|
|
||||||
"sha256:a2a873b54881c4cf4d8b37f3c426c2b8f797b341e3893650763a62252bda3922",
|
|
||||||
"sha256:b79fc81352a3c907a1223499d790a4a7b77be342b794e19628046c4c95676356",
|
|
||||||
"sha256:c040a047209edaf860ce6dd5b55de718e047144b26b0ee4198dd19907c128eac",
|
|
||||||
"sha256:d71992826cfed66f5ad68364b2c6c3c1ab305294a642deae96ad77004981fb0f",
|
|
||||||
"sha256:e467d0977997b43ca80b7af42de3d1cfa779988f6507965e6d4fb1a004e963a0",
|
|
||||||
"sha256:ecf810b5019ce62846a9203bab82eb02bb9ed60e258b2fd89e2ca19a7010da46",
|
|
||||||
"sha256:f4fb801bfd2bcbfc4a7f2819c95ea6a1cfef197420ae9849b01b08b9970a51b3",
|
|
||||||
"sha256:f63404731fa5fa0c21d00af119b867e30208e3fc148c9b13fb6a541a8df203b2",
|
|
||||||
"sha256:f8e8f3f20e32f73f81ec408061f7a81ada07d7b3fac0787bdd233b93e4ff7d9c",
|
|
||||||
"sha256:fb3eaba16b6cf01f12860edccac40f98362bc17225575f3bcabb333d0b4ed6dc"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==4.1.1"
|
|
||||||
},
|
|
||||||
"premailer": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:25c97c4c1838a8045ed1da1a14bd82ce458687878aa162378a78aa82a6aec6af",
|
|
||||||
"sha256:4e71cc09ad1438f827d1070ffac54ceb3a6a07c995fa82cb34c1ef163adeb432"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==3.0.1"
|
|
||||||
},
|
|
||||||
"psd-tools": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:1a8dd69783c84217f3a25938916c289e5653543c5610e9013769520e8bd65b3c",
|
|
||||||
"sha256:7f3fd8577fb627405a204a65d4ccea48299f95338a71fbd9709bdb9d7789cc4e",
|
|
||||||
"sha256:f519a08049c19b3ef37ccc2b39af11ac5ded59d2674fc4c28103e4db57a9aa99"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==1.4"
|
|
||||||
},
|
|
||||||
"psycopg2-binary": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:04afb59bbbd2eab3148e6816beddc74348078b8c02a1113ea7f7822f5be4afe3",
|
|
||||||
"sha256:098b18f4d8857a8f9b206d1dc54db56c2255d5d26458917e7bcad61ebfe4338f",
|
|
||||||
"sha256:0bf855d4a7083e20ead961fda4923887094eaeace0ab2d76eb4aa300f4bbf5bd",
|
|
||||||
"sha256:197dda3ffd02057820be83fe4d84529ea70bf39a9a4daee1d20ffc74eb3d042e",
|
|
||||||
"sha256:278ef63afb4b3d842b4609f2c05ffbfb76795cf6a184deeb8707cd5ed3c981a5",
|
|
||||||
"sha256:3cbf8c4fc8f22f0817220891cf405831559f4d4c12c4f73913730a2ea6c47a47",
|
|
||||||
"sha256:4305aed922c4d9d6163ab3a41d80b5a1cfab54917467da8168552c42cad84d32",
|
|
||||||
"sha256:47ee296f704fb8b2a616dec691cdcfd5fa0f11943955e88faa98cbd1dc3b3e3d",
|
|
||||||
"sha256:4a0e38cb30457e70580903367161173d4a7d1381eb2f2cfe4e69b7806623f484",
|
|
||||||
"sha256:4d6c294c6638a71cafb82a37f182f24321f1163b08b5d5ca076e11fe838a3086",
|
|
||||||
"sha256:4f3233c366500730f839f92833194fd8f9a5c4529c8cd8040aa162c3740de8e5",
|
|
||||||
"sha256:5221f5a3f4ca2ddf0d58e8b8a32ca50948be9a43351fda797eb4e72d7a7aa34d",
|
|
||||||
"sha256:5c6ca0b507540a11eaf9e77dee4f07c131c2ec80ca0cffa146671bf690bc1c02",
|
|
||||||
"sha256:789bd89d71d704db2b3d5e67d6d518b158985d791d3b2dec5ab85457cfc9677b",
|
|
||||||
"sha256:7b94d29239efeaa6a967f3b5971bd0518d2a24edd1511edbf4a2c8b815220d07",
|
|
||||||
"sha256:89bc65ef3301c74cf32db25334421ea6adbe8f65601ea45dcaaf095abed910bb",
|
|
||||||
"sha256:89d6d3a549f405c20c9ae4dc94d7ed2de2fa77427a470674490a622070732e62",
|
|
||||||
"sha256:97521704ac7127d7d8ba22877da3c7bf4a40366587d238ec679ff38e33177498",
|
|
||||||
"sha256:a395b62d5f44ff6f633231abe568e2203b8fabf9797cd6386aa92497df912d9a",
|
|
||||||
"sha256:a6d32c37f714c3f34158f3fa659f3a8f2658d5f53c4297d45579b9677cc4d852",
|
|
||||||
"sha256:a89ee5c26f72f2d0d74b991ce49e42ddeb4ac0dc2d8c06a0f2770a1ab48f4fe0",
|
|
||||||
"sha256:b4c8b0ef3608e59317bfc501df84a61e48b5445d45f24d0391a24802de5f2d84",
|
|
||||||
"sha256:b5fcf07140219a1f71e18486b8dc28e2e1b76a441c19374805c617aa6d9a9d55",
|
|
||||||
"sha256:b86f527f00956ecebad6ab3bb30e3a75fedf1160a8716978dd8ce7adddedd86f",
|
|
||||||
"sha256:be4c4aa22ba22f70de36c98b06480e2f1697972d49eb20d525f400d204a6d272",
|
|
||||||
"sha256:c2ac7aa1a144d4e0e613ac7286dae85671e99fe7a1353954d4905629c36b811c",
|
|
||||||
"sha256:de26ef4787b5e778e8223913a3e50368b44e7480f83c76df1f51d23bd21cea16",
|
|
||||||
"sha256:e70ebcfc5372dc7b699c0110454fc4263967f30c55454397e5769eb72c0eb0ce",
|
|
||||||
"sha256:eadbd32b6bc48b67b0457fccc94c86f7ccc8178ab839f684eb285bb592dc143e",
|
|
||||||
"sha256:ecbc6dfff6db06b8b72ae8a2f25ff20fbdcb83cb543811a08f7cb555042aa729"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.7.5"
|
|
||||||
},
|
|
||||||
"pycparser": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3"
|
|
||||||
],
|
|
||||||
"version": "==2.19"
|
|
||||||
},
|
|
||||||
"pygments": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:78f3f434bcc5d6ee09020f92ba487f95ba50f1e3ef83ae96b9d5ffa1bab25c5d",
|
|
||||||
"sha256:dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.2.0"
|
|
||||||
},
|
|
||||||
"pyjwt": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:00414bfef802aaecd8cc0d5258b6cb87bd8f553c2986c2c5f29b19dd5633aeb7",
|
|
||||||
"sha256:ddec8409c57e9d371c6006e388f91daf3b0b43bdf9fcbf99451fb7cf5ce0a86d"
|
|
||||||
],
|
|
||||||
"version": "==1.7.0"
|
|
||||||
},
|
|
||||||
"python-dateutil": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:063df5763652e21de43de7d9e00ccf239f953a832941e37be541614732cdfc93",
|
|
||||||
"sha256:88f9287c0174266bb0d8cedd395cfba9c58e87e5ad86b2ce58859bc11be3cf02"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.7.5"
|
|
||||||
},
|
|
||||||
"python-magic": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:604eace6f665809bebbb07070508dfa8cabb2d7cb05be9a56706c60f864f1289",
|
|
||||||
"sha256:a1ec69e76cc513b1af164c02982607f96ff3bb668162a688f2b1bb5f6a5fe05d"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==0.4.13"
|
|
||||||
},
|
|
||||||
"pytz": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:31cb35c89bd7d333cd32c5f278fca91b523b0834369e757f4c5641ea252236ca",
|
|
||||||
"sha256:8e0f8568c118d3077b46be7d654cc8167fa916092e28320cde048e54bfc9f1e6"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2018.7"
|
|
||||||
},
|
|
||||||
"raven": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:02cabffb173b99d860a95d4908e8b1864aad1b8452146e13fd7e212aa576a884",
|
|
||||||
"sha256:56dc9062dd42bca97350e5048ff417c914376366caa3b1b5f788b27ddc0a34b7"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==6.1.0"
|
|
||||||
},
|
|
||||||
"redis": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:5dfbae6acfc54edf0a7a415b99e0b21c0a3c27a7f787b292eea727b1facc5533",
|
|
||||||
"sha256:97156b37d7cda4e7d8658be1148c983984e1a975090ba458cc7e244025191dbd"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.10.5"
|
|
||||||
},
|
|
||||||
"requests": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:99dcfdaaeb17caf6e526f32b6a7b780461512ab3f1d992187801694cba42770c",
|
|
||||||
"sha256:a84b8c9ab6239b578f22d1c21d51b696dcfe004032bb80ea832398d6909d7279"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.20.0"
|
|
||||||
},
|
|
||||||
"requests-oauthlib": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:50a8ae2ce8273e384895972b56193c7409601a66d4975774c60c2aed869639ca",
|
|
||||||
"sha256:883ac416757eada6d3d07054ec7092ac21c7f35cb1d2cf82faf205637081f468"
|
|
||||||
],
|
|
||||||
"version": "==0.8.0"
|
|
||||||
},
|
|
||||||
"sampledata": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:b06916ef010d3c1a9db8aa314a144f24ad421f28597ff8c568603c451391a2cf"
|
|
||||||
],
|
|
||||||
"version": "==0.3.7"
|
|
||||||
},
|
|
||||||
"serpy": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:b1481f8cb93d767b23903d1df6cc0a7120cb0694095b6695eb78d9d453b23c65",
|
|
||||||
"sha256:b774bfdf0c3b245660639e9fc5f311a8bbceb2725aaba72fce1fec00b453286e"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==0.1.1"
|
|
||||||
},
|
|
||||||
"six": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9",
|
|
||||||
"sha256:832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb"
|
|
||||||
],
|
|
||||||
"version": "==1.11.0"
|
|
||||||
},
|
|
||||||
"tinycss": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:12306fb50e5e9e7eaeef84b802ed877488ba80e35c672867f548c0924a76716e"
|
|
||||||
],
|
|
||||||
"version": "==0.4"
|
|
||||||
},
|
|
||||||
"unidecode": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:ed4418b4b1b190487753f1cca6299e8076079258647284414e6d607d1f8a00e0",
|
|
||||||
"sha256:eedac7bfd886f43484787206f6a141b232e2b2a58652c54d06499b187fd84660"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==0.4.20"
|
|
||||||
},
|
|
||||||
"urllib3": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:61bf29cada3fc2fbefad4fdf059ea4bd1b4a86d2b6d15e1c7c0b582b9752fe39",
|
|
||||||
"sha256:de9529817c93f27c8ccbfead6985011db27bd0ddfcdb2d86f3f663385c6a9c22"
|
|
||||||
],
|
|
||||||
"version": "==1.24.1"
|
|
||||||
},
|
|
||||||
"vine": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:52116d59bc45392af9fdd3b75ed98ae48a93e822cee21e5fda249105c59a7a72",
|
|
||||||
"sha256:6849544be74ec3638e84d90bc1cf2e1e9224cc10d96cd4383ec3f69e9bce077b"
|
|
||||||
],
|
|
||||||
"version": "==1.1.4"
|
|
||||||
},
|
|
||||||
"webcolors": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:e47e68644d41c0b1f1e4d939cfe4039bdf1ab31234df63c7a4f59d4766487206"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==1.7"
|
|
||||||
},
|
|
||||||
"webencodings": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78",
|
|
||||||
"sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"
|
|
||||||
],
|
|
||||||
"version": "==0.5.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"develop": {
|
|
||||||
"atomicwrites": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:0312ad34fcad8fac3704d441f7b317e50af620823353ec657a53e981f92920c0",
|
|
||||||
"sha256:ec9ae8adaae229e4f8446952d204a3e4b5fdd2d099f9be3aaf556120135fb3ee"
|
|
||||||
],
|
|
||||||
"version": "==1.2.1"
|
|
||||||
},
|
|
||||||
"attrs": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69",
|
|
||||||
"sha256:ca4be454458f9dec299268d472aaa5a11f67a4ff70093396e1ceae9c76cf4bbb"
|
|
||||||
],
|
|
||||||
"version": "==18.2.0"
|
|
||||||
},
|
|
||||||
"certifi": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:47f9c83ef4c0c621eaef743f133f09fa8a74a9b75f037e8624f83bd1b6626cb7",
|
|
||||||
"sha256:993f830721089fef441cdfeb4b2c8c9df86f0c63239f06bd025a76a7daddb033"
|
|
||||||
],
|
|
||||||
"version": "==2018.11.29"
|
|
||||||
},
|
|
||||||
"chardet": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
|
|
||||||
"sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
|
|
||||||
],
|
|
||||||
"version": "==3.0.4"
|
|
||||||
},
|
|
||||||
"coverage": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:09e47c529ff77bf042ecfe858fb55c3e3eb97aac2c87f0349ab5a7efd6b3939f",
|
|
||||||
"sha256:0a1f9b0eb3aa15c990c328535655847b3420231af299386cfe5efc98f9c250fe",
|
|
||||||
"sha256:0cc941b37b8c2ececfed341444a456912e740ecf515d560de58b9a76562d966d",
|
|
||||||
"sha256:10e8af18d1315de936d67775d3a814cc81d0747a1a0312d84e27ae5610e313b0",
|
|
||||||
"sha256:1b4276550b86caa60606bd3572b52769860a81a70754a54acc8ba789ce74d607",
|
|
||||||
"sha256:1e8a2627c48266c7b813975335cfdea58c706fe36f607c97d9392e61502dc79d",
|
|
||||||
"sha256:2b224052bfd801beb7478b03e8a66f3f25ea56ea488922e98903914ac9ac930b",
|
|
||||||
"sha256:447c450a093766744ab53bf1e7063ec82866f27bcb4f4c907da25ad293bba7e3",
|
|
||||||
"sha256:46101fc20c6f6568561cdd15a54018bb42980954b79aa46da8ae6f008066a30e",
|
|
||||||
"sha256:4710dc676bb4b779c4361b54eb308bc84d64a2fa3d78e5f7228921eccce5d815",
|
|
||||||
"sha256:510986f9a280cd05189b42eee2b69fecdf5bf9651d4cd315ea21d24a964a3c36",
|
|
||||||
"sha256:5535dda5739257effef56e49a1c51c71f1d37a6e5607bb25a5eee507c59580d1",
|
|
||||||
"sha256:5a7524042014642b39b1fcae85fb37556c200e64ec90824ae9ecf7b667ccfc14",
|
|
||||||
"sha256:5f55028169ef85e1fa8e4b8b1b91c0b3b0fa3297c4fb22990d46ff01d22c2d6c",
|
|
||||||
"sha256:6694d5573e7790a0e8d3d177d7a416ca5f5c150742ee703f3c18df76260de794",
|
|
||||||
"sha256:6831e1ac20ac52634da606b658b0b2712d26984999c9d93f0c6e59fe62ca741b",
|
|
||||||
"sha256:77f0d9fa5e10d03aa4528436e33423bfa3718b86c646615f04616294c935f840",
|
|
||||||
"sha256:828ad813c7cdc2e71dcf141912c685bfe4b548c0e6d9540db6418b807c345ddd",
|
|
||||||
"sha256:85a06c61598b14b015d4df233d249cd5abfa61084ef5b9f64a48e997fd829a82",
|
|
||||||
"sha256:8cb4febad0f0b26c6f62e1628f2053954ad2c555d67660f28dfb1b0496711952",
|
|
||||||
"sha256:a5c58664b23b248b16b96253880b2868fb34358911400a7ba39d7f6399935389",
|
|
||||||
"sha256:aaa0f296e503cda4bc07566f592cd7a28779d433f3a23c48082af425d6d5a78f",
|
|
||||||
"sha256:ab235d9fe64833f12d1334d29b558aacedfbca2356dfb9691f2d0d38a8a7bfb4",
|
|
||||||
"sha256:b3b0c8f660fae65eac74fbf003f3103769b90012ae7a460863010539bb7a80da",
|
|
||||||
"sha256:bab8e6d510d2ea0f1d14f12642e3f35cefa47a9b2e4c7cea1852b52bc9c49647",
|
|
||||||
"sha256:c45297bbdbc8bb79b02cf41417d63352b70bcb76f1bbb1ee7d47b3e89e42f95d",
|
|
||||||
"sha256:d19bca47c8a01b92640c614a9147b081a1974f69168ecd494687c827109e8f42",
|
|
||||||
"sha256:d64b4340a0c488a9e79b66ec9f9d77d02b99b772c8b8afd46c1294c1d39ca478",
|
|
||||||
"sha256:da969da069a82bbb5300b59161d8d7c8d423bc4ccd3b410a9b4d8932aeefc14b",
|
|
||||||
"sha256:ed02c7539705696ecb7dc9d476d861f3904a8d2b7e894bd418994920935d36bb",
|
|
||||||
"sha256:ee5b8abc35b549012e03a7b1e86c09491457dba6c94112a2482b18589cc2bdb9"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==4.5.2"
|
|
||||||
},
|
|
||||||
"coveralls": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:ab638e88d38916a6cedbf80a9cd8992d5fa55c77ab755e262e00b36792b7cd6d",
|
|
||||||
"sha256:b2388747e2529fa4c669fb1e3e2756e4e07b6ee56c7d9fce05f35ccccc913aa0"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==1.5.1"
|
|
||||||
},
|
|
||||||
"docopt": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
|
|
||||||
],
|
|
||||||
"version": "==0.6.2"
|
|
||||||
},
|
|
||||||
"factory-boy": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:6f25cc4761ac109efd503f096e2ad99421b1159f01a29dbb917359dcd68e08ca",
|
|
||||||
"sha256:d552cb872b310ae78bd7429bf318e42e1e903b1a109e899a523293dfa762ea4f"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.11.1"
|
|
||||||
},
|
|
||||||
"faker": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:c61a41d0dab8865b850bd00454fb11e90f3fd2a092d8bc90120d1e1c01cff906",
|
|
||||||
"sha256:f909ff9133ce0625ca388b6838190630ad7a593f87eaf058d872338a76241d5d"
|
|
||||||
],
|
|
||||||
"version": "==1.0.0"
|
|
||||||
},
|
|
||||||
"idna": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:156a6814fb5ac1fc6850fb002e0852d56c0c8d2531923a51032d1b70760e186e",
|
|
||||||
"sha256:684a38a6f903c1d71d6d5fac066b58d7768af4de2b832e426ec79c30daa94a16"
|
|
||||||
],
|
|
||||||
"version": "==2.7"
|
|
||||||
},
|
|
||||||
"more-itertools": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:c187a73da93e7a8acc0001572aebc7e3c69daf7bf6881a2cea10650bd4420092",
|
|
||||||
"sha256:c476b5d3a34e12d40130bc2f935028b5f636df8f372dc2c1c01dc19681b2039e",
|
|
||||||
"sha256:fcbfeaea0be121980e15bc97b3817b5202ca73d0eae185b4550cbfce2a3ebb3d"
|
|
||||||
],
|
|
||||||
"version": "==4.3.0"
|
|
||||||
},
|
|
||||||
"pluggy": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:447ba94990e8014ee25ec853339faf7b0fc8050cdc3289d4d71f7f410fb90095",
|
|
||||||
"sha256:bde19360a8ec4dfd8a20dcb811780a30998101f078fc7ded6162f0076f50508f"
|
|
||||||
],
|
|
||||||
"version": "==0.8.0"
|
|
||||||
},
|
|
||||||
"py": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:bf92637198836372b520efcba9e020c330123be8ce527e535d185ed4b6f45694",
|
|
||||||
"sha256:e76826342cefe3c3d5f7e8ee4316b80d1dd8a300781612ddbc765c17ba25a6c6"
|
|
||||||
],
|
|
||||||
"version": "==1.7.0"
|
|
||||||
},
|
|
||||||
"pytest": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:3f193df1cfe1d1609d4c583838bea3d532b18d6160fd3f55c9447fdca30848ec",
|
|
||||||
"sha256:e246cf173c01169b9617fc07264b7b1316e78d7a650055235d6d897bc80d9660"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==3.10.1"
|
|
||||||
},
|
|
||||||
"pytest-django": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:49e9ffc856bc6a1bec1c26c5c7b7213dff7cc8bc6b64d624c4d143d04aff0bcf",
|
|
||||||
"sha256:b379282feaf89069cb790775ab6bbbd2bd2038a68c7ef9b84a41898e0b551081"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==3.4.3"
|
|
||||||
},
|
|
||||||
"python-dateutil": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:063df5763652e21de43de7d9e00ccf239f953a832941e37be541614732cdfc93",
|
|
||||||
"sha256:88f9287c0174266bb0d8cedd395cfba9c58e87e5ad86b2ce58859bc11be3cf02"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.7.5"
|
|
||||||
},
|
|
||||||
"requests": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:99dcfdaaeb17caf6e526f32b6a7b780461512ab3f1d992187801694cba42770c",
|
|
||||||
"sha256:a84b8c9ab6239b578f22d1c21d51b696dcfe004032bb80ea832398d6909d7279"
|
|
||||||
],
|
|
||||||
"index": "pypi",
|
|
||||||
"version": "==2.20.0"
|
|
||||||
},
|
|
||||||
"six": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9",
|
|
||||||
"sha256:832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb"
|
|
||||||
],
|
|
||||||
"version": "==1.11.0"
|
|
||||||
},
|
|
||||||
"text-unidecode": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:5a1375bb2ba7968740508ae38d92e1f889a0832913cb1c447d5e2046061a396d",
|
|
||||||
"sha256:801e38bd550b943563660a91de8d4b6fa5df60a542be9093f7abf819f86050cc"
|
|
||||||
],
|
|
||||||
"version": "==1.2"
|
|
||||||
},
|
|
||||||
"urllib3": {
|
|
||||||
"hashes": [
|
|
||||||
"sha256:61bf29cada3fc2fbefad4fdf059ea4bd1b4a86d2b6d15e1c7c0b582b9752fe39",
|
|
||||||
"sha256:de9529817c93f27c8ccbfead6985011db27bd0ddfcdb2d86f3f663385c6a9c22"
|
|
||||||
],
|
|
||||||
"version": "==1.24.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
104
README.md
104
README.md
|
@ -1,104 +0,0 @@
|
||||||
# Taiga Backend #
|
|
||||||
|
|
||||||
[](https://github.com/kaleidos "Kaleidos Project")
|
|
||||||
[](https://tree.taiga.io/project/taiga/ "Managed with Taiga.io")
|
|
||||||
[](https://travis-ci.org/taigaio/taiga-back "Build Status")
|
|
||||||
[](https://coveralls.io/r/taigaio/taiga-back?branch=master "Coverage Status")
|
|
||||||
|
|
||||||
|
|
||||||
## Contribute to Taiga ##
|
|
||||||
|
|
||||||
#### Where to start ####
|
|
||||||
|
|
||||||
There are many different ways to contribute to Taiga's development, just find the one that best fits with your skills. Examples of contributions we would love to receive include:
|
|
||||||
|
|
||||||
- **Code patches**
|
|
||||||
- **Documentation improvements**
|
|
||||||
- **Translations**
|
|
||||||
- **Bug reports**
|
|
||||||
- **Patch reviews**
|
|
||||||
- **UI enhancements**
|
|
||||||
|
|
||||||
Big features are also welcome but if you want to see your contributions included in Taiga codebase we strongly recommend you start by initiating a chat though our [mailing list](http://groups.google.co.uk/d/forum/taigaio)
|
|
||||||
|
|
||||||
|
|
||||||
#### Code of Conduct ####
|
|
||||||
|
|
||||||
Help us keep the Taiga Community open and inclusive. Please read and follow our [Code of Conduct](https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md).
|
|
||||||
|
|
||||||
|
|
||||||
#### License ####
|
|
||||||
|
|
||||||
Every code patch accepted in taiga codebase is licensed under [AGPL v3.0](http://www.gnu.org/licenses/agpl-3.0.html). You must be careful to not include any code that can not be licensed under this license.
|
|
||||||
|
|
||||||
Please read carefully [our license](https://github.com/taigaio/taiga-back/blob/master/LICENSE) and ask us if you have any questions as well as the [Contribution policy](https://github.com/taigaio/taiga-back/blob/master/CONTRIBUTING.md).
|
|
||||||
|
|
||||||
|
|
||||||
#### Bug reports, enhancements and support ####
|
|
||||||
|
|
||||||
If you **need help to setup Taiga**, want to **talk about some cool enhancemnt** or you have **some questions**, please write us to our [mailing list](http://groups.google.com/d/forum/taigaio).
|
|
||||||
|
|
||||||
If you **find a bug** in Taiga you can always report it:
|
|
||||||
|
|
||||||
- in our [mailing list](http://groups.google.com/d/forum/taigaio).
|
|
||||||
- in [github issues](https://github.com/taigaio/taiga-back/issues).
|
|
||||||
- send us a mail to support@taiga.io if is a bug related to [tree.taiga.io](https://tree.taiga.io).
|
|
||||||
- send a mail to security@taiga.io if is a **security bug**.
|
|
||||||
|
|
||||||
One of our fellow Taiga developers will search, find and hunt it as soon as possible.
|
|
||||||
|
|
||||||
Please, before reporting a bug write down how can we reproduce it, your operating system, your browser and version, and if it's possible, a screenshot. Sometimes it takes less time to fix a bug if the developer knows how to find it and we will solve your problem as fast as possible.
|
|
||||||
|
|
||||||
|
|
||||||
#### Documentation improvements ####
|
|
||||||
|
|
||||||
We are gathering lots of information from our users to build and enhance our documentation. If you use the documentation to install or develop with Taiga and find any mistakes, omissions or confused sequences, it is enormously helpful to report it. Or better still, if you believe you can author additions, please make a pull-request to taiga project.
|
|
||||||
|
|
||||||
Currently, we have authored three main documentation hubs:
|
|
||||||
|
|
||||||
- **[API Docs](https://github.com/taigaio/taiga-doc)**: Our API documentation and reference for developing from Taiga API.
|
|
||||||
- **[Installation Guide](https://github.com/taigaio/taiga-doc)**: If you need to install Taiga on your own server, this is the place to find some guides.
|
|
||||||
- **[Taiga Support](https://github.com/taigaio/taiga-doc)**: This page is intended to be the support reference page for the users. If you find any mistake, please report it.
|
|
||||||
|
|
||||||
|
|
||||||
#### Translation ####
|
|
||||||
|
|
||||||
We are ready now to accept your help translating Taiga. It's easy (and fun!) just access our team of translators with the link below, set up an account in Transifex and start contributing. Join us to make sure your language is covered! **[Help Taiga to translate content](https://www.transifex.com/taiga-agile-llc/taiga-back/ "Help Taiga to trasnlatecontent")**
|
|
||||||
|
|
||||||
|
|
||||||
#### Code patches ####
|
|
||||||
|
|
||||||
Taiga will always be glad to receive code patches to update, fix or improve its code.
|
|
||||||
|
|
||||||
If you know how to improve our code base or you found a bug, a security vulnerability or a performance issue and you think you can solve it, we will be very happy to accept your pull-request. If your code requires considerable changes, we recommend you first talk to us directly. We will find the best way to help.
|
|
||||||
|
|
||||||
|
|
||||||
#### UI enhancements ####
|
|
||||||
|
|
||||||
Taiga is made for developers and designers. We care enormously about UI because usability and design are both critical aspects of the Taiga experience.
|
|
||||||
|
|
||||||
There are two possible ways to contribute to our UI:
|
|
||||||
- **Bugs**: If you find a bug regarding front-end, please report it as previously indicated in the Bug reports section or send a pull-request as indicated in the Code Patches section.
|
|
||||||
- **Enhancements**: If its a design or UX bug or enhancement we will love to receive your feedback. Please send us your enhancement, with the reason and, if possible, an example. Our design and UX team will review your enhancement and fix it as soon as possible. We recommend you to use our [mailing list](http://groups.google.co.uk/d/forum/taigaio) so we can have a lot of different opinions and debate.
|
|
||||||
- **Language Localization**: We are eager to offer localized versions of Taiga. Some members of the community have already volunteered to work to provide a variety of languages. We are working to implement some changes to allow for this and expect to accept these requests in the near future.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Setup development environment ##
|
|
||||||
|
|
||||||
Just execute these commands in your virtualenv(wrapper):
|
|
||||||
|
|
||||||
```
|
|
||||||
pip install -r requirements.txt
|
|
||||||
python manage.py migrate --noinput
|
|
||||||
python manage.py loaddata initial_user
|
|
||||||
python manage.py loaddata initial_project_templates
|
|
||||||
python manage.py sample_data
|
|
||||||
```
|
|
||||||
|
|
||||||
**IMPORTANT: Taiga only runs with python 3.5+**
|
|
||||||
|
|
||||||
Initial auth data: admin/123123
|
|
||||||
|
|
||||||
If you want a complete environment for production usage, you can try the taiga bootstrapping
|
|
||||||
scripts https://github.com/taigaio/taiga-scripts (warning: alpha state). All the information about the different installation methods (production, development, vagrant, docker...) can be found here http://taigaio.github.io/taiga-doc/dist/#_installation_guide.
|
|
|
@ -0,0 +1,63 @@
|
||||||
|
Greenmine Backend
|
||||||
|
=================
|
||||||
|
|
||||||
|
.. image:: http://kaleidos.net/static/img/badge.png
|
||||||
|
:target: http://kaleidos.net/community/greenmine/
|
||||||
|
|
||||||
|
.. image:: https://travis-ci.org/kaleidos/greenmine-back.png?branch=master
|
||||||
|
:target: https://travis-ci.org/kaleidos/greenmine-back
|
||||||
|
|
||||||
|
.. image:: https://coveralls.io/repos/kaleidos/greenmine-back/badge.png?branch=master
|
||||||
|
:target: https://coveralls.io/r/kaleidos/greenmine-back?branch=master
|
||||||
|
|
||||||
|
|
||||||
|
Setup development environment.
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
You need to install django 1.6,...
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
git clone git://github.com/django/django.git django-trunk
|
||||||
|
cd django-trunk
|
||||||
|
git checkout stable/1.6.x
|
||||||
|
python setup.py install
|
||||||
|
cd ..
|
||||||
|
rm -r django-trunk
|
||||||
|
|
||||||
|
... django-reversion for django 1.6 ...
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
git clone https://github.com/etianen/django-reversion.git django-reversion-trunk
|
||||||
|
cd django-reversion-trunk
|
||||||
|
git checkout django-1.6
|
||||||
|
python setup.py install
|
||||||
|
cd ..
|
||||||
|
rm -r django-reversion-trunk
|
||||||
|
|
||||||
|
|
||||||
|
...ant then, you must install all the dependencies
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
|
pip install -r requirements.txt
|
||||||
|
python manage.py syncdb --migrate --noinput
|
||||||
|
python manage.py loaddata initial_user
|
||||||
|
python manage.py sample_data
|
||||||
|
python manage.py createinitialrevisions
|
||||||
|
|
||||||
|
Also, greenmine only runs over python 3.3+.
|
||||||
|
|
||||||
|
|
||||||
|
Auth: admin/123123
|
||||||
|
|
||||||
|
|
||||||
|
Polyfills
|
||||||
|
----------
|
||||||
|
|
||||||
|
Django-Rest Framework by default returns 403 for not authenticated requests and permission denied
|
||||||
|
requests. The file ``greenmine/base/monkey.py`` contains a temporary fix for this bug.
|
||||||
|
|
||||||
|
This patch is applied when the module ``base.models`` it's loaded. Once it's solved on django rest
|
||||||
|
framework, this patch can be removed.
|
|
@ -0,0 +1 @@
|
||||||
|
build
|
|
@ -0,0 +1,153 @@
|
||||||
|
# Makefile for Sphinx documentation
|
||||||
|
#
|
||||||
|
|
||||||
|
# You can set these variables from the command line.
|
||||||
|
SPHINXOPTS =
|
||||||
|
SPHINXBUILD = sphinx-build
|
||||||
|
PAPER =
|
||||||
|
BUILDDIR = build
|
||||||
|
|
||||||
|
# Internal variables.
|
||||||
|
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||||
|
PAPEROPT_letter = -D latex_paper_size=letter
|
||||||
|
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||||
|
# the i18n builder cannot share the environment and doctrees with the others
|
||||||
|
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||||
|
|
||||||
|
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
|
||||||
|
|
||||||
|
help:
|
||||||
|
@echo "Please use \`make <target>' where <target> is one of"
|
||||||
|
@echo " html to make standalone HTML files"
|
||||||
|
@echo " dirhtml to make HTML files named index.html in directories"
|
||||||
|
@echo " singlehtml to make a single large HTML file"
|
||||||
|
@echo " pickle to make pickle files"
|
||||||
|
@echo " json to make JSON files"
|
||||||
|
@echo " htmlhelp to make HTML files and a HTML help project"
|
||||||
|
@echo " qthelp to make HTML files and a qthelp project"
|
||||||
|
@echo " devhelp to make HTML files and a Devhelp project"
|
||||||
|
@echo " epub to make an epub"
|
||||||
|
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
||||||
|
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
||||||
|
@echo " text to make text files"
|
||||||
|
@echo " man to make manual pages"
|
||||||
|
@echo " texinfo to make Texinfo files"
|
||||||
|
@echo " info to make Texinfo files and run them through makeinfo"
|
||||||
|
@echo " gettext to make PO message catalogs"
|
||||||
|
@echo " changes to make an overview of all changed/added/deprecated items"
|
||||||
|
@echo " linkcheck to check all external links for integrity"
|
||||||
|
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -rf $(BUILDDIR)/*
|
||||||
|
|
||||||
|
html:
|
||||||
|
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||||
|
@echo
|
||||||
|
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||||
|
|
||||||
|
dirhtml:
|
||||||
|
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
||||||
|
@echo
|
||||||
|
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
||||||
|
|
||||||
|
singlehtml:
|
||||||
|
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
||||||
|
@echo
|
||||||
|
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
||||||
|
|
||||||
|
pickle:
|
||||||
|
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
||||||
|
@echo
|
||||||
|
@echo "Build finished; now you can process the pickle files."
|
||||||
|
|
||||||
|
json:
|
||||||
|
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
||||||
|
@echo
|
||||||
|
@echo "Build finished; now you can process the JSON files."
|
||||||
|
|
||||||
|
htmlhelp:
|
||||||
|
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
||||||
|
@echo
|
||||||
|
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
||||||
|
".hhp project file in $(BUILDDIR)/htmlhelp."
|
||||||
|
|
||||||
|
qthelp:
|
||||||
|
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
||||||
|
@echo
|
||||||
|
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
||||||
|
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
||||||
|
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Green-Mine.qhcp"
|
||||||
|
@echo "To view the help file:"
|
||||||
|
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Green-Mine.qhc"
|
||||||
|
|
||||||
|
devhelp:
|
||||||
|
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
||||||
|
@echo
|
||||||
|
@echo "Build finished."
|
||||||
|
@echo "To view the help file:"
|
||||||
|
@echo "# mkdir -p $$HOME/.local/share/devhelp/Green-Mine"
|
||||||
|
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Green-Mine"
|
||||||
|
@echo "# devhelp"
|
||||||
|
|
||||||
|
epub:
|
||||||
|
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
||||||
|
@echo
|
||||||
|
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
||||||
|
|
||||||
|
latex:
|
||||||
|
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||||
|
@echo
|
||||||
|
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
||||||
|
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
||||||
|
"(use \`make latexpdf' here to do that automatically)."
|
||||||
|
|
||||||
|
latexpdf:
|
||||||
|
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||||
|
@echo "Running LaTeX files through pdflatex..."
|
||||||
|
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
||||||
|
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||||
|
|
||||||
|
text:
|
||||||
|
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
||||||
|
@echo
|
||||||
|
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
||||||
|
|
||||||
|
man:
|
||||||
|
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
||||||
|
@echo
|
||||||
|
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
||||||
|
|
||||||
|
texinfo:
|
||||||
|
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
||||||
|
@echo
|
||||||
|
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
||||||
|
@echo "Run \`make' in that directory to run these through makeinfo" \
|
||||||
|
"(use \`make info' here to do that automatically)."
|
||||||
|
|
||||||
|
info:
|
||||||
|
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
||||||
|
@echo "Running Texinfo files through makeinfo..."
|
||||||
|
make -C $(BUILDDIR)/texinfo info
|
||||||
|
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
||||||
|
|
||||||
|
gettext:
|
||||||
|
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
||||||
|
@echo
|
||||||
|
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
||||||
|
|
||||||
|
changes:
|
||||||
|
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
||||||
|
@echo
|
||||||
|
@echo "The overview file is in $(BUILDDIR)/changes."
|
||||||
|
|
||||||
|
linkcheck:
|
||||||
|
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
||||||
|
@echo
|
||||||
|
@echo "Link check complete; look for any errors in the above output " \
|
||||||
|
"or in $(BUILDDIR)/linkcheck/output.txt."
|
||||||
|
|
||||||
|
doctest:
|
||||||
|
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||||
|
@echo "Testing of doctests in the sources finished, look at the " \
|
||||||
|
"results in $(BUILDDIR)/doctest/output.txt."
|
|
@ -0,0 +1,39 @@
|
||||||
|
{% extends "!layout.html" %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<div class="deck">
|
||||||
|
|
||||||
|
{% if version == "0.7" or version == "0.8" %}
|
||||||
|
<p class="developmentversion">
|
||||||
|
This document is for Celery's development version, which can be
|
||||||
|
significantly different from previous releases. Get old docs here:
|
||||||
|
|
||||||
|
<a href="http://docs.celeryproject.org/en/latest/{{ pagename }}{{ file_suffix }}">2.5</a>.
|
||||||
|
</p>
|
||||||
|
{% else %}
|
||||||
|
<p>
|
||||||
|
This document describes stdnet {{ version }}. For development docs,
|
||||||
|
<a href="http://lsbardel.github.com/python-stdnet/{{ pagename }}{{ file_suffix }}">go here</a>.
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
{{ body }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block footer %}
|
||||||
|
{{ super() }}
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
var _gaq = _gaq || [];
|
||||||
|
_gaq.push(['_setAccount', 'UA-3900561-6']);
|
||||||
|
_gaq.push(['_trackPageview']);
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||||
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||||
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||||
|
})();
|
||||||
|
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
|
@ -0,0 +1,9 @@
|
||||||
|
<h3>Green-Mine</h3>
|
||||||
|
<p>
|
||||||
|
Green-Mine is a project managment web application
|
||||||
|
build on top of django (1.4).
|
||||||
|
</p>
|
||||||
|
<h3>Useful Links</h3>
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://github.com/lsbardel/python-stdnet">Green-Mine @ github</a></li>
|
||||||
|
</ul>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<p class="logo">
|
||||||
|
<a href="{{ pathto(master_doc) }}">
|
||||||
|
<img class="logo" width="200" src="{{ pathto('_static/net.jpg', 1) }}" alt="Logo"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
|
@ -0,0 +1,394 @@
|
||||||
|
/*
|
||||||
|
* celery.css_t
|
||||||
|
* ~~~~~~~~~~~~
|
||||||
|
*
|
||||||
|
* :copyright: Copyright 2010 by Armin Ronacher.
|
||||||
|
* :license: BSD, see LICENSE for details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
{% set page_width = 940 %}
|
||||||
|
{% set sidebar_width = 220 %}
|
||||||
|
{% set body_font_stack = 'Optima, Segoe, "Segoe UI", Candara, Calibri, Arial, sans-serif' %}
|
||||||
|
{% set headline_font_stack = 'Futura, "Trebuchet MS", Arial, sans-serif' %}
|
||||||
|
{% set code_font_stack = "'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace" %}
|
||||||
|
|
||||||
|
@import url("basic.css");
|
||||||
|
|
||||||
|
/* -- page layout ----------------------------------------------------------- */
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: {{ body_font_stack }};
|
||||||
|
font-size: 17px;
|
||||||
|
background-color: white;
|
||||||
|
color: #000;
|
||||||
|
margin: 30px 0 0 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.document {
|
||||||
|
width: {{ page_width }}px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.related {
|
||||||
|
width: {{ page_width - 20 }}px;
|
||||||
|
padding: 5px 10px;
|
||||||
|
background: #F2FCEE;
|
||||||
|
margin: 15px auto 15px auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.documentwrapper {
|
||||||
|
float: left;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.bodywrapper {
|
||||||
|
margin: 0 0 0 {{ sidebar_width }}px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar {
|
||||||
|
width: {{ sidebar_width }}px;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border: 1px solid #B1B4B6;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body {
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: #3E4349;
|
||||||
|
padding: 0 30px 0 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.celerylogo {
|
||||||
|
padding: 0 0 10px 10px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.footer {
|
||||||
|
width: {{ page_width - 15 }}px;
|
||||||
|
margin: 10px auto 30px auto;
|
||||||
|
padding-right: 15px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #888;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.footer a {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar a {
|
||||||
|
color: #444;
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 1px dashed #DCF0D5;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar a:hover {
|
||||||
|
border-bottom: 1px solid #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebarwrapper {
|
||||||
|
padding: 7px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebarwrapper p.logo {
|
||||||
|
padding: 0 0 20px 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar h3,
|
||||||
|
div.sphinxsidebar h4 {
|
||||||
|
font-family: {{ headline_font_stack }};
|
||||||
|
color: #444;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 0 0 5px 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar h4 {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar h3 a {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar p.logo a,
|
||||||
|
div.sphinxsidebar h3 a,
|
||||||
|
div.sphinxsidebar p.logo a:hover,
|
||||||
|
div.sphinxsidebar h3 a:hover {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar p {
|
||||||
|
color: #555;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar ul {
|
||||||
|
margin: 10px 0;
|
||||||
|
padding: 0;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.sphinxsidebar input {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
font-family: {{ body_font_stack }};
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* -- body styles ----------------------------------------------------------- */
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #348613;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: #59B833;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body h1,
|
||||||
|
div.body h2,
|
||||||
|
div.body h3,
|
||||||
|
div.body h4,
|
||||||
|
div.body h5,
|
||||||
|
div.body h6 {
|
||||||
|
font-family: {{ headline_font_stack }};
|
||||||
|
font-weight: normal;
|
||||||
|
margin: 30px 0px 10px 0px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body h1 { margin-top: 0; padding-top: 0; font-size: 200%; }
|
||||||
|
div.body h2 { font-size: 180%; }
|
||||||
|
div.body h3 { font-size: 150%; }
|
||||||
|
div.body h4 { font-size: 130%; }
|
||||||
|
div.body h5 { font-size: 100%; }
|
||||||
|
div.body h6 { font-size: 100%; }
|
||||||
|
|
||||||
|
div.body h1 a.toc-backref,
|
||||||
|
div.body h2 a.toc-backref,
|
||||||
|
div.body h3 a.toc-backref,
|
||||||
|
div.body h4 a.toc-backref,
|
||||||
|
div.body h5 a.toc-backref,
|
||||||
|
div.body h6 a.toc-backref {
|
||||||
|
color: inherit!important;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.headerlink {
|
||||||
|
color: #ddd;
|
||||||
|
padding: 0 4px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.headerlink:hover {
|
||||||
|
color: #444;
|
||||||
|
background: #eaeaea;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.body p, div.body dd, div.body li {
|
||||||
|
line-height: 1.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.admonition {
|
||||||
|
background: #fafafa;
|
||||||
|
margin: 20px -30px;
|
||||||
|
padding: 10px 30px;
|
||||||
|
border-top: 1px solid #ccc;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.admonition p.admonition-title {
|
||||||
|
font-family: {{ headline_font_stack }};
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 24px;
|
||||||
|
margin: 0 0 10px 0;
|
||||||
|
padding: 0;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.admonition p.last {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.highlight{
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
dt:target, .highlight {
|
||||||
|
background: #FAF3E8;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.note {
|
||||||
|
background-color: #eee;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.seealso {
|
||||||
|
background-color: #ffc;
|
||||||
|
border: 1px solid #ff6;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.topic {
|
||||||
|
background-color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.warning {
|
||||||
|
background-color: #ffe4e4;
|
||||||
|
border: 1px solid #f66;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.admonition-title {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.admonition-title:after {
|
||||||
|
content: ":";
|
||||||
|
}
|
||||||
|
|
||||||
|
pre, tt {
|
||||||
|
font-family: {{ code_font_stack }};
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.screenshot {
|
||||||
|
}
|
||||||
|
|
||||||
|
tt.descname, tt.descclassname {
|
||||||
|
font-size: 0.95em;
|
||||||
|
}
|
||||||
|
|
||||||
|
tt.descname {
|
||||||
|
padding-right: 0.08em;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.screenshot {
|
||||||
|
-moz-box-shadow: 2px 2px 4px #eee;
|
||||||
|
-webkit-box-shadow: 2px 2px 4px #eee;
|
||||||
|
box-shadow: 2px 2px 4px #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.docutils {
|
||||||
|
border: 1px solid #888;
|
||||||
|
-moz-box-shadow: 2px 2px 4px #eee;
|
||||||
|
-webkit-box-shadow: 2px 2px 4px #eee;
|
||||||
|
box-shadow: 2px 2px 4px #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.docutils td, table.docutils th {
|
||||||
|
border: 1px solid #888;
|
||||||
|
padding: 0.25em 0.7em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.field-list, table.footnote {
|
||||||
|
border: none;
|
||||||
|
-moz-box-shadow: none;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.footnote {
|
||||||
|
margin: 15px 0;
|
||||||
|
width: 100%;
|
||||||
|
border: 1px solid #eee;
|
||||||
|
background: #fdfdfd;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.footnote + table.footnote {
|
||||||
|
margin-top: -15px;
|
||||||
|
border-top: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.field-list th {
|
||||||
|
padding: 0 0.8em 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.field-list td {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.footnote td.label {
|
||||||
|
width: 0px;
|
||||||
|
padding: 0.3em 0 0.3em 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.footnote td {
|
||||||
|
padding: 0.3em 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
dl {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
dl dd {
|
||||||
|
margin-left: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin: 0 0 0 30px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
margin: 10px 0 10px 30px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background: #F0FFEB;
|
||||||
|
padding: 7px 10px;
|
||||||
|
margin: 15px 0;
|
||||||
|
border: 1px solid #C7ECB8;
|
||||||
|
border-radius: 2px;
|
||||||
|
-moz-border-radius: 2px;
|
||||||
|
-webkit-border-radius: 2px;
|
||||||
|
line-height: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
tt {
|
||||||
|
background: #F0FFEB;
|
||||||
|
color: #222;
|
||||||
|
/* padding: 1px 2px; */
|
||||||
|
}
|
||||||
|
|
||||||
|
tt.xref, a tt {
|
||||||
|
background: #F0FFEB;
|
||||||
|
border-bottom: 1px solid white;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.reference {
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 1px dashed #DCF0D5;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.reference:hover {
|
||||||
|
border-bottom: 1px solid #6D4100;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.footnote-reference {
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 0.7em;
|
||||||
|
vertical-align: top;
|
||||||
|
border-bottom: 1px dashed #DCF0D5;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.footnote-reference:hover {
|
||||||
|
border-bottom: 1px solid #6D4100;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover tt {
|
||||||
|
background: #EEE;
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
[theme]
|
||||||
|
inherit = basic
|
||||||
|
stylesheet = celery.css
|
||||||
|
|
||||||
|
[options]
|
|
@ -0,0 +1,57 @@
|
||||||
|
|
||||||
|
============
|
||||||
|
Coding rules
|
||||||
|
============
|
||||||
|
|
||||||
|
Django models
|
||||||
|
=============
|
||||||
|
|
||||||
|
* All model names in singular an CamelCase.
|
||||||
|
|
||||||
|
* All models have a **Meta** with at least:
|
||||||
|
|
||||||
|
- **verbose_name** and **verbose_name_plural**: unicode strings, lowercase, with spaces.
|
||||||
|
- **ordering**: return a consistent order, using pk if no other unique field or combination exists.
|
||||||
|
|
||||||
|
* All models have **__unicode__** method, returning a human-readable, descriptive, short text.
|
||||||
|
|
||||||
|
* All fields have **verbose_name**. Also **help_text** if needed to fully explain the field meaning.
|
||||||
|
|
||||||
|
* All fields have explicit **blank** and **null** parameters. Use only those combinations, unless
|
||||||
|
there a documented need of other thing:
|
||||||
|
|
||||||
|
Normal fields (IntegerField, DateField, ForeignKey, FileField...)
|
||||||
|
- (optional) **null = True**, **blank = True**
|
||||||
|
- (required) **null = False**, **blank = False**
|
||||||
|
|
||||||
|
Text fields (CharField, TextField, URLField...)
|
||||||
|
- (optional) **null = False**, **blank = True**
|
||||||
|
- (required) **null = False**, **blank = False**
|
||||||
|
|
||||||
|
Boolean fields:
|
||||||
|
- (two values, T/F) **null = False**, **blank = True**
|
||||||
|
- (three values, T/F/Null) **null = False**, **blank = True**
|
||||||
|
|
||||||
|
* Don't create text fields with **null = True**, unless you need to distinguish between empty string and None.
|
||||||
|
|
||||||
|
* Don't create boolean fields with **blank = False**, otherwise they could only be True.
|
||||||
|
|
||||||
|
Example::
|
||||||
|
|
||||||
|
class SomeClass(models.Model):
|
||||||
|
name = models.CharField(max_length=100, null = False, blank = False, unique=True,
|
||||||
|
verbose_name = _(u'name'))
|
||||||
|
slug = models.SlugField(max_length=100, null = False, blank = False, unique=True,
|
||||||
|
verbose_name = _(u'slug'),
|
||||||
|
help_text = (u'Identifier of this object. Only letters, digits and underscore "_" allowed.'))
|
||||||
|
text = models.TextField(null = False, blank = True,
|
||||||
|
verbose_name = _(u'text'))
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
verbose_name = _(u'some class')
|
||||||
|
verbose_name_plural = _(u'some classes')
|
||||||
|
ordering = ['name']
|
||||||
|
|
||||||
|
def __unicode__(self):
|
||||||
|
return self.name
|
||||||
|
|
|
@ -0,0 +1,252 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Green-Mine documentation build configuration file, created by
|
||||||
|
# sphinx-quickstart on Sun May 6 14:00:36 2012.
|
||||||
|
#
|
||||||
|
# This file is execfile()d with the current directory set to its containing dir.
|
||||||
|
#
|
||||||
|
# Note that not all possible configuration values are present in this
|
||||||
|
# autogenerated file.
|
||||||
|
#
|
||||||
|
# All configuration values have a default; values that are commented out
|
||||||
|
# serve to show the default.
|
||||||
|
|
||||||
|
import sys, os
|
||||||
|
|
||||||
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
|
#sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
# -- General configuration -----------------------------------------------------
|
||||||
|
|
||||||
|
# If your documentation needs a minimal Sphinx version, state it here.
|
||||||
|
#needs_sphinx = '1.0'
|
||||||
|
|
||||||
|
# Add any Sphinx extension module names here, as strings. They can be extensions
|
||||||
|
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||||
|
extensions = []
|
||||||
|
|
||||||
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
templates_path = ['_templates']
|
||||||
|
|
||||||
|
# The suffix of source filenames.
|
||||||
|
source_suffix = '.rst'
|
||||||
|
|
||||||
|
# The encoding of source files.
|
||||||
|
#source_encoding = 'utf-8-sig'
|
||||||
|
|
||||||
|
# The master toctree document.
|
||||||
|
master_doc = 'index'
|
||||||
|
|
||||||
|
# General information about the project.
|
||||||
|
project = u'greenmine'
|
||||||
|
copyright = u'2012, Andrei Antoukh'
|
||||||
|
|
||||||
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
|
# |version| and |release|, also used in various other places throughout the
|
||||||
|
# built documents.
|
||||||
|
#
|
||||||
|
# The short X.Y version.
|
||||||
|
version = '0.0.10'
|
||||||
|
# The full version, including alpha/beta/rc tags.
|
||||||
|
release = '0.0.10'
|
||||||
|
|
||||||
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
|
# for a list of supported languages.
|
||||||
|
#language = None
|
||||||
|
|
||||||
|
# There are two options for replacing |today|: either, you set today to some
|
||||||
|
# non-false value, then it is used:
|
||||||
|
#today = ''
|
||||||
|
# Else, today_fmt is used as the format for a strftime call.
|
||||||
|
#today_fmt = '%B %d, %Y'
|
||||||
|
|
||||||
|
# List of patterns, relative to source directory, that match files and
|
||||||
|
# directories to ignore when looking for source files.
|
||||||
|
exclude_patterns = []
|
||||||
|
|
||||||
|
# The reST default role (used for this markup: `text`) to use for all documents.
|
||||||
|
#default_role = None
|
||||||
|
|
||||||
|
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||||
|
#add_function_parentheses = True
|
||||||
|
|
||||||
|
# If true, the current module name will be prepended to all description
|
||||||
|
# unit titles (such as .. function::).
|
||||||
|
#add_module_names = True
|
||||||
|
|
||||||
|
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||||
|
# output. They are ignored by default.
|
||||||
|
#show_authors = False
|
||||||
|
|
||||||
|
# The name of the Pygments (syntax highlighting) style to use.
|
||||||
|
pygments_style = 'sphinx'
|
||||||
|
|
||||||
|
# A list of ignored prefixes for module index sorting.
|
||||||
|
#modindex_common_prefix = []
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for HTML output ---------------------------------------------------
|
||||||
|
|
||||||
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
|
# a list of builtin themes.
|
||||||
|
html_theme = 'default'
|
||||||
|
html_theme = 'celery'
|
||||||
|
|
||||||
|
# Theme options are theme-specific and customize the look and feel of a theme
|
||||||
|
# further. For a list of options available for each theme, see the
|
||||||
|
# documentation.
|
||||||
|
#html_theme_options = {}
|
||||||
|
|
||||||
|
# Add any paths that contain custom themes here, relative to this directory.
|
||||||
|
#html_theme_path = []
|
||||||
|
html_theme_path = ["_theme"]
|
||||||
|
|
||||||
|
|
||||||
|
# The name for this set of Sphinx documents. If None, it defaults to
|
||||||
|
# "<project> v<release> documentation".
|
||||||
|
#html_title = None
|
||||||
|
|
||||||
|
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||||
|
#html_short_title = None
|
||||||
|
|
||||||
|
# The name of an image file (relative to this directory) to place at the top
|
||||||
|
# of the sidebar.
|
||||||
|
#html_logo = None
|
||||||
|
|
||||||
|
# The name of an image file (within the static path) to use as favicon of the
|
||||||
|
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||||
|
# pixels large.
|
||||||
|
#html_favicon = None
|
||||||
|
|
||||||
|
# Add any paths that contain custom static files (such as style sheets) here,
|
||||||
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||||
|
html_static_path = ['_static']
|
||||||
|
|
||||||
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||||
|
# using the given strftime format.
|
||||||
|
#html_last_updated_fmt = '%b %d, %Y'
|
||||||
|
|
||||||
|
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||||
|
# typographically correct entities.
|
||||||
|
#html_use_smartypants = True
|
||||||
|
|
||||||
|
# Custom sidebar templates, maps document names to template names.
|
||||||
|
#html_sidebars = {}
|
||||||
|
html_sidebars = {
|
||||||
|
'index': ['sidebarlogo.html', 'sidebarintro.html',
|
||||||
|
'sourcelink.html', 'searchbox.html'],
|
||||||
|
'**': ['sidebarlogo.html', 'localtoc.html', 'relations.html',
|
||||||
|
'sourcelink.html', 'searchbox.html'],
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Additional templates that should be rendered to pages, maps page names to
|
||||||
|
# template names.
|
||||||
|
#html_additional_pages = {}
|
||||||
|
|
||||||
|
# If false, no module index is generated.
|
||||||
|
#html_domain_indices = True
|
||||||
|
|
||||||
|
# If false, no index is generated.
|
||||||
|
#html_use_index = True
|
||||||
|
|
||||||
|
# If true, the index is split into individual pages for each letter.
|
||||||
|
#html_split_index = False
|
||||||
|
|
||||||
|
# If true, links to the reST sources are added to the pages.
|
||||||
|
#html_show_sourcelink = True
|
||||||
|
|
||||||
|
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||||
|
#html_show_sphinx = True
|
||||||
|
|
||||||
|
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
||||||
|
#html_show_copyright = True
|
||||||
|
|
||||||
|
# If true, an OpenSearch description file will be output, and all pages will
|
||||||
|
# contain a <link> tag referring to it. The value of this option must be the
|
||||||
|
# base URL from which the finished HTML is served.
|
||||||
|
#html_use_opensearch = ''
|
||||||
|
|
||||||
|
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
||||||
|
#html_file_suffix = None
|
||||||
|
|
||||||
|
# Output file base name for HTML help builder.
|
||||||
|
htmlhelp_basename = 'greenminedoc'
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for LaTeX output --------------------------------------------------
|
||||||
|
|
||||||
|
latex_elements = {
|
||||||
|
# The paper size ('letterpaper' or 'a4paper').
|
||||||
|
#'papersize': 'letterpaper',
|
||||||
|
|
||||||
|
# The font size ('10pt', '11pt' or '12pt').
|
||||||
|
#'pointsize': '10pt',
|
||||||
|
|
||||||
|
# Additional stuff for the LaTeX preamble.
|
||||||
|
#'preamble': '',
|
||||||
|
}
|
||||||
|
|
||||||
|
# Grouping the document tree into LaTeX files. List of tuples
|
||||||
|
# (source start file, target name, title, author, documentclass [howto/manual]).
|
||||||
|
latex_documents = [
|
||||||
|
('index', 'greenmine.tex', u'greenmine documentation',
|
||||||
|
u'Andrei Antoukh', 'manual'),
|
||||||
|
]
|
||||||
|
|
||||||
|
# The name of an image file (relative to this directory) to place at the top of
|
||||||
|
# the title page.
|
||||||
|
#latex_logo = None
|
||||||
|
|
||||||
|
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||||
|
# not chapters.
|
||||||
|
#latex_use_parts = False
|
||||||
|
|
||||||
|
# If true, show page references after internal links.
|
||||||
|
#latex_show_pagerefs = False
|
||||||
|
|
||||||
|
# If true, show URL addresses after external links.
|
||||||
|
#latex_show_urls = False
|
||||||
|
|
||||||
|
# Documents to append as an appendix to all manuals.
|
||||||
|
#latex_appendices = []
|
||||||
|
|
||||||
|
# If false, no module index is generated.
|
||||||
|
#latex_domain_indices = True
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for manual page output --------------------------------------------
|
||||||
|
|
||||||
|
# One entry per manual page. List of tuples
|
||||||
|
# (source start file, name, description, authors, manual section).
|
||||||
|
man_pages = [
|
||||||
|
('index', 'green-mine', u'greenmine documentation',
|
||||||
|
[u'Andrei Antoukh'], 1)
|
||||||
|
]
|
||||||
|
|
||||||
|
# If true, show URL addresses after external links.
|
||||||
|
#man_show_urls = False
|
||||||
|
|
||||||
|
|
||||||
|
# -- Options for Texinfo output ------------------------------------------------
|
||||||
|
|
||||||
|
# Grouping the document tree into Texinfo files. List of tuples
|
||||||
|
# (source start file, target name, title, author,
|
||||||
|
# dir menu entry, description, category)
|
||||||
|
texinfo_documents = [
|
||||||
|
('index', 'greenmine', u'greenmine documentation',
|
||||||
|
u'Andrei Antoukh', 'greenmine', 'One line description of project.',
|
||||||
|
'Miscellaneous'),
|
||||||
|
]
|
||||||
|
|
||||||
|
# Documents to append as an appendix to all manuals.
|
||||||
|
#texinfo_appendices = []
|
||||||
|
|
||||||
|
# If false, no module index is generated.
|
||||||
|
#texinfo_domain_indices = True
|
||||||
|
|
||||||
|
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||||
|
#texinfo_show_urls = 'footnote'
|
|
@ -0,0 +1,43 @@
|
||||||
|
==========
|
||||||
|
Green-Mine
|
||||||
|
==========
|
||||||
|
|
||||||
|
.. rubric:: Project management web application build on top of Django.
|
||||||
|
|
||||||
|
Currently there is no stable version, but the project is already usable. All contributions and bug fixes is welcome.
|
||||||
|
|
||||||
|
|
||||||
|
First steps
|
||||||
|
===========
|
||||||
|
|
||||||
|
**From scratch:**
|
||||||
|
:ref:`Overview and Installation <intro-overview>`
|
||||||
|
|
||||||
|
**Tutorials:** TODO
|
||||||
|
|
||||||
|
**Miscellaneous:**
|
||||||
|
:ref:`Contributing <contributing>` |
|
||||||
|
:ref:`Tests <runtests>` |
|
||||||
|
:ref:`Changelog <changelog>` |
|
||||||
|
:ref:`License <license>`
|
||||||
|
|
||||||
|
|
||||||
|
Contents:
|
||||||
|
=========
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
overview.rst
|
||||||
|
settings.rst
|
||||||
|
coding_rules.rst
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Indices and tables
|
||||||
|
==================
|
||||||
|
|
||||||
|
* :ref:`genindex`
|
||||||
|
* :ref:`modindex`
|
||||||
|
* :ref:`search`
|
||||||
|
|
|
@ -0,0 +1,77 @@
|
||||||
|
.. _intro-overview:
|
||||||
|
|
||||||
|
========
|
||||||
|
Overview
|
||||||
|
========
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
============
|
||||||
|
|
||||||
|
* python 2.6 or 2.7
|
||||||
|
* django-superview >= 0.2
|
||||||
|
* psycopg2 >= 2.4 (if postgresql is used)
|
||||||
|
* pyzmq >= 2.2 (for async mailserver)
|
||||||
|
* sphinx >= 1.1.3 (for build this documentation)
|
||||||
|
* django >= 1.4 (builtin)
|
||||||
|
* markdown >= 2.1 (for markdown wiki)
|
||||||
|
* docutils >= 0.7 (for restructuredtext wiki)
|
||||||
|
|
||||||
|
Philosophy
|
||||||
|
==========
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
|
Installing
|
||||||
|
==========
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
|
Version Check
|
||||||
|
=============
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
|
.. _runtests:
|
||||||
|
|
||||||
|
Running tests
|
||||||
|
=============
|
||||||
|
|
||||||
|
Requirements for running tests: same as standard requierements.
|
||||||
|
|
||||||
|
To run tests, open a shell on a package directory and type::
|
||||||
|
|
||||||
|
python manage.py test -v2 greenmine
|
||||||
|
|
||||||
|
To access coverage of tests you need to install the coverage_ package and run the tests using::
|
||||||
|
|
||||||
|
coverage run --omit=extern manage.py test -v2 greenmine
|
||||||
|
|
||||||
|
and to check out the coverage report::
|
||||||
|
|
||||||
|
coverage html
|
||||||
|
|
||||||
|
|
||||||
|
.. _contributing:
|
||||||
|
|
||||||
|
Contributing
|
||||||
|
============
|
||||||
|
|
||||||
|
Develpment of Green-Mine happens at github: https://github.com/niwibe/Green-Mine
|
||||||
|
|
||||||
|
We very much welcome your contribution of course. To do so, simply follow these guidelines:
|
||||||
|
|
||||||
|
1. Fork ``greenmine`` on github.
|
||||||
|
2. Create feature branch. Example: ``git checkout -b my_new_feature``
|
||||||
|
3. Push your changes. Example: ``git push -u origin my_new_feature``
|
||||||
|
4. Send me a pull-request.
|
||||||
|
|
||||||
|
.. _license:
|
||||||
|
|
||||||
|
License
|
||||||
|
=======
|
||||||
|
|
||||||
|
This software is licensed under the New BSD_ License. See the LICENSE
|
||||||
|
file in the top distribution directory for the full license text.
|
||||||
|
|
||||||
|
.. _coverage: http://nedbatchelder.com/code/coverage/
|
||||||
|
.. _BSD: http://www.opensource.org/licenses/bsd-license.php
|
|
@ -0,0 +1,22 @@
|
||||||
|
Settings introduced by greenmine.
|
||||||
|
=================================
|
||||||
|
|
||||||
|
Default settings
|
||||||
|
----------------
|
||||||
|
|
||||||
|
The setting instance contains few default parameters used in throughout
|
||||||
|
the library. This parameters can be changed by the user by simply
|
||||||
|
overriding them.
|
||||||
|
|
||||||
|
.. attribute:: settings.HOST
|
||||||
|
|
||||||
|
Set a full host name, this is used for making urls for email
|
||||||
|
notifications. In the future, it will be automatic.
|
||||||
|
|
||||||
|
Default: ``"http://localhost:8000"`` (ready for developers)
|
||||||
|
|
||||||
|
.. attribute:: settings.DISABLE_REGISTRATION
|
||||||
|
|
||||||
|
Set this, disables user registration.
|
||||||
|
|
||||||
|
Default: ``False``
|
|
@ -0,0 +1,102 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db import transaction
|
||||||
|
|
||||||
|
from rest_framework import viewsets
|
||||||
|
from rest_framework import status
|
||||||
|
from rest_framework import mixins
|
||||||
|
from rest_framework.response import Response
|
||||||
|
|
||||||
|
from .pagination import HeadersPaginationMixin, ConditionalPaginationMixin
|
||||||
|
|
||||||
|
|
||||||
|
class CreateModelMixin(mixins.CreateModelMixin):
|
||||||
|
@transaction.atomic
|
||||||
|
def create(self, *args, **kwargs):
|
||||||
|
return super().create(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
class RetrieveModelMixin(mixins.RetrieveModelMixin):
|
||||||
|
@transaction.atomic
|
||||||
|
def retrieve(self, *args, **kwargs):
|
||||||
|
return super().retrieve(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
class UpdateModelMixin(mixins.UpdateModelMixin):
|
||||||
|
@transaction.atomic
|
||||||
|
def update(self, *args, **kwargs):
|
||||||
|
return super().update(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
class ListModelMixin(mixins.ListModelMixin):
|
||||||
|
@transaction.atomic
|
||||||
|
def list(self, *args, **kwargs):
|
||||||
|
return super().list(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
class DestroyModelMixin(mixins.DestroyModelMixin):
|
||||||
|
"""
|
||||||
|
Self version of DestroyModelMixin with
|
||||||
|
pre_delete hook method.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def pre_delete(self, obj):
|
||||||
|
pass
|
||||||
|
|
||||||
|
@transaction.atomic
|
||||||
|
def destroy(self, request, *args, **kwargs):
|
||||||
|
obj = self.get_object()
|
||||||
|
self.pre_delete(obj)
|
||||||
|
obj.delete()
|
||||||
|
return Response(status=status.HTTP_204_NO_CONTENT)
|
||||||
|
|
||||||
|
|
||||||
|
class PreconditionMixin(object):
|
||||||
|
def pre_conditions_on_save(self, obj):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def pre_conditions_on_delete(self, obj):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def pre_save(self, obj):
|
||||||
|
super().pre_save(obj)
|
||||||
|
self.pre_conditions_on_save(obj)
|
||||||
|
|
||||||
|
def pre_delete(self, obj):
|
||||||
|
super().pre_delete(obj)
|
||||||
|
self.pre_conditions_on_delete(obj)
|
||||||
|
|
||||||
|
|
||||||
|
class DetailAndListSerializersMixin(object):
|
||||||
|
"""
|
||||||
|
Use a diferent serializer class to the list action.
|
||||||
|
"""
|
||||||
|
list_serializer_class = None
|
||||||
|
|
||||||
|
def get_serializer_class(self):
|
||||||
|
if self.action == "list" and self.list_serializer_class:
|
||||||
|
return self.list_serializer_class
|
||||||
|
return super().get_serializer_class()
|
||||||
|
|
||||||
|
|
||||||
|
class ModelCrudViewSet(DetailAndListSerializersMixin,
|
||||||
|
PreconditionMixin,
|
||||||
|
HeadersPaginationMixin,
|
||||||
|
ConditionalPaginationMixin,
|
||||||
|
CreateModelMixin,
|
||||||
|
RetrieveModelMixin,
|
||||||
|
UpdateModelMixin,
|
||||||
|
DestroyModelMixin,
|
||||||
|
ListModelMixin,
|
||||||
|
viewsets.GenericViewSet):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class ModelListViewSet(DetailAndListSerializersMixin,
|
||||||
|
PreconditionMixin,
|
||||||
|
HeadersPaginationMixin,
|
||||||
|
ConditionalPaginationMixin,
|
||||||
|
RetrieveModelMixin,
|
||||||
|
ListModelMixin,
|
||||||
|
viewsets.GenericViewSet):
|
||||||
|
pass
|
|
@ -0,0 +1,75 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import base64
|
||||||
|
import re
|
||||||
|
|
||||||
|
from django.core import signing
|
||||||
|
from django.db.models import get_model
|
||||||
|
from rest_framework.authentication import BaseAuthentication
|
||||||
|
|
||||||
|
import greenmine.base.exceptions as exc
|
||||||
|
|
||||||
|
|
||||||
|
class Session(BaseAuthentication):
|
||||||
|
"""
|
||||||
|
Same as rest_framework.authentication.SessionAuthentication
|
||||||
|
but without csrf.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def authenticate(self, request):
|
||||||
|
"""
|
||||||
|
Returns a `User` if the request session currently has a logged in user.
|
||||||
|
Otherwise returns `None`.
|
||||||
|
"""
|
||||||
|
|
||||||
|
http_request = request._request
|
||||||
|
user = getattr(http_request, 'user', None)
|
||||||
|
|
||||||
|
if not user or not user.is_active:
|
||||||
|
return None
|
||||||
|
|
||||||
|
return (user, None)
|
||||||
|
|
||||||
|
|
||||||
|
def get_token_for_user(user):
|
||||||
|
data = {"user_id": user.id}
|
||||||
|
return signing.dumps(data)
|
||||||
|
|
||||||
|
|
||||||
|
def get_user_for_token(token):
|
||||||
|
try:
|
||||||
|
data = signing.loads(token)
|
||||||
|
except signing.BadSignature:
|
||||||
|
raise exc.BadRequest("Invalid token")
|
||||||
|
|
||||||
|
model_cls = get_model("users", "User")
|
||||||
|
|
||||||
|
try:
|
||||||
|
user = model_cls.objects.get(pk=data["user_id"])
|
||||||
|
except model_cls.DoesNotExist:
|
||||||
|
raise exc.BadRequest("Invalid token")
|
||||||
|
else:
|
||||||
|
return user
|
||||||
|
|
||||||
|
|
||||||
|
class Token(BaseAuthentication):
|
||||||
|
"""
|
||||||
|
Stateless authentication system partially based on oauth.
|
||||||
|
"""
|
||||||
|
|
||||||
|
auth_rx = re.compile(r"^Bearer (.+)$")
|
||||||
|
|
||||||
|
def authenticate(self, request):
|
||||||
|
if "HTTP_AUTHORIZATION" not in request.META:
|
||||||
|
return None
|
||||||
|
|
||||||
|
token_rx_match = self.auth_rx.search(request.META["HTTP_AUTHORIZATION"])
|
||||||
|
if not token_rx_match:
|
||||||
|
return None
|
||||||
|
|
||||||
|
token = token_rx_match.group(1)
|
||||||
|
user = get_user_for_token(token)
|
||||||
|
return (user, token)
|
||||||
|
|
||||||
|
def authenticate_header(self, request):
|
||||||
|
return 'Bearer realm="api"'
|
|
@ -0,0 +1,35 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db.models.loading import get_model
|
||||||
|
from django.contrib.auth import logout, login, authenticate
|
||||||
|
|
||||||
|
from rest_framework.response import Response
|
||||||
|
from rest_framework.permissions import AllowAny
|
||||||
|
from rest_framework import status, viewsets
|
||||||
|
|
||||||
|
from greenmine.base import exceptions as exc
|
||||||
|
from greenmine.base import auth
|
||||||
|
|
||||||
|
from greenmine.base.users.models import User, Role
|
||||||
|
from greenmine.base.users.serializers import UserSerializer
|
||||||
|
|
||||||
|
|
||||||
|
class AuthViewSet(viewsets.ViewSet):
|
||||||
|
permission_classes = (AllowAny,)
|
||||||
|
|
||||||
|
def create(self, request, **kwargs):
|
||||||
|
username = request.DATA.get('username', None)
|
||||||
|
password = request.DATA.get('password', None)
|
||||||
|
|
||||||
|
try:
|
||||||
|
user = User.objects.get(username=username)
|
||||||
|
except User.DoesNotExist:
|
||||||
|
raise exc.BadRequest("Invalid username or password")
|
||||||
|
|
||||||
|
if not user.check_password(password):
|
||||||
|
raise exc.BadRequest("Invalid username or password")
|
||||||
|
|
||||||
|
serializer = UserSerializer(user)
|
||||||
|
response_data = serializer.data
|
||||||
|
response_data["auth_token"] = auth.get_token_for_user(user)
|
||||||
|
return Response(response_data, status=status.HTTP_200_OK)
|
|
@ -0,0 +1,43 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.core.urlresolvers import reverse
|
||||||
|
from django.conf.urls import patterns, include, url
|
||||||
|
from django import test
|
||||||
|
|
||||||
|
from rest_framework.views import APIView
|
||||||
|
from rest_framework.permissions import IsAuthenticated
|
||||||
|
from rest_framework.response import Response
|
||||||
|
|
||||||
|
from greenmine import urls
|
||||||
|
from greenmine.base import auth
|
||||||
|
from greenmine.base.users.tests import create_user
|
||||||
|
|
||||||
|
|
||||||
|
class TestAuthView(APIView):
|
||||||
|
authentication_classes = (auth.Token,)
|
||||||
|
permission_classes = (IsAuthenticated,)
|
||||||
|
|
||||||
|
def get(self, request, *args, **kwargs):
|
||||||
|
return Response("ok")
|
||||||
|
|
||||||
|
|
||||||
|
urls.urlpatterns += patterns("",
|
||||||
|
url(r'^test-api/v1/auth/', TestAuthView.as_view(), name="test-token-auth"),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class SimpleTokenAuthTests(test.TestCase):
|
||||||
|
def setUp(self):
|
||||||
|
self.user1 = create_user(1)
|
||||||
|
|
||||||
|
def test_token_auth_01(self):
|
||||||
|
response = self.client.get(reverse("test-token-auth"))
|
||||||
|
self.assertEqual(response.status_code, 401)
|
||||||
|
|
||||||
|
def test_token_auth_02(self):
|
||||||
|
token = auth.get_token_for_user(self.user1)
|
||||||
|
response = self.client.get(reverse("test-token-auth"),
|
||||||
|
HTTP_AUTHORIZATION="Bearer {}".format(token))
|
||||||
|
self.assertEqual(response.status_code, 200)
|
||||||
|
self.assertEqual(response.content, b'"ok"')
|
||||||
|
|
|
@ -0,0 +1,68 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from rest_framework import exceptions
|
||||||
|
from rest_framework import status
|
||||||
|
|
||||||
|
|
||||||
|
class BaseException(exceptions.APIException):
|
||||||
|
status_code = status.HTTP_400_BAD_REQUEST
|
||||||
|
default_detail = 'Unexpected error'
|
||||||
|
|
||||||
|
def __init__(self, detail=None):
|
||||||
|
self.detail = detail or self.default_detail
|
||||||
|
|
||||||
|
|
||||||
|
class NotFound(BaseException):
|
||||||
|
"""
|
||||||
|
Exception used for not found objects.
|
||||||
|
"""
|
||||||
|
|
||||||
|
status_code = status.HTTP_404_NOT_FOUND
|
||||||
|
default_detail = 'Not found.'
|
||||||
|
|
||||||
|
|
||||||
|
class BadRequest(BaseException):
|
||||||
|
"""
|
||||||
|
Exception used on bad arguments detected
|
||||||
|
on api view.
|
||||||
|
"""
|
||||||
|
default_detail = 'Wrong arguments.'
|
||||||
|
|
||||||
|
|
||||||
|
class WrongArguments(BaseException):
|
||||||
|
"""
|
||||||
|
Exception used on bad arguments detected
|
||||||
|
on service. This is same as `BadRequest`.
|
||||||
|
"""
|
||||||
|
default_detail = 'Wrong arguments.'
|
||||||
|
|
||||||
|
|
||||||
|
class PermissionDenied(exceptions.PermissionDenied):
|
||||||
|
"""
|
||||||
|
Compatibility subclass of restframework `PermissionDenied`
|
||||||
|
exception.
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class PreconditionError(BaseException):
|
||||||
|
"""
|
||||||
|
Error raised on precondition method on viewset.
|
||||||
|
"""
|
||||||
|
default_detail = "Precondition error"
|
||||||
|
|
||||||
|
|
||||||
|
class InternalError(BaseException):
|
||||||
|
"""
|
||||||
|
Exception for internal errors.
|
||||||
|
"""
|
||||||
|
status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
|
||||||
|
default_detail = "Internal server error"
|
||||||
|
|
||||||
|
|
||||||
|
class NotAuthenticated(exceptions.NotAuthenticated):
|
||||||
|
"""
|
||||||
|
Compatibility subclass of restframework `NotAuthenticated`
|
||||||
|
exception.
|
||||||
|
"""
|
||||||
|
pass
|
|
@ -0,0 +1,52 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db.models import Q
|
||||||
|
|
||||||
|
from rest_framework import filters
|
||||||
|
|
||||||
|
|
||||||
|
class QueryParamsFilterMixin(object):
|
||||||
|
_special_values_dict = {
|
||||||
|
'true': True,
|
||||||
|
'false': False,
|
||||||
|
'null': None,
|
||||||
|
}
|
||||||
|
|
||||||
|
def filter_queryset(self, request, queryset, view):
|
||||||
|
query_params = {}
|
||||||
|
|
||||||
|
if not hasattr(view, "filter_fields"):
|
||||||
|
return queryset
|
||||||
|
|
||||||
|
for field_name in view.filter_fields:
|
||||||
|
if field_name in request.QUERY_PARAMS:
|
||||||
|
field_data = request.QUERY_PARAMS[field_name]
|
||||||
|
if field_data in self._special_values_dict:
|
||||||
|
query_params[field_name] = self._special_values_dict[field_data]
|
||||||
|
else:
|
||||||
|
query_params[field_name] = field_data
|
||||||
|
|
||||||
|
if query_params:
|
||||||
|
queryset = queryset.filter(**query_params)
|
||||||
|
|
||||||
|
return queryset
|
||||||
|
|
||||||
|
|
||||||
|
class FilterBackend(QueryParamsFilterMixin,
|
||||||
|
filters.BaseFilterBackend):
|
||||||
|
"""
|
||||||
|
Default filter backend.
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class IsProjectMemberFilterBackend(FilterBackend):
|
||||||
|
def filter_queryset(self, request, queryset, view):
|
||||||
|
queryset = super(IsProjectMemberFilterBackend, self).filter_queryset(
|
||||||
|
request, queryset, view)
|
||||||
|
user = request.user
|
||||||
|
|
||||||
|
if user.is_authenticated():
|
||||||
|
queryset = queryset.filter(Q(project__members=request.user) |
|
||||||
|
Q(project__owner=request.user))
|
||||||
|
return queryset.distinct()
|
|
@ -0,0 +1,17 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
DATE_FORMAT = "d/m/Y"
|
||||||
|
SHORT_DATE_FORMAT = "d/m/Y"
|
||||||
|
|
||||||
|
DATE_INPUT_FORMATS = (
|
||||||
|
'%Y-%m-%d', '%m/%d/%Y', '%d/%m/%Y', '%b %d %Y',
|
||||||
|
'%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y',
|
||||||
|
'%B %d, %Y', '%d %B %Y', '%d %B, %Y'
|
||||||
|
)
|
||||||
|
|
||||||
|
DATETIME_INPUT_FORMATS = (
|
||||||
|
'%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d',
|
||||||
|
'%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y',
|
||||||
|
'%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y'
|
||||||
|
)
|
||||||
|
DECIMAL_SEPARATOR = '.'
|
|
@ -0,0 +1,15 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
DATE_FORMAT = "d/m/Y"
|
||||||
|
SHORT_DATE_FORMAT = "d/m/Y"
|
||||||
|
DATE_INPUT_FORMATS = (
|
||||||
|
'%Y-%m-%d', '%m/%d/%Y', '%d/%m/%Y', '%b %d %Y',
|
||||||
|
'%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y',
|
||||||
|
'%B %d, %Y', '%d %B %Y', '%d %B, %Y'
|
||||||
|
)
|
||||||
|
DATETIME_INPUT_FORMATS = (
|
||||||
|
'%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d',
|
||||||
|
'%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y',
|
||||||
|
'%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y'
|
||||||
|
)
|
||||||
|
DECIMAL_SEPARATOR = '.'
|
|
@ -0,0 +1,24 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from celery import task
|
||||||
|
|
||||||
|
from django.core import mail
|
||||||
|
|
||||||
|
|
||||||
|
@task(name='send-mail')
|
||||||
|
def send_mail(subject, body, to):
|
||||||
|
email_message = mail.EmailMessage(body=body, subject=subject, to=to)
|
||||||
|
email_message.content_subtype = "html"
|
||||||
|
email_message.send()
|
||||||
|
|
||||||
|
|
||||||
|
@task(name='send-bulk-mail')
|
||||||
|
def send_bulk_mail(emails):
|
||||||
|
emessages = [mail.EmailMessage(body=body, subject=subject, to=to)
|
||||||
|
for subject, body, to in emails]
|
||||||
|
|
||||||
|
for msg in emessages:
|
||||||
|
msg.content_subtype = "html"
|
||||||
|
|
||||||
|
connection = mail.get_connection()
|
||||||
|
connection.send_messages(emessages)
|
|
@ -0,0 +1,50 @@
|
||||||
|
import time
|
||||||
|
|
||||||
|
from django.conf import settings
|
||||||
|
from django import http
|
||||||
|
from django.utils.cache import patch_vary_headers
|
||||||
|
from django.utils.http import cookie_date
|
||||||
|
from django.utils.importlib import import_module
|
||||||
|
|
||||||
|
from django.contrib.sessions.middleware import SessionMiddleware
|
||||||
|
|
||||||
|
|
||||||
|
class GreenmineSessionMiddleware(SessionMiddleware):
|
||||||
|
def process_request(self, request):
|
||||||
|
engine = import_module(settings.SESSION_ENGINE)
|
||||||
|
session_key = request.META.get(settings.SESSION_HEADER_NAME, None)
|
||||||
|
if not session_key:
|
||||||
|
session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME, None)
|
||||||
|
request.session = engine.SessionStore(session_key)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
COORS_ALLOWED_ORIGINS = getattr(settings, 'COORS_ALLOWED_ORIGINS', '*')
|
||||||
|
COORS_ALLOWED_METHODS = getattr(settings, 'COORS_ALLOWED_METHODS',
|
||||||
|
['POST', 'GET', 'OPTIONS', 'PUT', 'DELETE', 'PATCH'])
|
||||||
|
COORS_ALLOWED_HEADERS = getattr(settings, 'COORS_ALLOWED_HEADERS',
|
||||||
|
['Content-Type', 'X-Requested-With',
|
||||||
|
'Authorization', 'Accept-Encoding',
|
||||||
|
'X-Disable-Pagination'])
|
||||||
|
COORS_ALLOWED_CREDENTIALS = getattr(settings, 'COORS_ALLOWED_CREDENTIALS', True)
|
||||||
|
|
||||||
|
|
||||||
|
class CoorsMiddleware(object):
|
||||||
|
def _populate_response(self, response):
|
||||||
|
response['Access-Control-Allow-Origin'] = COORS_ALLOWED_ORIGINS
|
||||||
|
response['Access-Control-Allow-Methods'] = ",".join(COORS_ALLOWED_METHODS)
|
||||||
|
response['Access-Control-Allow-Headers'] = ",".join(COORS_ALLOWED_HEADERS)
|
||||||
|
|
||||||
|
if COORS_ALLOWED_CREDENTIALS:
|
||||||
|
response['Access-Control-Allow-Credentials'] = 'true'
|
||||||
|
|
||||||
|
def process_request(self, request):
|
||||||
|
if 'HTTP_ACCESS_CONTROL_REQUEST_METHOD' in request.META:
|
||||||
|
response = http.HttpResponse()
|
||||||
|
self._populate_response(response)
|
||||||
|
return response
|
||||||
|
return None
|
||||||
|
|
||||||
|
def process_response(self, request, response):
|
||||||
|
self._populate_response(response)
|
||||||
|
return response
|
|
@ -0,0 +1,28 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db.models import signals
|
||||||
|
from django.utils.timezone import now
|
||||||
|
from django.dispatch import receiver
|
||||||
|
|
||||||
|
import uuid
|
||||||
|
|
||||||
|
|
||||||
|
# Centralized uuid attachment and ref generation
|
||||||
|
@receiver(signals.pre_save)
|
||||||
|
def attach_uuid(sender, instance, **kwargs):
|
||||||
|
fields = sender._meta.init_name_map()
|
||||||
|
|
||||||
|
if 'modified_date' in fields:
|
||||||
|
instance.modified_date = now()
|
||||||
|
|
||||||
|
# if sender class does not have uuid field.
|
||||||
|
if 'uuid' in fields:
|
||||||
|
if not instance.uuid:
|
||||||
|
instance.uuid = str(uuid.uuid1())
|
||||||
|
|
||||||
|
|
||||||
|
# Patch api view for correctly return 401 responses on
|
||||||
|
# request is authenticated instead of 403
|
||||||
|
from . import monkey
|
||||||
|
monkey.patch_api_view()
|
||||||
|
monkey.patch_serializer()
|
|
@ -0,0 +1,61 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import print_function
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
def patch_api_view():
|
||||||
|
from rest_framework import views
|
||||||
|
from rest_framework import status, exceptions
|
||||||
|
from rest_framework.response import Response
|
||||||
|
|
||||||
|
if hasattr(views, "_patched"):
|
||||||
|
return
|
||||||
|
|
||||||
|
views._APIView = views.APIView
|
||||||
|
views._patched = True
|
||||||
|
|
||||||
|
class APIView(views.APIView):
|
||||||
|
def handle_exception(self, exc):
|
||||||
|
if isinstance(exc, exceptions.NotAuthenticated):
|
||||||
|
return Response({'detail': 'Not authenticated'},
|
||||||
|
status=status.HTTP_401_UNAUTHORIZED,
|
||||||
|
exception=True)
|
||||||
|
return super(APIView, self).handle_exception(exc)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def as_view(cls, **initkwargs):
|
||||||
|
view = super(views._APIView, cls).as_view(**initkwargs)
|
||||||
|
view.cls_instance = cls(**initkwargs)
|
||||||
|
view.cls = cls
|
||||||
|
return view
|
||||||
|
|
||||||
|
print("Patching APIView", file=sys.stderr)
|
||||||
|
views.APIView = APIView
|
||||||
|
|
||||||
|
|
||||||
|
def patch_serializer():
|
||||||
|
from rest_framework import serializers
|
||||||
|
if hasattr(serializers.BaseSerializer, "_patched"):
|
||||||
|
return
|
||||||
|
|
||||||
|
def to_native(self, obj):
|
||||||
|
"""
|
||||||
|
Serialize objects -> primitives.
|
||||||
|
"""
|
||||||
|
ret = self._dict_class()
|
||||||
|
ret.fields = self._dict_class()
|
||||||
|
ret.empty = obj is None
|
||||||
|
|
||||||
|
for field_name, field in self.fields.items():
|
||||||
|
field.initialize(parent=self, field_name=field_name)
|
||||||
|
key = self.get_field_key(field_name)
|
||||||
|
ret.fields[key] = field
|
||||||
|
|
||||||
|
if obj is not None:
|
||||||
|
value = field.field_to_native(obj, field_name)
|
||||||
|
ret[key] = value
|
||||||
|
|
||||||
|
return ret
|
||||||
|
|
||||||
|
serializers.BaseSerializer._patched = True
|
||||||
|
serializers.BaseSerializer.to_native = to_native
|
|
@ -0,0 +1,37 @@
|
||||||
|
# -*- coding: utf-8 -*-i
|
||||||
|
|
||||||
|
from djmail import template_mail
|
||||||
|
|
||||||
|
|
||||||
|
class NotificationSenderMixin(object):
|
||||||
|
create_notification_template = None
|
||||||
|
update_notification_template = None
|
||||||
|
destroy_notification_template = None
|
||||||
|
|
||||||
|
def _send_notification_email(self, template_method, users=None, context=None):
|
||||||
|
mails = template_mail.MagicMailBuilder()
|
||||||
|
for user in users:
|
||||||
|
email = getattr(mails, template_method)(user, context)
|
||||||
|
email.send()
|
||||||
|
|
||||||
|
def post_save(self, obj, created=False):
|
||||||
|
users = obj.get_watchers_to_notify(self.request.user)
|
||||||
|
context = {'changer': self.request.user, 'object': obj}
|
||||||
|
|
||||||
|
if created:
|
||||||
|
self._send_notification_email(self.create_notification_template,
|
||||||
|
users=users, context=context)
|
||||||
|
else:
|
||||||
|
context["changed_fields_dict"] = obj.get_changed_fields_dict(self.request.DATA)
|
||||||
|
self._send_notification_email(self.update_notification_template,
|
||||||
|
users=users, context=context)
|
||||||
|
|
||||||
|
def destroy(self, request, *args, **kwargs):
|
||||||
|
obj = self.get_object()
|
||||||
|
users = obj.get_watchers_to_notify(self.request.user)
|
||||||
|
|
||||||
|
context = {'changer': self.request.user, 'object': obj}
|
||||||
|
self._send_notification_email(self.destroy_notification_template,
|
||||||
|
users=users, context=context)
|
||||||
|
|
||||||
|
return super(NotificationSenderMixin, self).destroy(request, *args, **kwargs)
|
|
@ -0,0 +1,147 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db import models
|
||||||
|
from django.db.models.fields import FieldDoesNotExist
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
import reversion
|
||||||
|
|
||||||
|
|
||||||
|
class WatcherMixin(object):
|
||||||
|
NOTIFY_LEVEL_CHOICES = (
|
||||||
|
("all_owned_projects", _(u"All events on my projects")),
|
||||||
|
("only_watching", _(u"Only events for objects i watch")),
|
||||||
|
("only_assigned", _(u"Only events for objects assigned to me")),
|
||||||
|
("only_owner", _(u"Only events for objects owned by me")),
|
||||||
|
("no_events", _(u"No events")),
|
||||||
|
)
|
||||||
|
|
||||||
|
notify_level = models.CharField(max_length=32, null=False, blank=False,
|
||||||
|
default="all_owned_projects",
|
||||||
|
choices=NOTIFY_LEVEL_CHOICES,
|
||||||
|
verbose_name=_(u"notify level"))
|
||||||
|
notify_changes_by_me = models.BooleanField(null=True, blank=True, default=True,
|
||||||
|
verbose_name=_(u"notify changes by me"))
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
abstract = True
|
||||||
|
|
||||||
|
def allow_notify_owned(self):
|
||||||
|
return (self.notify_level in [
|
||||||
|
"only_owner",
|
||||||
|
"only_assigned",
|
||||||
|
"only_watching",
|
||||||
|
"all_owned_projects",
|
||||||
|
])
|
||||||
|
|
||||||
|
def allow_notify_assigned_to(self):
|
||||||
|
return (self.notify_level in [
|
||||||
|
"only_assigned",
|
||||||
|
"only_watching",
|
||||||
|
"all_owned_projects",
|
||||||
|
])
|
||||||
|
|
||||||
|
def allow_notify_suscribed(self):
|
||||||
|
return (self.notify_level in [
|
||||||
|
"only_watching",
|
||||||
|
"all_owned_projects",
|
||||||
|
])
|
||||||
|
|
||||||
|
def allow_notify_project(self, project):
|
||||||
|
return self.notify_level == "all_owned_projects" and project.owner.pk == self.pk
|
||||||
|
|
||||||
|
def allow_notify_by_me(self, changer):
|
||||||
|
return (changer.pk != self.pk) or self.notify_changes_by_me
|
||||||
|
|
||||||
|
|
||||||
|
class WatchedMixin(object):
|
||||||
|
notifiable_fields = []
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
abstract = True
|
||||||
|
|
||||||
|
@property
|
||||||
|
def last_version(self):
|
||||||
|
version_list = reversion.get_for_object(self)
|
||||||
|
return version_list and version_list[0] or None
|
||||||
|
|
||||||
|
def get_changed_fields_dict(self, data_dict):
|
||||||
|
if self.notifiable_fields:
|
||||||
|
changed_data = {k: v for k, v in data_dict.items()
|
||||||
|
if k in self.notifiable_fields}
|
||||||
|
else:
|
||||||
|
changed_data = data_dict
|
||||||
|
|
||||||
|
field_dict = {}
|
||||||
|
for field_name, data_value in data_dict.items():
|
||||||
|
field_dict.update(self._get_changed_field(field_name, data_value))
|
||||||
|
return field_dict
|
||||||
|
|
||||||
|
def get_watchers_to_notify(self, changer):
|
||||||
|
watchers_to_notify = set()
|
||||||
|
watchers_by_role = self._get_watchers_by_role()
|
||||||
|
|
||||||
|
owner = watchers_by_role.get("owner", None)
|
||||||
|
if (owner and owner.allow_notify_owned()
|
||||||
|
and owner.allow_notify_by_me(changer)):
|
||||||
|
watchers_to_notify.add(owner)
|
||||||
|
|
||||||
|
assigned_to = watchers_by_role.get("assigned_to", None)
|
||||||
|
if (assigned_to and assigned_to.allow_notify_assigned_to()
|
||||||
|
and assigned_to.allow_notify_by_me(changer)):
|
||||||
|
watchers_to_notify.add(assigned_to)
|
||||||
|
|
||||||
|
suscribed_watchers = watchers_by_role.get("suscribed_watchers", None)
|
||||||
|
if suscribed_watchers:
|
||||||
|
for suscribed_watcher in suscribed_watchers:
|
||||||
|
if (suscribed_watcher and suscribed_watcher.allow_notify_suscribed()
|
||||||
|
and suscribed_watcher.allow_notify_by_me(changer)):
|
||||||
|
watchers_to_notify.add(suscribed_watcher)
|
||||||
|
|
||||||
|
(project, project_owner) = watchers_by_role.get("project_owner", (None, None))
|
||||||
|
if project_owner \
|
||||||
|
and project_owner.allow_notify_project(project) \
|
||||||
|
and project_owner.allow_notify_by_me(self._changer):
|
||||||
|
watchers_to_notify.add(project_owner)
|
||||||
|
|
||||||
|
if changer.notify_changes_by_me:
|
||||||
|
watchers_to_notify.add(changer)
|
||||||
|
|
||||||
|
return watchers_to_notify
|
||||||
|
|
||||||
|
def _get_changed_field_verbose_name(self, field_name):
|
||||||
|
try:
|
||||||
|
return self._meta.get_field(field_name).verbose_name
|
||||||
|
except FieldDoesNotExist:
|
||||||
|
return field_name
|
||||||
|
|
||||||
|
def _get_changed_field_old_value(self, field_name, data_value):
|
||||||
|
return (self.last_version and self.last_version.field_dict.get(field_name, data_value) or None)
|
||||||
|
|
||||||
|
def _get_changed_field_new_value(self, field_name, data_value):
|
||||||
|
return getattr(self, field_name, data_value)
|
||||||
|
|
||||||
|
def _get_changed_field(self, field_name, data_value):
|
||||||
|
verbose_name = self._get_changed_field_verbose_name(field_name)
|
||||||
|
old_value = self._get_changed_field_old_value(field_name, data_value)
|
||||||
|
new_value = self._get_changed_field_new_value(field_name, data_value)
|
||||||
|
|
||||||
|
return {field_name: {
|
||||||
|
"verbose_name": verbose_name,
|
||||||
|
"old_value": old_value,
|
||||||
|
"new_value": new_value,
|
||||||
|
}}
|
||||||
|
|
||||||
|
def _get_watchers_by_role(self):
|
||||||
|
"""
|
||||||
|
Return the actual instances of watchers of this object, classified by role.
|
||||||
|
For example:
|
||||||
|
|
||||||
|
return {
|
||||||
|
"owner": self.owner,
|
||||||
|
"assigned_to": self.assigned_to,
|
||||||
|
"suscribed_watchers": self.watchers.all(),
|
||||||
|
"project_owner": (self.project, self.project.owner),
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
raise NotImplementedError("You must subclass WatchedMixin and provide _get_watchers_by_role method")
|
|
@ -0,0 +1,38 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from rest_framework.templatetags.rest_framework import replace_query_param
|
||||||
|
|
||||||
|
|
||||||
|
class ConditionalPaginationMixin(object):
|
||||||
|
def get_paginate_by(self, *args, **kwargs):
|
||||||
|
if "HTTP_X_DISABLE_PAGINATION" in self.request.META:
|
||||||
|
return None
|
||||||
|
return super().get_paginate_by(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
class HeadersPaginationMixin(object):
|
||||||
|
def paginate_queryset(self, queryset, page_size=None):
|
||||||
|
page = super().paginate_queryset(queryset=queryset, page_size=page_size)
|
||||||
|
|
||||||
|
if page is None:
|
||||||
|
return page
|
||||||
|
|
||||||
|
self.headers["X-Pagination-Count"] = page.paginator.count
|
||||||
|
self.headers["X-Paginated"] = "true"
|
||||||
|
|
||||||
|
if page.has_next():
|
||||||
|
num = page.next_page_number()
|
||||||
|
url = self.request.build_absolute_uri()
|
||||||
|
url = replace_query_param(url, "page", num)
|
||||||
|
self.headers["X-Pagination-Next"] = url
|
||||||
|
|
||||||
|
if page.has_previous():
|
||||||
|
num = page.previous_page_number()
|
||||||
|
url = self.request.build_absolute_uri()
|
||||||
|
url = replace_query_param(url, "page", num)
|
||||||
|
self.headers["X-Pagination-Prev"] = url
|
||||||
|
|
||||||
|
return page
|
||||||
|
|
||||||
|
def get_pagination_serializer(self, page):
|
||||||
|
return self.get_serializer(page.object_list, many=True)
|
|
@ -0,0 +1,61 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from rest_framework import permissions
|
||||||
|
|
||||||
|
from greenmine.projects.models import Membership
|
||||||
|
|
||||||
|
|
||||||
|
def has_project_perm(user, project, perm):
|
||||||
|
if user.is_authenticated():
|
||||||
|
try:
|
||||||
|
membership = Membership.objects.get(project=project, user=user)
|
||||||
|
if membership.role.permissions.filter(codename=perm).count() > 0:
|
||||||
|
return True
|
||||||
|
|
||||||
|
except Membership.DoesNotExist:
|
||||||
|
pass
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
class BasePermission(permissions.BasePermission):
|
||||||
|
get_permission = None
|
||||||
|
put_permission = None
|
||||||
|
patch_permission = None
|
||||||
|
delete_permission = None
|
||||||
|
safe_methods = ['HEAD', 'OPTIONS']
|
||||||
|
path_to_project = []
|
||||||
|
|
||||||
|
def has_object_permission(self, request, view, obj):
|
||||||
|
# Safe method
|
||||||
|
if request.method in self.safe_methods:
|
||||||
|
return True
|
||||||
|
|
||||||
|
# Object owner
|
||||||
|
if getattr(obj, "owner", None) == request.user:
|
||||||
|
return True
|
||||||
|
|
||||||
|
project_obj = obj
|
||||||
|
for attrib in self.path_to_project:
|
||||||
|
project_obj = getattr(project_obj, attrib)
|
||||||
|
|
||||||
|
# Project owner
|
||||||
|
if project_obj.owner == request.user:
|
||||||
|
return True
|
||||||
|
|
||||||
|
# Members permissions
|
||||||
|
if request.method == "GET":
|
||||||
|
return has_project_perm(request.user, project_obj, self.get_permission)
|
||||||
|
|
||||||
|
elif request.method == "PUT":
|
||||||
|
return has_project_perm(request.user, project_obj, self.put_permission)
|
||||||
|
|
||||||
|
elif request.method == "DELETE":
|
||||||
|
return has_project_perm(request.user, project_obj, self.delete_permission)
|
||||||
|
|
||||||
|
elif request.method == "PATCH":
|
||||||
|
return has_project_perm(request.user, project_obj, self.patch_permission)
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from rest_framework import routers
|
||||||
|
|
||||||
|
|
||||||
|
class DefaultRouter(routers.DefaultRouter):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = ["DefaultRouter"]
|
|
@ -0,0 +1,75 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db.models.loading import get_model
|
||||||
|
|
||||||
|
from rest_framework.response import Response
|
||||||
|
from rest_framework import viewsets
|
||||||
|
|
||||||
|
from greenmine.base import exceptions as excp
|
||||||
|
from greenmine.projects.userstories.serializers import UserStorySerializer
|
||||||
|
from greenmine.projects.tasks.serializers import TaskSerializer
|
||||||
|
from greenmine.projects.issues.serializers import IssueSerializer
|
||||||
|
|
||||||
|
|
||||||
|
class SearchViewSet(viewsets.ViewSet):
|
||||||
|
def list(self, request, **kwargs):
|
||||||
|
project_model = get_model("projects", "Project")
|
||||||
|
text = request.QUERY_PARAMS.get('text', "")
|
||||||
|
project_id = request.QUERY_PARAMS.get('project', None)
|
||||||
|
|
||||||
|
try:
|
||||||
|
project = self._get_project(project_id)
|
||||||
|
except (project_model.DoesNotExist, TypeError):
|
||||||
|
raise excp.PermissionDenied({"detail": "Wrong project id"})
|
||||||
|
|
||||||
|
result = {
|
||||||
|
"userstories": self._search_user_stories(project, text),
|
||||||
|
"tasks": self._search_tasks(project, text),
|
||||||
|
"issues": self._search_issues(project, text)
|
||||||
|
}
|
||||||
|
|
||||||
|
result["count"] = sum(map(lambda x: len(x), result.values()))
|
||||||
|
return Response(result)
|
||||||
|
|
||||||
|
def _get_project(self, project_id):
|
||||||
|
project_model = get_model("projects", "Project")
|
||||||
|
own_projects = (project_model.objects
|
||||||
|
.filter(members=self.request.user))
|
||||||
|
|
||||||
|
return own_projects.get(pk=project_id)
|
||||||
|
|
||||||
|
def _search_user_stories(self, project, text):
|
||||||
|
where_clause = ("to_tsvector(userstories_userstory.subject || "
|
||||||
|
"userstories_userstory.description) @@ plainto_tsquery(%s)")
|
||||||
|
|
||||||
|
model_cls = get_model("userstories", "UserStory")
|
||||||
|
queryset = (model_cls.objects
|
||||||
|
.extra(where=[where_clause], params=[text])
|
||||||
|
.filter(project_id=project.pk)[:50])
|
||||||
|
|
||||||
|
serializer = UserStorySerializer(queryset, many=True)
|
||||||
|
return serializer.data
|
||||||
|
|
||||||
|
def _search_tasks(self, project, text):
|
||||||
|
where_clause = ("to_tsvector(tasks_task.subject || tasks_task.description) "
|
||||||
|
"@@ plainto_tsquery(%s)")
|
||||||
|
|
||||||
|
model_cls = get_model("tasks", "Task")
|
||||||
|
queryset = (model_cls.objects
|
||||||
|
.extra(where=[where_clause], params=[text])
|
||||||
|
.filter(project_id=project.pk)[:50])
|
||||||
|
|
||||||
|
serializer = TaskSerializer(queryset, many=True)
|
||||||
|
return serializer.data
|
||||||
|
|
||||||
|
def _search_issues(self, project, text):
|
||||||
|
where_clause = ("to_tsvector(issues_issue.subject || issues_issue.description) "
|
||||||
|
"@@ plainto_tsquery(%s)")
|
||||||
|
|
||||||
|
model_cls = get_model("issues", "Issue")
|
||||||
|
queryset = (model_cls.objects
|
||||||
|
.extra(where=[where_clause], params=[text])
|
||||||
|
.filter(project_id=project.pk)[:50])
|
||||||
|
|
||||||
|
serializer = IssueSerializer(queryset, many=True)
|
||||||
|
return serializer.data
|
|
@ -0,0 +1,3 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from rest_framework import serializers
|
||||||
|
|
||||||
|
|
||||||
|
class PickleField(serializers.WritableField):
|
||||||
|
"""
|
||||||
|
Pickle objects serializer.
|
||||||
|
"""
|
||||||
|
def to_native(self, obj):
|
||||||
|
return obj
|
||||||
|
|
||||||
|
def from_native(self, data):
|
||||||
|
return data
|
|
@ -0,0 +1,17 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.conf import settings
|
||||||
|
from django.core.files import storage
|
||||||
|
|
||||||
|
import django_sites as sites
|
||||||
|
|
||||||
|
class FileSystemStorage(storage.FileSystemStorage):
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
|
if settings.MEDIA_URL.startswith("/"):
|
||||||
|
site = sites.get_current()
|
||||||
|
url_tmpl = "{scheme}//{domain}{url}"
|
||||||
|
scheme = site.scheme and "{0}:".format(site.scheme) or ""
|
||||||
|
self.base_url = url_tmpl.format(scheme=scheme, domain=site.domain,
|
||||||
|
url=settings.MEDIA_URL)
|
|
@ -0,0 +1,52 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
from django.contrib import admin
|
||||||
|
from django.contrib.auth.models import Group, Permission
|
||||||
|
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
|
||||||
|
|
||||||
|
from .models import Role, User
|
||||||
|
from .forms import UserChangeForm, UserCreationForm
|
||||||
|
|
||||||
|
|
||||||
|
admin.site.unregister(Group)
|
||||||
|
|
||||||
|
|
||||||
|
class RoleAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ["name"]
|
||||||
|
filter_horizontal = ('permissions',)
|
||||||
|
|
||||||
|
def formfield_for_manytomany(self, db_field, request=None, **kwargs):
|
||||||
|
if db_field.name == 'permissions':
|
||||||
|
qs = kwargs.get('queryset', db_field.rel.to.objects)
|
||||||
|
# Avoid a major performance hit resolving permission names which
|
||||||
|
# triggers a content_type load:
|
||||||
|
kwargs['queryset'] = qs.select_related('content_type')
|
||||||
|
return super(RoleAdmin, self).formfield_for_manytomany(
|
||||||
|
db_field, request=request, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
admin.site.register(Role, RoleAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
class UserAdmin(DjangoUserAdmin):
|
||||||
|
fieldsets = (
|
||||||
|
(None, {'fields': ('username', 'password')}),
|
||||||
|
(_('Personal info'), {'fields': ('first_name', 'last_name', 'email', 'description', 'photo')}),
|
||||||
|
(_('Extra info'), {'fields': ('color', 'default_language', 'default_timezone', 'token', 'colorize_tags')}),
|
||||||
|
(_('Notifications info'), {'fields': ("notify_level", "notify_changes_by_me",)}),
|
||||||
|
(_('Permissions'), {'fields': ('is_active', 'is_staff', 'is_superuser',)}),
|
||||||
|
(_('Important dates'), {'fields': ('last_login', 'date_joined')}),
|
||||||
|
)
|
||||||
|
form = UserChangeForm
|
||||||
|
add_form = UserCreationForm
|
||||||
|
|
||||||
|
|
||||||
|
class PermissionAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ['name', 'content_type', 'codename']
|
||||||
|
list_filter = ['content_type']
|
||||||
|
|
||||||
|
|
||||||
|
admin.site.register(User, UserAdmin)
|
||||||
|
admin.site.register(Permission, PermissionAdmin)
|
|
@ -0,0 +1,130 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import uuid
|
||||||
|
|
||||||
|
from django.db.models.loading import get_model
|
||||||
|
from django.db.models import Q
|
||||||
|
from django.contrib.auth import logout, login, authenticate
|
||||||
|
|
||||||
|
from rest_framework.decorators import list_route, action
|
||||||
|
from rest_framework.response import Response
|
||||||
|
from rest_framework.permissions import IsAuthenticated, AllowAny
|
||||||
|
from rest_framework import status, viewsets
|
||||||
|
|
||||||
|
from djmail.template_mail import MagicMailBuilder
|
||||||
|
|
||||||
|
from greenmine.base import exceptions as exc
|
||||||
|
from greenmine.base.filters import FilterBackend
|
||||||
|
from greenmine.base.api import ModelCrudViewSet
|
||||||
|
|
||||||
|
from .models import User, Role
|
||||||
|
from .serializers import UserSerializer, RoleSerializer, RecoverySerializer
|
||||||
|
|
||||||
|
|
||||||
|
class RolesViewSet(viewsets.ViewSet):
|
||||||
|
permission_classes = (IsAuthenticated,)
|
||||||
|
serializer_class = RoleSerializer
|
||||||
|
|
||||||
|
def list(self, request, pk=None):
|
||||||
|
queryset = Role.objects.all()
|
||||||
|
serializer = self.serializer_class(queryset, many=True)
|
||||||
|
return Response(serializer.data)
|
||||||
|
|
||||||
|
def retrieve(self, request, pk=None):
|
||||||
|
try:
|
||||||
|
role = Role.objects.get(pk=pk)
|
||||||
|
except Role.DoesNotExist:
|
||||||
|
raise exc.NotFound()
|
||||||
|
|
||||||
|
serializer = self.serializer_class(role)
|
||||||
|
return Response(serializer.data)
|
||||||
|
|
||||||
|
|
||||||
|
class ProjectMembershipFilter(FilterBackend):
|
||||||
|
def filter_queryset(self, request, queryset, view):
|
||||||
|
queryset = super().filter_queryset(request, queryset, view)
|
||||||
|
|
||||||
|
if request.user.is_superuser:
|
||||||
|
return queryset
|
||||||
|
|
||||||
|
project_model = get_model("projects", "Project")
|
||||||
|
own_projects = project_model.objects.filter(members=request.user)
|
||||||
|
|
||||||
|
project = request.QUERY_PARAMS.get('project', None)
|
||||||
|
if project is not None:
|
||||||
|
own_projects = own_projects.filter(pk=project)
|
||||||
|
|
||||||
|
queryset = (queryset.filter(projects__in=own_projects)
|
||||||
|
.order_by('username').distinct())
|
||||||
|
return queryset
|
||||||
|
|
||||||
|
|
||||||
|
class UsersViewSet(ModelCrudViewSet):
|
||||||
|
permission_classes = (IsAuthenticated,)
|
||||||
|
serializer_class = UserSerializer
|
||||||
|
queryset = User.objects.all()
|
||||||
|
filter_backends = (ProjectMembershipFilter,)
|
||||||
|
|
||||||
|
def pre_conditions_on_save(self, obj):
|
||||||
|
if not self.request.user.is_superuser and obj.id != self.request.user.id:
|
||||||
|
raise exc.PreconditionError()
|
||||||
|
|
||||||
|
def pre_conditions_on_delete(self, obj):
|
||||||
|
if not self.request.user.is_superuser and obj.id != self.request.user.id:
|
||||||
|
raise exc.PreconditionError()
|
||||||
|
|
||||||
|
@list_route(permission_classes=[AllowAny], methods=["POST"])
|
||||||
|
def password_recovery(self, request, pk=None):
|
||||||
|
username_or_email = request.DATA.get('username', None)
|
||||||
|
|
||||||
|
if not username_or_email:
|
||||||
|
raise exc.WrongArguments("Invalid username or email")
|
||||||
|
|
||||||
|
try:
|
||||||
|
queryset = User.objects.all()
|
||||||
|
user = queryset.get(Q(username=username_or_email) |
|
||||||
|
Q(email=username_or_email))
|
||||||
|
except User.DoesNotExist:
|
||||||
|
raise exc.WrongArguments("Invalid username or email")
|
||||||
|
|
||||||
|
user.token = str(uuid.uuid1())
|
||||||
|
user.save(update_fields=["token"])
|
||||||
|
|
||||||
|
mbuilder = MagicMailBuilder()
|
||||||
|
email = mbuilder.password_recovery(user.email, {"user": user})
|
||||||
|
email.send()
|
||||||
|
|
||||||
|
return Response({"detail": "Mail sended successful!"})
|
||||||
|
|
||||||
|
@list_route(permission_classes=[AllowAny], methods=["POST"])
|
||||||
|
def change_password_from_recovery(self, request, pk=None):
|
||||||
|
"""
|
||||||
|
Change password with token (from password recovery step).
|
||||||
|
"""
|
||||||
|
serializer = RecoverySerializer(data=request.DATA, many=False)
|
||||||
|
if not serializer.is_valid():
|
||||||
|
raise exc.WrongArguments("Token is invalid")
|
||||||
|
|
||||||
|
user = User.objects.get(token=serializer.data["token"])
|
||||||
|
user.set_password(serializer.data["password"])
|
||||||
|
user.token = None
|
||||||
|
user.save(update_fields=["password", "token"])
|
||||||
|
|
||||||
|
return Response(status=status.HTTP_204_NO_CONTENT)
|
||||||
|
|
||||||
|
@list_route(permission_classes=[IsAuthenticated], methods=["POST"])
|
||||||
|
def change_password(self, request, pk=None):
|
||||||
|
"""
|
||||||
|
Change password to current logged user.
|
||||||
|
"""
|
||||||
|
password = request.DATA.get("password")
|
||||||
|
|
||||||
|
if not password:
|
||||||
|
raise exc.WrongArguments("incomplete argiments")
|
||||||
|
|
||||||
|
if len(password) < 6:
|
||||||
|
raise exc.WrongArguments("invalid password length")
|
||||||
|
|
||||||
|
request.user.set_password(password)
|
||||||
|
request.user.save(update_fields=["password"])
|
||||||
|
return Response(status=status.HTTP_204_NO_CONTENT)
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,27 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"pk": 1,
|
||||||
|
"model": "users.user",
|
||||||
|
"fields": {
|
||||||
|
"username": "admin",
|
||||||
|
"first_name": "",
|
||||||
|
"last_name": "",
|
||||||
|
"description": "",
|
||||||
|
"default_language": "",
|
||||||
|
"color": "",
|
||||||
|
"photo": "",
|
||||||
|
"is_active": true,
|
||||||
|
"colorize_tags": false,
|
||||||
|
"default_timezone": "",
|
||||||
|
"is_superuser": true,
|
||||||
|
"token": "",
|
||||||
|
"is_staff": true,
|
||||||
|
"last_login": "2013-04-04T07:36:09.880Z",
|
||||||
|
"groups": [],
|
||||||
|
"user_permissions": [],
|
||||||
|
"password": "pbkdf2_sha256$10000$oRIbCKOL1U3w$/gaYMnOlc/GnN4mn3UUXvXpk2Hx0vvht6Uqhu46aikI=",
|
||||||
|
"email": "niwi@niwi.be",
|
||||||
|
"date_joined": "2013-04-01T13:48:21.711Z"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
|
@ -0,0 +1,33 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django import forms
|
||||||
|
from django.contrib.auth.forms import (
|
||||||
|
UserCreationForm as DjangoUserCreationForm,
|
||||||
|
UserChangeForm as DjangoUserChangeForm
|
||||||
|
)
|
||||||
|
from .models import User
|
||||||
|
|
||||||
|
|
||||||
|
class UserCreationForm(DjangoUserCreationForm):
|
||||||
|
def clean_username(self):
|
||||||
|
# Since User.username is unique, this check is redundant,
|
||||||
|
# but it sets a nicer error message than the ORM. See #13147.
|
||||||
|
username = self.cleaned_data["username"]
|
||||||
|
try:
|
||||||
|
User._default_manager.get(username=username)
|
||||||
|
except User.DoesNotExist:
|
||||||
|
return username
|
||||||
|
raise forms.ValidationError(self.error_messages['duplicate_username'])
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
model = User
|
||||||
|
fields = ('username',)
|
||||||
|
|
||||||
|
|
||||||
|
class UserChangeForm(DjangoUserChangeForm):
|
||||||
|
notify_level = forms.ChoiceField(choices=User.NOTIFY_LEVEL_CHOICES)
|
||||||
|
notify_changes_by_me = forms.BooleanField()
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
model = User
|
||||||
|
|
|
@ -0,0 +1,67 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db import models
|
||||||
|
from django.dispatch import receiver
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
from django.contrib.auth.models import UserManager, AbstractUser
|
||||||
|
|
||||||
|
from greenmine.base.notifications.models import WatcherMixin
|
||||||
|
|
||||||
|
|
||||||
|
class User(WatcherMixin, AbstractUser):
|
||||||
|
color = models.CharField(max_length=9, null=False, blank=True, default="#669933",
|
||||||
|
verbose_name=_('color'))
|
||||||
|
description = models.TextField(null=False, blank=True,
|
||||||
|
verbose_name=_('description'))
|
||||||
|
photo = models.FileField(upload_to='files/msg', max_length=500, null=True, blank=True,
|
||||||
|
verbose_name=_('photo'))
|
||||||
|
default_language = models.CharField(max_length=20, null=False, blank=True, default='',
|
||||||
|
verbose_name=_('default language'))
|
||||||
|
default_timezone = models.CharField(max_length=20, null=False, blank=True, default='',
|
||||||
|
verbose_name=_('default timezone'))
|
||||||
|
token = models.CharField(max_length=200, null=True, blank=True, default=None,
|
||||||
|
verbose_name=_('token'))
|
||||||
|
colorize_tags = models.BooleanField(null=False, blank=True, default=False,
|
||||||
|
verbose_name=_('colorize tags'))
|
||||||
|
objects = UserManager()
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
ordering = ["username"]
|
||||||
|
|
||||||
|
def get_full_name(self):
|
||||||
|
return super().get_full_name() or self.username or self.email
|
||||||
|
|
||||||
|
|
||||||
|
class Role(models.Model):
|
||||||
|
name = models.CharField(max_length=200, null=False, blank=False,
|
||||||
|
verbose_name=_('name'))
|
||||||
|
slug = models.SlugField(max_length=250, unique=True, null=False, blank=True,
|
||||||
|
verbose_name=_('slug'))
|
||||||
|
permissions = models.ManyToManyField('auth.Permission', related_name='roles',
|
||||||
|
verbose_name=_('permissions'))
|
||||||
|
order = models.IntegerField(default=10, null=False, blank=False,
|
||||||
|
verbose_name=_("order"))
|
||||||
|
computable = models.BooleanField(default=True)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
verbose_name = 'role'
|
||||||
|
verbose_name_plural = 'roles'
|
||||||
|
ordering = ['order', 'slug']
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.name
|
||||||
|
|
||||||
|
|
||||||
|
# On Role object is changed, update all membership
|
||||||
|
# related to current role.
|
||||||
|
@receiver(models.signals.post_save, sender=Role,
|
||||||
|
dispatch_uid='role_post_save')
|
||||||
|
def role_post_save(sender, instance, created, **kwargs):
|
||||||
|
# ignore if object is just created
|
||||||
|
if created:
|
||||||
|
return
|
||||||
|
|
||||||
|
unique_projects = set(map(lambda x: x.project, instance.memberships.all()))
|
||||||
|
for project in unique_projects:
|
||||||
|
project.update_role_points()
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from rest_framework import serializers
|
||||||
|
from .models import User, Role
|
||||||
|
|
||||||
|
|
||||||
|
class UserSerializer(serializers.ModelSerializer):
|
||||||
|
projects = serializers.SerializerMethodField('get_projects')
|
||||||
|
full_name = serializers.CharField(source='get_full_name', required=False)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
model = User
|
||||||
|
fields = ('id', 'username', 'first_name', 'last_name', 'full_name', 'email',
|
||||||
|
'color', 'description', 'default_language', 'default_timezone',
|
||||||
|
'is_active', 'photo', 'projects')
|
||||||
|
|
||||||
|
def get_projects(self, obj):
|
||||||
|
return [{"id": x.id, "name": x.name} for x in obj.projects.all()]
|
||||||
|
|
||||||
|
|
||||||
|
class RecoverySerializer(serializers.Serializer):
|
||||||
|
token = serializers.CharField(max_length=200)
|
||||||
|
password = serializers.CharField(min_length=6)
|
||||||
|
|
||||||
|
def validate_token(self, attrs, source):
|
||||||
|
token = attrs[source]
|
||||||
|
try:
|
||||||
|
user = User.objects.get(token=token)
|
||||||
|
except User.DoesNotExist:
|
||||||
|
raise serializers.ValidationError("invalid token")
|
||||||
|
|
||||||
|
return attrs
|
||||||
|
|
||||||
|
|
||||||
|
class RoleSerializer(serializers.ModelSerializer):
|
||||||
|
class Meta:
|
||||||
|
model = Role
|
||||||
|
fields = ('id', 'name', 'slug', 'permissions', 'computable')
|
|
@ -0,0 +1 @@
|
||||||
|
Password recovery token: {{ user.token }}
|
|
@ -0,0 +1 @@
|
||||||
|
Password recovery
|
|
@ -0,0 +1,23 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db.models.loading import get_model
|
||||||
|
|
||||||
|
|
||||||
|
def create_user(id, save=True, is_superuser=False):
|
||||||
|
model = get_model("users", "User")
|
||||||
|
|
||||||
|
instance = model(
|
||||||
|
username="user{0}".format(id),
|
||||||
|
email="user{0}@greenmine.com",
|
||||||
|
first_name="Foo{0}".format(id),
|
||||||
|
last_name="Bar{0}".format(id)
|
||||||
|
)
|
||||||
|
|
||||||
|
instance.set_password(instance.username)
|
||||||
|
if is_superuser:
|
||||||
|
instance.is_staff = True
|
||||||
|
instance.is_superuser = True
|
||||||
|
|
||||||
|
if save:
|
||||||
|
instance.save()
|
||||||
|
return instance
|
|
@ -0,0 +1,38 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.utils import baseconv
|
||||||
|
from django.template.defaultfilters import slugify
|
||||||
|
|
||||||
|
import time
|
||||||
|
|
||||||
|
|
||||||
|
def slugify_uniquely(value, model, slugfield="slug"):
|
||||||
|
"""
|
||||||
|
Returns a slug on a name which is unique within a model's table
|
||||||
|
"""
|
||||||
|
|
||||||
|
suffix = 0
|
||||||
|
potential = base = slugify(value)
|
||||||
|
if len(potential) == 0:
|
||||||
|
potential = 'null'
|
||||||
|
while True:
|
||||||
|
if suffix:
|
||||||
|
potential = "-".join([base, str(suffix)])
|
||||||
|
if not model.objects.filter(**{slugfield: potential}).count():
|
||||||
|
return potential
|
||||||
|
suffix += 1
|
||||||
|
|
||||||
|
|
||||||
|
def ref_uniquely(p, seq_field, model, field='ref'):
|
||||||
|
project = p.__class__.objects.select_for_update().get(pk=p.pk)
|
||||||
|
ref = getattr(project, seq_field) + 1
|
||||||
|
|
||||||
|
while True:
|
||||||
|
params = {field: ref, 'project': project}
|
||||||
|
if not model.objects.filter(**params).exists():
|
||||||
|
setattr(project, seq_field, ref)
|
||||||
|
project.save(update_fields=[seq_field])
|
||||||
|
return ref
|
||||||
|
|
||||||
|
time.sleep(0.0002)
|
||||||
|
ref += 1
|
|
@ -0,0 +1,79 @@
|
||||||
|
"""
|
||||||
|
This file was generated with the customdashboard management command and
|
||||||
|
contains the class for the main dashboard.
|
||||||
|
|
||||||
|
To activate your index dashboard add the following to your settings.py::
|
||||||
|
GRAPPELLI_INDEX_DASHBOARD = 'greenmine-back.dashboard.CustomIndexDashboard'
|
||||||
|
"""
|
||||||
|
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
from django.core.urlresolvers import reverse
|
||||||
|
|
||||||
|
from grappelli.dashboard import modules, Dashboard
|
||||||
|
from grappelli.dashboard.utils import get_admin_site_name
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: Fix me
|
||||||
|
|
||||||
|
class CustomIndexDashboard(Dashboard):
|
||||||
|
"""
|
||||||
|
Custom index dashboard for www.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def init_with_context(self, context):
|
||||||
|
site_name = get_admin_site_name(context)
|
||||||
|
|
||||||
|
# append a group for "Administration" & "Applications"
|
||||||
|
self.children.append(modules.ModelList(
|
||||||
|
_('Administration'),
|
||||||
|
column=1,
|
||||||
|
collapsible=False,
|
||||||
|
models=('django.contrib.*', 'greenmine.base.users.*',),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
# append a group for "Administration" & "Applications"
|
||||||
|
self.children.append(modules.ModelList(
|
||||||
|
_('Projects'),
|
||||||
|
column=1,
|
||||||
|
collapsible=False,
|
||||||
|
models=('greenmine.projects.*',
|
||||||
|
'greenmine.projects.milestones.*',
|
||||||
|
'greenmine.projects.issues.*',
|
||||||
|
'greenmine.projects.tasks.*',
|
||||||
|
'greenmine.projects.wiki.*',),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
# append another link list module for "support".
|
||||||
|
self.children.append(modules.LinkList(
|
||||||
|
_('Support'),
|
||||||
|
column=2,
|
||||||
|
children=[
|
||||||
|
{
|
||||||
|
'title': _('Django Documentation'),
|
||||||
|
'url': 'http://docs.djangoproject.com/',
|
||||||
|
'external': True,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'title': _('Grappelli Documentation'),
|
||||||
|
'url': 'http://packages.python.org/django-grappelli/',
|
||||||
|
'external': True,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'title': _('Grappelli Google-Code'),
|
||||||
|
'url': 'http://code.google.com/p/django-grappelli/',
|
||||||
|
'external': True,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
))
|
||||||
|
|
||||||
|
# append a recent actions module
|
||||||
|
self.children.append(modules.RecentActions(
|
||||||
|
_('Recent Actions'),
|
||||||
|
limit=5,
|
||||||
|
collapsible=False,
|
||||||
|
column=3,
|
||||||
|
))
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,99 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.contrib import admin
|
||||||
|
from django.contrib.contenttypes import generic
|
||||||
|
|
||||||
|
from greenmine.projects.milestones.admin import MilestoneInline
|
||||||
|
from . import models
|
||||||
|
|
||||||
|
import reversion
|
||||||
|
|
||||||
|
|
||||||
|
class AttachmentAdmin(reversion.VersionAdmin):
|
||||||
|
list_display = ["project", "attached_file", "owner"]
|
||||||
|
|
||||||
|
admin.site.register(models.Attachment, AttachmentAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
class AttachmentInline(generic.GenericTabularInline):
|
||||||
|
model = models.Attachment
|
||||||
|
fields = ("attached_file", "owner")
|
||||||
|
extra = 0
|
||||||
|
|
||||||
|
|
||||||
|
class MembershipAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ['project', 'role', 'user']
|
||||||
|
list_filter = ['project', 'role']
|
||||||
|
|
||||||
|
admin.site.register(models.Membership, MembershipAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
class MembershipInline(admin.TabularInline):
|
||||||
|
model = models.Membership
|
||||||
|
fields = ('user', 'project', 'role')
|
||||||
|
extra = 0
|
||||||
|
|
||||||
|
|
||||||
|
class ProjectAdmin(reversion.VersionAdmin):
|
||||||
|
list_display = ["name", "owner"]
|
||||||
|
# FIXME: commented because on save it raise strange
|
||||||
|
# error 500 (seems bug in django)
|
||||||
|
# inlines = [MembershipInline, MilestoneInline]
|
||||||
|
|
||||||
|
admin.site.register(models.Project, ProjectAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
# User Stories common admins
|
||||||
|
|
||||||
|
class PointsAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ["name", "order", "project"]
|
||||||
|
|
||||||
|
admin.site.register(models.Points, PointsAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
class UserStoryStatusAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ["name", "order", "is_closed", "project"]
|
||||||
|
|
||||||
|
admin.site.register(models.UserStoryStatus, UserStoryStatusAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
# Tasks common admins
|
||||||
|
|
||||||
|
class TaskStatusAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ["name", "order", "is_closed", "project"]
|
||||||
|
|
||||||
|
admin.site.register(models.TaskStatus, TaskStatusAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
# Issues common admins
|
||||||
|
|
||||||
|
class SeverityAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ["name", "order", "project"]
|
||||||
|
|
||||||
|
admin.site.register(models.Severity, SeverityAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
class PriorityAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ["name", "order", "project"]
|
||||||
|
|
||||||
|
admin.site.register(models.Priority, PriorityAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
class IssueTypeAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ["name", "order", "project"]
|
||||||
|
|
||||||
|
admin.site.register(models.IssueType, IssueTypeAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
class IssueStatusAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ["name", "order", "is_closed", "project"]
|
||||||
|
|
||||||
|
admin.site.register(models.IssueStatus, IssueStatusAdmin)
|
||||||
|
|
||||||
|
|
||||||
|
# Questions common admins
|
||||||
|
|
||||||
|
class QuestionStatusAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ["name", "order", "is_closed", "project"]
|
||||||
|
|
||||||
|
admin.site.register(models.QuestionStatus, QuestionStatusAdmin)
|
|
@ -0,0 +1,108 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db.models import Q
|
||||||
|
|
||||||
|
from rest_framework.permissions import IsAuthenticated
|
||||||
|
|
||||||
|
from greenmine.base import filters
|
||||||
|
from greenmine.base.api import ModelCrudViewSet, ModelListViewSet
|
||||||
|
from greenmine.base.notifications.api import NotificationSenderMixin
|
||||||
|
|
||||||
|
from . import serializers
|
||||||
|
from . import models
|
||||||
|
from . import permissions
|
||||||
|
|
||||||
|
|
||||||
|
class ProjectViewSet(ModelCrudViewSet):
|
||||||
|
model = models.Project
|
||||||
|
serializer_class = serializers.ProjectDetailSerializer
|
||||||
|
list_serializer_class = serializers.ProjectSerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.ProjectPermission)
|
||||||
|
|
||||||
|
def get_queryset(self):
|
||||||
|
qs = super(ProjectViewSet, self).get_queryset()
|
||||||
|
qs = qs.filter(Q(owner=self.request.user) |
|
||||||
|
Q(members=self.request.user))
|
||||||
|
return qs.distinct()
|
||||||
|
|
||||||
|
def pre_save(self, obj):
|
||||||
|
obj.owner = self.request.user
|
||||||
|
super(ProjectViewSet, self).pre_save(obj)
|
||||||
|
|
||||||
|
|
||||||
|
class MembershipViewSet(ModelCrudViewSet):
|
||||||
|
model = models.Membership
|
||||||
|
serializer_class = serializers.MembershipSerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.MembershipPermission)
|
||||||
|
|
||||||
|
|
||||||
|
# User Stories commin ViewSets
|
||||||
|
|
||||||
|
class PointsViewSet(ModelListViewSet):
|
||||||
|
model = models.Points
|
||||||
|
serializer_class = serializers.PointsSerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.PointsPermission)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
filter_fields = ('project',)
|
||||||
|
|
||||||
|
|
||||||
|
class UserStoryStatusViewSet(ModelListViewSet):
|
||||||
|
model = models.UserStoryStatus
|
||||||
|
serializer_class = serializers.UserStoryStatusSerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.UserStoryStatusPermission)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
filter_fields = ('project',)
|
||||||
|
|
||||||
|
|
||||||
|
# Tasks commin ViewSets
|
||||||
|
|
||||||
|
class TaskStatusViewSet(ModelListViewSet):
|
||||||
|
model = models.TaskStatus
|
||||||
|
serializer_class = serializers.TaskStatusSerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.TaskStatusPermission)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
filter_fields = ("project",)
|
||||||
|
|
||||||
|
|
||||||
|
# Issues commin ViewSets
|
||||||
|
|
||||||
|
class SeverityViewSet(ModelListViewSet):
|
||||||
|
model = models.Severity
|
||||||
|
serializer_class = serializers.SeveritySerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.SeverityPermission)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
filter_fields = ("project",)
|
||||||
|
|
||||||
|
|
||||||
|
class PriorityViewSet(ModelListViewSet):
|
||||||
|
model = models.Priority
|
||||||
|
serializer_class = serializers.PrioritySerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.PriorityPermission)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
filter_fields = ("project",)
|
||||||
|
|
||||||
|
|
||||||
|
class IssueTypeViewSet(ModelListViewSet):
|
||||||
|
model = models.IssueType
|
||||||
|
serializer_class = serializers.IssueTypeSerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.IssueTypePermission)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
filter_fields = ("project",)
|
||||||
|
|
||||||
|
|
||||||
|
class IssueStatusViewSet(ModelListViewSet):
|
||||||
|
model = models.IssueStatus
|
||||||
|
serializer_class = serializers.IssueStatusSerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.IssueStatusPermission)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
filter_fields = ("project",)
|
||||||
|
|
||||||
|
|
||||||
|
# Questions commin ViewSets
|
||||||
|
|
||||||
|
class QuestionStatusViewSet(ModelListViewSet):
|
||||||
|
model = models.QuestionStatus
|
||||||
|
serializer_class = serializers.QuestionStatusSerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.QuestionStatusPermission)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
filter_fields = ("project",)
|
|
@ -0,0 +1,80 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
|
||||||
|
US_STATUSES = (
|
||||||
|
(1, _(u"Open"), False),
|
||||||
|
(2, _(u"Closed"), True),
|
||||||
|
)
|
||||||
|
|
||||||
|
TASK_STATUSES = (
|
||||||
|
(1, _(u"New"), False, "#999999"),
|
||||||
|
(2, _(u"In progress"), False, "#ff9900"),
|
||||||
|
(3, _(u"Ready for test"), True, "#ffcc00"),
|
||||||
|
(4, _(u"Closed"), True, "#669900"),
|
||||||
|
(5, _(u"Needs Info"), False, "#999999"),
|
||||||
|
)
|
||||||
|
|
||||||
|
POINTS_CHOICES = (
|
||||||
|
(1, u'?', None),
|
||||||
|
(2, u'0', 0),
|
||||||
|
(3, u'1/2', 0.5),
|
||||||
|
(4, u'1', 1),
|
||||||
|
(5, u'2', 2),
|
||||||
|
(6, u'3', 3),
|
||||||
|
(7, u'5', 5),
|
||||||
|
(8, u'8', 8),
|
||||||
|
(9, u'10', 10),
|
||||||
|
(10, u'15', 15),
|
||||||
|
(11, u'20', 20),
|
||||||
|
(12, u'40', 40),
|
||||||
|
)
|
||||||
|
|
||||||
|
PRIORITY_CHOICES = (
|
||||||
|
(1, _(u'Low')),
|
||||||
|
(3, _(u'Normal')),
|
||||||
|
(5, _(u'High')),
|
||||||
|
)
|
||||||
|
|
||||||
|
SEVERITY_CHOICES = (
|
||||||
|
(1, _(u'Wishlist')),
|
||||||
|
(2, _(u'Minor')),
|
||||||
|
(3, _(u'Normal')),
|
||||||
|
(4, _(u'Important')),
|
||||||
|
(5, _(u'Critical')),
|
||||||
|
)
|
||||||
|
|
||||||
|
ISSUE_STATUSES = (
|
||||||
|
(1, _(u"New"), False),
|
||||||
|
(2, _(u"In progress"), False),
|
||||||
|
(3, _(u"Ready for test"), True),
|
||||||
|
(4, _(u"Closed"), True),
|
||||||
|
(5, _(u"Needs Info"), False),
|
||||||
|
(6, _(u"Rejected"), True),
|
||||||
|
(7, _(u"Postponed"), False),
|
||||||
|
)
|
||||||
|
|
||||||
|
ISSUE_TYPES = (
|
||||||
|
(1, _(u'Bug')),
|
||||||
|
)
|
||||||
|
|
||||||
|
QUESTION_STATUS = (
|
||||||
|
(1, _(u"New"), False),
|
||||||
|
(2, _(u"Pending"), False),
|
||||||
|
(3, _(u"Answered"), True),
|
||||||
|
)
|
||||||
|
|
||||||
|
# TODO: pending to refactor
|
||||||
|
|
||||||
|
TASK_COMMENT = 1
|
||||||
|
TASK_STATUS_CHANGE = 2
|
||||||
|
TASK_PRIORITY_CHANGE = 3
|
||||||
|
TASK_ASSIGNATION_CHANGE = 4
|
||||||
|
|
||||||
|
TASK_CHANGE_CHOICES = (
|
||||||
|
(TASK_COMMENT, _(u"Task comment")),
|
||||||
|
(TASK_STATUS_CHANGE, _(u"Task status change")),
|
||||||
|
(TASK_PRIORITY_CHANGE, _(u"Task prioriy change")),
|
||||||
|
(TASK_ASSIGNATION_CHANGE, _(u"Task assignation change")),
|
||||||
|
)
|
|
@ -0,0 +1,11 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
from . import models
|
||||||
|
|
||||||
|
|
||||||
|
class DocumentAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ["title", "project", "owner"]
|
||||||
|
|
||||||
|
admin.site.register(models.Document, DocumentAdmin)
|
|
@ -0,0 +1,18 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from rest_framework.permissions import IsAuthenticated
|
||||||
|
|
||||||
|
from greenmine.base import filters
|
||||||
|
from greenmine.base.api import ModelCrudViewSet
|
||||||
|
|
||||||
|
from . import serializers
|
||||||
|
from . import models
|
||||||
|
from . import permissions
|
||||||
|
|
||||||
|
|
||||||
|
class DocumentsViewSet(ModelCrudViewSet):
|
||||||
|
model = models.Document
|
||||||
|
serializer_class = serializers.DocumentSerializer
|
||||||
|
permission_classes = (permissions.DocumentPermission,)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
# -* coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db import models
|
||||||
|
from django.conf import settings
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
from picklefield.fields import PickledObjectField
|
||||||
|
from greenmine.base.utils.slug import slugify_uniquely as slugify
|
||||||
|
|
||||||
|
|
||||||
|
class Document(models.Model):
|
||||||
|
slug = models.SlugField(unique=True, max_length=200, null=False, blank=True,
|
||||||
|
verbose_name=_('slug'))
|
||||||
|
title = models.CharField(max_length=150, null=False, blank=False,
|
||||||
|
verbose_name=_('title'))
|
||||||
|
description = models.TextField(null=False, blank=True,
|
||||||
|
verbose_name=_('description'))
|
||||||
|
created_date = models.DateTimeField(auto_now_add=True, null=False, blank=False,
|
||||||
|
verbose_name=_('created date'))
|
||||||
|
modified_date = models.DateTimeField(auto_now=True, null=False, blank=False,
|
||||||
|
verbose_name=_('modified date'))
|
||||||
|
project = models.ForeignKey('projects.Project', null=False, blank=False,
|
||||||
|
related_name='documents',
|
||||||
|
verbose_name=_('project'))
|
||||||
|
owner = models.ForeignKey(settings.AUTH_USER_MODEL, null=False, blank=False,
|
||||||
|
related_name='owned_documents',
|
||||||
|
verbose_name=_('owner'))
|
||||||
|
attached_file = models.FileField(max_length=1000, null=True, blank=True,
|
||||||
|
upload_to='documents',
|
||||||
|
verbose_name=_('attached_file'))
|
||||||
|
tags = PickledObjectField(null=False, blank=True,
|
||||||
|
verbose_name=_('tags'))
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
verbose_name = u'document'
|
||||||
|
verbose_name_plural = u'document'
|
||||||
|
ordering = ['project', 'title', 'id']
|
||||||
|
permissions = (
|
||||||
|
('download_from_my_projects', 'Can download the documents from my projects'),
|
||||||
|
('download_from_other_projects', 'Can download the documents from other projects'),
|
||||||
|
('change_owned_documents', 'Can modify owned documents'),
|
||||||
|
('view_documents', 'Can modify owned documents'),
|
||||||
|
)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.title
|
||||||
|
|
||||||
|
def save(self, *args, **kwargs):
|
||||||
|
if not self.slug:
|
||||||
|
self.slug = slugify(self.title, self.__class__)
|
||||||
|
super(Document, self).save(*args, **kwargs)
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from greenmine.base.permissions import BasePermission
|
||||||
|
|
||||||
|
|
||||||
|
class DocumentPermission(BasePermission):
|
||||||
|
get_permission = "can_view_document"
|
||||||
|
put_permission = "can_change_document"
|
||||||
|
delete_permission = "can_delete_document"
|
||||||
|
safe_methods = ["HEAD", "OPTIONS"]
|
||||||
|
path_to_document = []
|
|
@ -0,0 +1,11 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from rest_framework import serializers
|
||||||
|
|
||||||
|
from . import models
|
||||||
|
|
||||||
|
|
||||||
|
class DocumentSerializer(serializers.ModelSerializer):
|
||||||
|
class Meta:
|
||||||
|
model = models.Document
|
||||||
|
fields = ()
|
|
@ -0,0 +1,16 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
from greenmine.projects.admin import AttachmentInline
|
||||||
|
|
||||||
|
from . import models
|
||||||
|
|
||||||
|
import reversion
|
||||||
|
|
||||||
|
|
||||||
|
class IssueAdmin(reversion.VersionAdmin):
|
||||||
|
list_display = ["subject", "type"]
|
||||||
|
inlines = [AttachmentInline]
|
||||||
|
|
||||||
|
admin.site.register(models.Issue, IssueAdmin)
|
|
@ -0,0 +1,92 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.contrib.contenttypes.models import ContentType
|
||||||
|
|
||||||
|
from rest_framework.permissions import IsAuthenticated
|
||||||
|
|
||||||
|
from greenmine.base import filters
|
||||||
|
from greenmine.base import exceptions as exc
|
||||||
|
from greenmine.base.api import ModelCrudViewSet
|
||||||
|
from greenmine.base.notifications.api import NotificationSenderMixin
|
||||||
|
from greenmine.projects.permissions import AttachmentPermission
|
||||||
|
from greenmine.projects.serializers import AttachmentSerializer
|
||||||
|
from greenmine.projects.models import Attachment
|
||||||
|
|
||||||
|
from . import models
|
||||||
|
from . import permissions
|
||||||
|
from . import serializers
|
||||||
|
|
||||||
|
import reversion
|
||||||
|
|
||||||
|
|
||||||
|
class IssueAttachmentViewSet(ModelCrudViewSet):
|
||||||
|
model = Attachment
|
||||||
|
serializer_class = AttachmentSerializer
|
||||||
|
permission_classes = (IsAuthenticated, AttachmentPermission)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
filter_fields = ["project", "object_id"]
|
||||||
|
|
||||||
|
def get_queryset(self):
|
||||||
|
ct = ContentType.objects.get_for_model(models.Issue)
|
||||||
|
qs = super(IssueAttachmentViewSet, self).get_queryset()
|
||||||
|
qs = qs.filter(content_type=ct)
|
||||||
|
return qs.distinct()
|
||||||
|
|
||||||
|
def pre_save(self, obj):
|
||||||
|
if not obj.id:
|
||||||
|
obj.content_type = ContentType.objects.get_for_model(models.Issue)
|
||||||
|
obj.owner = self.request.user
|
||||||
|
super(IssueAttachmentViewSet, self).pre_save(obj)
|
||||||
|
|
||||||
|
def pre_conditions_on_save(self, obj):
|
||||||
|
super().pre_conditions_on_save(obj)
|
||||||
|
|
||||||
|
if (obj.project.owner != self.request.user and
|
||||||
|
obj.project.memberships.filter(user=self.request.user).count() == 0):
|
||||||
|
raise exc.PreconditionError("You must not add a new issue attachment "
|
||||||
|
"to this project.")
|
||||||
|
|
||||||
|
|
||||||
|
class IssueViewSet(NotificationSenderMixin, ModelCrudViewSet):
|
||||||
|
model = models.Issue
|
||||||
|
serializer_class = serializers.IssueSerializer
|
||||||
|
permission_classes = (IsAuthenticated, permissions.IssuePermission)
|
||||||
|
filter_backends = (filters.IsProjectMemberFilterBackend,)
|
||||||
|
filter_fields = ("project",)
|
||||||
|
create_notification_template = "create_issue_notification"
|
||||||
|
update_notification_template = "update_issue_notification"
|
||||||
|
destroy_notification_template = "destroy_issue_notification"
|
||||||
|
|
||||||
|
def pre_save(self, obj):
|
||||||
|
if not obj.id:
|
||||||
|
obj.owner = self.request.user
|
||||||
|
super(IssueViewSet, self).pre_save(obj)
|
||||||
|
|
||||||
|
def pre_conditions_on_save(self, obj):
|
||||||
|
super().pre_conditions_on_save(obj)
|
||||||
|
|
||||||
|
if (obj.project.owner != self.request.user and
|
||||||
|
obj.project.memberships.filter(user=self.request.user).count() == 0):
|
||||||
|
raise exc.PreconditionError("You must not add a new issue to this project.")
|
||||||
|
|
||||||
|
if obj.milestone and obj.milestone.project != obj.project:
|
||||||
|
raise exc.PreconditionError("You must not add a new issue to this milestone.")
|
||||||
|
|
||||||
|
if obj.status and obj.status.project != obj.project:
|
||||||
|
raise exc.PreconditionError("You must not use a status from other project.")
|
||||||
|
|
||||||
|
if obj.severity and obj.severity.project != obj.project:
|
||||||
|
raise exc.PreconditionError("You must not use a severity from other project.")
|
||||||
|
|
||||||
|
if obj.priority and obj.priority.project != obj.project:
|
||||||
|
raise exc.PreconditionError("You must not use a priority from other project.")
|
||||||
|
|
||||||
|
if obj.type and obj.type.project != obj.project:
|
||||||
|
raise exc.PreconditionError("You must not use a type from other project.")
|
||||||
|
|
||||||
|
def post_save(self, obj, created=False):
|
||||||
|
with reversion.create_revision():
|
||||||
|
if "comment" in self.request.DATA:
|
||||||
|
# Update the comment in the last version
|
||||||
|
reversion.set_comment(self.request.DATA["comment"])
|
||||||
|
super(IssueViewSet, self).post_save(obj, created)
|
|
@ -0,0 +1,112 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from django.db import models
|
||||||
|
from django.conf import settings
|
||||||
|
from django.utils import timezone
|
||||||
|
from django.dispatch import receiver
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
from picklefield.fields import PickledObjectField
|
||||||
|
|
||||||
|
from greenmine.base.utils.slug import ref_uniquely
|
||||||
|
from greenmine.base.notifications.models import WatchedMixin
|
||||||
|
|
||||||
|
import reversion
|
||||||
|
|
||||||
|
|
||||||
|
class Issue(models.Model, WatchedMixin):
|
||||||
|
uuid = models.CharField(max_length=40, unique=True, null=False, blank=True,
|
||||||
|
verbose_name=_("uuid"))
|
||||||
|
ref = models.BigIntegerField(db_index=True, null=True, blank=True, default=None,
|
||||||
|
verbose_name=_("ref"))
|
||||||
|
owner = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, blank=True, default=None,
|
||||||
|
related_name="owned_issues", verbose_name=_("owner"))
|
||||||
|
status = models.ForeignKey("projects.IssueStatus", null=False, blank=False,
|
||||||
|
related_name="issues", verbose_name=_("status"))
|
||||||
|
severity = models.ForeignKey("projects.Severity", null=False, blank=False,
|
||||||
|
related_name="issues", verbose_name=_("severity"))
|
||||||
|
priority = models.ForeignKey("projects.Priority", null=False, blank=False,
|
||||||
|
related_name="issues", verbose_name=_("priority"))
|
||||||
|
type = models.ForeignKey("projects.IssueType", null=False, blank=False,
|
||||||
|
related_name="issues", verbose_name=_("type"))
|
||||||
|
milestone = models.ForeignKey("milestones.Milestone", null=True, blank=True,
|
||||||
|
default=None, related_name="issues",
|
||||||
|
verbose_name=_("milestone"))
|
||||||
|
project = models.ForeignKey("projects.Project", null=False, blank=False,
|
||||||
|
related_name="issues", verbose_name=_("project"))
|
||||||
|
created_date = models.DateTimeField(auto_now_add=True, null=False, blank=False,
|
||||||
|
verbose_name=_("created date"))
|
||||||
|
modified_date = models.DateTimeField(auto_now_add=True, null=False, blank=False,
|
||||||
|
verbose_name=_("modified date"))
|
||||||
|
finished_date = models.DateTimeField(null=True, blank=True,
|
||||||
|
verbose_name=_("finished date"))
|
||||||
|
subject = models.CharField(max_length=500, null=False, blank=False,
|
||||||
|
verbose_name=_("subject"))
|
||||||
|
description = models.TextField(null=False, blank=True, verbose_name=_("description"))
|
||||||
|
assigned_to = models.ForeignKey(settings.AUTH_USER_MODEL, blank=True, null=True,
|
||||||
|
default=None, related_name="issues_assigned_to_me",
|
||||||
|
verbose_name=_("assigned to"))
|
||||||
|
watchers = models.ManyToManyField(settings.AUTH_USER_MODEL, null=True, blank=True,
|
||||||
|
related_name="watched_issues",
|
||||||
|
verbose_name=_("watchers"))
|
||||||
|
tags = PickledObjectField(null=False, blank=True, verbose_name=_("tags"))
|
||||||
|
|
||||||
|
notifiable_fields = [
|
||||||
|
"owner",
|
||||||
|
"status",
|
||||||
|
"severity",
|
||||||
|
"priority",
|
||||||
|
"type",
|
||||||
|
"milestone",
|
||||||
|
"finished_date",
|
||||||
|
"subject",
|
||||||
|
"description",
|
||||||
|
"assigned_to",
|
||||||
|
"tags",
|
||||||
|
]
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
verbose_name = u"issue"
|
||||||
|
verbose_name_plural = u"issues"
|
||||||
|
ordering = ["project", "created_date"]
|
||||||
|
unique_together = ("ref", "project")
|
||||||
|
permissions = (
|
||||||
|
("comment_issue", "Can comment issues"),
|
||||||
|
("change_owned_issue", "Can modify owned issues"),
|
||||||
|
("change_assigned_issue", "Can modify assigned issues"),
|
||||||
|
("assign_issue_to_other", "Can assign issues to others"),
|
||||||
|
("assign_issue_to_myself", "Can assign issues to myself"),
|
||||||
|
("change_issue_state", "Can change the issue state"),
|
||||||
|
("view_issue", "Can view the issue"),
|
||||||
|
)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return u"({1}) {0}".format(self.ref, self.subject)
|
||||||
|
|
||||||
|
def save(self, *args, **kwargs):
|
||||||
|
if self.id:
|
||||||
|
self.modified_date = timezone.now()
|
||||||
|
super(Issue, self).save(*args, **kwargs)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_closed(self):
|
||||||
|
return self.status.is_closed
|
||||||
|
|
||||||
|
def _get_watchers_by_role(self):
|
||||||
|
return {
|
||||||
|
"owner": self.owner,
|
||||||
|
"assigned_to": self.assigned_to,
|
||||||
|
"suscribed_watchers": self.watchers.all(),
|
||||||
|
"project_owner": (self.project, self.project.owner),
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Reversion registration (usufull for base.notification and for meke a historical)
|
||||||
|
reversion.register(Issue)
|
||||||
|
|
||||||
|
|
||||||
|
# Model related signals handlers
|
||||||
|
@receiver(models.signals.pre_save, sender=Issue, dispatch_uid="issue_ref_handler")
|
||||||
|
def issue_ref_handler(sender, instance, **kwargs):
|
||||||
|
if not instance.id and instance.project:
|
||||||
|
instance.ref = ref_uniquely(instance.project, "last_issue_ref", instance.__class__)
|
|
@ -0,0 +1,12 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from greenmine.base.permissions import BasePermission
|
||||||
|
|
||||||
|
|
||||||
|
class IssuePermission(BasePermission):
|
||||||
|
get_permission = "view_issue"
|
||||||
|
put_permission = "change_issue"
|
||||||
|
patch_permission = "change_issue"
|
||||||
|
delete_permission = "delete_issue"
|
||||||
|
safe_methods = ["HEAD", "OPTIONS"]
|
||||||
|
path_to_project = ["project"]
|
|
@ -0,0 +1,61 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from rest_framework import serializers
|
||||||
|
|
||||||
|
from greenmine.base.serializers import PickleField
|
||||||
|
|
||||||
|
from . import models
|
||||||
|
|
||||||
|
import reversion
|
||||||
|
|
||||||
|
|
||||||
|
class IssueSerializer(serializers.ModelSerializer):
|
||||||
|
tags = PickleField(required=False)
|
||||||
|
comment = serializers.SerializerMethodField("get_comment")
|
||||||
|
history = serializers.SerializerMethodField("get_history")
|
||||||
|
is_closed = serializers.Field(source="is_closed")
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
model = models.Issue
|
||||||
|
|
||||||
|
def get_comment(self, obj):
|
||||||
|
# TODO
|
||||||
|
return ""
|
||||||
|
|
||||||
|
def get_issues_diff(self, old_issue_version, new_issue_version):
|
||||||
|
old_obj = old_issue_version.field_dict
|
||||||
|
new_obj = new_issue_version.field_dict
|
||||||
|
|
||||||
|
diff_dict = {
|
||||||
|
"modified_date": new_obj["modified_date"],
|
||||||
|
"by": old_issue_version.revision.user,
|
||||||
|
"comment": old_issue_version.revision.comment,
|
||||||
|
}
|
||||||
|
|
||||||
|
for key in old_obj.keys():
|
||||||
|
if key == "modified_date":
|
||||||
|
continue
|
||||||
|
|
||||||
|
if old_obj[key] == new_obj[key]:
|
||||||
|
continue
|
||||||
|
|
||||||
|
diff_dict[key] = {
|
||||||
|
"old": old_obj[key],
|
||||||
|
"new": new_obj[key],
|
||||||
|
}
|
||||||
|
|
||||||
|
return diff_dict
|
||||||
|
|
||||||
|
def get_history(self, obj):
|
||||||
|
diff_list = []
|
||||||
|
current = None
|
||||||
|
|
||||||
|
if obj:
|
||||||
|
for version in reversed(list(reversion.get_for_object(obj))):
|
||||||
|
if current:
|
||||||
|
issues_diff = self.get_issues_diff(current, version)
|
||||||
|
diff_list.append(issues_diff)
|
||||||
|
|
||||||
|
current = version
|
||||||
|
|
||||||
|
return diff_list
|
|
@ -0,0 +1 @@
|
||||||
|
# TODO: {{ changer }} {{ object }}
|
|
@ -0,0 +1,2 @@
|
||||||
|
# TODO: {{ changer }} {{ object }}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Create the new Issue "{{ object }}"
|
|
@ -0,0 +1,2 @@
|
||||||
|
# TODO: {{ changer }} {{ object }}
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# TODO: {{ changer }} {{ object }}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Deleted the issue "{{ object }}"
|
|
@ -0,0 +1,7 @@
|
||||||
|
<p>Updated fields by {{ changer }}:</p>
|
||||||
|
<ul>
|
||||||
|
{% for field in changed_fields_dict.values() %}
|
||||||
|
<li><b>{{ field.verbose_name}}</b>: from "{{ field.old_value}}" to "{{ field.new_value}}".</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{# TODO Print the "object" details #}
|
|
@ -0,0 +1,9 @@
|
||||||
|
Updated fields by {{ changer }}:
|
||||||
|
|
||||||
|
{% for field in changed_fields_dict.values() %}
|
||||||
|
** {{ field.verbose_name}}: from "{{ field.old_value}}" to "{{ field.new_value}}".
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{# TODO Print the "object" details #}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Updated the issue "{{ object }}"
|
|
@ -0,0 +1 @@
|
||||||
|
Updated the user story "{{ object }}"
|
|
@ -0,0 +1,24 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
|
from django.db.models.loading import get_model
|
||||||
|
|
||||||
|
|
||||||
|
def create_issue(id, owner, project, milestone=None, save=True):
|
||||||
|
model = get_model("issues", "Issue")
|
||||||
|
|
||||||
|
instance = model(
|
||||||
|
subject="Issue {0}".format(id),
|
||||||
|
description="The issue description.",
|
||||||
|
project=project,
|
||||||
|
milestone=milestone,
|
||||||
|
status=project.issue_statuses.all()[0],
|
||||||
|
severity=project.severities.all()[0],
|
||||||
|
priority=project.priorities.all()[0],
|
||||||
|
type=project.issue_types.all()[0],
|
||||||
|
owner=owner
|
||||||
|
)
|
||||||
|
|
||||||
|
if save:
|
||||||
|
instance.save()
|
||||||
|
return instance
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue