Exemple #1
0
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
Exemple #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