Changeset 1071 in main


Ignore:
Timestamp:
04/27/12 14:47:57 (7 years ago)
Author:
pcosquer
Message:

docs: add units module

Location:
trunk
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/docs/devel/modules/units.rst

    r1068 r1071  
    1 ================================================================= 
    2 :mod:`plmapp_tags` --- Template tags and filters used by openPLM 
    3 ================================================================= 
     1======================= 
     2:mod:`units` --- Units 
     3======================= 
    44 
    5 .. automodule:: plmapp.templatetags.plmapp_tags 
     5.. automodule:: plmapp.units 
    66    :members: 
    77    :undoc-members: 
  • trunk/openPLM/plmapp/units.py

    r643 r1071  
     1u""" 
     2This module defines two constants: 
     3 
     4.. data:: DEFAULT_UNIT 
     5 
     6    The default unit of a BOM row: ``-`` (each) 
     7 
     8.. data:: UNITS 
     9 
     10    All valid units of a BOM row. 
     11""" 
     12 
    113from django.utils.translation import ugettext_lazy as _ 
    214 
    315DEFAULT_UNIT = "-" 
     16 
    417UNITS = ( 
    518    (_(u'Amounts'), ( 
Note: See TracChangeset for help on using the changeset viewer.