Changeset 620
- Timestamp:
- 03/18/13 10:56:42 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r618 r620 2 2 * use self.env.get_read_db for trac version > 0.11. self.env.get_db_cnx is obsolete. TRAC 3 3 api documentation. 4 Fixed by: Bas van der Vlies 5 6 * fixed an UnicodeDecodeError when checking attachments filenames. 4 7 Fixed by: Bas van der Vlies 5 8 -
trunk/email2trac.py.in
r618 r620 47 47 $Id$ 48 48 """ 49 50 ### virualenv 51 ## 52 # if virtualenv and os.path.exists(virtualenv): 53 # activate_this = os.path.join(virtualenv, 54 #'bin/activate_this.py') 55 # if os.path.exists(activate_this): 56 # execfile(activate_this, 57 49 58 import os 50 59 import sys … … 715 724 ## Trac uses this format 716 725 # 717 quote_format = util.text.unicode_quote(dummy_filename) 726 try: 727 quote_format = util.text.unicode_quote(dummy_filename) 728 729 except UnicodeDecodeError, detail: 730 ## last resort convert to unicode 731 # 732 dummy_filename = util.text.to_unicode(dummy_filename) 733 quote_format = util.text.unicode_quote(dummy_filename) 718 734 719 735 ## Determine max filename lenght
Note: See TracChangeset
for help on using the changeset viewer.