RE: [Trac] Ticket-Modify privileges

2011-12-12 Thread Cooke, Mark
   On Fri, Dec 9, 2011 at 1:24 PM, Emily Hodges 
 em...@treestar.com wrote:
 
   Users have the ability to reopen tickets but I 
 did not give them that
   permission.
   
   Users have:
   Ticket_Append
   Ticket_View
   Ticket_Create
   
   I did not give them Ticket_ChgProp or 
 Ticket_Modify and user still
   have permissions to reopen a ticket.
   
   Any suggestions? I do not want my users to have 
 the ability to reopen
   a ticket.
   
   Thanks,
   Emily Hodges
   Trac Admin
 

 On Sat, Dec 10, 2011 at 11:29 AM, Nelson Brown 
 brown...@gmail.com wrote:
 
   Hi Emily,
 
 I believe that you can change the [Ticket-Workflow] 
 section to accomplish what you want.  Check out what the 
 permission for reopen says.  Here is a sample from my trac.ini
 
   [ticket-workflow]
   (... some stuff...)
   reopen = closed - reopened
   reopen.operations = del_resolution
   reopen.permissions = TICKET_CREATE
 
 So anyone with TICKET_CREATE permissions can re-open 
 this ticket.  Perhaps that should be TICKET_MODIFY in your 
 case to achieve what you want?
 
 -Nelson
 

 -Original Message-
 From: trac-users@googlegroups.com 
 [mailto:trac-users@googlegroups.com] On Behalf Of Nelson Brown
 Sent: 10 December 2011 16:32
 To: trac-users@googlegroups.com
 Subject: Re: [Trac] Ticket-Modify privileges
 
 I'm sorry, I also should have included a reference to the 
 documentation.
 
 http://trac.edgewall.org/wiki/TracWorkflow#BasicTicketWorkflow
 Customization
 
 -Nelson
 

Note that if the standard TICKET_ permissions are not quite enough for your 
workflow, you can add extra permission names into TRAC and use them in the 
workflow you define:-

http://trac.edgewall.org/wiki/TracPermissions#CreatingNewPrivileges

~ 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] About subcomponent

2011-12-12 Thread Kousik Maiti
Hi list,
I am new to trac. I have install trac on CentOS server and also install
subcomponent  from http://hg.haiku-os.org/trac-subcomponents and enable it
in trac.ini by

subcomponents.web_ui.subcomponentsmodule = enabled

But I can't see anything in component...
Can anybody help?
Thanks in advanced.

-- 
Wishing you the very best of everything, always!!!
Kousik Maiti(কৌশিক মাইতি)
Registered Linux User #474025
Registered Ubuntu User # 28654

-- 
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] Re: Access to tickets on the command line? (or Python shell?)

2011-12-12 Thread W. Martin Borgert

Quoting Olemis Lang ole...@gmail.com:
On Mon, Dec 12, 2011 at 8:30 AM, W. Martin Borgert  
deba...@debian.org wrote:

I'm running Trac 0.11.7 and would like to access individual tickets
on the command line. With trac-admin I can remove tickets, but I
would like to access/read the summary and other fields. Is there any
way to do this? (I know, there is psql, of course.)


Yes Martin . There's a vim plugin for Trac (please Google for it ...
;) . AFAICR it relies on XMLRPC interface so I suppose you should have
this plugin installed  and enabled . I tried it once upon a time and
it worked pretty well .

Another option is to use a fully featured command line browser lynx ;)

Is this ok for you ? Or is it that you're looking for something else ?


Probably :~) I give an example what I like to do:

$ SUMMARY=`trac-something /foo/bar/project ticket 1234 summary`
$ echo $SUMMARY | grep -q someword  echo 1234 contains someword

Even better would be a Python shell, of course.

--
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] About subcomponent

2011-12-12 Thread Branson Matheson
So .. just a quick point:

- I implemented subcomponents by just adding a 'dash' in the component field so:

 Exp  - Generic Experiment
 Exp-CAAT - the CAAT experiment
 Lab  - Generic catchall for the lab
 Lab-Net  - Network based stuff for lab
 Lab-Premises - Physical stuff etc.. 

This has the benefit of not leaving an empty field or having to create a 
'catch-all' subcomponent.. since you can search using:

 component=~Exp 

you can get all the 'Experiment' component related stuff .. and if you want it 
more specific .. just make the search more significant.

My 2 cents.. KISS ;-)

- b


On Dec 12, 2011, at 9:52 AM, Jason Miller wrote:

 
 On Dec 12, 2011, at 5:04 AM, Kousik Maiti wrote:
 
 Hi list,
 I am new to trac. I have install trac on CentOS server and also install 
 subcomponent  from http://hg.haiku-os.org/trac-subcomponents and enable it 
 in trac.ini by 
 
 subcomponents.web_ui.subcomponentsmodule = enabled
 
 But I can't see anything in component... 
 Can anybody help?
 Thanks in advanced. 
 
 -- 
 Wishing you the very best of everything, always!!!
 Kousik Maiti(কৌশিক মাইতি) 
 Registered Linux User #474025
 Registered Ubuntu User # 28654
 
 -- 
 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.
 
 
 Hello!
 
 I followed your link, but didn't really get an idea what that plugin did, so 
 I searched Trac Subcomponents using Google, and landed at:
 
 http://trac.edgewall.org/ticket/548
 
 Which at the end of the ticket, ultimately informed me that this feature was 
 going to be included and called (in all future versions of Trac):
 
 http://trac.edgewall.org/wiki/MultipleProjectSupport
 
 That page was deprecated in a sense, and points me to a new page:
 
 http://trac.edgewall.org/wiki/TracDev/Proposals/MultipleProject
 
 lol. So, anyway, I think you don't need that plugin. It sounds like it is 
 included permanently. Or I am completely wrong. 
 What does that trac-subcomponent plugin do (because I couldn't find any 
 description about its usage from your supplied link)?
 
 A possible solution though, to your issue:
 It may be possible, you need to reload/restart apache, for the plugin 
 additions to populate the API.  -- rare, but I have seen it
 
 Also, if that doesn't work, we could try loading your Trac environment using 
 the supplied tracd temporarily. Now would be a good time to turn on Debug 
 mode as well, and follow the trac.log.
 
 Thanks!
 Jason
 
 -- 
 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.
 

-b

Branson Matheson
bran...@sandsecurity.com
757-320-4230





-- 
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] Issue with trac.config.option default

2011-12-12 Thread Chris Nelson
In Trac 0.11.6, the code quoted below results in missing options being 
an empty string, not None. 
http://www.edgewall.org/docs/tags-trac-0.11.7/epydoc/trac.config.Option-class.html 
says:



__init__(self, section, name, default=None, doc='')

What am I missing?  Or is this broken?
 Chris
--8---8---
class TracPM(Component):

cfgSection = 'TracPM'
fields = None

...
Option(cfgSection, 'fields.percent', None,
   Ticket field to use as the data source for the percent
  complete column.)
...
def __init__(self):
self.env.log.debug('Initializing TracPM')

# Configurable fields
fields = ('percent', 'estimate', 'worked', 'start', 'finish',
  'pred', 'succ', 'parent')

self.fields = {}
for field in fields:
self.fields[field] = self.config.get(self.cfgSection,
 'fields.%s' % field)
self.env.log.debug('%s is %s' % (field, self.fields[field]))

--
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] Re: AuthOpenId use case . On usernames and OpenId URLs .

2011-12-12 Thread Nelson Brown
I think I'm going to start playing around with it on my test server...
 Thanks for the introduction.  :)

-Nelson

On Tue, Dec 13, 2011 at 2:26 AM, Olemis Lang ole...@gmail.com wrote:

 Reply below

 On Sun, Dec 11, 2011 at 9:57 PM, Nelson Brown brown...@gmail.com wrote:
 
  On Sun, Dec 11, 2011 at 9:55 PM, Olemis Lang ole...@gmail.com wrote:
 
  On Sat, Dec 10, 2011 at 12:40 PM, Nelson Brown brown...@gmail.com
 wrote:
   Hi Olemis,
  
 
  Hi!
  :)
 
 So I don't have much of any experience with writing authentication
 schemes
   using OpenID.  I do, however, find it interesting so I poked around a
 little
   bit and I'll share with you some of my thoughts.
  
 
  thnx !
 
  [...]
 So I believe from what I read that you need to create a mapping of
 OpenID
   authentications (many, Google, Yahoo, some custom service, etc) to
 exactly
   one internal Trac user.  See the reference here. [1]
  
 
  This is not exactly the way I was thinking of mainly because I knew
  this was not supported by the plugin and it's a bit time-consuming to
  implement all this ... :-/
  However thnx for sharing that article
 
 If you look at the Wiki for OpenID authentication plugin [2], he
 mentions
   the following:
  
   # You can use this option to map your OpenIDs to internal username.
   #check_list = http://your.site.com/openidallow
   #check_list_key = check_list
   #check_list_username=
  
 
  Ok , but that's not exactly what I was looking for ...
 
  [...]
  
 The part that does the name mangling in case the username is the
 same as
   an authenticated name appears to be on line 590 in [4].
  
   {{{
   def authnames(base):
   yield base
   for attempt in itertools.count(2):
   yield %s (%d) % (base, attempt)
  
   for authname in authnames(authname):
   ds = DetachedSession(self.env, authname)
   if ds.last_visit == 0 and len(ds) == 0:
   # At least in 0.12.2, this mean no session
 exists.
   break
   ds_identity =
   ds.get(self.openid_session_identity_url_key)
   if ds_identity == info.identity_url:
   # No collision
   break
   }}}
  
 
  ... this is it !
  Briefly what happens is that the plugin only offers this simple method
  to bind OpenId logins to local usernames . It's lacking some binding
  mechanisms like those mentioned in aforementioned reference [1]_ . I
  plan to introduce an interface to implement custom binding algorithms,
  I'll refactor plugin code a little, then prepare a patch and submit it
  to package owner . I'll let you know once I have something ready
  ;)
 
 Hope any of this helped, or I'm sorry if it led you off the trail.
  
 
  Sure . Thnx very much !
 
   [1] http://www.plaxo.com/api/openid_recipe
   [2] https://bitbucket.org/Dalius/authopenid-plugin/wiki/Home
   [3] http://pypi.python.org/pypi/simplejson/
   [4]
 https://bitbucket.org/Dalius/authopenid-plugin/src/ebcf176ff6e3/authopenid/authopenid.py
  
 
 
 
 
  Yeah so in that case you'll just need to catch the name of the
 OpenID server from the request to accomplish what you want.  I guess that
 does make a lot more sense than what he does.  The only thing I would say
 is that without that internal user mapping the e-mail notifications and
 such may not work properly... I'm not sure how that works.
 
  So if you put your name in the CC list, how would that work with
 OpenID?  I guess you can copy and paste your login name.
 
 

 AFAICS , if SREG / AIX is enabled/required i.e. email available in
 OpenId response , OpenId email account is bound to user since this
 information gets updated in user's preferences (CMIIW)

 --

 Regards,

 Olemis

 Facebook = http://www.facebook.com/olemis
 Twitter = http://www.twitter.com/olemislc (@olemislc)
 Blog ES = http://simelo-es.blogspot.com
 Blog EN = http://simelo-en.blogspot.com
 Quora = http://www.quora.com/olemis
 Youtube = http://youtube.com/user/greatsoftw

 Tweet: @telegonz está hoy q echa humo xD RT @telegonz Créalo o no: -
 con cuál aerolínea viajas?? - con American Idol jajajaja #fb
 Follow @olemislc Reply Retweet   16:43 Dec-12
   Get this email app!
 Get a signature like this. CLICK HERE.

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