Commit Graph
46 Commits
Author SHA1 Message Date
Roberto Rosario f73179a600 Add support for editing document comments
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-05-09 22:29:07 -04:00
Roberto Rosario cbd51c5f26 Update comments app
Add transaction handling. Add comment view link. Update views to
user ExternalObjectMixin. Add event tests.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-05-09 20:22:12 -04:00
Roberto Rosario 95a1df8072 Backport common mixin and generics improvements
* Rename get_object_list to get_source_queryset.
* Add uniqueness validation to SingleObjectCreateView.
* Remove MultipleInstanceActionMixin.
* Backport MultipleObjectMixin improvements.
* Remove ObjectListPermissionFilterMixin.
* Add and improve tests.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-05-06 02:07:35 -04:00
Roberto Rosario 8e731d6280 Backport ACL computation improvements
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-05-04 03:27:30 -04:00
Roberto Rosario fba0c40bef Add keyword arguments to RequestContext usage
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-27 01:25:48 -04:00
Roberto Rosario 74c97314d7 Code style cleanups
Add keyword arguments. Sort arguments and models.
Move literals to their own module. Prepend handler_ to
signal handlers.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-26 03:32:35 -04:00
Roberto Rosario 2300ab52de Add the comment to the template context
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-23 19:30:04 -04:00
Roberto Rosario 4c0b3e9134 Add keyword arguments to the reverse use in views
Signed-off-by: Roberto Rosario <Roberto.Rosario.Gonzalez@gmail.com>
2019-04-16 19:25:37 -04:00
Roberto Rosario f6f9287e33 Add keyword arguments to get_object_or_404 uses
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-11 20:53:33 -04:00
Roberto Rosario 36a51eeb73 Switch to full app paths
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.

This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.

Every app reference is now prepended with 'mayan.apps'.

Existing config.yml files need to be updated manually.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-05 02:02:57 -04:00
Roberto Rosario 9273eccbd6 Add support for extended templates when there are no results. Add help messages and useful links to several apps when there are no results available.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2018-08-23 19:45:48 -04:00
Michael Price 3159a6bf1f Remove ununsed library. Remove unused code. Fix formatting.
Signed-off-by: Michael Price <loneviking72@gmail.com>
2018-04-01 20:25:05 -04:00
Michael Price 0c4a52558b Sort comment view method as per Mayan's best practices.
Signed-off-by: Michael Price <loneviking72@gmail.com>
2018-04-01 20:24:04 -04:00
Roberto Rosario 2052caada4 Remove PreserveGetQuerySet mixin. Update SingleObjectList and
MultipleObjectFormActionView views to use a new get_object_list method.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2017-08-16 22:12:24 -04:00
Roberto Rosario f09321f6ab Fix deprecation warnings for Django 1.11 and Django 2.0.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2017-07-21 00:25:18 -04:00
Roberto Rosario 5893e149e0 Reduce the check_access boilerplate code. 2016-11-02 04:58:05 -04:00
Roberto Rosario 72c63bfedc Improve form and object data passing code. 2015-08-25 20:28:59 -04:00
Roberto Rosario 7392e80fc2 PEP8 Cleanups. 2015-08-24 20:55:45 -04:00
Roberto Rosario e79cd4a2e6 Remove unused imports. 2015-08-24 17:43:06 -04:00
Roberto Rosario 2f94ebb9bc Add event logging document comment app. 2015-08-23 22:34:39 -04:00
Roberto Rosario 1aadede546 Convert document comment deletion view to CBV. Remove unused document comment form. 2015-08-23 21:48:53 -04:00
Roberto Rosario dd301d8e98 Convert the document create view to a CBV. 2015-08-23 21:37:37 -04:00
Roberto Rosario 93553e84c2 Text string tweaks as per translation discussions. Thanks to Berny. 2015-08-20 14:41:00 -04:00
Roberto Rosario 68f3c6eee7 PEP8 cleanups. 2015-08-19 14:50:44 -04:00
Roberto Rosario 31f05ee3f3 Update document comment list view to CBV. 2015-08-12 04:11:39 -04:00
Roberto Rosario 26259b63f6 Migrate to use a local model for document comments. Closes gh-issue #233. 2015-07-29 19:43:11 -04:00
Roberto Rosario 1e746c700a PEP8 cleanups. 2015-07-27 23:53:14 -04:00
Roberto Rosario 3b728328ad PEP8 cleanups, E501. 2015-07-23 04:05:29 -04:00
Roberto Rosario afe6644321 Use shorter confirmation messages. 2015-07-17 19:52:17 -04:00
Roberto Rosario ace76fc69c Update apps for new ACLs refactor. 2015-07-01 16:36:20 -04:00
Roberto Rosario 1c084aa07b Split Permission and StoredPermission class and model into different modules. Simplified the Permission class. 2015-06-28 01:03:29 -04:00
Roberto Rosario d26402974a Allow registering permission from the permission namespace. Replace all permission variables to be lowercase (style guide reserver uppercase variables for constants and literals). 2015-06-28 00:19:49 -04:00
Roberto Rosario 23fc9f1e36 Merge main and common apps, extract authentication functionality to new authentication app. Closes issues #179 and #180 2015-04-06 16:09:54 -04:00
Roberto Rosario 5dabc0a34a Add new appearance app to hold all of the base templates, images, icons and external packages related to the frontend and look of the project 2015-03-30 02:17:40 -04:00
Roberto Rosario febe21db1b Improve document related views titles messages, improve pluralization. 2015-01-24 14:25:31 -04:00
Roberto Rosario d59ea3ede2 Add from __future__ import unicode_literals, issue #37 2015-01-19 04:06:40 -04:00
Roberto Rosario 5b718da664 Simplify text messages, add proper pluralization 2015-01-18 02:41:01 -04:00
Roberto Rosario 71e8502614 Remove confirmation template's form icon 2014-10-25 02:21:44 -04:00
Roberto Rosario a75a4edf21 Issue #39, Finish capitalizing source text messages 2014-10-10 02:29:37 -04:00
Roberto Rosario 9662d14e9c Issue #40, finish remaining '/' hardcoded redirects 2014-10-09 20:05:42 -04:00
Roberto Rosario 97dcf507ab PEP8 cleanups 2014-10-08 18:14:05 -04:00
Roberto Rosario b42e9badf6 Move common templates to apps/main/templates/main/* 2014-08-26 02:44:49 -04:00
Roberto Rosario 6b169b4526 Modernize exception handling, and improves Python 3.x compatibility 2014-07-20 16:42:30 -04:00
Roberto Rosario 3bed82fc16 PEP8 cleanup, unused imports, missing imports, style cleanups 2014-07-10 02:45:19 -04:00
Roberto Rosario 0209d13150 Change quotation char usage, remarked code cleanups 2014-06-25 02:22:11 -04:00
Roberto Rosario ec1745b50b Initial changes to support the new Django 1.6 project structure 2014-06-15 13:13:21 +02:00