Changeset 4558

Show
Ignore:
Timestamp:
10/22/08 06:46:53 (3 months ago)
Author:
Blackhex
Message:

DownloadsPlugin:

  • Added debug messages for #3883.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • downloadsplugin/0.11/tracdownloads/api.py

    r4516 r4558  
    55 
    66from trac.core import * 
    7 from trac.config import Option, BoolOption      
     7from trac.config import Option, BoolOption 
    88from trac.web.chrome import add_stylesheet, add_script 
    99from trac.wiki.formatter import format_to_html, format_to_oneliner 
     
    816816 
    817817        # Strip path from filename. 
     818        self.log.debug(file.filename) 
    818819        filename = os.path.basename(file.filename).decode('utf-8') 
     820        self.log.debug(filename) 
    819821 
    820822        return file.file, filename, size 
  • downloadsplugin/0.11/tracdownloads/tags.py

    r4516 r4558  
    1 # -*- coding: utf8 -*- 
     1# -*- coding: utf-8 -*- 
    22 
    33import sets 
     
    1717 
    1818    def check_permission(self, perm, operation): 
    19         # Permission table for download tags. 
     19        # Permission table for download tags. 
    2020        permissions = {'view' : 'WIKI_VIEW', 'modify' : 'WIKI_ADMIN'} 
    2121 
     
    4343        tag_system.delete_tags(req, resource) 
    4444 
    45         # Add tags of new download. 
     45        # Add tags of new download. 
    4646        new_tags = self._get_tags(download) 
    4747        tag_system.add_tags(req, resource, new_tags)