Commits

Anonymous committed 42e477f

  • Participants
  • Parent commits 90e4c6f

Comments (0)

Files changed (1)

 
 == Roles ==
 
-ExtPerms Roles lets you define what a users "role" is, relative
+ExtAuth Roles lets you define what a users "role" is, relative
 to a particular instance of a model.  You can then give users in that role
 additional permissions to that particular instance.
 
 == Defining Roles ==
 
-ExtPerms Roles are defined much like ModelAdmins are defined for the //django.contrib.auth//
+ExtAuth Roles are defined much like ModelAdmins are defined for the //django.contrib.auth//
 module.  You must define a **roles.py** module in the base of your application.
 This file is read during a syncdb call, and will automatically add entries into
 your database for the defined roles.
 
-For each Model you want to manage through ExtPerms Roles, you must register it with a 
+For each Model you want to manage through ExtAuth Roles, you must register it with a 
 RoleManager class:
 {{{
 #!python
-from extperms.auth import roles
+from extauth import roles
 
 class WidgetRoles(roles.RoleManager):
     pass
 
 === By User ===
 
-ExtPerms provides two role types that connect a user to a Model instance, **IsSelf** and
+ExtAuth provides two role types that connect a user to a Model instance, **IsSelf** and
 **UserIs**.
 
 A user has the **IsSelf** role only on instances of //django.contrib.auth.models.User//
 
 {{{
 #!python
-from extperms.auth import roles
+from extauth import roles
 
 class WidgetRoles(roles.RoleManager):
     supplier = roles.UserIs('supplier')
 
 {{{
 #!python
-from extperms.auth import roles
+from extauth import roles
 
 class WidgetRoles(roles.RoleManager):
     supplier = roles.UserIs('supplier')
 
 While these pre-defined roles will handle most role definitions you could need,
 you are by no means limited to just those.  You can create your own subclass or
-**extperms.auth.roles.RoleBase** to create the role definition you need.
+**extauth.roles.RoleBase** to create the role definition you need.
 
 == Role Permissions ==
 
-Django lets you associate Permissions to Users and Groups.  ExtPerms also lets you 
+Django lets you associate Permissions to Users and Groups.  ExtAuth also lets you 
 associate Permissions to named Roles.  When a user is determined to be in that
 role in relation to a particular Model instance, they will be given the additional
 permissions specified in the role.  
 
 {{{
 #!python
-from extperms.auth import roles
+from extauth import roles
 
 widget_instance = examples.models.Widget()
 roles = roles.get_roles(widget_instance)