Example #1
0
def expand_path_template(template, mimetype, asset_id, **options):
    extension = str(mimetypes.guess_extension(mimetype))
    t = Template(template)
    uuid = utilities.unique_asset_id_reference(asset_id)
    return t.safe_substitute(uuid=uuid,
                             dstFormat=mimetype,
                             extension=extension,
                             **options)
Example #2
0
def expand_path_template(template, mimetype, asset_id, **options):
    extension = str(mimetypes.guess_extension(mimetype))
    t = Template(template)
    uuid = utilities.unique_asset_id_reference(asset_id)
    return t.safe_substitute(
        uuid=uuid,
        dstFormat=mimetype,
        extension=extension,
        **options
    )
def UniqueAssetId(asset_id):
    return utilities.unique_asset_id_reference(asset_id)
def UniqueAssetId(asset_id):
    return utilities.unique_asset_id_reference(asset_id)