Changeset 4098
- Timestamp:
- 07/31/08 14:13:37 (4 months ago)
- Files:
-
- svnurlsplugin/0.11/svnurls/svnurls.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
svnurlsplugin/0.11/svnurls/svnurls.py
r4097 r4098 46 46 ### these should return the stream 47 47 48 def browser(self, stream, data):48 def browser(self, req, stream, data): 49 49 50 50 if not data.has_key('path'): … … 70 70 71 71 # add table cells 72 stream = self.dir_entries( stream, data, xpath_prefix)72 stream = self.dir_entries(req, stream, data, xpath_prefix) 73 73 return stream 74 74 75 def dir_entries(self, stream, data, xpath_prefix=''):75 def dir_entries(self, req, stream, data, xpath_prefix=''): 76 76 # add table cells 77 77 b = StreamBuffer() … … 80 80 return stream 81 81 82 def svnlog(self, stream, data):82 def svnlog(self, req, stream, data): 83 83 84 84 if not data.has_key('path'): … … 91 91 return stream 92 92 93 def changelog(self, stream, data):93 def changelog(self, req, stream, data): 94 94 changes = data['changes'] 95 95 url = self.url(data['location']) 96 96 stream |= Transformer("//dt[@class='property files']").before(tag.dt('URL:', **{'class': "property url"}) + tag.dd(tag.a(url, **{'class': "url", 'href': url, 'title': self.link_title}))) 97 98 # make the header link to the canonical location if just at '/changeset' 99 if req.path_info.strip('/') == 'changeset': 100 stream |= Transformer("//h1").wrap(tag.a(None, href=req.href('changeset', data['new_rev']))) 101 97 102 return stream 98 103 … … 121 126 if svn_base_url: 122 127 handler = handlers.get(filename, lambda stream, data: stream) 123 return handler( stream, data)128 return handler(req, stream, data) 124 129 125 130 return stream
