Commit Graph
24 Commits
Author SHA1 Message Date
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 4d53c9aec7 Code clean up.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2018-09-17 02:54:47 -04:00
Roberto Rosario 03c54395cc Refactor the ModelAttribute class into two separate classes: ModelAttribute for executable model attributes and ModelField for actual ORM fields. Expose more document fields for use in smart links.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2018-09-17 02:43:04 -04:00
Roberto Rosario 6c6ca38374 Replace all instances of unicode only handling to use force_text.
Replace all __unicode__ methods to __str__ and the
@python_2_unicode_compatible decorator.
Replace all instance of smart_str, smart_unicode, force_uncode
with force_text.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2017-07-05 15:03:24 -04:00
Roberto Rosario 5798cabd7c Add support to update the document indexes from workflow state changes.
Add a new workflow field called internal_name for easier workflow
reference in document index templates.
Generalize the PropertyHelper class.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2017-06-06 20:07:15 -04:00
Roberto Rosario 1e746c700a PEP8 cleanups. 2015-07-27 23:53:14 -04:00
Roberto Rosario ac5f403997 Rename smart links title and dynamic_title fileds to label and dynamic_label. 2015-07-07 23:20:48 -04:00
Roberto Rosario e27ba5d3d6 Implement use of the injected 'resolved_object' variable to simplify navigation links of objects in lists. Remove obsolete varaibles_tags. Consolidate get_action_links by means of get_menus_links which supports a list of menus to resolve. Remove obsolete 'list_object_variable_name'. Remove 'resolve_for_source' method which was consolidated with the normal resolve method by means of an optional 'source' argument. 2015-04-06 01:02:48 -04:00
Roberto Rosario 73a24b71b3 Convert more apps to new navigation system 2015-04-04 18:47:16 -04:00
Roberto Rosario d59ea3ede2 Add from __future__ import unicode_literals, issue #37 2015-01-19 04:06:40 -04:00
Roberto Rosario a712977390 Update smart_linking dynamic title handling using ModelAttribute class 2014-11-11 19:55:32 -04:00
Roberto Rosario bf4175b263 Simplify and optimize smart linking code and views, remove now unused LINKING_SHOW_EMPTY_SMART_LINKS configuration setting (issue #56) 2014-11-11 19:41:19 -04:00
Roberto Rosario 5480a7c9a0 Don't import tags code from linking app, violates separation of concerns of child apps 2014-11-11 16:22:51 -04:00
Roberto Rosario 4882f0558d Update the document linking form to show the available mode attributes 2014-11-11 02:59:50 -04:00
Roberto Rosario 06dd1b3368 Issue #39, Explicitly captalize string now that they are not capitalized blindly by the templates 2014-10-02 01:17:27 -04:00
Roberto Rosario 0cb9a78df4 Remove blind capitalization of messages 2014-09-13 01:24:39 -04:00
Roberto Rosario b761037d99 Move all settings files from <app>/conf/settings.py to <app>/settings.py 2014-09-11 05:02:40 -04:00
Roberto Rosario c4de4b3f30 Add url namespaces for the documents and folders apps 2014-08-26 03:44:07 -04:00
Roberto Rosario fc71ca8f8a Update document widget parameters 2014-07-10 04:38:54 -04:00
Roberto Rosario 3bed82fc16 PEP8 cleanup, unused imports, missing imports, style cleanups 2014-07-10 02:45:19 -04:00
Roberto Rosario 0cda1148bb Manual merge of the new document preview code from the unstable branch 2014-07-02 02:53:53 -04:00
Roberto Rosario 6a659741af PEP8 cleanups 2014-06-30 00:57:53 -04:00
Roberto Rosario ecb6733cd4 PEP8 cleanups, unused imports cleanups 2014-06-29 14:14:27 -04:00
Roberto Rosario ec1745b50b Initial changes to support the new Django 1.6 project structure 2014-06-15 13:13:21 +02:00