Commit b9430243 authored by Jérome Perrin's avatar Jérome Perrin

make "Download Business Template from URL" default to $CLIENT_HOME/bt5/



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9477 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d969b1d2
......@@ -142,6 +142,14 @@ class TemplateTool (BaseTool):
built_bts.append(bt)
return built_bts
security.declareProtected(Permissions.ManagePortal,
'getDefaultBusinessTemplateDownladURL')
def getDefaultBusinessTemplateDownladURL(self):
"""Returns the default download URL for business templates.
"""
return "file://%s/" % pathname2url(
os.path.join(getConfiguration().instancehome, 'bt5'))
def updateLocalConfiguration(self, template, **kw):
"""
Call the update method on the configuration, create if it doesn't
......
......@@ -124,6 +124,14 @@
<key> <string>display_width</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
......@@ -152,6 +160,14 @@
<key> <string>truncate</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......@@ -247,7 +263,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:\'http://erp5.org/mybuysinestemplate\'</string> </value>
<value> <string>here/getDefaultBusinessTemplateDownladURL</string> </value>
</item>
</dictionary>
</pickle>
......
44
\ No newline at end of file
45
\ 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