[Erp5-report] r6870 - /erp5/trunk/products/ERP5/Core/
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Apr 24 10:48:36 CEST 2006
Author: vincent
Date: Mon Apr 24 10:48:33 2006
New Revision: 6870
URL: http://svn.erp5.org?rev=6870&view=rev
Log:
Improve coding style.
Improve docstrings.
Modified:
erp5/trunk/products/ERP5/Core/Amount.py
erp5/trunk/products/ERP5/Core/Capacity.py
erp5/trunk/products/ERP5/Core/Causality.py
erp5/trunk/products/ERP5/Core/Container.py
erp5/trunk/products/ERP5/Core/Delivery.py
erp5/trunk/products/ERP5/Core/Item.py
erp5/trunk/products/ERP5/Core/MetaNode.py
erp5/trunk/products/ERP5/Core/MetaResource.py
erp5/trunk/products/ERP5/Core/Movement.py
erp5/trunk/products/ERP5/Core/Node.py
erp5/trunk/products/ERP5/Core/Path.py
erp5/trunk/products/ERP5/Core/Prototype.py
erp5/trunk/products/ERP5/Core/Quantity.py
erp5/trunk/products/ERP5/Core/Resource.py
erp5/trunk/products/ERP5/Core/Rule.py
erp5/trunk/products/ERP5/Core/Tracking.py
erp5/trunk/products/ERP5/Core/Transformation.py
erp5/trunk/products/ERP5/Core/Variation.py
Modified: erp5/trunk/products/ERP5/Core/Amount.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Amount.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Amount.py (original)
+++ erp5/trunk/products/ERP5/Core/Amount.py Mon Apr 24 10:48:33 2006
@@ -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
+ """
Modified: erp5/trunk/products/ERP5/Core/Capacity.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Capacity.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Capacity.py (original)
+++ erp5/trunk/products/ERP5/Core/Capacity.py Mon Apr 24 10:48:33 2006
@@ -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
Modified: erp5/trunk/products/ERP5/Core/Causality.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Causality.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Causality.py (original)
+++ erp5/trunk/products/ERP5/Core/Causality.py Mon Apr 24 10:48:33 2006
@@ -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
Modified: erp5/trunk/products/ERP5/Core/Container.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Container.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Container.py (original)
+++ erp5/trunk/products/ERP5/Core/Container.py Mon Apr 24 10:48:33 2006
@@ -26,10 +26,9 @@
#
##############################################################################
-
from Item import Item
class Container(Item):
- """
+ """
A container is a collection of Items (and Containers)
- """
+ """
Modified: erp5/trunk/products/ERP5/Core/Delivery.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Delivery.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Delivery.py (original)
+++ erp5/trunk/products/ERP5/Core/Delivery.py Mon Apr 24 10:48:33 2006
@@ -26,9 +26,7 @@
#
##############################################################################
-
-
class Delivery:
- """
- A Delivery object is a collection of movements
- """
+ """
+ A Delivery object is a collection of movements
+ """
Modified: erp5/trunk/products/ERP5/Core/Item.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Item.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Item.py (original)
+++ erp5/trunk/products/ERP5/Core/Item.py Mon Apr 24 10:48:33 2006
@@ -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.
+ """
-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.
- """
-
Modified: erp5/trunk/products/ERP5/Core/MetaNode.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/MetaNode.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/MetaNode.py (original)
+++ erp5/trunk/products/ERP5/Core/MetaNode.py Mon Apr 24 10:48:33 2006
@@ -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....
+
+ Ex. accounting
+ source/coramy/accounting/4003
+ destination/norfatex/accounting/2001
-class MetaNode:
+ resource: EUR
+ amount: 10.0
+
+ source/portal_categories/country/france/accounting/4003
+ destination/portal_categories/country/spain/accounting/2001
+
+ 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.
+
+ """
+
+ def getNodeList():
"""
- 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
-
- source/coramy/accounting/4003
- destination/norfatex/accounting/2001
-
- resource: EUR
- amount: 10.0
-
-
- source/portal_categories/country/france/accounting/4003
- destination/portal_categories/country/spain/accounting/2001
-
- 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.
-
+ Returns the subnodes of this metanode
"""
-
-
- def getNodeList():
- """
- Returns the subnodes of this metanode
- """
Modified: erp5/trunk/products/ERP5/Core/MetaResource.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/MetaResource.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/MetaResource.py (original)
+++ erp5/trunk/products/ERP5/Core/MetaResource.py Mon Apr 24 10:48:33 2006
@@ -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
+ """
Modified: erp5/trunk/products/ERP5/Core/Movement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Movement.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Movement.py (original)
+++ erp5/trunk/products/ERP5/Core/Movement.py Mon Apr 24 10:48:33 2006
@@ -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.
+ """
Modified: erp5/trunk/products/ERP5/Core/Node.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Node.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Node.py (original)
+++ erp5/trunk/products/ERP5/Core/Node.py Mon Apr 24 10:48:33 2006
@@ -26,9 +26,7 @@
#
##############################################################################
-
-
class Node:
- """
- People, machines,
- """
+ """
+ People, machines,
+ """
Modified: erp5/trunk/products/ERP5/Core/Path.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Path.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Path.py (original)
+++ erp5/trunk/products/ERP5/Core/Path.py Mon Apr 24 10:48:33 2006
@@ -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.
+ """
Modified: erp5/trunk/products/ERP5/Core/Prototype.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Prototype.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Prototype.py (original)
+++ erp5/trunk/products/ERP5/Core/Prototype.py Mon Apr 24 10:48:33 2006
@@ -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
+ """
Modified: erp5/trunk/products/ERP5/Core/Quantity.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Quantity.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Quantity.py (original)
+++ erp5/trunk/products/ERP5/Core/Quantity.py Mon Apr 24 10:48:33 2006
@@ -26,9 +26,7 @@
#
##############################################################################
-
-
class Quantity:
- """
- Quantities are float in ERP5
- """
+ """
+ Quantities are float in ERP5
+ """
Modified: erp5/trunk/products/ERP5/Core/Resource.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Resource.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Resource.py (original)
+++ erp5/trunk/products/ERP5/Core/Resource.py Mon Apr 24 10:48:33 2006
@@ -26,9 +26,7 @@
#
##############################################################################
-
-
class Resource:
- """
- Describes a resource
- """
+ """
+ Describes a resource
+ """
Modified: erp5/trunk/products/ERP5/Core/Rule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Rule.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Rule.py (original)
+++ erp5/trunk/products/ERP5/Core/Rule.py Mon Apr 24 10:48:33 2006
@@ -26,9 +26,7 @@
#
##############################################################################
-
-
class Rule:
- """
- Implemented as a movement template in XSL approach
- """
+ """
+ Implemented as a movement template in XSL approach
+ """
Modified: erp5/trunk/products/ERP5/Core/Tracking.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Tracking.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Tracking.py (original)
+++ erp5/trunk/products/ERP5/Core/Tracking.py Mon Apr 24 10:48:33 2006
@@ -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)
+ """
Modified: erp5/trunk/products/ERP5/Core/Transformation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Transformation.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Transformation.py (original)
+++ erp5/trunk/products/ERP5/Core/Transformation.py Mon Apr 24 10:48:33 2006
@@ -26,10 +26,8 @@
#
##############################################################################
-
-
class Transformation:
- """
- Collectino of transformed resources
- """
- pass
+ """
+ Collection of transformed resources
+ """
+ pass
Modified: erp5/trunk/products/ERP5/Core/Variation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Core/Variation.py?rev=6870&r1=6869&r2=6870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Core/Variation.py (original)
+++ erp5/trunk/products/ERP5/Core/Variation.py Mon Apr 24 10:48:33 2006
@@ -26,9 +26,7 @@
#
##############################################################################
-
-
class Variation:
- """
- Discrete variation
- """
+ """
+ Discrete variation
+ """
More information about the Erp5-report
mailing list