src/pyams_utils/interfaces/intids.py
branchdev-tf
changeset 427 63284c98cdc1
parent 46 c9a917e7875c
equal deleted inserted replaced
426:2022e4da3ad9 427:63284c98cdc1
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
    10 # FOR A PARTICULAR PURPOSE.
    10 # FOR A PARTICULAR PURPOSE.
    11 #
    11 #
    12 
    12 
       
    13 """PyAMS_utils.interfaces.intids module
       
    14 
       
    15 Small set of interfaces used by IIntIds utilities.
       
    16 """
       
    17 
       
    18 from zope.interface import Interface
       
    19 from zope.schema import Int, TextLine
       
    20 
       
    21 
    13 __docformat__ = 'restructuredtext'
    22 __docformat__ = 'restructuredtext'
    14 
       
    15 # import standard packages
       
    16 
       
    17 # import interfaces
       
    18 from zope.interface import Interface
       
    19 
       
    20 # import packages
       
    21 from zope.schema import TextLine, Int
       
    22 
    23 
    23 
    24 
    24 #
    25 #
    25 # Generic interfaces
    26 # Generic interfaces
    26 #
    27 #
    33 
    34 
    34 class IUniqueID(Interface):
    35 class IUniqueID(Interface):
    35     """Interface used to get unique ID of an object"""
    36     """Interface used to get unique ID of an object"""
    36 
    37 
    37     oid = TextLine(title="Unique ID",
    38     oid = TextLine(title="Unique ID",
    38                    description="Globally unique identifier of this object can be used to create internal links",
    39                    description="Globally unique identifier of this object can be used to create "
       
    40                                "internal links",
    39                    readonly=True)
    41                    readonly=True)