equal
deleted
inserted
replaced
108 """ |
108 """ |
109 |
109 |
110 return '/%s/home/%s' % ( |
110 return '/%s/home/%s' % ( |
111 params['url_name'], entity.key().id_or_name()) |
111 params['url_name'], entity.key().id_or_name()) |
112 |
112 |
|
113 |
113 def getReviewRedirect(entity, params): |
114 def getReviewRedirect(entity, params): |
114 """Returns the redirect to review the specified entity. |
115 """Returns the redirect to review the specified entity. |
115 """ |
116 """ |
116 |
117 |
117 return '/%s/review/%s' % ( |
118 return '/%s/review/%s' % ( |
118 params['url_name'], entity.key().id_or_name()) |
119 params['url_name'], entity.key().id_or_name()) |
119 |
120 |
|
121 |
120 def getReviewOverviewRedirect(entity, params): |
122 def getReviewOverviewRedirect(entity, params): |
121 """Returns the redirect to the review_overview using the |
123 """Returns the redirect to the review_overview using the |
122 keyname of the specified entity. |
124 keyname of the specified entity. |
123 """ |
125 """ |
124 |
126 |
125 return '/%s/review_overview/%s' % ( |
127 return '/%s/review_overview/%s' % ( |
126 params['url_name'], entity.key().id_or_name()) |
128 params['url_name'], entity.key().id_or_name()) |
343 """ |
345 """ |
344 |
346 |
345 return '/document/list/%s/%s' % (prefix, entity.key().id_or_name()) |
347 return '/document/list/%s/%s' % (prefix, entity.key().id_or_name()) |
346 |
348 |
347 |
349 |
|
350 def getCreateSurveyRedirect(entity, prefix): |
|
351 """Returns the redirect for new documents. |
|
352 """ |
|
353 |
|
354 return '/survey/create/%s/%s' % (prefix, entity.key().id_or_name()) |
|
355 |
|
356 |
|
357 def getListSurveysRedirect(entity, prefix): |
|
358 """Returns the redirect for listing documents. |
|
359 """ |
|
360 |
|
361 return '/survey/list/%s/%s' % (prefix, entity.key().id_or_name()) |
|
362 |
|
363 |
|
364 def getListSurveyResultsRedirect(entity, prefix): |
|
365 """Returns the redirect for listing documents. |
|
366 """ |
|
367 |
|
368 return '/survey/list_results/%s/%s' % (prefix, entity.key().id_or_name()) |
|
369 |
|
370 |
348 def getToSRedirect(presence): |
371 def getToSRedirect(presence): |
349 """Returns link to 'show' the ToS Document if it exists, None otherwise. |
372 """Returns link to 'show' the ToS Document if it exists, None otherwise. |
350 |
373 |
351 Args: |
374 Args: |
352 presence: Presence entity that may or may not have a tos property |
375 presence: Presence entity that may or may not have a tos property |