Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
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
result = [[\'\', \'\'],]\n
\n
filename = "standard_currency_list.ods"\n
cachedMethod = CachingMethod(context.ConfigurationTemplate_readOOCalcFile, \n
script.getId(),\n
cache_factory="erp5_content_long")\n
rows= cachedMethod(filename)\n
rows = CachingMethod(context.ConfigurationTemplate_readOOCalcFile, \n
script.getId(),\n
cache_factory="erp5_content_long")(filename)\n
\n
Base_translateString = context.Base_translateString\n
for row in rows:\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
return result\n
</string>
</value>
...
...
bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator/BusinessConfiguration_getUIDescription.xml
View file @
1ef271c6
...
...
@@ -51,11 +51,13 @@
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from Products.ERP5Type.Cache import CachingMethod\n
\n
filename = business_configuration.getUserInterfaceDescriptionFileId()\n
cachedMethod = CachingMethod(context.ConfigurationTemplate_readOOCalcFile, \'%s_%s\' %(script.getId(),filename))\n
object_list = cachedMethod(filename)\n
return object_list\n
\n
return CachingMethod(\n
context.ConfigurationTemplate_readOOCalcFile, \n
\'%s_%s\' % (script.getId(), filename), \n
cache_factory="erp5_content_long"\n
)(filename)\n
</string>
</value>
</item>
<item>
...
...
bt5/erp5_configurator/bt/revision
View file @
1ef271c6
524
\ No newline at end of file
525
\ 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