Roberto Rosario
92e615ce4c
Add keyword arguments to checkouts app
...
Add keyword arguments to calls and view parameters. Add missing icons.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2019-01-02 14:19:32 -04:00
Roberto Rosario
77468a87be
Tests: Fix failing tests after last refactor
...
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-15 15:26:19 -04:00
Roberto Rosario
0e86f2ad8a
Refactor the model accesors
...
Refactor the accesors to behave like methods instead of properties.
This means all accesors will be prepended with the string
"get_" and will include a set of parenthesis.
Improve the ModeAttribute class to use the method's
short_description. This commit also adds support for a
new method .help_text attribute has been added.
Move accessors to their own module, named "methods.py".
Remove the PropertyHelper class as the accessors no longer
need it.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-15 04:49:40 -04:00
Roberto Rosario
55a30379bd
Various apps: Sort imports
...
Run imports as per Mayan EDMS best practices.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-06 01:57:24 -04:00
Roberto Rosario
8e69178e07
Project: 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 app name claves 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 >
2018-12-05 02:04:20 -04:00
Roberto Rosario
493ba214f2
Sort the manager methods of the checkouts app.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-06 14:57:28 -04:00
Roberto Rosario
3937696774
Add natural key support to the models of the checkouts app.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-06 14:54:55 -04:00
Michael Price
8e7b288c00
Fix checkout API tests.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:15:19 -04:00
Roberto Rosario
1e194e04fa
Move new version creation blocking from the documents app to the checkouts app.
...
Closes GitLab #294 .
2016-12-22 01:45:43 -04:00
Roberto Rosario
4527563d89
PEP8 cleanups, specially E501 line too long.
2015-07-22 18:21:37 -04:00
Roberto Rosario
e4623fadcd
PEP8 cleanups
2015-06-23 02:23:23 -04:00
Roberto Rosario
91150a7f51
Change the user_object of the DocumentCheckout model to be just a FK to the User model
2015-06-16 23:35:23 -04:00
Roberto Rosario
c8268b1a5b
Move new document version blocking logic to the checkouts app. Remove PERMISSION_DOCUMENT_RESTRICTIONS_OVERRIDE, overriding checkout restrictions even for admin users has the potential to confuse or corrupt data, removing it. Even admins must now checkin a document before trying to perform a restricted operation.
2015-06-16 20:38:45 -04:00
Roberto Rosario
b55acb6e12
Normalize import style
2015-01-24 17:05:32 -04:00
Roberto Rosario
d59ea3ede2
Add from __future__ import unicode_literals, issue #37
2015-01-19 04:06:40 -04:00
Roberto Rosario
bbab21d228
Initial commit of the new events app
2015-01-10 19:01:57 -04:00
Roberto Rosario
f7bfb390cc
Missing return statement
2014-11-03 02:55:34 -04:00
Roberto Rosario
ba1729106f
Pass arguments to the logger the correct way
2014-11-02 20:55:21 -04:00
Roberto Rosario
0ae7469d1a
PEP8 cleanups
2014-10-17 18:34:50 -04:00
Roberto Rosario
6a659741af
PEP8 cleanups
2014-06-30 00:57:53 -04:00
Roberto Rosario
d640eacec8
Update usage of datetime.now to Django timezone aware now()
2014-06-29 17:00:07 -04:00
Roberto Rosario
ec1745b50b
Initial changes to support the new Django 1.6 project structure
2014-06-15 13:13:21 +02:00