Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)
On 2013-06-26 16:20, ivanelson wrote: Your solution solved my problem. The plugin is installed, configured and Ticket are created. ... I just can not define default values for the Ticket. I'm not sure how to do this. I assume, that the defaults for tickets in my instance are defined correctly in trac, so that there is no need to overwrite them in email2trac. (I configured the system some years ago and forgot many details...) My /etc/aliaes # Other aliases bananasoft: |/usr/bin/email2trac --project=bananasoft Note, that in my setup, I'm not using the /etc/aliases file at all. Not sure, whether you really need it. Probably not, if you fetch the mail from IMAP and forward it directly to email2trac via getmail. The /etc/aliases is useful, when you are not using getmail, IIRC. Cheers -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)
On 27/06/2013 5:43pm, W. Martin Borgert wrote: On 2013-06-26 16:20, ivanelson wrote: Your solution solved my problem. The plugin is installed, configured and Ticket are created. ... I just can not define default values for the Ticket. I'm not sure how to do this. I assume, that the defaults for tickets in my instance are defined correctly in trac, so that there is no need to overwrite them in email2trac. (I configured the system some years ago and forgot many details...) My /etc/aliaes # Other aliases bananasoft: |/usr/bin/email2trac --project=bananasoft Note, that in my setup, I'm not using the /etc/aliases file at all. Not sure, whether you really need it. Probably not, if you fetch the mail from IMAP and forward it directly to email2trac via getmail. The /etc/aliases is useful, when you are not using getmail, IIRC. You also need to ensure that any bounces go to an email address which is monitored. /etc/aliases are useful for that as well. Cheers -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
[Trac] TRAC - how to recover from backup (old, old, install)
I need to get access to a TRAC repository/database which I have a data backup of but not the actual environment it ran within. My primary problem is that I don't know what version of TRAC was being used to write to the repository/database which I have a backup of. We believe the version of TRAC in use was 0.10.x but it's possible it was upgraded and that that it's 1.x.x ? I've read this document : http://trac.edgewall.org/browser/trunk/UPGRADE but some of the special cases towards the bottom of the page require that you know the version number you're starting from (not unreasonably !). Is there any way I could look into the backups and determine which version of TRAC wrote them ? Thanks Richard. -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] Install and Settings email2trac - Not user friendly(IMHO)
On Wednesday, June 26, 2013 6:20:32 PM UTC-5, ivanelson wrote: Martin, Your solution solved my problem. The plugin is installed, configured and Ticket are created. I just can not define default values for the Ticket. [DEFAULT] project: /var/trac/projects/bananasoft ticket_permission_system: update_restricted_to_participants debug: 1 black_list: MAILER-DAEMON@ drop_spam : 1 drop_alternative_html_version: 1 email_quote: html2text_cmd: ignore_trac_user_settings: 0 inline_properties: 1 inline_properties_first_wins: 1 reply_all : 0 spam_level: 5 strip_quotes: 0 strip_signature: 0 ticket_update: 1 ticket_update_by_subject: 1 ticket_update_by_subject_lookback: 30 umask: 022 verbatim_format: 1 log_type: file log_file: /tmp/email2trac.log [bananasoft] default_component : TRAC default_keywords : ServiceDesk default_priority : Alta default_severity : Normal default_type : Triagem Above here bananasoft you are using prefix = default did you specify the prefix in the command that send the email My /etc/aliaes # Other aliases bananasoft: |/usr/bin/email2trac --project=bananasoft I would change this to: bananasoft: |/usr/bin/email2trac --project=bananasoft--ticket_prefix=banana [bananasoft] banana_component : TRAC banana_keywords : ServiceDesk banana_priority : Alta banana_severity : Normal banana_type : Triagem -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] TRAC - how to recover from backup (old, old, install)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27.06.2013 13:47, northof40 wrote: I need to get access to a TRAC repository/database which I have a data backup of but not the actual environment it ran within. My primary problem is that I don't know what version of TRAC was being used to write to the repository/database which I have a backup of. We believe the version of TRAC in use was 0.10.x but it's possible it was upgraded and that that it's 1.x.x ? I've read this document : http://trac.edgewall.org/browser/trunk/UPGRADE but some of the special cases towards the bottom of the page require that you know the version number you're starting from (not unreasonably !). Is there any way I could look into the backups and determine which version of TRAC wrote them ? Assuming you're talking about a Trac database copy you'll find the Trac version in 'system' db table. But if you don't inherited the environment for this database, you'll get into trouble with attachments. The files are not stored in the database but in a directory within the Trac environment folder. Other default content could be regenerated from source, even a lot of trac.ini content could be guessed from database content, if you know where to look at. Steffen Hoffmann -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlHMXXYACgkQ31DJeiZFuHdqRQCfVDkkSd4EAe1yIx97fBWngkdg /m0An3XqM99bj/qbkjR1blaLLumYdgG+ =tarr -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] Upgrade to 0.12.3 and custom views
On Wednesday, June 26, 2013 5:16:09 PM UTC-5, hasienda wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26.06.2013 22:34, Lukasz Szybalski wrote: Hello, We recently upgrade to 0.12.3 (Debian 7). 1. Is there a way to default that modify tab is ALWAYS OPEN? This really slows down the processing time for people who watch incoming new tickets and assign them out to proper milestones? Can I overwrite that somewhere in code if there is not setting for it? Just been discussed and pointed out by Ryan here: http://trac.edgewall.org/ticket/9807#comment:18 Also less critical : A). Is there a way to remove the preview. We either get PDF or TIFF files in one of the trac instances we setup. PDF has no preview so you need download in original format anyway, and TIFF files have multiple pages which the preview does not show. When people click on the attachment I want them to go straight into download in original format? What part of the trac would this be in so I can customize the link? ( I know there is a download arrow next to attachment name but that does not work in firefox 20+, and a lot of people don't see it). See PdfRedirectorPlugin [1], should be possible to do/customize for other extensions too. Perfect I've modified it and add tif if len(path) 1 and path[-1].lower().endswith('.pdf'): if path[0] == 'attachment' and not req.args.get('action') == 'delete': filepath = req.href(*(['raw-attachment'] + path[1:])) req.redirect(filepath) elif path[0] == 'browser': path[0] = 'export' rev = req.args.get('rev', 'HEAD') path.insert(1, rev) filepath = req.href('/'.join(path)) req.redirect(filepath) if len(path) 1 and path[-1].lower().endswith('.tif'): if path[0] == 'attachment' and not req.args.get('action') == 'delete': filepath = req.href(*(['raw-attachment'] + path[1:])) req.redirect(filepath) elif path[0] == 'browser': path[0] = 'export' rev = req.args.get('rev', 'HEAD') path.insert(1, rev) filepath = req.href('/'.join(path)) req.redirect(filepath) Works perfectly. B) Is there a plugin that would allow displaying show under each result: attachments. Similar how Show under each result: Description gives you description..I want to show attachments so that you can click on them while you are in the query. I see your point, but have not recognized something like that in existing hacks, at least not at trac-hacks.org yet. But extending each ticket match in query by querying for attachments of that ticket and display matches as a list with links pointing at that attachments sounds like a doable task. Got some development foo and time? I see this way to get what you want: Using the IRequestFilter [2] extension interface to catch calls to '/query', maybe check for results (matching tickets), before kicking in at all, iterate over results and query each ticket for associated attachments, extend the data object, that will be passed on by a list of matching files, implant a Genshi fragment containing generator code with ITemplateStreamFilter [3] to render that list(s) as a linked list per ticket row in trac/ticket/templates/query_results.html. Once done, name it TicketQueryAttachmentListPlugin or similar. :-) I would like to have the option to show attachments do? See screenshot. Like here you see Show under each result: Checkbox for Description,,,another checkbox for attachments. Would that be possible the way you have the above layout? Would that be something you could do? Possibly on a paid basis? Thanks Lucas Steffen Hoffmann [1] http://trac-hacks.org/wiki/PdfRedirectorPlugin [2] http://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.web.api.IRequestFilter [3] http://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.web.api.ITemplateStreamFilter -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlHLaCgACgkQ31DJeiZFuHebNQCgwIP5NJAjMbVvsH/4fFbMCS9m MycAn3bUHUhGtmdwG3DsURTS+TU84REY =ezrK -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out. attachment: Selection_328.png
Re: [Trac] Upgrade to 0.12.3 and custom views
On Thursday, June 27, 2013 1:30:05 PM UTC-5, Lukasz Szybalski wrote: On Wednesday, June 26, 2013 5:16:09 PM UTC-5, hasienda wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26.06.2013 22:34, Lukasz Szybalski wrote: Hello, We recently upgrade to 0.12.3 (Debian 7). 1. Is there a way to default that modify tab is ALWAYS OPEN? This really slows down the processing time for people who watch incoming new tickets and assign them out to proper milestones? Can I overwrite that somewhere in code if there is not setting for it? Just been discussed and pointed out by Ryan here: http://trac.edgewall.org/ticket/9807#comment:18 http://trac.edgewall.org/ticket/9807#comment:18 I noticed that this actually makes everything open including columns batchmodify...etc I think it should probably be a little more specific to modify. Thanks Lucas -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Trac] TRAC - how to recover from backup (old, old, install)
On Friday, June 28, 2013 3:42:52 AM UTC+12, hasienda wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27.06.2013 13:47, northof40 wrote: I need to get access to a TRAC repository/database which I have a data backup of but not the actual environment it ran within. My primary problem is that I don't know what version of TRAC was being used to write to the repository/database which I have a backup of. We believe the version of TRAC in use was 0.10.x but it's possible it was upgraded and that that it's 1.x.x ? I've read this document : http://trac.edgewall.org/browser/trunk/UPGRADE but some of the special cases towards the bottom of the page require that you know the version number you're starting from (not unreasonably !). Is there any way I could look into the backups and determine which version of TRAC wrote them ? Assuming you're talking about a Trac database copy you'll find the Trac version in 'system' db table. OK thanks I opened the trac.db sqlite database and in the system table I have : name|value| database_version|19| repository_dir|svn:7550b826-aab1-e94c-bd31-d2cc36b48ffb:E:/data/SVN_CPO| According to the comment here : http://trac.edgewall.org/ticket/6300 by cboos 'database_version' 19 corresponds to TRAC 0.10.5 (or presumably earlier ?) can anyone confirm that ? But if you don't inherited the environment for this database, you'll get into trouble with attachments. The files are not stored in the database but in a directory within the Trac environment folder. I *think* I'm OK here as I have a complete copy of all the files - the top directory of which is shown below - I think I'm OK with all that lot ? I'm hoping that I can make a new TRAC called, like the old one, TRAC_CPO, and then overlay the directory structure shown below over the the default files which would have been created. Perhaps there is a better way though ? Would be interested to hear. Directory of G:\data\BUP\TRAC\20110715T201800\TRAC_CPO 2011-07-15 08:21 p.m.DIR . 2011-07-15 08:21 p.m.DIR .. 2011-07-15 08:21 p.m.DIR attachments 2011-07-15 08:21 p.m.DIR conf 2011-07-15 08:21 p.m.DIR db 2011-07-15 08:21 p.m.DIR htdocs 2011-07-15 08:21 p.m.DIR log 2011-07-15 08:21 p.m.DIR plugins 2007-03-03 07:36 p.m. 100 README 2011-07-15 08:21 p.m.DIR templates 2007-03-03 07:36 p.m.28 VERSION 2011-07-15 08:21 p.m.DIR wiki-macros Thanks again for your help and if you or anyone else can confirm I should be using 0.10.5 that would be great. regards Richard. -- You received this message because you are subscribed to the Google Groups Trac Users group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To post to this group, send email to trac-users@googlegroups.com. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.