app/soc/views/models/user.py
changeset 586 a4a36b06a870
parent 569 96d9655a7538
child 587 7504504209a3
equal deleted inserted replaced
585:903890857ed8 586:a4a36b06a870
   289     """See base.View._editPost().
   289     """See base.View._editPost().
   290     """
   290     """
   291     # fill in the account field with the user created from email
   291     # fill in the account field with the user created from email
   292     fields['account'] = users.User(fields['email'])
   292     fields['account'] = users.User(fields['email'])
   293 
   293 
   294   def getUserSidebar(self):
   294   def getUserSidebar(self, request):
   295     """Returns an dictionary with the user sidebar entry.
   295     """Returns an dictionary with the user sidebar entry.
   296     """
   296     """
   297 
   297 
   298     params = {}
   298     params = {}
   299     params['sidebar_heading'] = "User (self)"
   299     params['sidebar_heading'] = "User (self)"
   300     params['sidebar'] = [
   300     params['sidebar'] = [
   301         ('/' + self._params['url_name'] + '/edit', 'Profile'),
   301         ('/' + self._params['url_name'] + '/edit', 'Profile', 'editSelf'),
   302         ('/' + self._params['url_name'] + '/roles', 'Roles'),
   302         ('/' + self._params['url_name'] + '/roles', 'Roles', 'roles'),
   303         ]
   303         ]
   304     return self.getSidebarLinks(params)
   304     return self.getSidebarLinks(request, params)
   305 
   305 
   306   def getDjangoURLPatterns(self):
   306   def getDjangoURLPatterns(self):
   307     """See base.View.getDjangoURLPatterns().
   307     """See base.View.getDjangoURLPatterns().
   308     """
   308     """
   309 
   309