Commit Graph

101 Commits

Author SHA1 Message Date
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
Roberto Rosario
4fde4b3aa7 Add comment to the Link class, move remove_from_query inside keep_query, doesn't make sense to have it outside this context 2015-04-06 01:20:40 -04:00
Roberto Rosario
962cd6544f Re-enable the setting of the active link in the view context 2015-04-06 01:09:01 -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
e648975aff Rename link 'class' attribute with 'klass' to avoid any conflicts. Fix django_gpg links. Remove 'dont_mark_active', 'conditional_highlight', and 'extra_navigation_links' features. Inject 'resolved_objects' into context before resolving links. Add check for ACLs when there is a resolved object present. Re-add remove_from_query and keep_query support. Use URLNode to resolve link this way the resolver work exactly as Django's {% url %} tag and saves some code duplicity. 2015-04-05 03:24:36 -04:00
Roberto Rosario
db340513d0 Remove use of 'navigation_object_name' template variable and simplify the use of the 'navigation_object_list' template variable 2015-04-05 01:45:30 -04:00
Roberto Rosario
73a24b71b3 Convert more apps to new navigation system 2015-04-04 18:47:16 -04:00
Roberto Rosario
39e8e26f87 Move link conversions, consolidate FrontPageLink with new link class 2015-04-04 03:23:13 -04:00
Roberto Rosario
51ce5ca057 Consolidate navigation tags, consolidate setup and tool link 2015-04-03 20:51:02 -04:00
Roberto Rosario
0246068cd0 Initial commit of the new class based and menu based navigation system 2015-04-03 07:09:51 -04:00
Roberto Rosario
d59ea3ede2 Add from __future__ import unicode_literals, issue #37 2015-01-19 04:06:40 -04:00
Roberto Rosario
c0ea3276a3 Remove tempory_navigation_links to a more meaningful extra_navigation_links 2014-11-11 17:11:49 -04:00
Roberto Rosario
6a19622e38 Fix comment style 2014-11-03 02:57:08 -04:00
Roberto Rosario
9f2692d36a PEP8 cleanup, unused import removal 2014-11-02 21:20:29 -04:00
Roberto Rosario
ba1729106f Pass arguments to the logger the correct way 2014-11-02 20:55:21 -04:00
Roberto Rosario
3909d60e9a Issue #56, Remove child_views, child_urls, children_path_regex, children_view_regex link support 2014-10-28 17:41:10 -04:00
Roberto Rosario
9662d14e9c Issue #40, finish remaining '/' hardcoded redirects 2014-10-09 20:05:42 -04:00
Roberto Rosario
8bac1525be PEP8 cleanups 2014-10-08 19:39:16 -04:00