[Erp5-report] r23097 - in /erp5/trunk/bt5/erp5_project: SkinTemplateItem/portal_skins/erp5_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Aug 22 11:30:44 CEST 2008
Author: jerome
Date: Fri Aug 22 11:30:43 2008
New Revision: 23097
URL: http://svn.erp5.org?rev=23097&view=rev
Log:
don't use 7 lines, but the preferred number of lines in list mode
Modified:
erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.xml
erp5/trunk/bt5/erp5_project/bt/revision
Modified: erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.xml?rev=23097&r1=23096&r2=23097&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.xml (original)
+++ erp5/trunk/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/Project_initializeFastInput.xml Fri Aug 22 11:30:43 2008
@@ -71,17 +71,22 @@
global portal_object, new_id, l\n
\n
portal_object = context.getPortalObject()\n
+\n
+if lines_num is None:\n
+ lines_num = portal_object.portal_preferences.getPreferredListboxListModeLineCount() or 40\n
+\n
new_id = 0\n
l = []\n
+\n
\n
# function to create a new fast input line\n
def createInputLine():\n
global portal_object, new_id, l\n
new_id += 1\n
int_len = 3\n
- o = newTempBase( portal_object\n
- , str(new_id)\n
- , uid =\'new_%s\' % zfill(new_id, int_len)\n
+ o = newTempBase( portal_object,\n
+ str(new_id),\n
+ uid =\'new_%s\' % zfill(new_id, int_len)\n
)\n
l.append(o)\n
\n
@@ -107,7 +112,7 @@
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string>lines_num=7, **kw</string> </value>
+ <value> <string>lines_num=None, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
@@ -142,6 +147,7 @@
<string>_getattr_</string>
<string>context</string>
<string>portal_object</string>
+ <string>None</string>
<string>new_id</string>
<string>l</string>
<string>createInputLine</string>
@@ -160,7 +166,7 @@
<key> <string>func_defaults</string> </key>
<value>
<tuple>
- <int>7</int>
+ <none/>
</tuple>
</value>
</item>
Modified: erp5/trunk/bt5/erp5_project/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_project/bt/revision?rev=23097&r1=23096&r2=23097&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_project/bt/revision (original)
+++ erp5/trunk/bt5/erp5_project/bt/revision Fri Aug 22 11:30:43 2008
@@ -1,1 +1,1 @@
-544
+545
More information about the Erp5-report
mailing list