[Erp5-report] r37279 jerome - in /erp5/trunk/bt5/erp5_forge: SkinTemplateItem/portal_skins/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jul 27 13:18:49 CEST 2010
Author: jerome
Date: Tue Jul 27 13:18:46 2010
New Revision: 37279
URL: http://svn.erp5.org?rev=37279&view=rev
Log:
use make_query to produce correct link when filepath contains %20
Modified:
erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml
erp5/trunk/bt5/erp5_forge/bt/revision
Modified: erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml?rev=37279&r1=37278&r2=37279&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doSvnDiff.xml [utf8] Tue Jul 27 13:18:46 2010
@@ -55,6 +55,8 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
+from ZTUtils import make_query\n
+\n
modified=context.REQUEST["modified"]\n
added=context.REQUEST["added"]\n
removed=context.REQUEST["removed"]\n
@@ -67,8 +69,10 @@ tab_Removed=removed.split(\',\')\n
if modified != \'none\':\n
for f in tab_Modified:\n
print \'<input name="modified" value="%s" type="checkbox" checked="checked" />\'%f\n
- f = context.getPortalObject()["portal_subversion"].relativeToAbsolute(f, context) \n
- print "<span style=\'font-weight: bold; color: black;\'>Index: <a href=\'BusinessTemplate_viewSvnShowFile?file="+f+"\'>"+f+"</a>"\n
+ f = context.getPortalObject()["portal_subversion"].relativeToAbsolute(f, context)\n
+ print "<span style=\'font-weight: bold; color: black;\'>Index: "\\\n
+ "<a href=\'BusinessTemplate_viewSvnShowFile?%s\'>%s</a></span>" %(\n
+ make_query(file=f), f)\n
edit_path = context.getPortalObject()["portal_subversion"].editPath(context, f)\n
if(edit_path != \'#\'):\n
print "<a href=\'"+edit_path+"\'><img src=\'ERP5Subversion_imgs/edit.png\' alt=\'Edit\' style=\'border: 0\' /></a>"\n
@@ -79,8 +83,10 @@ if modified != \'none\':\n
if added != \'none\':\n
for f in tab_Added:\n
print \'<input name="added" value="%s" type="checkbox" checked="checked" />\'%f\n
- f = context.getPortalObject()["portal_subversion"].relativeToAbsolute(f, context) \n
- print "<span style=\'font-weight: bold; color: black;\'>Index: <a href=\'BusinessTemplate_viewSvnShowFile?file="+f+"\'>"+f+"</a>"\n
+ f = context.getPortalObject()["portal_subversion"].relativeToAbsolute(f, context)\n
+ print "<span style=\'font-weight: bold; color: black;\'>Index: "\\\n
+ "<a href=\'BusinessTemplate_viewSvnShowFile?%s\'>%s</a></span>" %(\n
+ make_query(file=f), f)\n
edit_path = context.getPortalObject()["portal_subversion"].editPath(context, f)\n
if(edit_path != \'#\'):\n
print "<a href=\'"+edit_path+"\'><img src=\'ERP5Subversion_imgs/edit.png\' alt=\'Edit\' style=\'border: 0\' /></a>"\n
@@ -90,8 +96,10 @@ if added != \'none\':\n
if removed != \'none\':\n
for f in tab_Removed:\n
print \'<input name="removed" value="%s" type="checkbox" checked="checked" />\'%f\n
- f = context.getPortalObject()["portal_subversion"].relativeToAbsolute(f, context) \n
- print "<span style=\'font-weight: bold; color: black;\'>Index: <a href=\'BusinessTemplate_viewSvnShowFile?file="+f+"\'>"+f+"</a>"\n
+ f = context.getPortalObject()["portal_subversion"].relativeToAbsolute(f, context)\n
+ print "<span style=\'font-weight: bold; color: black;\'>Index: "\\\n
+ "<a href=\'BusinessTemplate_viewSvnShowFile?%s\'>%s</a></span>" %(\n
+ make_query(file=f), f)\n
edit_path = context.getPortalObject()["portal_subversion"].editPath(context, f)\n
if(edit_path != \'#\'):\n
print "<a href=\'"+edit_path+"\'><img src=\'ERP5Subversion_imgs/edit.png\' alt=\'Edit\' style=\'border: 0\' /></a>"\n
@@ -140,6 +148,8 @@ return printed\n
<tuple>
<string>_print_</string>
<string>_print</string>
+ <string>ZTUtils</string>
+ <string>make_query</string>
<string>_getitem_</string>
<string>_getattr_</string>
<string>context</string>
Modified: erp5/trunk/bt5/erp5_forge/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/bt/revision?rev=37279&r1=37278&r2=37279&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_forge/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_forge/bt/revision [utf8] Tue Jul 27 13:18:46 2010
@@ -1 +1 @@
-602
\ No newline at end of file
+603
\ No newline at end of file
More information about the Erp5-report
mailing list