Changeset 362 in main


Ignore:
Timestamp:
10/03/11 09:24:00 (8 years ago)
Author:
pcosquer
Message:

groups: add the 'objects' page

Location:
trunk/openPLM
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/views/main.py

    r358 r362  
    10341034    return r2r("users/sponsor.htm", ctx, request) 
    10351035 
     1036@handle_errors 
     1037def display_plmobjects(request, obj_ref): 
     1038    """ 
     1039    View of the *objects* page of a group. 
     1040    """ 
     1041     
     1042    obj, ctx = get_generic_data(request, "Group", obj_ref) 
     1043    ctx["objects"] = obj.plmobject_group.all().order_by("type", "reference", "revision") 
     1044    ctx['current_page'] = 'groups' 
     1045    return r2r("groups/objects.htm", ctx, request) 
     1046 
  • trunk/openPLM/urls.py

    r357 r362  
    140140    (r'attributes/$', display_object_attributes, group_dict), 
    141141    (r'history/$', display_object_history, group_dict), 
     142    (r'objects/$', display_plmobjects), 
    142143    (r'users/$', display_users), 
    143144    (r'users/add/$', group_add_user), 
Note: See TracChangeset for help on using the changeset viewer.