app/soc/views/helper/decorators.py
changeset 2077 fd2e83a297c7
parent 1761 cf39e8705fac
child 2181 3ebe6cb63aa0
--- a/app/soc/views/helper/decorators.py	Fri Apr 03 17:41:08 2009 +0000
+++ b/app/soc/views/helper/decorators.py	Fri Apr 03 17:43:41 2009 +0000
@@ -37,6 +37,9 @@
 
 
 class Error(Exception):
+  """Base class for all exceptions raised by this module.
+  """
+  
   pass
 
 
@@ -52,6 +55,8 @@
 
   @wraps(func)
   def view_wrapper(request, *args, **kwds):
+    """View decorator wrapper method.
+    """
     site = site_logic.getSingleton()
 
     # don't redirect admins, or if we're at /maintenance already
@@ -87,6 +92,8 @@
 
   @wraps(func)
   def wrapper(self, *args, **kwargs):
+    """Decorator wrapper method.
+    """
     params = kwargs.get('params', {})
     kwargs['params'] = dicts.merge(params, self._params)
     return func(self, *args, **kwargs)
@@ -108,6 +115,8 @@
 
   @wraps(func)
   def wrapper(self, request, access_type, *args, **kwargs):
+    """Decorator wrapper method.
+    """
     params = kwargs.get('params', {})
 
     # Try to extract rights