[Erp5-report] r10200 - /erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 20 11:00:46 CEST 2006


Author: kevin
Date: Wed Sep 20 11:00:43 2006
New Revision: 10200

URL: http://svn.erp5.org?rev=10200&view=rev
Log:
Minor code layout changes.

Modified:
    erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getGroupList.xml

Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getGroupList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getGroupList.xml?rev=10200&r1=10199&r2=10200&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getGroupList.xml (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_getGroupList.xml Wed Sep 20 11:00:43 2006
@@ -72,11 +72,14 @@
 
 """\n
 Short description:\n
+\n
   This script is able to aggregate form groups automaticcaly, according our own\n
   rules. This is required to do custom xhtml layout for which a flat rendering\n
   of groups doesn\'t work.\n
 \n
+\n
 Detailed description:\n
+\n
   Actually, without this script, fields groups of the ERP5 form used for layout\n
   are rendered in a flat way like this:\n
 \n
@@ -125,6 +128,7 @@
 \n
 \n
 Rules:\n
+\n
   1 - If the group id don\'t match any group_by_criterion string, the group will\n
       be added in the last aggregate (see \'footer\' group in exemple below).\n
   2 - A group can\'t be in two differrent aggregate (no duplicate).\n
@@ -164,22 +168,27 @@
     [ [\'left\',   [ (\'left column\', \'left column\', \'left column\')\n
                  , (\'left ad\', \'left ad\', \'left ad\')\n
                  , (\'left discount\', \'Discount on Right Handed Tools\', \'(Discount on Right Handed Tools) left discount\')\n
-]]\n
+                 ]]\n
     , [\'right\',  [ (\'metadata right\', \'metadata right\', \'metadata right\')\n
                  , (\'right ad\', \'right ad\', \'right ad\')\n
-]]\n
+                 ]]\n
     , [\'center\', [\n
-]]\n
+                 ]]\n
     , [\'bottom\', [ (\'bottom content\', \'bottom content\', \'bottom content\')\n
                  , (\'footer\', \'footer\', \'footer\')\n
                  , (\'bottom right\', \'bottom right\', \'bottom right\')\n
-]]\n
-]\n
+                 ]]\n
+    ]\n
+\n
 \n
 Tips:\n
-  * The returned list structure is design to let you cast them as dict() if you don\'t care about group aggregate ordering. This also help you to get group aggregate more easily\n
+\n
+  * The returned list structure is design to let you cast it as dict() if you don\'t\n
+    care about group aggregate ordering. This also help you to get group aggregate\n
+    more easily.\n
 \n
 """\n
+\n
 \n
 aggregate_list = []  # Returned data structure\n
 \n
@@ -219,12 +228,12 @@
 \n
 \n
 # Reorder the list                                                            # Rule (3)\n
-aggregate_list = []\n
 for criterion in group_by_criterion:\n
   aggregate = [ criterion\n
               , aggregate_dict[criterion]\n
-]\n
+              ]\n
   aggregate_list.append(aggregate)\n
+\n
 \n
 return aggregate_list\n
 




More information about the Erp5-report mailing list