Browse Source

Fixes errors and warnings

Marcos Dumay de Medeiros 8 years ago
parent
commit
dc0c98010b
3 changed files with 2 additions and 6 deletions
  1. 1 1
      README.rst
  2. 0 4
      src/rapid/__init__.py
  3. 1 1
      src/rapid/urls.py

+ 1 - 1
README.rst

@@ -34,7 +34,7 @@ template looks as following:
 A menu will be generated in a unumbered list (UL) at the "menu" tag, and the
 registered data will be placed at the "body" block.
 
-After that, one must register actions. For that, the module "rapid" has three helper functions:
+After that, one must register actions. For that, the module "rapid.views" has three helper functions:
 "register_model", "register_instance_form", and "register_simple_select".
 
 Use "register_model" for creating default actions for listing, viewing, editing, addin, and optionally

+ 0 - 4
src/rapid/__init__.py

@@ -1,4 +0,0 @@
-__author__ = 'marcos.medeiros'
-
-from rapid.views import register_model, register_instance_form, register_simple_select
-import rapid.permissions

+ 1 - 1
src/rapid/urls.py

@@ -18,7 +18,7 @@ def _can_manage_users(request):
     return request.user.application.managed_applications.profile_set
 
 urlpatterns = rapid.register_model(Application, 'aplicacao',
-                             write_set=permissions.to_admin(Application), read_set=permissions.to_all(Application)) +\
+                             write_set=permissions.to_admins(Application), read_set=permissions.to_all(Application)) +\
     rapid.register_model(Profile, write_set=permissions.to_admins(Profile), read_set=permissions.to_staff(Profile)) +\
     rapid.register_instance_form(Profile, 'manage_users', u'Gerenciar Usuários',
                             ManageUsers, _can_manage_users, "fa-users",