Exemplo n.º 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()
Exemplo n.º 2
0
 def get_access_lock(self):
     return null_synchronizer()
Exemplo n.º 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()
Exemplo n.º 4
0
 def get_creation_lock(self, key):
     return null_synchronizer()
Exemplo n.º 5
0
 def get_creation_lock(self, key):
     # this is weird, should probably be present
     return null_synchronizer()
Exemplo n.º 6
0
 def get_creation_lock(self, key):
     # no need in google environment
     return null_synchronizer()
Exemplo n.º 7
0
 def get_creation_lock(self, key):
     # this is weird, should probably be present
     return null_synchronizer()
Exemplo n.º 8
0
 def get_creation_lock(self, key):
     return null_synchronizer() # No need for creation lock.