[Erp5-report] r6898 - /erp5/trunk/products/ERP5/Tool/OrderTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Apr 24 15:45:07 CEST 2006


Author: vincent
Date: Mon Apr 24 15:45:05 2006
New Revision: 6898

URL: http://svn.erp5.org?rev=6898&view=rev
Log:
Improve docstring.
Remove useless tic function : it was originally forsaw to implement nightly jobs on delivery builders, which can now be done using alarm tool.


Modified:
    erp5/trunk/products/ERP5/Tool/OrderTool.py

Modified: erp5/trunk/products/ERP5/Tool/OrderTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/OrderTool.py?rev=6898&r1=6897&r2=6898&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/OrderTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/OrderTool.py Mon Apr 24 15:45:05 2006
@@ -36,26 +36,18 @@
 from Products.ERP5 import _dtmldir
 
 class OrderTool(BaseTool):
-    """
-    The OrderTool implements portal object
-    orders building policies.
-    """
-    id = 'portal_orders'
-    meta_type = 'ERP5 Order Tool'
-    portal_type = 'Order Tool'
-    allowed_types = ('ERP5 Order Buider',)
+  """
+    OrderTool is a container for Order Builders.
+  """
+  id = 'portal_orders'
+  meta_type = 'ERP5 Order Tool'
+  portal_type = 'Order Tool'
+  allowed_types = ('ERP5 Order Buider',)
 
-    # Declarative Security
-    security = ClassSecurityInfo()
+  # Declarative Security
+  security = ClassSecurityInfo()
 
-    security.declareProtected( Permissions.ManagePortal, 'manage_overview' )
-    manage_overview = DTMLFile( 'explainOrderTool', _dtmldir )
-
-    security.declareProtected(Permissions.ModifyPortalContent, 'tic')
-    def tic(self):
-      """
-      We will look at all order builder and activate them.
-      """
-      pass
+  security.declareProtected( Permissions.ManagePortal, 'manage_overview' )
+  manage_overview = DTMLFile( 'explainOrderTool', _dtmldir )
 
 InitializeClass(OrderTool)




More information about the Erp5-report mailing list