Commits

Kai Diefenbach committed 7470045

Added german translations

Comments (0)

Files changed (4)

   .. autofunction:: grant_permission
   .. autofunction:: remove_permission
   .. autofunction:: has_permission
+  .. autofunction:: reset
 
+Manage roles
+------------
 
+  .. autofunction:: add_role
+  .. autofunction:: add_local_role
+  
+  .. autofunction:: get_roles
+  .. autofunction:: get_global_roles
+  .. autofunction:: get_local_roles
+  
+  .. autofunction:: remove_role
+  .. autofunction:: remove_local_role
+  
+  .. autofunction:: remove_roles
+  .. autofunction:: remove_local_roles
+  
 Manage inheritance
 ------------------
 
   .. autofunction:: add_inheritance_block
   .. autofunction:: remove_inheritance_block
   .. autofunction:: is_inherited
-
+  
 Registration
 ------------
 
   .. autofunction:: register_group
   .. autofunction:: unregister_group
 
+Helpers 
+-------
+
+  .. autofunction:: get_user
+  .. autofunction:: get_group
+  .. autofunction:: get_role
+
 Template tags
 =============
 

permissions/locale/de/LC_MESSAGES/django.mo

Binary file added.

permissions/locale/de/LC_MESSAGES/django.po

+# German translations for django-permissions
+# Copyright (C) 2010 Kai Diefenbach
+# This file is distributed under the same license as the PACKAGE package.
+# Kai Diefenbach <kai.diefenbach@iqpp.de>, 2010.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: 1.0 alpha\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2010-03-30 23:12+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: models.py:154
+msgid "Name"
+msgstr "Name"
+
+#: models.py:155
+msgid "Codename"
+msgstr "Codename"
+
+#: models.py:156
+msgid "Content Types"
+msgstr "Inhaltstypen"
+
+#: models.py:175 models.py:280
+msgid "Role"
+msgstr "Rolle"
+
+#: models.py:176 models.py:216
+msgid "Permission"
+msgstr "Recht"
+
+#: models.py:178 models.py:218 models.py:282
+msgid "Content type"
+msgstr "Inhaltstyp"
+
+#: models.py:179 models.py:219 models.py:283
+msgid "Content id"
+msgstr "Inhalts-ID"
+
+#: models.py:278
+msgid "User"
+msgstr "Benutzer"
+
+#: models.py:279
+msgid "Group"
+msgstr "Gruppe"

permissions/utils.py

     return True
 
 def remove_roles(principal):
-    """Removes all local roles passed principal (user or group).
+    """Removes all roles passed principal (user or group).
 
     **Parameters:**
 
 
 def get_roles(principal, obj=None):
     """Returns all roles of passed user for passed content object. This takes
-    global and local roles into account
+    direct and roles via a group into account. If an object is passed local
+    roles will also added.
 
     **Parameters:**
 
     user
         The user for which the permission should be checked.
 
-    groups
-        If given these groups will be assigned to the user temporarily before
-        the permissions are checked. If you don't know why this is need you
-        can safely ignore it.
+    roles
+        If given these roles will be assigned to the user temporarily before
+        the permissions are checked.
     """
     if user.is_superuser:
         return True