Opened 13 years ago
Last modified 13 years ago
#8991 new defect
autoindex = true doesn't work
Reported by: | Nelso G. Jost | Owned by: | Bangyou Zheng |
---|---|---|---|
Priority: | normal | Component: | TracSuposePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
This is a great plugin, with a really nice proposal. But I can't activate the property autoindex = true
on trac.ini, I got the error:
AttributeError: 'NoneType' object has no attribute 'group'
traced back for: tracsupose/search.py
, line 133
130 youngest = int( repo.youngest_rev ) 131 #raise Exception( int( indexedrev ) < youngest ) 132 base = re.search("(svn:.*:)(.*:.*)", repo.get_base() ) 133 base = base.group(2) 134 base = "file:///" + base 135 if not indexedrev:
Using: Python 2.6.5/Trac 0.12/Genshi 0.6.
For now I'm indexing directly with the supose
, outside Trac, with cron scheduling.
Attachments (0)
Change History (4)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
I'm using Ubuntu Server v10.04.
I added the code you told, and Exception was raised as:
Exception: svn:8a9c5727-bea5-4b71-b625-acc3b0263769:/project/svn
comment:3 Changed 13 years ago by
I am trying to fix this bug. Could you test it as I don't have a computer with Linux?
Thanks.
comment:4 Changed 13 years ago by
Although this plugin can automatically call supose to index new versions in the svn repository, I DO NOT suggest to use this function as there maybe some problems for high actively repository. This function is only designed for my own small repository which just used by myself. Cron Scheduling will be the best choices.
Do you use windows?
I think this bug belong to line 132. repo.get_base() in your computer may be not regular.
In my computer, it is
svn:7a97c5fa-164f-6e4e-9b54-96743a6c4213:C:/MyDoc/Projects/SvnTest
Could you check it by adding these codes after line 123