Commit fb0f8e56 authored by Christophe Dumez's avatar Christophe Dumez

- fixed getPreference (deprecated)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6808 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 31d3528c
......@@ -86,7 +86,7 @@ svn_path = context.getPortalObject().portal_preferences.getPreference(\'subversi
if not svn_path :\n
raise "Error: Please set Subversion working path in preferences"\n
if svn_path[-1]!=\'/\':\n
svn_path+=\'/\'\n
svn_path += \'/\'\n
file = svn_path + file\n
\n
diff = "<b><font color=\'black\'>Index: <a href=\'BusinessTemplate_viewSvnShowFile?file="+file+"\'>"+file+"</a> <a href=\'"+context.getPortalObject()["portal_subversion"].editPath(context, file)+"\'><img src=\'imgs/edit.png\' border=\'0\'></a><br>"\n
......
......@@ -72,7 +72,7 @@ context.getPortalObject().portal_subversion.extractBT(context)\n
\n
bt_name = context.getPortalObject()["portal_templates"][context.getId()].getTitle()\n
context.REQUEST.RESPONSE.setHeader(\'Content-Type\', \'text/xml;; charset=utf-8\')\n
path = context.getPortalObject().portal_preferences.getPreference(\'subversion_working_copy\')\n
path = context.getPortalObject().portal_preferences.getPreferredSubversionWorkingCopy()\n
if not path :\n
raise "Error: Please set Subversion working path in preferences"\n
if path[-1] != \'/\':\n
......
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