Ben Bangert avatar Ben Bangert committed b9e017b

* Adding 'google' backend datastore, available by specifying 'google' as the
cache/session type. Note that this takes an optional table_name used to name
the model class used.

Comments (0)

Files changed (3)

 ================
 
 0.9.4 (**tip**)
+* Adding 'google' backend datastore, available by specifying 'google' as the
+  cache/session type. Note that this takes an optional table_name used to name
+  the model class used.
 * SECURITY BUG: Fixed security issue with Beaker not properly removing
   directory escaping characters from the session ID when un-signed sessions
   are used. Reported with patch by Felix Schwarz.
 except InvalidCacheBackendError:
     pass
 
+try:
+    import beaker.ext.google as google
+    clsmap['ext:google'] = google.GoogleContainer
+except InvalidCacheBackendError:
+    pass
+except ImportError:
+    pass
+
 class Cache(object):
     """Front-end to the containment API implementing a data cache."""
     def __init__(self, namespace, **kwargs):

beaker/container.py

     return _cls_registry(name, 'Container')
 
 def _cls_registry(name, clsname):
-    if name.startswith('ext:') or name in ['memcached', 'database']:
+    if name.startswith('ext:') or name in ['memcached', 'database', 'google']:
         if name.startswith('ext:'):
             name = name[4:]
-        modname = "beaker.ext." + name 
+        modname = "beaker.ext." + name
         mod = getattr(__import__(modname).ext, name)
     else:
         mod = sys.modules[__name__]
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.