[Erp5-report] r7357 - /erp5/trunk/products/ERP5Subversion/Tool/SubversionTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 18 16:31:38 CEST 2006
Author: chris
Date: Thu May 18 16:31:36 2006
New Revision: 7357
URL: http://svn.erp5.org?rev=7357&view=rev
Log:
- added function to get last changelog of a business template
Modified:
erp5/trunk/products/ERP5Subversion/Tool/SubversionTool.py
Modified: erp5/trunk/products/ERP5Subversion/Tool/SubversionTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Subversion/Tool/SubversionTool.py?rev=7357&r1=7356&r2=7357&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Subversion/Tool/SubversionTool.py (original)
+++ erp5/trunk/products/ERP5Subversion/Tool/SubversionTool.py Thu May 18 16:31:36 2006
@@ -875,6 +875,24 @@
client = self._getClient()
return client.checkin(path, log_message, recurse)
+ security.declareProtected('Import/Export objects', 'getLastChangelog')
+ def getLastChangelog(self, bt):
+ """Return last changelog of a business template
+ """
+ bt_path = self._getWorkingPath(self.getSubversionPath(bt))
+ changelog_path = bt_path + os.sep + 'bt' + os.sep + 'change_log'
+ changelog=""
+ if os.path.exists(changelog_path):
+ changelog_file = open(changelog_path, 'r')
+ changelog_lines = changelog_file.readlines()
+ changelog_file.close()
+ for line in changelog_lines:
+ if line.strip() == '':
+ break
+ changelog+=line
+ return changelog
+
+
security.declareProtected('Import/Export objects', 'status')
def status(self, path, **kw):
"""Get status.
More information about the Erp5-report
mailing list