Changeset 1037 in main


Ignore:
Timestamp:
04/25/12 14:03:55 (7 years ago)
Author:
pcosquer
Message:

docs

File:
1 edited

Legend:

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

    r1029 r1037  
    142142    """ 
    143143    Home page view. 
     144 
     145    :url: :samp:`/home/` 
     146     
     147    **Template:** 
     148     
     149    :file:`home.html` 
     150 
     151    **Context:** 
     152 
     153    ``RequestContext`` 
     154  
     155    ``pending_invitations_owner`` 
     156        QuerySet of pending invitations to groups owned by the user 
     157 
     158    ``pending_invitations_guest`` 
     159        QuerySet of pending invitations to groups that the user can joined 
     160 
    144161    """ 
    145162    obj, ctx = get_generic_data(request, "User", request.user.username) 
     
    177194     
    178195    ``object_attributes`` 
    179         list of tuple (verbose attribute name, value) 
     196        list of tuples(verbose attribute name, value) 
    180197         
    181198    """ 
     
    564581def display_object_history(request, obj_type, obj_ref, obj_revi): 
    565582    """ 
    566     Manage html page which displays the history of the selected object. 
    567     It computes a context dictionnary based on 
    568      
    569     .. include:: views_params.txt  
     583    History view. 
     584     
     585    This view displays an history of the selected object and its revisions. 
     586 
     587    :url: :samp:`/object/{obj_type}/{obj_ref}/{obj_revi}/history/` 
     588    :url: :samp:`/user/{username}/history/` 
     589    :url: :samp:`/group/{group_name}/history/` 
     590     
     591    .. include:: views_params.txt  
     592 
     593    **Template:** 
     594     
     595    :file:`attribute.html` 
     596 
     597    **Context:** 
     598 
     599    ``RequestContext`` 
     600 
     601    ``object_history`` 
     602        list of :class:`.AbstractHistory` 
     603 
     604    ``show_revisions`` 
     605        True if the template should show the revision of each history row 
     606     
    570607    """ 
    571608    obj, ctx = get_generic_data(request, obj_type, obj_ref, obj_revi) 
Note: See TracChangeset for help on using the changeset viewer.