Style fixes in soc.cache modules.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Wed, 28 Jan 2009 11:23:19 +0000
changeset 1029 a312e7007811
parent 1028 43fdf6739e8d
child 1030 a0081c626acb
Style fixes in soc.cache modules. Patch by: Pawel Solyga Reviewed by: to-be-reviewed
app/soc/cache/base.py
app/soc/cache/sidebar.py
--- a/app/soc/cache/base.py	Wed Jan 28 11:22:41 2009 +0000
+++ b/app/soc/cache/base.py	Wed Jan 28 11:23:19 2009 +0000
@@ -26,14 +26,14 @@
 
 
 def getCacher(get, put):
-  """Returns a caching decorator that uses get and put
+  """Returns a caching decorator that uses get and put.
   """
 
   # TODO(SRabbelier) possibly accept 'key' instead, and define
   # get and put in terms of key, depends on further usage
 
   def cache(func):
-    """Decorator that caches the result from func
+    """Decorator that caches the result from func.
     """
   
     @wraps(func)
--- a/app/soc/cache/sidebar.py	Wed Jan 28 11:22:41 2009 +0000
+++ b/app/soc/cache/sidebar.py	Wed Jan 28 11:23:19 2009 +0000
@@ -29,14 +29,14 @@
 
 
 def key(id):
-  """Returns the memcache key for the user's sidebar
+  """Returns the memcache key for the user's sidebar.
   """
 
   return 'sidebar_for_%s' % repr(id)
 
 
 def get(id, user):
-  """Retrieves the sidebar for the specified user from the memcache
+  """Retrieves the sidebar for the specified user from the memcache.
   """
 
   memcache_key = key(id)
@@ -44,7 +44,7 @@
 
 
 def put(sidebar, id, user):
-  """Sets the sidebar for the specified user in the memcache
+  """Sets the sidebar for the specified user in the memcache.
 
   Args:
     sidebar: the sidebar to be cached
@@ -58,7 +58,7 @@
 
 
 def flush(user=None):
-  """Removes the sidebar for the current user from the memcache
+  """Removes the sidebar for the current user from the memcache.
 
   Args:
     user: defaults to the current user if not set