Re: Is there a way to get the tracker home dir programmatically within a detector?
Dan Tenenbaum <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <[email protected]> |
PS. What is the 'new' roundup? I'm using 1.5. Dan ----- Original Message ----- > From: "Tom Ekberg" <[email protected]> > To: "Dan Tenenbaum" <[email protected]> > Cc: "roundup-users" <[email protected]> > Sent: Friday, May 1, 2015 1:22:57 PM > Subject: Re: [Roundup-users] Is there a way to get the tracker home dir programmatically within a detector? > > Dan, > > I don't know if this would work, but you could look at the os.environ > dictionary in your detector. That is, write its value to a log file. > You might find the hook you are looking for there. > > Getting values from the config file is easy. I found this line in a > file of one of our trackers: > > (self.issue_instance.db.config.MESSAGES_TO_AUTHOR == > 'yes' or > > You have a direct hook to 'db' from the reactor. Look at > roundup/configuration.py for details on the config names. > > Note that we are still using the old roundup, so you mileage may vary > on the new roundup. > > Tom Ekberg > Senior Computer Specialist, Lab Medicine > University of Washington Medical Center > 1959 NE Pacific St, MS 357110 > Seattle WA 98195 > work: (206) 598-8544 > email: [email protected] > > On Fri, 1 May 2015, Dan Tenenbaum wrote: > > > Date: Fri, 1 May 2015 10:27:17 -0700 (PDT) > > From: Dan Tenenbaum <[email protected]> > > To: roundup-users <[email protected]> > > Subject: [Roundup-users] Is there a way to get the tracker home dir > > programmatically within a detector? > > > > Hi, > > > > The subject line pretty much says it all. From within a detector I > > would like to determine what the tracker home is. Also wondering > > if I can access other values from the config file within a > > detector. I looked in the docs for this but didn't find it (might > > have missed it). > > > > Thanks, > > Dan > > > > ------------------------------------------------------------------------------ > > One dashboard for servers and applications across > > Physical-Virtual-Cloud > > Widest out-of-the-box monitoring support with 50+ applications > > Performance metrics, stats and reports that give you Actionable > > Insights > > Deep dive visibility with transaction tracing using APM Insight. > > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > > _______________________________________________ > > Roundup-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/roundup-users > > > > > > ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y