Commit 4eaa80f3 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Periodivity_view:

- remove duplicate empty entries in frequency lists
- add '0' entries in hour and minute lists
- replace map(lambda) by list comprehensions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18355 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce8fd0cb
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.Form</string>
<string>ERP5Form</string>
</tuple>
<none/>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>ListField</string>
</tuple>
<none/>
<global name="ListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -270,18 +267,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [\'\',\'\'] + map(lambda x:(x,x),range(1,8))</string> </value>
<value> <string>python: [(\'\', \'\')] + [(str(x), x) for x in range(1, 8)]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>ListField</string>
</tuple>
<none/>
<global name="ListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -238,40 +235,7 @@
<item>
<key> <string>items</string> </key>
<value>
<list>
<tuple>
<string></string>
<string></string>
</tuple>
<tuple>
<string>1</string>
<string>1</string>
</tuple>
<tuple>
<string>2</string>
<string>2</string>
</tuple>
<tuple>
<string>3</string>
<string>3</string>
</tuple>
<tuple>
<string>4</string>
<string>4</string>
</tuple>
<tuple>
<string>5</string>
<string>5</string>
</tuple>
<tuple>
<string>6</string>
<string>6</string>
</tuple>
<tuple>
<string>7</string>
<string>7</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -303,18 +267,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [\'\',\'\'] + map(lambda x:(x,x),range(1,24))</string> </value>
<value> <string>python: [(\'\', \'\')] + [(str(x), x) for x in range(1, 24)]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>MultiListField</string>
</tuple>
<none/>
<global name="MultiListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -264,18 +261,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: map(lambda x:(x,x),range(1,24))</string> </value>
<value> <string>python: [(str(x), x) for x in range(24)]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>ListField</string>
</tuple>
<none/>
<global name="ListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -244,40 +241,7 @@
<item>
<key> <string>items</string> </key>
<value>
<list>
<tuple>
<string></string>
<string></string>
</tuple>
<tuple>
<string>1</string>
<string>1</string>
</tuple>
<tuple>
<string>2</string>
<string>2</string>
</tuple>
<tuple>
<string>3</string>
<string>3</string>
</tuple>
<tuple>
<string>4</string>
<string>4</string>
</tuple>
<tuple>
<string>5</string>
<string>5</string>
</tuple>
<tuple>
<string>6</string>
<string>6</string>
</tuple>
<tuple>
<string>7</string>
<string>7</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -309,18 +273,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [\'\',\'\'] + map(lambda x:(x,x),range(1,60))</string> </value>
<value> <string>python: [(\'\', \'\')] + [(str(x), x) for x in range(1, 60)]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>MultiListField</string>
</tuple>
<none/>
<global name="MultiListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -270,18 +267,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: map(lambda x:(x,x),range(1,60))</string> </value>
<value> <string>python: [(str(x), x) for x in range(60)]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>MultiListField</string>
</tuple>
<none/>
<global name="MultiListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -264,18 +261,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: map(lambda x:(x,x),range(1,32))</string> </value>
<value> <string>python: [(str(x), x) for x in range(1, 32)]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>ListField</string>
</tuple>
<none/>
<global name="ListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -238,40 +235,7 @@
<item>
<key> <string>items</string> </key>
<value>
<list>
<tuple>
<string></string>
<string></string>
</tuple>
<tuple>
<string>1</string>
<string>1</string>
</tuple>
<tuple>
<string>2</string>
<string>2</string>
</tuple>
<tuple>
<string>3</string>
<string>3</string>
</tuple>
<tuple>
<string>4</string>
<string>4</string>
</tuple>
<tuple>
<string>5</string>
<string>5</string>
</tuple>
<tuple>
<string>6</string>
<string>6</string>
</tuple>
<tuple>
<string>7</string>
<string>7</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -303,18 +267,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [\'\',\'\'] + map(lambda x:(x,x),range(1,13))</string> </value>
<value> <string>python: [(\'\', \'\')] + [(str(x), x) for x in range(1, 13)]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>MultiListField</string>
</tuple>
<none/>
<global name="MultiListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -264,18 +261,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: map(lambda x:(x,x),range(1,13))</string> </value>
<value> <string>python: [(str(x), x) for x in range(1, 13)]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>ListField</string>
</tuple>
<none/>
<global name="ListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -238,40 +235,7 @@
<item>
<key> <string>items</string> </key>
<value>
<list>
<tuple>
<string></string>
<string></string>
</tuple>
<tuple>
<string>1</string>
<string>1</string>
</tuple>
<tuple>
<string>2</string>
<string>2</string>
</tuple>
<tuple>
<string>3</string>
<string>3</string>
</tuple>
<tuple>
<string>4</string>
<string>4</string>
</tuple>
<tuple>
<string>5</string>
<string>5</string>
</tuple>
<tuple>
<string>6</string>
<string>6</string>
</tuple>
<tuple>
<string>7</string>
<string>7</string>
</tuple>
</list>
<list/>
</value>
</item>
<item>
......@@ -303,18 +267,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [\'\',\'\'] + map(lambda x:(x,x),range(1,15))</string> </value>
<value> <string>python: [(\'\', \'\')] + [(str(x), x) for x in range(1, 15)]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>MultiListField</string>
</tuple>
<none/>
<global name="MultiListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -264,18 +261,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: map(lambda x:(x,x),range(1,54))</string> </value>
<value> <string>python: [(str(x), (x)) for x in range(1, 54)]</string> </value>
</item>
</dictionary>
</pickle>
......
645
\ No newline at end of file
646
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment