Commit 7bbcc714 authored by Julien Muchembled's avatar Julien Muchembled

ERP5VCS: stop suggest a commit message automatically from BT changelog

parent 923dc677
......@@ -130,9 +130,7 @@
</item>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -279,17 +277,4 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.getVcsTool().getLastChangelog()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
658
\ No newline at end of file
659
\ No newline at end of file
......@@ -232,24 +232,6 @@ class WorkingCopy(Implicit):
file.close()
return revision
def getLastChangelog(self):
"""Return last changelog of a business template
"""
changelog = ""
try:
f = open(os.path.join(self.working_copy, 'bt', 'change_log'))
try:
for line in f:
if not line.strip():
break
changelog += line
finally:
f.close()
except IOError, e:
if e.errno != errno.ENOENT:
raise
return changelog
def hasDiff(self, path):
try:
hasDiff = aq_base(self).__hasDiff
......
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