Beispiel #1
0
 def get_all_resources(self):
     return Resource.all().filter("generation =", self.settings.version).fetch(1000)
Beispiel #2
0
 def flush_resource(self, path):
     # purge all generations
     resources = Resource.all().filter("path =", path).fetch(1000)
     db.delete(resources)
Beispiel #3
0
 def get_all_resources(self):
     return Resource.all().filter("generation =",
                                  self.settings.version).filter(
                                      "domain =",
                                      os.environ['SERVER_NAME']).fetch(1000)
Beispiel #4
0
 def flush_resource(self, path):
     # purge all generations
     resources = Resource.all().filter("path =", path).filter(
         "domain =", os.environ['SERVER_NAME']).fetch(1000)
     db.delete(resources)
Beispiel #5
0
 def get_all_resources(self):
     return Resource.all().filter("generation =", self.settings.version).filter("domain =", os.environ['SERVER_NAME']).fetch(1000)
Beispiel #6
0
 def flush_resource(self, path):
     # purge all generations
     resources = Resource.all().filter("path =", path).filter("domain =", os.environ['SERVER_NAME']).fetch(1000)
     db.delete(resources)