Changeset 2074 in main for trunk/docs


Ignore:
Timestamp:
02/01/13 08:18:10 (6 years ago)
Author:
pcosquer
Message:

docs: admin: references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/en/admin/references.rst

    r2073 r2074  
     1.. _admin-references: 
     2 
    13==================================================== 
    24References -- how to customize generated references 
     
    2123since two revisions shared the same number. 
    2224 
     25 
    2326Default behavior 
    2427================ 
     
    3336 
    3437Parts and documents have two distinct counters. 
     38 
    3539 
    3640How to customize it 
     
    8791    user 
    8892        a :class:`.User` who will creates the object. 
     93        You should not write directly ``{user}``, you should append one of its attributes: 
    8994 
    90             * ``{user.username}``: user's username. 
    91             * ``{user.first_name}``: user's first name  
    92             * ``{user.last_name}``: user's last name  
     95            * ``{user.username}``: username (login). 
     96            * ``{user.first_name}``: first name  
     97            * ``{user.last_name}``: last name  
    9398 
    9499    initials 
     
    102107and be too long. 
    103108 
     109 
    104110Regular expression pattern 
    105111--------------------------- 
     
    111117OpenPLM accepts a compiled pattern if you need to set a special flag to 
    112118the regular expression. 
     119 
    113120 
    114121Examples 
     
    133140 
    134141will generate sequences like ``DOC_00001``, ``PART_00002``, ``PART_00003``, ``DOC_00004``, etc. 
    135  
    136142 
    137143 
     
    180186``rbaratheon-2-part``, and ``RB-2-doc``, etc. 
    181187 
    182  
    183  
    184  
Note: See TracChangeset for help on using the changeset viewer.