Changeset 1027 in main


Ignore:
Timestamp:
04/24/12 12:57:28 (7 years ago)
Author:
pcosquer
Message:

views: rewrites some docs

File:
1 edited

Legend:

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

    r1026 r1027  
    162162def display_object_attributes(request, obj_type, obj_ref, obj_revi): 
    163163    """ 
    164     Manage html page which displays attributes of the selected object. 
    165     It computes a context dictionnary based on 
    166      
    167     .. include:: views_params.txt  
     164    Attributes view of the given object. 
     165 
     166    :url: :samp:`/object/{obj_type}/{obj_ref}/{obj_revi}/attributes/` 
     167 
     168    .. include:: views_params.txt  
     169 
     170    **Template:** 
     171     
     172    :file:`attribute.html` 
     173 
     174    **Context:** 
     175 
     176    ``RequestContext`` 
     177     
     178    ``object_attributes`` 
     179        list of tuple (verbose attribute name, value) 
     180         
    168181    """ 
    169182    obj, ctx = get_generic_data(request, obj_type, obj_ref, obj_revi) 
     
    185198def display_object(request, obj_type, obj_ref, obj_revi): 
    186199    """ 
    187     Manage html page which displays attributes of the selected object. 
    188     Redirection to :func:display_object_attributes 
     200    Generic object view. 
     201 
     202    Permanently redirects to the attribute page of the given object if it 
     203    is a part, an user or a group and to the files page if it is a document. 
     204 
     205    :url: :samp:`/object/{obj_type}/{obj_ref}/{obj_revi}/` 
    189206    """ 
    190207      
Note: See TracChangeset for help on using the changeset viewer.