[Erp5-report] r9477 - in /erp5/trunk/products/ERP5: Tool/ bootstrap/erp5_core/SkinTemplateI...
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Aug 26 18:24:18 CEST 2006
Author: jerome
Date: Sat Aug 26 18:24:12 2006
New Revision: 9477
URL: http://svn.erp5.org?rev=9477&view=rev
Log:
make "Download Business Template from URL" default to $CLIENT_HOME/bt5/
Removed:
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/id_generator
Modified:
erp5/trunk/products/ERP5/Tool/TemplateTool.py
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewDownloadBusinessTemplateDialog/your_url.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/Tool/TemplateTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/TemplateTool.py?rev=9477&r1=9476&r2=9477&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TemplateTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/TemplateTool.py Sat Aug 26 18:24:12 2006
@@ -141,6 +141,14 @@
if bt.getInstallationState() == 'not_installed' and bt.getBuildingState() == 'built':
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):
"""
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewDownloadBusinessTemplateDialog/your_url.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewDownloadBusinessTemplateDialog/your_url.xml?rev=9477&r1=9476&r2=9477&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewDownloadBusinessTemplateDialog/your_url.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_viewDownloadBusinessTemplateDialog/your_url.xml Sat Aug 26 18:24:12 2006
@@ -125,6 +125,14 @@
<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>
</item>
@@ -150,6 +158,14 @@
</item>
<item>
<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>
@@ -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>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=9477&r1=9476&r2=9477&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Sat Aug 26 18:24:12 2006
@@ -1,1 +1,1 @@
-44
+45
More information about the Erp5-report
mailing list