Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
1ef271c6
Commit
1ef271c6
authored
Dec 26, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fewl code style improvements.
parent
56592590
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator/BusinessConfiguration_getISOCurrencyList.xml
...configurator/BusinessConfiguration_getISOCurrencyList.xml
+6
-5
bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator/BusinessConfiguration_getUIDescription.xml
...5_configurator/BusinessConfiguration_getUIDescription.xml
+6
-4
bt5/erp5_configurator/bt/revision
bt5/erp5_configurator/bt/revision
+1
-1
No files found.
bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator/BusinessConfiguration_getISOCurrencyList.xml
View file @
1ef271c6
...
@@ -56,15 +56,16 @@ if empty_first_element==True:\n
...
@@ -56,15 +56,16 @@ if empty_first_element==True:\n
result = [[\'\', \'\'],]\n
result = [[\'\', \'\'],]\n
\n
\n
filename = "standard_currency_list.ods"\n
filename = "standard_currency_list.ods"\n
cachedMethod = CachingMethod(context.ConfigurationTemplate_readOOCalcFile, \n
rows = CachingMethod(context.ConfigurationTemplate_readOOCalcFile, \n
script.getId(),\n
script.getId(),\n
cache_factory="erp5_content_long")\n
cache_factory="erp5_content_long")(filename)\n
rows= cachedMethod(filename)\n
\n
\n
Base_translateString = context.Base_translateString\n
Base_translateString = context.Base_translateString\n
for row in rows:\n
for row in rows:\n
currency_title = Base_translateString(row[\'currency\'])\n
currency_title = Base_translateString(row[\'currency\'])\n
line = [currency_title, \'%s;%s;%s\' %(row[\'iso_code\'].strip(), row[\'precision\'].strip(), row[\'currency\'].strip())]\n
line = [currency_title, \'%s;%s;%s\' % (row[\'iso_code\'].strip(),\n
row[\'precision\'].strip(),\n
row[\'currency\'].strip())]\n
result.append(line)\n
result.append(line)\n
return result\n
return result\n
</string>
</value>
</string>
</value>
...
...
bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator/BusinessConfiguration_getUIDescription.xml
View file @
1ef271c6
...
@@ -51,11 +51,13 @@
...
@@ -51,11 +51,13 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from Products.ERP5Type.Cache import CachingMethod\n
<value>
<string>
from Products.ERP5Type.Cache import CachingMethod\n
\n
filename = business_configuration.getUserInterfaceDescriptionFileId()\n
filename = business_configuration.getUserInterfaceDescriptionFileId()\n
cachedMethod = CachingMethod(context.ConfigurationTemplate_readOOCalcFile, \'%s_%s\' %(script.getId(),filename))\n
\n
object_list = cachedMethod(filename)\n
return CachingMethod(\n
return object_list\n
context.ConfigurationTemplate_readOOCalcFile, \n
\'%s_%s\' % (script.getId(), filename), \n
cache_factory="erp5_content_long"\n
)(filename)\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
bt5/erp5_configurator/bt/revision
View file @
1ef271c6
524
525
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment