Commit 565607bf authored by Christophe Dumez's avatar Christophe Dumez

- display alert() if error

- display nothing if no changes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6647 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3cc061a1
......@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts45019334.76</string> </value>
<value> <string>ts45021272.14</string> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
......@@ -64,7 +64,7 @@ function dtmlXMLLoaderObject(funcObject,dhtmlObject,async){\n
if(this.xmlDoc.responseXML){var temp=this.xmlDoc.responseXML.getElementsByTagName(tagName);var z=temp[0];}\n
else var z=this.xmlDoc.documentElement;\n
if(z)return z;\n
//alert("There are no differences between your business template and the svn repository.");\n
alert("Error: execute tree.xml to see debug !");\n
return document.createElement("DIV");\n
};\n
\n
......@@ -398,7 +398,7 @@ Node.prototype.removeNode = function(removeChildren)\n
</item>
<item>
<key> <string>size</string> </key>
<value> <int>10005</int> </value>
<value> <int>9962</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -66,7 +66,9 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context.getPortalObject().portal_subversion.extractBT(context)\n
<value> <string encoding="cdata"><![CDATA[
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
......@@ -78,9 +80,13 @@ if path[-1] != \'/\':\n
path+=bt_name\n
root = context.getPortalObject().portal_subversion.getModifiedTree(path)\n
if not root:\n
raise "Erreur: couldn\'t get tree of modified files"\n
return \'\'\'<?xml version=\'1.0\' encoding=\'iso-8859-1\'?>\n
<tree id=\'0\'></tree>\'\'\'\n
\n
return context.getPortalObject().portal_subversion.treeToXML(root).strip()\n
</string> </value>
]]></string> </value>
</item>
<item>
<key> <string>_code</string> </key>
......
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