current
Last change
on this file since c2a786e was
b3374f6,
checked in by Borja Lopez <borja@…>, 5 years ago
|
(#52) - Make map screenshot generation async and non-blocker of the dashboard
and user profile pages:
- workout.map_screenshot is a property again, returns a string with the
static path (suitable for use with request.static_url()) for the map
screenshot file if exists, none otherwise
- added a couple of helpers to build the proper screenshot name and
full path on the filesystem
- added a view to generate the map if needed, returning the full
static url to the screenshot file in a json-encoded stream
- added a new js ow tool that looks for workouts that still don't
have a map screenshot, calling the view to generate that screenshot
and updating the map screenshot when the file is ready
- modified the dashboard and user profile templates, so a dummy/placeholder
image is shown when no map screenshot is yet ready, plus setup and calls
for the js tool that generates the maps.
|
-
Property mode set to
100644
|
File size:
148 bytes
|
Line | |
---|
1 | |
---|
2 | def join(*args, **kwargs): |
---|
3 | """ |
---|
4 | Faked join method, for mocking purposes |
---|
5 | """ |
---|
6 | return '/' + '/'.join([arg.strip('/') for arg in args]) |
---|
Note: See
TracBrowser
for help on using the repository browser.