[Trac] Re: Confused about "PathOption" in a plugin/macro

2009-10-30 Thread Noah Kantrowitz
On Oct 30, 2009, at 2:01 PM, David Chase wrote: > > > On 2009-10-30, at 4:42 PM, Noah Kantrowitz wrote: > >> The *Option classes are accessors, you use them in the context of >> the class >> definition like this: >> >> class Blah(Component): >> latex_path = PathOption('fss', etc etc) >> >> d

[Trac] Re: Confused about "PathOption" in a plugin/macro

2009-10-30 Thread David Chase
On 2009-10-30, at 4:42 PM, Noah Kantrowitz wrote: > The *Option classes are accessors, you use them in the context of > the class > definition like this: > > class Blah(Component): >latex_path = PathOption('fss', etc etc) > >def my_plugin_function(self, req): >print self.latex_

[Trac] Re: Confused about "PathOption" in a plugin/macro

2009-10-30 Thread Noah Kantrowitz
The *Option classes are accessors, you use them in the context of the class definition like this: class Blah(Component): latex_path = PathOption('fss', etc etc) def my_plugin_function(self, req): print self.latex_path --Noah > -Original Message- > From: trac-users@googl

[Trac] Re: Confused about "PathOption" in a plugin/macro

2009-10-30 Thread David Chase
And the apparent answer is, I am doing it all wrong. config.latexpath=self.config.getpath('fss', 'latexroot') # # Paths to executables config.latex=config.latexpath+'/' + self.config.get ('fss','latex','latex') This was figured out by poking through the trac hacks until I fo

[Trac] Confused about "PathOption" in a plugin/macro

2009-10-30 Thread David Chase
I am working on a macro, attempting to make it be more configured from trac.ini than it originally was. My Python-wrangling abilities are not extensive, so this is probably an obvious mistake. However, I googled and searched my Trac mail, and an answer did not appear, and the examples that

[Trac] Re: Strange Error

2009-10-30 Thread Scott Mead
On Fri, Oct 30, 2009 at 2:52 PM, Shane Caraveo wrote: > > I've seen it a couple times, it's always been permission issues with the > egg cache. > > Yeah, I bounced apache and it seems to have cleared up. Thanks --Scott --~--~-~--~~~---~--~~ You received this mes

[Trac] Re: Strange Error

2009-10-30 Thread Shane Caraveo
On 30/10/09 8:37 AM, Scott Mead wrote: > I had the googleanalytics plugin installed, but I wanted to remove it. > Now, every once in a while, I'm getting: > > Internal Error > > TracError: IOError: zipimport: can not open file > /usr/lib/python2.3/site-packages/TracGoogleAnalytics-0.2.2-py2.3.egg

[Trac] Custom Query Link

2009-10-30 Thread Shelly Cronk
Hello, The Custom Query Link is no longer available on our Trac Projects. Any ideas on what would make this happen? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group,

[Trac] Strange Error

2009-10-30 Thread Scott Mead
I had the googleanalytics plugin installed, but I wanted to remove it. Now, every once in a while, I'm getting: Internal Error TracError: IOError: zipimport: can not open file /usr/lib/python2.3/site-packages/TracGoogleAnalytics-0.2.2-py2.3.egg This happens on random pages. To remove the

[Trac] Plugin to aid page edit auditing

2009-10-30 Thread Russ Brown
Hi, We are wanting some way to help audit wiki page edits, but I've not been able to find anything on trac-hacks. What we're roughly after is something that will list all edits that have been made and have not been "checked off". Users with some given permission are able to review the changes

[Trac] Re: mod_wsgi + multiple projects - works well, but unclear about a few things

2009-10-30 Thread Bartosz Broda
Hello Graham, I was reporting the problem with "instance.__dict__ not accessible in restricted mode" in http://trac.edgewall.org/ticket/3371#comment:73. I cannot investigate the issue in more details at the moment, as I have a few deadlines approaching. I will try to mirror the configuration in