[Trac] Custom Field mapped to drop down list of users

2011-09-27 Thread sue
Is there a way to create a custom field that is mapped to the drop
down list of users?  For example, we would like to have a record of
who code reviewed a fix, and would like that field to be a drop down
list of users.
Thanks,
Sue

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@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] Does anyone have a script to change email addresses?

2011-09-27 Thread Matthew Caron

On 09/27/2011 10:09 AM, Cooke, Mark wrote:

Hi Matthew, Chris,

Thanks for the help so far...


We aim to please.


Whenever someone leaves, we:

1. Reassign all their tickets using batch reassign


...is that a trac-hack?


Yes indeed.

http://trac-hacks.org/wiki/BatchModifyPlugin


Thanks very much, that is most helpful.  Of course *smack forehead*
the other possibility is that bugzilla used email addresses as
usernames... So I need to check the reporter and owner values too.


That wouldn't surprise me.
--
Matthew Caron
Build Engineer
Sixnet | www.sixnet.com
O +1 518 877 5173 Ext. 138
F +1 518 602 9209
matt.ca...@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-users@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] Does anyone have a script to change email addresses?

2011-09-27 Thread Cooke, Mark
Hi Matthew, Chris,

Thanks for the help so far... 

> -Original Message-
> From: Matthew Caron [mailto:matt.ca...@sixnet.com] 
> Sent: 27 September 2011 14:53
> To: trac-users@googlegroups.com
> Cc: Cooke, Mark
> Subject: Re: [Trac] Does anyone have a script to change email 
> addresses?
> 
> On 09/27/2011 08:56 AM, Cooke, Mark wrote:
> > ...because I am not sure where the email addresses are stored and I
> > was hoping someone might have already done this!
> 
> trac=# select sid, value from session_attribute where name = 'email';

I'm fairly certain these are (mostly) not session data as one specific user 
left before I introduced Trac (data was imported from an old bugzilla instance).

> Whenever someone leaves, we:
> 
>   1. Reassign all their tickets using batch reassign

...is that a trac-hack?

>   2. Remove the user's permissions (via the web UI)
>   3. Reassign any components the user owns
>   4. Remove the session data so that the user doesn't show up in the 
> drop down assignment list:
> {{{
> delete from session where sid = 'username';
> delete from session_attribute where sid = 'username';
> }}}
> 
> > That's where I'll
> > go next if noone has anything I can pick up.  The users in question
> > are not in the session tables so the emails must be in the ticket
> > data somewhere...
> 
> Likely in session_attribute, but if they're not there, they 
> may also be in the ticket's CC list as explicit emails (as that
> field does username -> email lookups or can take explicit
> emails as well, IIRC)
> 
> select id,cc from ticket;
> 
> It's also possible that the "reporter" field does the same thing:
> 
> select id,reporter from ticket;
> 
> Of course, you can limit it to explicit emails via something like:
> 
> select id,cc from ticket where cc ~ '.@.';
> 
> or whatnot.
> 
Thanks very much, that is most helpful.  Of course *smack forehead* the other 
possibility is that bugzilla used email addresses as usernames... So I need to 
check the reporter and owner values too.

~ 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-users@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] Does anyone have a script to change email addresses?

2011-09-27 Thread Chris Nelson
On 2011-09-27 at 09:52:49, Matt Caron wrote:
> On 09/27/2011 08:56 AM, Cooke, Mark wrote:
>... 
>> That's where I'll
>> go next if noone has anything I can pick up.  The users in question
>> are not in the session tables so the emails must be in the ticket
>> data somewhere...
> 
> Likely in session_attribute, but if they're not there, they may also be
> in the ticket's CC list as explicit emails (as that field does username
> -> email lookups or can take explicit emails as well, IIRC)
> 
> select id,cc from ticket;
> ...

All of which is fine if you aren't worried about ticket comment or wiki text 
like "[mailto:f...@example.com Fred] said this works for him."  To my mind, 
changing that would "rewrite history" and won't lead to any automatic 
notifications or anything so I'd leave it alone. 

-- 
Christopher Nelson, Software Engineering Manager
SIXNET - Solutions for Your Industrial Networking Challenges
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-users@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] Does anyone have a script to change email addresses?

2011-09-27 Thread Matthew Caron

On 09/27/2011 08:56 AM, Cooke, Mark wrote:

...because I am not sure where the email addresses are stored and I
was hoping someone might have already done this!


trac=# select sid, value from session_attribute where name = 'email';

Whenever someone leaves, we:

 1. Reassign all their tickets using batch reassign
 2. Remove the user's permissions (via the web UI)
 3. Reassign any components the user owns
 4. Remove the session data so that the user doesn't show up in the 
drop down assignment list:

{{{
delete from session where sid = 'username';
delete from session_attribute where sid = 'username';
}}}


That's where I'll
go next if noone has anything I can pick up.  The users in question
are not in the session tables so the emails must be in the ticket
data somewhere...


Likely in session_attribute, but if they're not there, they may also be 
in the ticket's CC list as explicit emails (as that field does username 
-> email lookups or can take explicit emails as well, IIRC)


select id,cc from ticket;

It's also possible that the "reporter" field does the same thing:

select id,reporter from ticket;

Of course, you can limit it to explicit emails via something like:

select id,cc from ticket where cc ~ '.@.';

or whatnot.

--
Matthew Caron
Build Engineer
Sixnet | www.sixnet.com
O +1 518 877 5173 Ext. 138
F +1 518 602 9209
matt.ca...@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-users@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] Does anyone have a script to change email addresses?

2011-09-27 Thread Cooke, Mark
Hi Matthew,

> -Original Message-
> From: trac-users@googlegroups.com On Behalf Of Matthew Caron
> Sent: 27 September 2011 13:52
> To: trac-users@googlegroups.com
> Subject: Re: [Trac] Does anyone have a script to change email 
> addresses?
> 
> On 09/27/2011 08:44 AM, Cooke, Mark wrote:
> > Does anyone have a python script they can share for going through a
> > trac environment to change or remove specific email addresses?
> 
> Why not just delete them from the DB from the CLI?
> 
...because I am not sure where the email addresses are stored and I was hoping 
someone might have already done this!  That's where I'll go next if noone has 
anything I can pick up.  The users in question are not in the session tables so 
the emails must be in the ticket data somewhere...

~ 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-users@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] Does anyone have a script to change email addresses?

2011-09-27 Thread Matthew Caron

On 09/27/2011 08:44 AM, Cooke, Mark wrote:

Does anyone have a python script they can share for going through a
trac environment to change or remove specific email addresses?


Why not just delete them from the DB from the CLI?

--
Matthew Caron
Build Engineer
Sixnet | www.sixnet.com
O +1 518 877 5173 Ext. 138
F +1 518 602 9209
matt.ca...@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-users@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] Does anyone have a script to change email addresses?

2011-09-27 Thread Cooke, Mark
Folks,

As people move on, I get more and more 'delivery failure' messages when tickets 
are updated (mine is the default 'from' email address just so I catch these 
issues)...

Does anyone have a python script they can share for going through a trac 
environment to change or remove specific email addresses?  We use Trac 0.12 on 
windoze with a PostgreSQL backend if that matters.

Many thanks,

~ 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-users@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 ticket fields does not display correctly in internet explorer

2011-09-27 Thread viveik puglia
Hello Team,

I am having issue of trac does not displaying ticket fields correctly
in internet explorer.

While it gets displayed correctly in mozilla firefox.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@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] how can I create trac user

2011-09-27 Thread saurav sagar
You can do it by the web interface. Go to Admin--Users-- and then create
users

Regards
Saurav

On Tue, Sep 27, 2011 at 1:46 PM, Erik Andersson  wrote:

>
>
> On Wed, Sep 21, 2011 at 12:24 PM, sevim...@gmail.com 
> wrote:
>
>> I want to create more then user on trac viki but I can't
>> could you help me?
>> Thanks
>>
>> Read: http://trac.edgewall.org/wiki/TracPermissions
>
> Cheers / Erik
>
>
>>  --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Trac Users" group.
>> To post to this group, send email to trac-users@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-users@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-users@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] Re: Attachment links from RST block

2011-09-27 Thread Emmanuel Blot
Weird:

The example from Trac works:

{{{
#!rst
Attachment: :trac:`attachment:ticket:944:attachment.1073.diff`
}}}

However, the following syntax does not work:

{{{
#!rst
Attachment: :trac:`attachment:wiki:SandBox:test.zip`
}}}

and it seems that the rendering engine goes mad,  if the following
syntax is used:

{{{
#!rst
Attachment: :trac:`attachment:ticket:944:attachment.1073.diff`
Attachment: :trac:`attachment:wiki:SandBox:test.zip`
}}}

the whole RST block is rendered as a code block…

What would be the proper syntax for wiki page attached file, and is it
possible to use a "relative" syntax (only the filename is specified
when the link is local to the current page)?

Thanks,
Manu

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@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] how can I create trac user

2011-09-27 Thread Erik Andersson
On Wed, Sep 21, 2011 at 12:24 PM, sevim...@gmail.com wrote:

> I want to create more then user on trac viki but I can't
> could you help me?
> Thanks
>
> Read: http://trac.edgewall.org/wiki/TracPermissions

Cheers / Erik


> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To post to this group, send email to trac-users@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-users@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] how can I create trac user

2011-09-27 Thread sevim...@gmail.com
I want to create more then user on trac viki but I can't
could you help me?
Thanks

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@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] Migration steps from Trac 0.11 to 0.13dev

2011-09-27 Thread Timo Rumland
Hello,

we are currently running Trac version 0.11, and would like to jump
onto version 0.13dev.

I can find some information about migration from 0.11 to 0.12, but
nothing about 0.11 to 0.13dev. May you give me some hints, where to
start? What is the best approach to migrate from 0.11 to 0.13dev?

An additional requirement is, that the migration must be done from one
machine to another machine (linux). So I can't just upgrade the
existing Trac.

My planned first steps are, that I install a Trac 0.11 on the new
machine, copy the database and all attachements, and then, when Trac
0.11 runs on the new machine, try to upgrade Trac to version 0.13dev.


Is this a promising approach? :)


Thanks a lot for your help


Best regards,
Timo

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@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.