src/pyams_utils/data.py
changeset 380 c062ab4db6cd
parent 367 2c95d34496f5
child 408 cf2304af0fab
equal deleted inserted replaced
379:07fe5bb08599 380:c062ab4db6cd
     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 """Object data API module
    13 """PyAMS_utils.data module
    14 
    14 
    15 The *IObjectData* interface is a generic interface which can be used to assign custom data to any object.
    15 The *IObjectData* interface is a generic interface which can be used to assign custom data to any object.
    16 This object data may be any object which can be serialized to JSON, and assigned to any HTML *data* attribute.
    16 This object data may be any object which can be serialized to JSON, and assigned to any HTML *data* attribute.
    17 It can typically be used to set a *data-ams-data* attribute to objects, which is afterwards converted to
    17 It can typically be used to set a *data-ams-data* attribute to objects, which is afterwards converted to
    18 classic *data-* attributes by **MyAMS.js** framework.
    18 classic *data-* attributes by **MyAMS.js** framework.