Commit 7a583413 authored by Rafael Monnerat's avatar Rafael Monnerat

Do not return pysvn objects but simple dicts. This will prevent raise...

Do not return pysvn objects but simple dicts. This will prevent raise Unautorised into restrict python.

This make "History" link at Subversion Tab work again.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32466 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 89e9360d
...@@ -331,10 +331,15 @@ try: ...@@ -331,10 +331,15 @@ try:
else: else:
raise error raise error
# Edit list to make it more usable in zope # Edit list to make it more usable in zope
revision_log_list = []
for rev_dict in log_list: for rev_dict in log_list:
rev_dict['revision'] = rev_dict['revision'].number rev_log_dict = {}
rev_dict['date'] = time.ctime(rev_dict['date']) rev_log_dict['message'] = rev_dict.message
return log_list rev_log_dict['author'] = rev_dict.author
rev_log_dict['revision'] = rev_dict['revision'].number
rev_log_dict['date'] = time.ctime(rev_dict['date'])
revision_log_list.append(rev_log_dict)
return revision_log_list
def add(self, path): def add(self, path):
self.client.add(path=path, force=True) self.client.add(path=path, force=True)
......
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