Commit Graph
38 Commits
Author SHA1 Message Date
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 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 23ffecdd30 Simplify permission lookup method. Add refresh class method to make sure
stored permissions are in sync with proxy permission.
Add __repr__ method.
2017-01-15 23:55:16 -04:00
Roberto Rosario 70a5b0839a Update redirect variable. 2015-09-23 03:41:33 -04:00
Roberto Rosario 6e4e5e8c07 Simplify texts refering to role members. Change it to role groups. 2015-08-24 00:34:26 -04:00
Roberto Rosario 5563484ae8 Replace remaining usage of get_context_data that could be replaced with get_extra_context. 2015-08-15 23:42:32 -04:00
Roberto Rosario 4527563d89 PEP8 cleanups, specially E501 line too long. 2015-07-22 18:21:37 -04:00
Roberto Rosario bfab8f1181 Reduce code, remove unused role model form. 2015-07-08 19:02:32 -04:00
Roberto Rosario e9ea2dc35a Modernize usage of the AssignRemove CBV 2015-06-30 17:19:56 -04:00
Roberto Rosario 0e24f8d821 Simplify and remove unused code 2015-06-30 02:43:58 -04:00
Roberto Rosario a68be31e52 Remove unused permissions check code 2015-06-29 16:58:46 -04:00
Roberto Rosario 3d1b030f95 Remove obsolete class Member 2015-06-29 14:30:03 -04:00
Roberto Rosario 3754f45001 Reduce checked out document column label string size. Refactor roles: roles can only have groups as members, only roles can hold permissions. 2015-06-29 14:07:02 -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 69a7efd6f0 Convert workflows document type selection, smart link document type selection, role members list, user group and group users views to CBV assign remove. Remove now obsolete assign remove function based view 2015-04-07 15:48:27 -04:00
Roberto Rosario 0209ea6632 Update views that used generic_detail to use generic_form in read_only mode. Remove now obsolete generic_detail template 2015-04-07 02:04:41 -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 f4d3767b15 PEP8 cleanup, remove unused imports, fix permission check when removing metadata from a document 2015-01-26 19:17:35 -04:00
Roberto Rosario d59ea3ede2 Add from __future__ import unicode_literals, issue #37 2015-01-19 04:06:40 -04:00
Roberto Rosario 6d3cd9753d Rename property permissions_required to view_permission of ViewPermissionCheckMixin 2015-01-12 18:33:31 -04:00
Roberto Rosario 2c2dfa88cc Issue #84, Remove template context variable 'object_name' to improve ease of translation 2014-10-28 02:36:43 -04:00
Roberto Rosario a728690335 Issue #56, #97, Make multi item links a drop down list of actions, remove unused code 2014-10-27 16:26:13 -04:00
Roberto Rosario 71e8502614 Remove confirmation template's form icon 2014-10-25 02:21:44 -04:00
Roberto Rosario 8bac1525be PEP8 cleanups 2014-10-08 19:39:16 -04:00
Roberto Rosario c664dd7113 Issue #56, Start addressing issue #40 (document, permissions, sources, tags and user_management apps) 2014-10-02 17:33:56 -04:00
Roberto Rosario 74cf4c413f Import cleanups, reorganization, PEP8 cleanups 2014-10-02 02:01:08 -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 76b2cdefcc Move app url namespaces updates 2014-09-06 16:30:12 -04:00
Roberto Rosario b42e9badf6 Move common templates to apps/main/templates/main/* 2014-08-26 02:44:49 -04:00
Roberto Rosario 2c33e2e029 Old remaked and unused code removal 2014-07-25 21:27:30 -04:00
Roberto Rosario b6d9717223 Remove last usage of Django's simplejson library 2014-07-11 01:37:57 -04:00
Roberto Rosario 3bed82fc16 PEP8 cleanup, unused imports, missing imports, style cleanups 2014-07-10 02:45:19 -04:00
Roberto Rosario 6a659741af PEP8 cleanups 2014-06-30 00:57:53 -04:00
Roberto Rosario 41d0cfb7bf Code cleanups 2014-06-29 20:35:36 -04:00
Roberto Rosario c6a5ba8d3b Convert the role creation, editing and deletion views to use the new class based views 2014-06-26 18:01:56 -04:00
Roberto Rosario ac061f2203 PEP8 Cleanups, simple sintax errors fixes 2014-06-25 02:53:12 -04:00
Roberto Rosario ec1745b50b Initial changes to support the new Django 1.6 project structure 2014-06-15 13:13:21 +02:00