Beispiel #1
0
def patch_beaker():
    """
    A function to patch baker to store compiled template object in memcache.
    """
    import sys
    import google.appengine.api.memcache
    sys.modules['memcache'] = google.appengine.api.memcache
    import beaker.ext.memcached
    from beaker import synchronization
    beaker.ext.memcached.verify_directory = lambda x: None
    beaker.ext.memcached.MemcachedNamespaceManager.get_creation_lock = \
                            lambda x, y: synchronization.null_synchronizer()
Beispiel #2
0
 def get_access_lock(self):
     return null_synchronizer()
Beispiel #3
0
 def get_creation_lock(self, key):
     """@TODO - stop hitting filesystem for this...
     I think mongo can properly avoid dog piling for us.
     """
     return null_synchronizer()
Beispiel #4
0
 def get_creation_lock(self, key):
     return null_synchronizer()
Beispiel #5
0
 def get_creation_lock(self, key):
     # this is weird, should probably be present
     return null_synchronizer()
Beispiel #6
0
 def get_creation_lock(self, key):
     # no need in google environment
     return null_synchronizer()
Beispiel #7
0
 def get_creation_lock(self, key):
     # this is weird, should probably be present
     return null_synchronizer()
 def get_creation_lock(self, key):
     return null_synchronizer() # No need for creation lock.