Advertisement
Guest User

Untitled

a guest
Feb 16th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. diff --git app/summerofcode/content/html/summerofcode/profile/profile_show.html app/summerofcode/content/html/summerofcode/profile/profile_show.html
  2. index 5e348da..b503aa2 100644
  3. --- app/summerofcode/content/html/summerofcode/profile/profile_show.html
  4. +++ app/summerofcode/content/html/summerofcode/profile/profile_show.html
  5. @@ -17,6 +17,7 @@ limitations under the License.
  6. {% block stylesheets %}
  7. {{ block.super }}
  8. <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/buttons.css" />
  9. + <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/forms.css" />
  10. <link rel="stylesheet" type="text/css" media="screen" href="/soc/content/{{ app_version }}/css/gsoc/uniform.default.css" />
  11. {% endblock stylesheets %}
  12.  
  13. diff --git app/summerofcode/views/profile.py app/summerofcode/views/profile.py
  14. index 427a743..8d6a088 100644
  15. --- app/summerofcode/views/profile.py
  16. +++ app/summerofcode/views/profile.py
  17. @@ -1305,8 +1305,8 @@ class CreateProfileFormHandler(form_handler.FormHandler):
  18. data.program.key(), profile_properties, username=username, user=user,
  19. models=data.models)
  20.  
  21. - return http.HttpResponseRedirect(
  22. - links.LINKER.program(data.program, urls.UrlNames.PROFILE_EDIT))
  23. + redirect_url=links.LINKER.program(data.program,urls.UrlNames.PROFILE_SHOW)+'?validated'
  24. + return http.HttpResponseRedirect(redirect_url)
  25.  
  26.  
  27. class ProfileEditPage(base.GSoCRequestHandler):
  28. @@ -1333,7 +1333,9 @@ class ProfileEditPage(base.GSoCRequestHandler):
  29. return {
  30. 'page_name': PROFILE_EDIT_PAGE_NAME,
  31. 'forms': [form],
  32. - 'error': bool(form.errors)
  33. + 'error': bool(form.errors),
  34. + 'tabs': tabs.profileTabs(
  35. + data, selected_tab_id=tabs.EDIT_PROFILE_TAB_ID)
  36. }
  37.  
  38. def post(self, data, check, mutator):
  39. @@ -1347,9 +1349,9 @@ class ProfileEditPage(base.GSoCRequestHandler):
  40. profile_properties = _getProfileEntityPropertiesFromForm(
  41. form, data.models)
  42. editProfileTxn(data.ndb_profile.key, profile_properties)
  43. -
  44. - return http.HttpResponseRedirect(
  45. - links.LINKER.program(data.program, urls.UrlNames.PROFILE_EDIT))
  46. +
  47. + redirect_url=links.LINKER.program(data.program,urls.UrlNames.PROFILE_SHOW)+'?validated'
  48. + return http.HttpResponseRedirect(redirect_url)
  49.  
  50.  
  51. class ProfileShowPage(base.GSoCRequestHandler):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement