Exemplo n.º 1
0
Arquivo: test.py Projeto: pixo/badass
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
Exemplo n.º 2
0
    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