When trying to view the Timeline I get the following error;

Repository checkins event provider (ChangesetModule) failed:
AttributeError: 'array.array' object has no attribute 'strip'

Similarly, when trying to view a changeset I see;

Traceback (most recent call last):
  File "/sw/apps/python/lib/python2.4/site-packages/trac/web/main.py", line 
387, in dispatch_request
    dispatcher.dispatch(req)
  File "/sw/apps/python/lib/python2.4/site-packages/trac/web/main.py", line 
237, in dispatch
    resp = chosen_handler.process_request(req)
  File 
"/sw/apps/python/lib/python2.4/site-packages/trac/versioncontrol/web_ui/changeset.py",
 line 158, in process_request
    repos.authz.assert_permission_for_changeset(new)
  File 
"/sw/apps/python/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 
424, in assert_permission_for_changeset
    if not self.has_permission_for_changeset(rev):
  File 
"/sw/apps/python/lib/python2.4/site-packages/trac/versioncontrol/svn_authz.py", 
line 97, in has_permission_for_changeset
    for path,_,_,_,_ in changeset.get_changes():
  File 
"/sw/apps/python/lib/python2.4/site-packages/trac/versioncontrol/cache.py", 
line 161, in get_changes
    if not self.authz.has_permission(path):
  File 
"/sw/apps/python/lib/python2.4/site-packages/trac/versioncontrol/svn_authz.py", 
line 84, in has_permission
    for p in parent_iter(path):
  File 
"/sw/apps/python/lib/python2.4/site-packages/trac/versioncontrol/svn_authz.py", 
line 44, in parent_iter
    path = path.strip('/')
AttributeError: 'array.array' object has no attribute 'strip'

I'm using Trac .10.3, with an authz file, and MySQL 5.0.  The problem isn't 
present with a previous
installation running SQLite.  The problems started when creating a new env in 
order to move from
SQLite to MySQL, same SVN repository though.  So i changed;

path = path.strip('/')

to;

path = str(path).strip('/')

Seems to work. Not really being familiar with Python, is this an appropriate 
edit without consequences?

Thanks,




-- 



--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Trac Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to