Ejemplo n.º 1
0
 def compute_location(org, course, name, revision=None, is_thumbnail=False):
     name = name.replace('/', '_')
     return Location([
         XASSET_LOCATION_TAG, org, course,
         'asset' if not is_thumbnail else 'thumbnail',
         Location.clean_keeping_underscores(name), revision
     ])
Ejemplo n.º 2
0
 def compute_location(org, course, name, revision=None, is_thumbnail=False):
     name = name.replace('/', '_')
     return Location([XASSET_LOCATION_TAG, org, course, 'asset' if not is_thumbnail else 'thumbnail',
                      Location.clean_keeping_underscores(name), revision])