app/soc/views/models/user_self.py
changeset 2360 e389d26949db
parent 2205 77273200ab4f
equal deleted inserted replaced
2359:d4de17ab9a1f 2360:e389d26949db
   148       kwargs: The Key Fields for the specified entity
   148       kwargs: The Key Fields for the specified entity
   149     """
   149     """
   150 
   150 
   151     # set the link_id to the current user's link_id
   151     # set the link_id to the current user's link_id
   152     user_entity = user_logic.getForCurrentAccount()
   152     user_entity = user_logic.getForCurrentAccount()
       
   153     # pylint: disable-msg=E1103
   153     link_id = user_entity.link_id
   154     link_id = user_entity.link_id
   154 
   155 
   155     return self.edit(request, access_type, page_name=page_name, 
   156     return self.edit(request, access_type, page_name=page_name, 
   156         params=params, link_id=link_id, **kwargs)
   157         params=params, link_id=link_id, **kwargs)
   157 
   158 
   233     """
   234     """
   234 
   235 
   235     user = user_logic.getForCurrentAccount()
   236     user = user_logic.getForCurrentAccount()
   236 
   237 
   237     # only select the roles for the current user
   238     # only select the roles for the current user
       
   239     # pylint: disable-msg=E1103
   238     filter = {
   240     filter = {
   239         'link_id': user.link_id,
   241         'link_id': user.link_id,
   240         'status': ['active', 'inactive']
   242         'status': ['active', 'inactive']
   241         }
   243         }
   242 
   244