Commit 52cf4dde authored by Vincent Pelletier's avatar Vincent Pelletier

Improve coding style.

Improve docstrings.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6870 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d3234d25
......@@ -26,9 +26,7 @@
#
##############################################################################
class Amount:
"""
An amount defines a quantity and variation of a resource
"""
"""
An amount defines a quantity and variation of a resource
"""
......@@ -26,11 +26,9 @@
#
##############################################################################
class Capacity:
"""
A capacity is defined as a set of resources with quantities
expressed in a standard unit
"""
pass
"""
A capacity is defined as a set of resources with quantities
expressed in a standard unit
"""
pass
......@@ -26,10 +26,8 @@
#
##############################################################################
class Causality:
"""
A causality is contains movements generated by a template.
"""
pass
"""
A causality contains movements generated by a template.
"""
pass
......@@ -26,10 +26,9 @@
#
##############################################################################
from Item import Item
class Container(Item):
"""
"""
A container is a collection of Items (and Containers)
"""
"""
......@@ -26,9 +26,7 @@
#
##############################################################################
class Delivery:
"""
A Delivery object is a collection of movements
"""
"""
A Delivery object is a collection of movements
"""
......@@ -26,11 +26,10 @@
#
##############################################################################
class Item:
"""
An Item defines a serial number and is referenced by an amount
or a movement (or a couple of). During transformations, a tracking
document can be produced to provide details between transformed items.
"""
"""
An Item defines a serial number and is referenced by an amount
or a movement (or a couple of). During transformations, a tracking
document can be produced to provide details between transformed items.
"""
......@@ -26,36 +26,32 @@
#
##############################################################################
class MetaNode:
"""
A metanode aggregates a collection of real nodes.
It is used for planning and budgeting.
One application of a metanode is to create accounting rules....
"""
A metanode aggregates a collection of real nodes.
It is used for planning and budgeting.
One application of a metanode is to create accounting rules....
Ex. accounting
Ex. accounting
source/coramy/accounting/4003
destination/norfatex/accounting/2001
source/coramy/accounting/4003
destination/norfatex/accounting/2001
resource: EUR
amount: 10.0
resource: EUR
amount: 10.0
source/portal_categories/country/france/accounting/4003
destination/portal_categories/country/spain/accounting/2001
source/portal_categories/country/france/accounting/4003
destination/portal_categories/country/spain/accounting/2001
resource: EUR
amount: 10.0
resource: EUR
amount: 10.0
This means that we may have to add some uid to movement table
if we wish to benefit from acquisition.
This means that we may have to add some uid to movement table
if we wish to benefit from acquisition.
"""
def getNodeList():
"""
Returns the subnodes of this metanode
"""
def getNodeList():
"""
Returns the subnodes of this metanode
"""
......@@ -27,9 +27,9 @@
##############################################################################
class MetaResource:
"""
A meta resource is an abstract resource which summarizes
a collection of resources.
"""
A meta resource is an abstract resource which summarizes
a collection of resources.
Applicatino is : budgetting
"""
Application is : budgetting
"""
......@@ -26,12 +26,10 @@
#
##############################################################################
class Movement:
"""
Movement of a quantity of resource in a given variation
from a source to a destination. Discrete variation
is stored as category. Continuous variation is stored
as attribute.
"""
"""
Movement of a quantity of resource in a given variation
from a source to a destination. Discrete variation
is stored as category. Continuous variation is stored
as attribute.
"""
......@@ -26,9 +26,7 @@
#
##############################################################################
class Node:
"""
People, machines,
"""
"""
People, machines,
"""
......@@ -27,9 +27,9 @@
##############################################################################
class Path(Relation):
"""
A path defines a planning path between two nodes
source, destination, domain (which resource)
mapped value is : delivery, price etc.
"""
"""
A path defines a planning path between two nodes
source, destination, domain (which resource)
mapped value is : delivery, price etc.
"""
......@@ -26,10 +26,8 @@
#
##############################################################################
class Prototype:
"""
A transformed resource which can be extended
All Transformations should be prototypes
"""
"""
A transformed resource which can be extended
All Transformations should be prototypes
"""
......@@ -26,9 +26,7 @@
#
##############################################################################
class Quantity:
"""
Quantities are float in ERP5
"""
"""
Quantities are float in ERP5
"""
......@@ -26,9 +26,7 @@
#
##############################################################################
class Resource:
"""
Describes a resource
"""
"""
Describes a resource
"""
......@@ -26,9 +26,7 @@
#
##############################################################################
class Rule:
"""
Implemented as a movement template in XSL approach
"""
"""
Implemented as a movement template in XSL approach
"""
......@@ -26,10 +26,8 @@
#
##############################################################################
class Tracking:
"""
Points to items invoved in a transformation
(incl. identity transformation)
"""
"""
Points to items invoved in a transformation
(incl. identity transformation)
"""
......@@ -26,10 +26,8 @@
#
##############################################################################
class Transformation:
"""
Collectino of transformed resources
"""
pass
"""
Collection of transformed resources
"""
pass
......@@ -26,9 +26,7 @@
#
##############################################################################
class Variation:
"""
Discrete variation
"""
"""
Discrete variation
"""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment