[Erp5-report] r34116 jerome - in /erp5/trunk/products/ERP5Type: Tool/ dtml/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 25 16:11:09 CET 2010


Author: jerome
Date: Thu Mar 25 16:11:07 2010
New Revision: 34116

URL: http://svn.erp5.org?rev=34116&view=rev
Log:
use manage_tabs_message instead of our own slot

Modified:
    erp5/trunk/products/ERP5Type/Tool/ClassTool.py
    erp5/trunk/products/ERP5Type/dtml/editConstraintForm.dtml
    erp5/trunk/products/ERP5Type/dtml/editDocumentForm.dtml
    erp5/trunk/products/ERP5Type/dtml/editExtensionForm.dtml
    erp5/trunk/products/ERP5Type/dtml/editPropertySheetForm.dtml
    erp5/trunk/products/ERP5Type/dtml/editTestForm.dtml
    erp5/trunk/products/ERP5Type/dtml/viewConstraintList.dtml
    erp5/trunk/products/ERP5Type/dtml/viewProductGeneration.dtml

Modified: erp5/trunk/products/ERP5Type/Tool/ClassTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Tool/ClassTool.py?rev=34116&r1=34115&r2=34116&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Tool/ClassTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Tool/ClassTool.py [utf8] Thu Mar 25 16:11:07 2010
@@ -352,7 +352,7 @@
                       )""" % (COPYRIGHT, class_id)
         self.writeLocalDocument(class_id, text)
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editDocumentForm?class_id=%s&message=Document+Created' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editDocumentForm?class_id=%s&manage_tabs_message=Document+Created' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManageExtensions, 'editDocument' )
       def editDocument(self, class_id, text, REQUEST=None):
@@ -362,7 +362,7 @@
         previous_text = readLocalDocument(class_id)
         self.writeLocalDocument(class_id, text, create=0)
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editDocumentForm?class_id=%s&message=Document+Saved' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editDocumentForm?class_id=%s&manage_tabs_message=Document+Saved' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManageExtensions, 'importDocument' )
       def importDocument(self, class_id, class_path=None, REQUEST=None):
@@ -379,7 +379,7 @@
         _aq_reset()
 
         if REQUEST is not None and class_path is None:
-          REQUEST.RESPONSE.redirect('%s/manage_editDocumentForm?class_id=%s&message=Document+Reloaded+Successfully' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editDocumentForm?class_id=%s&manage_tabs_message=Document+Reloaded+Successfully' % (self.absolute_url(), class_id))
 
 
       security.declareProtected( Permissions.ManagePortal, 'getPropertySheetText' )
@@ -438,7 +438,7 @@
 """ % (COPYRIGHT, class_id, class_id)
         self.writeLocalPropertySheet(class_id, text)
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editPropertySheetForm?class_id=%s&message=PropertySheet+Created' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editPropertySheetForm?class_id=%s&manage_tabs_message=PropertySheet+Created' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManageExtensions, 'editPropertySheet' )
       def editPropertySheet(self, class_id, text, REQUEST=None):
@@ -448,7 +448,7 @@
         previous_text = readLocalPropertySheet(class_id)
         self.writeLocalPropertySheet(class_id, text, create=0)
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editPropertySheetForm?class_id=%s&message=PropertySheet+Saved' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editPropertySheetForm?class_id=%s&manage_tabs_message=PropertySheet+Saved' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManageExtensions, 'importPropertySheet' )
       def importPropertySheet(self, class_id, REQUEST=None):
@@ -464,7 +464,7 @@
         # XXX it is not sure however that class defined propertysheets will be updated
         _aq_reset()
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editPropertySheetForm?class_id=%s&message=PropertySheet+Reloaded+Successfully' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editPropertySheetForm?class_id=%s&manage_tabs_message=PropertySheet+Reloaded+Successfully' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManagePortal, 'getExtensionText' )
       def getExtensionText(self, class_id):
@@ -511,7 +511,7 @@
 """ % COPYRIGHT
         self.writeLocalExtension(class_id, text)
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editExtensionForm?class_id=%s&message=Extension+Created' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editExtensionForm?class_id=%s&manage_tabs_message=Extension+Created' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManageExtensions, 'editExtension' )
       def editExtension(self, class_id, text, REQUEST=None):
@@ -521,7 +521,7 @@
         previous_text = readLocalExtension(class_id)
         self.writeLocalExtension(class_id, text, create=0)
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editExtensionForm?class_id=%s&message=Extension+Saved' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editExtensionForm?class_id=%s&manage_tabs_message=Extension+Saved' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManagePortal, 'getTestText' )
       def getTestText(self, class_id):
@@ -601,7 +601,7 @@
 ''' % COPYRIGHT
         self.writeLocalTest(class_id, text)
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editTestForm?class_id=%s&message=Test+Created' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editTestForm?class_id=%s&manage_tabs_message=Test+Created' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManageExtensions, 'editTest' )
       def editTest(self, class_id, text, REQUEST=None):
@@ -611,7 +611,7 @@
         previous_text = readLocalTest(class_id)
         self.writeLocalTest(class_id, text, create=0)
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editTestForm?class_id=%s&message=Test+Saved' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editTestForm?class_id=%s&manage_tabs_message=Test+Saved' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManagePortal, 'getConstraintText' )
       def getConstraintText(self, class_id):
@@ -627,7 +627,7 @@
         """
         if class_id == '':
           if REQUEST is not None:
-            REQUEST.RESPONSE.redirect('%s/manage_viewConstraintList?message=You+must+specify+a+class+name' % (self.absolute_url(),))
+            REQUEST.RESPONSE.redirect('%s/manage_viewConstraintList?manage_tabs_message=You+must+specify+a+class+name' % (self.absolute_url(),))
             return
         text = """\
 ##############################################################################
@@ -679,7 +679,7 @@
 """ % (COPYRIGHT, class_id)
         self.writeLocalConstraint(class_id, text)
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editConstraintForm?class_id=%s&message=Constraint+Created' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editConstraintForm?class_id=%s&manage_tabs_message=Constraint+Created' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManageExtensions, 'editConstraint' )
       def editConstraint(self, class_id, text, REQUEST=None):
@@ -689,7 +689,7 @@
         previous_text = readLocalConstraint(class_id)
         self.writeLocalConstraint(class_id, text, create=0)
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editConstraintForm?class_id=%s&message=Constraint+Saved' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editConstraintForm?class_id=%s&manage_tabs_message=Constraint+Saved' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManageExtensions, 'importConstraint' )
       def importConstraint(self, class_id, REQUEST=None):
@@ -705,7 +705,7 @@
         # XXX it is not sure however that class defined propertysheets will be updated
         _aq_reset()
         if REQUEST is not None:
-          REQUEST.RESPONSE.redirect('%s/manage_editConstraintForm?class_id=%s&message=Constraint+Reloaded+Successfully' % (self.absolute_url(), class_id))
+          REQUEST.RESPONSE.redirect('%s/manage_editConstraintForm?class_id=%s&manage_tabs_message=Constraint+Reloaded+Successfully' % (self.absolute_url(), class_id))
 
       security.declareProtected( Permissions.ManageExtensions, 'generateProduct' )
       def generateProduct(self, product_id,

Modified: erp5/trunk/products/ERP5Type/dtml/editConstraintForm.dtml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dtml/editConstraintForm.dtml?rev=34116&r1=34115&r2=34116&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dtml/editConstraintForm.dtml [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dtml/editConstraintForm.dtml [utf8] Thu Mar 25 16:11:07 2010
@@ -2,9 +2,6 @@
 <dtml-var manage_tabs>
 
 <h2>Edit Constraint Class: <dtml-var class_id></h2>
-
-<dtml-if message><dtml-var message></dtml-if>
-
 <form method="POST" action="<dtml-var absolute_url>">
 <textarea name="text:text" rows="20" cols="82"><dtml-var "getConstraintText(class_id)"></textarea>
 <br>

Modified: erp5/trunk/products/ERP5Type/dtml/editDocumentForm.dtml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dtml/editDocumentForm.dtml?rev=34116&r1=34115&r2=34116&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dtml/editDocumentForm.dtml [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dtml/editDocumentForm.dtml [utf8] Thu Mar 25 16:11:07 2010
@@ -2,9 +2,6 @@
 <dtml-var manage_tabs>
 
 <h2>Edit Document Class: <dtml-var class_id></h2>
-
-<dtml-if message><dtml-var message></dtml-if>
-
 <form method="POST" action="<dtml-var absolute_url>">
 <textarea name="text:text" rows="20" cols="82"><dtml-var "getDocumentText(class_id)"></textarea>
 <br>

Modified: erp5/trunk/products/ERP5Type/dtml/editExtensionForm.dtml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dtml/editExtensionForm.dtml?rev=34116&r1=34115&r2=34116&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dtml/editExtensionForm.dtml [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dtml/editExtensionForm.dtml [utf8] Thu Mar 25 16:11:07 2010
@@ -2,9 +2,6 @@
 <dtml-var manage_tabs>
 
 <h2>Edit Extension Class: <dtml-var class_id></h2>
-
-<dtml-if message><dtml-var message></dtml-if>
-
 <form method="POST" action="<dtml-var absolute_url>">
 <textarea name="text:text" rows="20" cols="82"><dtml-var "getExtensionText(class_id)"></textarea>
 <br>

Modified: erp5/trunk/products/ERP5Type/dtml/editPropertySheetForm.dtml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dtml/editPropertySheetForm.dtml?rev=34116&r1=34115&r2=34116&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dtml/editPropertySheetForm.dtml [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dtml/editPropertySheetForm.dtml [utf8] Thu Mar 25 16:11:07 2010
@@ -2,9 +2,6 @@
 <dtml-var manage_tabs>
 
 <h2>Edit Property Sheet Class: <dtml-var class_id></h2>
-
-<dtml-if message><dtml-var message></dtml-if>
-
 <form method="POST" action="<dtml-var absolute_url>">
 <textarea name="text:text" rows="20" cols="82"><dtml-var "getPropertySheetText(class_id)"></textarea>
 <br>

Modified: erp5/trunk/products/ERP5Type/dtml/editTestForm.dtml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dtml/editTestForm.dtml?rev=34116&r1=34115&r2=34116&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dtml/editTestForm.dtml [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dtml/editTestForm.dtml [utf8] Thu Mar 25 16:11:07 2010
@@ -2,9 +2,6 @@
 <dtml-var manage_tabs>
 
 <h2>Edit Test Class: <dtml-var class_id></h2>
-
-<dtml-if message><dtml-var message></dtml-if>
-
 <form method="POST" action="<dtml-var absolute_url>">
 <textarea name="text:text" rows="20" cols="82"><dtml-var "getTestText(class_id)"></textarea>
 <br>

Modified: erp5/trunk/products/ERP5Type/dtml/viewConstraintList.dtml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dtml/viewConstraintList.dtml?rev=34116&r1=34115&r2=34116&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dtml/viewConstraintList.dtml [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dtml/viewConstraintList.dtml [utf8] Thu Mar 25 16:11:07 2010
@@ -2,7 +2,6 @@
 <dtml-var manage_tabs>
 
 <div class="std-text"><p><strong>Local Constraint Classes</strong></p></div>
-<dtml-if message><dtml-var message></dtml-if>
 <form method="POST" action="newConstraint">
 <table width="100%">
   <tr class="list-header">

Modified: erp5/trunk/products/ERP5Type/dtml/viewProductGeneration.dtml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dtml/viewProductGeneration.dtml?rev=34116&r1=34115&r2=34116&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dtml/viewProductGeneration.dtml [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dtml/viewProductGeneration.dtml [utf8] Thu Mar 25 16:11:07 2010
@@ -2,9 +2,6 @@
 <dtml-var manage_tabs>
 
 <div class="std-text"><p><strong>Product Generation</strong></p></div>
-
-<dtml-if message><p><dtml-var message></p></dtml-if>
-
 <form method="POST" action="generateProduct">
 <table cellspacing="0" cellpadding="2" border="0">
   <tr>




More information about the Erp5-report mailing list