Roberto Rosario
524a0d0c35
Improve link unbinding code for all cases.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-16 02:20:47 -04:00
Roberto Rosario
e5685eee04
Improve code to unbind menu entries.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-15 15:57:27 -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
5629033578
Menu reorganization.
...
The "About" menu has been renamed to "System".
The "Tools" and "Setup" sub menus, were moved from the "Profile" menu
to the "System" menu.
The "Profile" menu has been renamed to "User".
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-04 02:06:32 -04:00
Roberto Rosario
f11ffdec52
Use force_text for debug print to avoid showing non critical unicode errors in the console.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-03-06 23:09:53 -04:00
Roberto Rosario
958ce912a0
AccessControlList.objects.check_access was updated to do a
...
Permission.check_permissions too. Remove duplicity.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-02-22 16:48:59 -04:00
Roberto Rosario
a3c1b0873d
Add links to the documentation, support page, forum and source in
...
the about menu. Make the about menu a nested menu.
2017-01-16 01:50:14 -04:00
Roberto Rosario
aa91bce3ab
Add support for drop down menu in the navigation bar. Simplify the home screen.
2016-11-12 01:56:31 -04:00
Roberto Rosario
d4a95ddb8b
Add new menu instance for user related links.
2016-11-10 23:32:43 -04:00
Roberto Rosario
69bcade6fb
Don't asume all non model instances have the get_deferred_fields method (ie: Statistics).
...
GitLab issue #331
2016-11-04 01:52:33 -04:00
Roberto Rosario
31b2464899
Add explicit test for deferred fields instances in menu resolution.
...
Fixes document link appearing in deleted document views. Fixes GitLab issue #331 .
2016-11-03 18:33:25 -04:00
Roberto Rosario
696c2be2f3
Fix link global permission check.
2016-11-02 16:09:16 -04:00
Roberto Rosario
5893e149e0
Reduce the check_access boilerplate code.
2016-11-02 04:58:05 -04:00
Roberto Rosario
621c988809
Simplify filter_by_access boilerplate code
2016-11-02 03:48:16 -04:00
Roberto Rosario
8250085703
Statistics navigation links are not tied to querysets or model instances,
...
don't fail when failing to access their _meta field. Fixes GitLab issue #316 .
2016-10-20 03:46:49 -04:00
Roberto Rosario
3d722325ca
Fix navigation object column resolution. Fixes GitLab issue #288 .
2016-05-17 01:36:12 -04:00
Roberto Rosario
7da6408de0
Add second attempt to match a navigation object as an instance of a source. Use for instances from a queryset using .defer() or .only().
2016-05-12 01:48:42 -04:00
Roberto Rosario
9c22fc9714
Fix link related object ACL resolution. GitLab issue #274 . Thanks to Baptiste GAILLET @bat79a.
2016-05-11 03:37:51 -04:00
Roberto Rosario
55d53bf4d5
Equate queryset model instances with deffered fields to their parent model class when resolving UI model columns.
...
This will allow models using .defer or .only optimizations to render properly on list views.
2016-05-09 19:55:03 -04:00
Roberto Rosario
739b96ed37
Add related object link permission support.
2016-03-29 16:27:53 -04:00
Roberto Rosario
27d8644438
Silence 90% of remaining Django 1.8 model warnings.
2016-01-28 05:43:08 -04:00
Roberto Rosario
f4a461e5a5
Don't error out link resolution if user doesn't has permission for the object argument. This issue manifests during the forcefull check in attempt of issue GL #237 . Solved and test added.
2015-10-26 02:15:53 -04:00
Roberto Rosario
ce07077f3e
Test links ACL against the view's resolved_object or fallback to test against the {{ object }} context variable. Solves GL issue #230 .
2015-10-25 01:54:18 -04:00
Roberto Rosario
5167e91c90
Remove TODO reminder, this link position was implemented.
2015-10-19 02:54:34 -04:00
Roberto Rosario
d4d9a5a276
Fail elegantly when resolving a menu and there is no request variable.
2015-10-09 23:39:56 -04:00
Roberto Rosario
cbe77ee258
Dynamic links do not have a menu position entry. Use .get to avoid error on non existant entries.
2015-10-07 02:43:01 -04:00
Roberto Rosario
4b1bb38c86
Implement menu link ordering.
2015-09-27 02:18:04 -04:00
Roberto Rosario
b335f70e57
Improve how unbounded links are calculated and removed from results.
2015-09-27 01:42:12 -04:00
Roberto Rosario
df417f562c
PEP8 Cleanups (471 warnings).
2015-09-17 21:34:27 -04:00
Roberto Rosario
1dee5a8e78
Add support for unbinding links from sources by menu. Improve ResolvedLink class. Remove Link class 'klass' property.
2015-09-16 20:09:31 -04:00
Roberto Rosario
4ff19c6f95
Remove CombinedSource class now that is no longer needed.
2015-08-24 02:27:44 -04:00
Roberto Rosario
9b51dea22b
Fix missing object buttons for keys.
2015-08-23 21:52:31 -04:00
Roberto Rosario
0d3c2defe2
Improve date rendering.
2015-08-20 00:08:28 -04:00
Roberto Rosario
60bc327756
Improve SourceColumn workflow by allowing explicit functions as columns. Remove usage of encapsulate. Move instances of 'extra_columns' to SourceColumn.
2015-08-16 14:26:41 -04:00
Roberto Rosario
3b728328ad
PEP8 cleanups, E501.
2015-07-23 04:05:29 -04:00
Roberto Rosario
e2e62d7640
Match navigation links by type not to all subclasses of the source.
2015-07-03 03:24:51 -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
48df3dcafa
PEP8 cleanups
2015-06-24 17:11:24 -04:00
Roberto Rosario
b18888b3f7
Convert and cache office documents at the document version level for faster page image retrieval
2015-06-24 01:04:35 -04:00
Roberto Rosario
b4efd4574e
Refactor register_model_columns into SourceColumn class
2015-06-23 04:12:13 -04:00
Roberto Rosario
e4623fadcd
PEP8 cleanups
2015-06-23 02:23:23 -04:00
Roberto Rosario
22340d8b8f
Update menu resolution to return a list of lists of resolved objects. Allows segmented 'Action' dropdown on multi objects action menu.
2015-06-17 02:21:53 -04:00
Roberto Rosario
87d8504cfb
Don't overwrite self.kwargs cause links resolved kwargs to get cached and produce wrong resolved URLs
2015-06-08 23:41:38 -04:00
Roberto Rosario
dcd062f122
Update Link class to accept callables for a link's kwargs
2015-06-08 15:57:12 -04:00
Roberto Rosario
68aedcf0cf
Fix passing named arguments to link's views
2015-06-08 03:05:12 -04:00
Roberto Rosario
f16957c206
Add support for link tags
2015-06-04 18:55:19 -04:00
Roberto Rosario
735cd64db2
Don't parse the URL if it's not going to be used. Convert tools to CBV.
2015-04-07 01:15:47 -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
35b44e70c7
Fix CombinedSource logic after get_multi_item_links_form updates
2015-04-06 02:23:04 -04:00