Re: [Trac] About users management

2010-08-02 Thread Christian Boos

On 8/2/2010 9:39 PM, Matthew Caron wrote:




On 08/01/2010 04:44 PM, nacho wrote:

Hi, i'm trying to configure a trac enviroment. But i can't find
anywhere, where can i add users and their mails to the system so when
i create a new ticket i can assign one of those users and email is
sent to the user.

>

Does anyone knows where could i configure this?


Adding users is done in whatever your auth backend is (htpasswd, 
kerberos, etc).


Email addresses and such is done off the user's "preferences" panel, 
or you can do:


INSERT INTO session_attribute (sid, authenticated, name, value) VALUES 
('user', 1, 'email', 'user.n...@domain.com');
INSERT INTO session_attribute (sid, authenticated, name, value) VALUES 
('user', 1, 'name', 'User Name');


If you're using a drop down assign to list, you'll also likely need to 
add something to session as well:


INSERT INTO session (sid, authenticated, last_visit) VALUES ('user', 
1, (SELECT EXTRACT (EPOCH FROM NOW(;





Hm, time to introduce the session commands for trac-admin in 0.12 ;-)

session add  [name] [email]

Create a session for the given sid

session delete  [...]

Delete the session of the specified sid

session list  [...]

List the name and email for the sids specified

session purge 

Purge all anonymous sessions older than the given age

session set   

Set the name or email attribute of the given sid


-- Christian

--
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] About users management

2010-08-02 Thread Matthew Caron



On 08/01/2010 04:44 PM, nacho wrote:

Hi, i'm trying to configure a trac enviroment. But i can't find
anywhere, where can i add users and their mails to the system so when
i create a new ticket i can assign one of those users and email is
sent to the user.

>

Does anyone knows where could i configure this?


Adding users is done in whatever your auth backend is (htpasswd, 
kerberos, etc).


Email addresses and such is done off the user's "preferences" panel, or 
you can do:


INSERT INTO session_attribute (sid, authenticated, name, value) VALUES 
('user', 1, 'email', 'user.n...@domain.com');
INSERT INTO session_attribute (sid, authenticated, name, value) VALUES 
('user', 1, 'name', 'User Name');


If you're using a drop down assign to list, you'll also likely need to 
add something to session as well:


INSERT INTO session (sid, authenticated, last_visit) VALUES ('user', 1, 
(SELECT EXTRACT (EPOCH FROM NOW(;


--
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.



[Trac] Re: Create/Edit Milestones with the XML-RPC Plugin?

2010-08-02 Thread MG

On Aug 2, 3:17 pm, Olemis Lang  wrote:
> On Mon, Aug 2, 2010 at 11:41 AM, MG  wrote:
> > I'm trying to communicate with Trac (0.11.5) using XML-RPC and
> > trac4r.  I'm able to manage tickets but don't see a way to create or
> > edit milestones.  Is this feature available?
>
> Built-in support for this . Namesapace is ticket.milestone (but you
> must enable Milestones provider, of course ;o)
>
> > I came upon a ticket with a patch that adds support for Changesets.
> > (http://trac-hacks.org/ticket/808)  My thought was to do something
> > comparable for Milestones if necessary.
>
> TracGViz plugin provides RPC handlers for reports, changesets , files
> under VCS , timeline events, ... You might want to try that as well
> ;o)
>

Thanks for the response.  I now see the 'MilestoneRPC' component
listed in the plugin manager.  It was missing before...replaced by
'AgiloMilestoneRPC'.  (I must have installed Agilo at some point and
forgotten about it!)

-- 
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] Create/Edit Milestones with the XML-RPC Plugin?

2010-08-02 Thread Olemis Lang
On Mon, Aug 2, 2010 at 11:41 AM, MG  wrote:
> I'm trying to communicate with Trac (0.11.5) using XML-RPC and
> trac4r.  I'm able to manage tickets but don't see a way to create or
> edit milestones.  Is this feature available?
>

Built-in support for this . Namesapace is ticket.milestone (but you
must enable Milestones provider, of course ;o)

> I came upon a ticket with a patch that adds support for Changesets.
> (http://trac-hacks.org/ticket/808)  My thought was to do something
> comparable for Milestones if necessary.
>

TracGViz plugin provides RPC handlers for reports, changesets , files
under VCS , timeline events, ... You might want to try that as well
;o)

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

-- 
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] Create/Edit Milestones with the XML-RPC Plugin?

2010-08-02 Thread MG
I'm trying to communicate with Trac (0.11.5) using XML-RPC and
trac4r.  I'm able to manage tickets but don't see a way to create or
edit milestones.  Is this feature available?

I came upon a ticket with a patch that adds support for Changesets.
(http://trac-hacks.org/ticket/808)  My thought was to do something
comparable for Milestones if necessary.

Thanks,
Mike

-- 
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] About users management

2010-08-02 Thread nacho
Hi, i'm trying to configure a trac enviroment. But i can't find
anywhere, where can i add users and their mails to the system so when
i create a new ticket i can assign one of those users and email is
sent to the user.

Does anyone knows where could i configure this?

-- 
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

2010-08-02 Thread Renato Covarrubias
On 30/07/10 20:31, Noah Kantrowitz wrote:
> Ticket numbers are "allocated" by a SQL auto_increment field.
[...]

The trac database is not changed from the other master mysql, so I can
apply this patch without problems.

Thanks :D


Index: trac/db/mysql_backend.py
===
--- trac/db/mysql_backend.py(revision 9966)
+++ trac/db/mysql_backend.py(working copy)
@@ -93,6 +93,9 @@
 self.env.systeminfo.extend([('MySQL', mysql_info),
 ('MySQLdb', self._version)])
 self.required = True
+c = cnx.cursor()
+c.execute("SET @@auto_increment_increment = 1;")
+cnx.commit()
 return cnx

 def init_db(self, path, log=None, user=None, password=None, host=None,

-- 
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

2010-08-02 Thread Renato Covarrubias
On 30/07/10 20:31, Noah Kantrowitz wrote:
> Ticket numbers are "allocated" by a SQL auto_increment field.

By some old replication schema, the auto_increment_increment is set in
10 in the mysqld.

Now I'm looking to set this variable to 1 for this database.

Thanks a lot!

-- 
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.