Changeset 4558
- Timestamp:
- 10/22/08 06:46:53 (3 months ago)
- Files:
-
- downloadsplugin/0.11/tracdownloads/api.py (modified) (2 diffs)
- downloadsplugin/0.11/tracdownloads/tags.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
downloadsplugin/0.11/tracdownloads/api.py
r4516 r4558 5 5 6 6 from trac.core import * 7 from trac.config import Option, BoolOption 7 from trac.config import Option, BoolOption 8 8 from trac.web.chrome import add_stylesheet, add_script 9 9 from trac.wiki.formatter import format_to_html, format_to_oneliner … … 816 816 817 817 # Strip path from filename. 818 self.log.debug(file.filename) 818 819 filename = os.path.basename(file.filename).decode('utf-8') 820 self.log.debug(filename) 819 821 820 822 return file.file, filename, size downloadsplugin/0.11/tracdownloads/tags.py
r4516 r4558 1 # -*- coding: utf 8 -*-1 # -*- coding: utf-8 -*- 2 2 3 3 import sets … … 17 17 18 18 def check_permission(self, perm, operation): 19 # ÂPermission table for download tags.19 # Permission table for download tags. 20 20 permissions = {'view' : 'WIKI_VIEW', 'modify' : 'WIKI_ADMIN'} 21 21 … … 43 43 tag_system.delete_tags(req, resource) 44 44 45 # ÂAdd tags of new download.45 # Add tags of new download. 46 46 new_tags = self._get_tags(download) 47 47 tag_system.add_tags(req, resource, new_tags)
