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