'Generate an AssetKey for the given path (old c4x/org/course/asset/name syntax)'

@staticmethod
def get_location_from_path(path):

    try:
        return AssetKey.from_string(path)
    except InvalidKeyError:
        if path.startswith('/'):
            return AssetKey.from_string(path[1:])
