Changeset 621
- Timestamp:
- 06/17/13 21:25:11 (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r620 r621 1 2. X.X1 2.7.0 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. … … 6 6 * fixed an UnicodeDecodeError when checking attachments filenames. 7 7 Fixed by: Bas van der Vlies 8 9 * Added support for installing trac in a virtual enviroment. You can 10 set a default virtualenv path add configuration time, eg: 11 - ./configure --with-virtualenv=/data/virtualenvs/trac 12 13 Or set/override at runtime: eg: 14 - ./email2trac.py --virtualenv=/data/virtualenvs/trac 15 Author: Bas van der Vlies & Dennis Stam (Suggestion) 8 16 9 17 2.6.2 -
trunk/configure
r574 r621 579 579 PYTHON_VERSION 580 580 PYTHON 581 virtualenv 581 582 install_user 582 583 mta_user … … 627 628 with_trac_user 628 629 with_mta_user 630 with_virtualenv 629 631 ' 630 632 ac_precious_vars='build_alias … … 1254 1256 --with-mta_user=USER Specify the name of the user that your MTA use, 1255 1257 default=nobody 1258 1259 --with-virtualenv=directory Specify the default virtualenv path to use for trac, 1260 default="" 1256 1261 1257 1262 Some influential environment variables: … … 1894 1899 1895 1900 1901 1896 1902 #DEBUG=0 1897 1903 … … 3209 3215 else 3210 3216 mta_user="nobody" 3217 3218 fi 3219 3220 # We can specify a default virtual env path for trac 3221 # 3222 3223 # Check whether --with-virtualenv was given. 3224 if test "${with_virtualenv+set}" = set; then : 3225 withval=$with_virtualenv; case "${withval}" in 3226 *) virtualenv="${withval}" ;; 3227 esac 3228 else 3229 virtualenv="" 3211 3230 3212 3231 fi -
trunk/configure.in
r574 r621 15 15 AC_SUBST(install_user) 16 16 AC_SUBST(sysconfdir) 17 AC_SUBST(virtualenv) 17 18 18 19 #DEBUG=0 … … 69 70 )dnl 70 71 72 # We can specify a default virtual env path for trac 73 # 74 AC_ARG_WITH(virtualenv, 75 [ 76 --with-virtualenv=directory Specify the default virtualenv path to use for trac, 77 default=""], 78 79 [case "${withval}" in 80 *) virtualenv="${withval}" ;; 81 esac], 82 83 [virtualenv=""] 84 )dnl 85 71 86 dnl ##### Path to email2trac.conf 72 87 dnl This ugly kludge to get the sysconfdir path is needed because -
trunk/debian/changelog
r619 r621 1 email2trac (2.7.0-1) stable; urgency=low 2 3 * See Changelog 4 5 -- Bas van der Vlies <bas.vandervlies@surfsara.nl> Mon, 17 Jun 2013 21:16:32 +0200 6 1 7 email2trac (2.6.3-1) stable; urgency=low 2 8 -
trunk/email2trac.py.in
r620 r621 39 39 -h,--help 40 40 -d, --debug 41 -e, --virtualenv <path> 41 42 -f,--file <configuration file> 42 43 -n,--dry-run … … 47 48 $Id$ 48 49 """ 49 50 ### virualenv51 ##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 58 50 import os 59 51 import sys … … 76 68 from datetime import timedelta, datetime 77 69 from stat import * 78 79 try:80 from trac import __version__ as trac_version81 from trac import config as trac_config82 83 except ImportError, detail:84 print "Can not find a a valid trac installation, try setting PYTHONPATH"85 sys.exit(1)86 70 87 71 ## Some global variables … … 1793 1777 self.logger.info('subject: %s' %repr(subject)) 1794 1778 1779 ## Ticket id is in Delivered-To Field. Trac notify must send this 1780 # 1781 #try: 1782 # print self.parameters.project_name 1783 # print 'Delivered To', m['Delivered-To'] 1784 # print self.parameters.to_parse_address_delimiter 1785 # id = m['Delivered-To'].split(self.parameters.to_parse_address_delimiter)[1] 1786 # print id 1787 # id = id.split('@')[0] 1788 # print id 1789 # 1790 # except KeyError, detail: 1791 # pass 1792 1793 1795 1794 ## [hic] #1529: Re: LRZ 1796 1795 # [hic] #1529?owner=bas,priority=medium: Re: LRZ … … 2603 2602 verbose = None 2604 2603 debug_interactive = None 2605 2606 SHORT_OPT = 'cdhf:np:t:v' 2607 LONG_OPT = ['component=', 'debug', 'dry-run', 'help', 'file=', 'project=', 'ticket_prefix=', 'verbose'] 2604 virtualenv = '@virtualenv@' 2605 2606 SHORT_OPT = 'cde:hf:np:t:v' 2607 LONG_OPT = ['component=', 'debug', 'dry-run', 'help', 'file=', 'project=', 'ticket_prefix=', 'virtualenv=', 'verbose'] 2608 2608 2609 2609 try: … … 2623 2623 elif opt in ['-d', '--debug']: 2624 2624 debug_interactive = 1 2625 elif opt in ['-e', '--virtualenv']: 2626 virtualenv = value 2625 2627 elif opt in ['-f', '--file']: 2626 2628 configfile = value … … 2633 2635 elif opt in ['-v', '--verbose']: 2634 2636 verbose = True 2637 2638 if virtualenv and os.path.exists(virtualenv): 2639 activate_this = os.path.join(virtualenv, 'bin/activate_this.py') 2640 if os.path.exists(activate_this): 2641 execfile(activate_this, dict(__file__=activate_this)) 2642 2643 try: 2644 from trac import __version__ as trac_version 2645 from trac import config as trac_config 2646 2647 except ImportError, detail: 2648 print "Can not find a a valid trac installation, solutions could be:" 2649 print "\tset PYTHONPATH" 2650 print "\tuse the --virtualenv <dir> option" 2651 sys.exit(1) 2635 2652 2636 2653 settings = ReadConfig(configfile, project_name) … … 2719 2736 logger.error("trac error: %s" %detail) 2720 2737 sys.exit(0) 2738 except TracError, detail: 2739 logger.error("trac error: %s" %detail) 2740 sys.exit(0) 2721 2741 2722 2742 tktparser = TicketEmailParser(env, settings, logger, float(version)) -
trunk/email2trac.spec
r616 r621 1 1 Summary: Utilities for converting emails to trac tickets 2 2 Name: email2trac 3 Version: 2. 6.23 Version: 2.7.0 4 4 Release: 1 5 5 License: Apache License 2.0
Note: See TracChangeset
for help on using the changeset viewer.