RE: [Trac] Pre-populate user preferences
-Original Message- From: trac-users@googlegroups.com On Behalf Of Josh Godsiff Sent: 30 July 2010 00:27 To: trac-users@googlegroups.com Subject: [Trac] Pre-populate user preferences Hi When creating a new project, does anyone know of a way to automatically populate user preferences? It doesn't have to do anything complex, like pulling data from another project, I'd just like some sensible defaults (e.g. their email address) to be in there automatically. Thanks - Josh ...which users? How do you know the email addresses? I think you will need to write a script to do this, based on some dB of the users you want to add by default. Pacopablo has blogged some scripts for session data that could help to get started but that's obviously not the same as preferences. ~ mark c -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Pre-populate user preferences
On 30/7/2010 4:09 PM, Cooke, Mark wrote: -Original Message- From: trac-users@googlegroups.com On Behalf Of Josh Godsiff Sent: 30 July 2010 00:27 To: trac-users@googlegroups.com Subject: [Trac] Pre-populate user preferences Hi When creating a new project, does anyone know of a way to automatically populate user preferences? It doesn't have to do anything complex, like pulling data from another project, I'd just like some sensible defaults (e.g. their email address) to be in there automatically. Thanks - Josh ...which users? How do you know the email addresses? I think you will need to write a script to do this, based on some dB of the users you want to add by default. Pacopablo has blogged some scripts for session data that could help to get started but that's obviously not the same as preferences. ~ mark c At the moment, our number of users is a small, discreet set (6 specific users per project), and as a small business we don't have time to come up anything hugely fancy, so at this point I was just planning to hard-code the data into whatever I come up with. (Though if someone /had/ a fancy solution, I'd be quite happy to use it). Could you point towards these blog posts? They could be helpful. - Josh -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] TRAC error: ProgrammingError: library routine called out of sequence
Hi, We are using TRAC on a windows system. For one project with 25 users and around 100 new tickets a week, and we get quiet often the following error: Traceback (most recent call last): File D:\Python25\lib\site-packages\trac\web\api.py, line 367, in send_error 'text/html') File D:\Python25\lib\site-packages\trac\web\chrome.py, line 688, in render_template data = self.populate_data(req, data) File D:\Python25\lib\site-packages\trac\web\chrome.py, line 596, in populate_data d['chrome'].update(req.chrome) File D:\Python25\lib\site-packages\trac\web\api.py, line 194, in __getattr__ value = self.callbacks[name](self) File D:\Python25\lib\site-packages\trac\web\chrome.py, line 464, in prepare_request for category, name, text in contributor.get_navigation_items(req): File D:\Python25\lib\site-packages\trac\ticket\web_ui.py, line 162, in get_navigation_items if 'TICKET_CREATE' in req.perm: File D:\Python25\lib\site-packages\trac\perm.py, line 523, in has_permission return self._has_permission(action, resource) File D:\Python25\lib\site-packages\trac\perm.py, line 537, in _has_permission check_permission(action, perm.username, resource, perm) File D:\Python25\lib\site-packages\trac\perm.py, line 424, in check_permission perm) File D:\Python25\lib\site-packages\trac\perm.py, line 282, in check_permission get_user_permissions(username) File D:\Python25\lib\site-packages\trac\perm.py, line 357, in get_user_permissions for perm in self.store.get_user_permissions(username): File D:\Python25\lib\site-packages\trac\perm.py, line 175, in get_user_permissions cursor.execute(SELECT username,action FROM permission) File D:\Python25\lib\site-packages\trac\db\util.py, line 51, in execute return self.cursor.execute(sql) File D:\Python25\lib\site-packages\trac\db\sqlite_backend.py, line 58, in execute args or []) File D:\Python25\lib\site-packages\trac\db\sqlite_backend.py, line 50, in _rollback_on_error return function(self, *args, **kwargs) ProgrammingError: library routine called out of sequence Trac used: Trac: 0.11.2.1 Python:2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] setuptools:0.6c9 SQLite: 3.3.4 pysqlite:2.3.2 Genshi:0.5.1 mod_python: 3.3.1 Subversion: 1.6.6 (r40053) RPC:1.1.0-r0 CustomFieldAdmin:0.2.2 jQuery:1.2.6 What could be the cause and how could we solve this? Regards, Patrick -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] Pre-populate user preferences
-Original Message- From: trac-users@googlegroups.com On Behalf Of Josh Godsiff Sent: 30 July 2010 00:27 To: trac-users@googlegroups.com Subject: [Trac] Pre-populate user preferences Hi When creating a new project, does anyone know of a way to automatically populate user preferences? It doesn't have to do anything complex, like pulling data from another project, I'd just like some sensible defaults (e.g. their email address) to be in there automatically. Thanks - Josh On 30/7/2010 4:09 PM, Cooke, Mark wrote: ...which users? How do you know the email addresses? I think you will need to write a script to do this, based on some dB of the users you want to add by default. Pacopablo has blogged some scripts for session data that could help to get started but that's obviously not the same as preferences. ~ mark c -Original Message- From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com] On Behalf Of Josh Godsiff Sent: 30 July 2010 07:58 To: trac-users@googlegroups.com Subject: Re: [Trac] Pre-populate user preferences At the moment, our number of users is a small, discreet set (6 specific users per project), and as a small business we don't have time to come up anything hugely fancy, so at this point I was just planning to hard-code the data into whatever I come up with. (Though if someone /had/ a fancy solution, I'd be quite happy to use it). Could you point towards these blog posts? They could be helpful. - Josh http://pacopablo.com/blog/pacopablo/blog/set-assign-to-drop-down This script includes setting the email address so if that's your main requirement you're probably home and dry... ~ mark c -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] TracQuery query filters
I am trying to set up a TracQuery filter on keywords: [[TicketQuery(keywords~=rst2)]] And it works exactly as expected. But not as needed... I want to find tickets where 'rst2' is a whole word. So, this set of key words should result in a match: rst2 ylist sumthing but this one should not: rst2xyz ylist sumthing The target 'rst2' could also be the last word in the list (meaning no space after it). With my query, both result in a match. Am I missing some brilliant thing? -- Roger Oberholtzer -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Pre-populate user preferences
2010/7/30 Cooke, Mark mark.co...@siemens.com http://pacopablo.com/blog/pacopablo/blog/set-assign-to-drop-down This script includes setting the email address so if that's your main requirement you're probably home and dry... ~ mark c -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.comtrac-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/trac-users?hl=en. Well, honestly, I'm thinking about a solution like that for a couple of month, but I'd be very happy if there's an extention available somewhere which doesn't look at the command line but take the data of all users from an existing trac env. So does anyone know how to modify/extend the script to read all useres username, fullname and email address and repopulate it to the new trac env? (I'm sorry, I'm no python coder...) Thx Micha -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] Pre-populate user preferences
Well, honestly, I'm thinking about a solution like that for a couple of month, but I'd be very happy if there's an extention available somewhere which doesn't look at the command line but take the data of all users from an existing trac env. So does anyone know how to modify/extend the script to read all useres username, fullname and email address and repopulate it to the new trac env? (I'm sorry, I'm no python coder...) Thx Micha I'm looking at that right now (been meaning to do it for ages). I'll try to get something running but not until next week if you can wait that long. ~ mark c -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Pre-populate user preferences
if you can wait that long. I think for me, waiting is even faster than learning python and understanding how trac works, right? ;-) So I'll wait and look forward for your results. Thanks in advance! Micha -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Pre-populate user preferences
On 07/30/2010 06:51 AM, 3xIlling wrote: if you can wait that long. I think for me, waiting is even faster than learning python and understanding how trac works, right? ;-) If you're using trac, you're going to have to learn eventually. It's just too hackable to let alone! -- SIXNET - Industrial and Wireless Connectivity 331 Ushers Road, Ballston Lake, NY 12019 Tel: 1.518.877.5173, Fax: 1.518.877.8346 www.sixnet.com -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] Collapse/Expand or Foldable
FYI: Here it what sort-of-works for getting foldable sections in the Ticket page for Trac 11.7: Index: trunk/trac/usr-share-pyshared-trac-ticket-templates-ticket.html === --- a/trunk/trac/usr-share-pyshared-trac-ticket-templates-ticket.html +++ b/trunk/trac/usr-share-pyshared-trac-ticket-templates-ticket.html @@ -19,4 +19,8 @@ /py:choose /title + +!-- To enable foldable sections. -- +link rel=stylesheet href=/trac/chrome/common/css/report.css type=text/css / + script type=text/javascript src=${chrome.htdocs_location}js/wikitoolbar.js/script script type=text/javascript py:choose= @@ -41,4 +44,18 @@ $(#field-summary).focus(); /py:otherwise + }); +/script +script type=text/javascript src=/trac/chrome/common/js/folding.js/script +script type=text/javascript + jQuery(document).ready(function($) { +$(#group).change(function() { + $(#groupdesc).enable(this.selectedIndex != 0) +}).change(); +$(fieldset legend.foldable).enableFolding(false); +/* Hide the most sections by default. */ +$(#action).toggleClass(collapsed); +$(#changelog-foldable).toggleClass(collapsed); +$(#addcomment-foldable).toggleClass(collapsed); +$(#attachments-foldable).toggleClass(collapsed); }); /script @@ -204,11 +221,15 @@ py:if test=ticket.exists +fieldset id=attachments-foldable + legend class=foldableAttachments/legend !--! do not show attachments for old versions of this ticket or for new tickets -- py:if test=not version and version != 0 and ticket.exists ${list_of_attachments(attachments)} /py:if +/fieldset py:if test=ticket.exists and changes - h2Change History/h2 + fieldset id=changelog-foldable + legend class=foldableChange History/legend div id=changelog form py:for=change in changes method=get action=#comment class=printableform @@ -239,4 +260,5 @@ /form /div + /fieldset /py:if /py:if @@ -245,6 +267,8 @@ form py:if=not version and version != 0 and (can_append or can_modify or can_edit or can_create) action=${ticket.exists and href.ticket(ticket.id) or href.newticket()} method=post id=propertyform -h3 py:if=ticket.existsa id=edit onfocus=$('#comment').get(0).focus() -Add/Change #${ticket.id} ($ticket.summary)/a/h3 + + fieldset id=addcomment-foldable + legend class=foldable py:if=ticket.exists id=edit + a onfocus=$('#comment').get(0).focus()Add/Change #${ticket.id} ($ticket.summary)/a/legend div py:if=authname == 'anonymous' class=field fieldset @@ -276,4 +300,6 @@ /fieldset /div + /fieldset + fieldset id=properties py:if=can_modify or can_edit or can_create py:with=fields = [f for f in fields if not f.skip] @@ -379,5 +405,5 @@ py:choose fieldset py:when=can_append or can_modify id=action - legendAction/legend + legend class=foldableAction/legend div py:for=key, label, controls, hints in action_controls input type=radio id=action_$key name=action value=$key checked=${key == action or None} / -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
[Trac] ticket numbers
Hi all! A few days ago I installed version 0.12 of trac. Today I started creating tickets, I saw that the tickets are created from 1 with increments of 10. How I can change this? I see no option anywhere. I want the tickets have increments of 1. Thanks. -- Renato Covarrubias Romero counter.li.org #399677 listas [at] rnt.clhttp://rnt.cl https://fedoraproject.org/wiki/User:Rcovarru -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
Re: [Trac] ticket numbers
On Fri, 2010-07-30 at 14:56 -0400, Renato Covarrubias wrote: Hi all! A few days ago I installed version 0.12 of trac. Today I started creating tickets, I saw that the tickets are created from 1 with increments of 10. How I can change this? I see no option anywhere. I want the tickets have increments of 1. You seem to have entered the twilight zone -- Roger Oberholtzer -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
RE: [Trac] ticket numbers
Ticket numbers are allocated by a SQL auto_increment field. --Noah -Original Message- From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com] On Behalf Of Roger Oberholtzer Sent: Friday, July 30, 2010 4:02 PM To: trac-users@googlegroups.com Subject: Re: [Trac] ticket numbers On Fri, 2010-07-30 at 14:56 -0400, Renato Covarrubias wrote: Hi all! A few days ago I installed version 0.12 of trac. Today I started creating tickets, I saw that the tickets are created from 1 with increments of 10. How I can change this? I see no option anywhere. I want the tickets have increments of 1. You seem to have entered the twilight zone -- Roger Oberholtzer -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac- users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en. -- You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-us...@googlegroups.com. To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.