def getAllAssetVersions(): """ This is a simple example to get all asset versions. """ db = core.getDb() versions = core.getVersions(db=db, doc_id="bls_chr_belanus_mod_main") print versions return versions
def getVersionsList ( self, doc_id = "" ): paths = core.getVersions ( db = self.db, doc_id = doc_id ) versions = list () for path in paths : versions.append ( os.path.basename ( path ) ) return versions