Author: eduardo.padoan
Date: Sun Sep 21 15:22:42 2008
New Revision: 165
Modified:
trunk/ (props changed)
trunk/docs/api.txt
Log:
Documented is_private() and is_member()
Modified: trunk/docs/api.txt
==============================================================================
--- trunk/docs/api.txt (original)
+++ trunk/docs/api.txt Sun Sep 21 15:22:42 2008
@@ -42,10 +42,26 @@
extra_context
A dictionary of variables that you want to render on the template.
+is_member
+ A function to determine if the `user` is a member if the `group`.
+ Example: `lambda user, group: group.has_member(user)`.
+ If this argument is not given or returns True when called by the views,
+ the user is able to "read" and "write" operations on the wiki, like
creating
+ or editng an article, or reverting an article to an older revision.
+
+is_private
+ A function to determine if the `group` is private.
+ Example: `lambda group: group.is_private`. When the group is private and
the
+ user is not a member, the user is denied of any "read" *and* "write"
operations
+ on the wiki. When this argument is not given, the wiki is "public".
+ When this argument is given, the `is_member` argument is required.
+
+
static_url.py
-------------
Static files urls. Use if you want to test the example templates.
+
Article Groups
==============
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---