Changes in ow/views/workout.py [78af3d1:55470f9] in OpenWorkouts-current
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/views/workout.py
r78af3d1 r55470f9 23 23 @view_config( 24 24 context=User, 25 permission='edit',26 25 name='add-workout-manually', 27 26 renderer='ow:templates/add_manual_workout.pt') … … 60 59 @view_config( 61 60 context=User, 62 permission='edit',63 61 name='add-workout', 64 62 renderer='ow:templates/add_workout.pt') … … 95 93 @view_config( 96 94 context=Workout, 97 permission='edit',98 95 name='edit', 99 96 renderer='ow:templates/edit_manual_workout.pt') … … 142 139 @view_config( 143 140 context=Workout, 144 permission='edit',145 141 name='update-from-file', 146 142 renderer='ow:templates/update_workout_from_file.pt') … … 171 167 @view_config( 172 168 context=Workout, 173 permission='delete',174 169 name='delete', 175 170 renderer='ow:templates/delete_workout.pt') … … 189 184 @view_config( 190 185 context=Workout, 191 permission='view',192 186 renderer='ow:templates/workout.pt') 193 187 def workout(context, request): … … 218 212 For now, simply return the gpx file if it has been attached to the 219 213 workout. 220 221 This view requires no permission, as we access it from an non-authenticated222 request in a separate job, to generate the static map screenshot.223 214 """ 224 215 if not context.has_gpx: … … 238 229 def workout_map(context, request): 239 230 """ 240 Render a page that has only a map with tracking info. 241 This view requires no permission, as we access it from an non-authenticated 242 request in a separate job, to generate the static map screenshot. 231 Render a page that has only a map with tracking info 243 232 """ 244 233 start_point = {}
Note: See TracChangeset
for help on using the changeset viewer.