Changeset 352 in main


Ignore:
Timestamp:
09/28/11 14:01:17 (8 years ago)
Author:
pcosquer
Message:

add "add user" feature to groups

Location:
trunk/openPLM
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/controllers/group.py

    r345 r352  
    145145    @permission_required(role=models.ROLE_OWNER) 
    146146    def add_user(self, user): 
    147         user.groups.add(self._histo) 
    148          
     147        """ 
     148        Adds *user* to the group. 
     149        """ 
     150        user.groups.add(self.object) 
     151        # TODO send a more relevant mail 
     152        self._save_histo("User added", user.username, users=(user,)) 
    149153 
    150  
    151  
  • trunk/openPLM/urls.py

    r343 r352  
    139139    (r'history/$', display_object_history, group_dict), 
    140140    (r'users/$', display_users), 
    141     #(r'modify/$', modify_group), 
    142     (r'navigate/$', navigate, group_dict), 
     141    (r'users/add/$', group_add_user), 
     142    #(r'navigate/$', navigate, group_dict), 
    143143) 
    144144urlpatterns += patterns('', 
Note: See TracChangeset for help on using the changeset viewer.