Ejemplo n.º 1
0
 def updateIndex(self): # Make sure to call this before saving if not using db.put or db.put_async
     # could use more than base 16, but don't care that much.
     self.index = ['%s:%s:%s' % (self.filename, x, getStrSortableHexNum(self.version)) for x in self.tags]
Ejemplo n.º 2
0
 def getSpecificVersion(cls, filename, tag, version, keys_only=False):
     indexKey = '%s:%s:%s' % (filename, tag, getStrSortableHexNum(version))
     return cls.all(keys_only=keys_only).filter('index =', indexKey).get()