On Oct 31, 2011, at 12:04 PM, Patty Cottrill wrote: > Thanks for the response. > Unfortunately, I'm not anywhere near a sw developer. > I read the docs on creating plugins, and it requires knowledge in > writing code, which is definitey not me. > Can't I just unzip the .egg file in the current location? > > > -Patty > > -----Original Message----- > From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com] > On Behalf Of Remy Blank > Sent: Friday, October 28, 2011 1:58 AM > To: trac-users@googlegroups.com > Subject: Re: [Trac] Help with Trac egg > > Patty Cottrill wrote: >> I need to make this customization to the commit_updater.py, but I >> don't have access to it because its in the Trac .egg file. >> The .egg file is located under /usr/local/lib/python2.6/dist-packages. >> Because it's an .egg file and not a directory, I can't get to the >> commit_updater.py to edit. >> I ran unzip -t Trac-0.12.2-py2.6.egg and I can see the file in there. >> Any advise on how to address this issue. > > You can create a single-file plugin, create a component that inherits > from the commit updater component, and override any methods you like. > Then, place your plugin into the "plugins" folder of your Trac > environment. > > Note that you have to keep the original commit updater disabled in this > scenario, as your subclass will take its place. > > -- Remy > > -- > 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. >
Sometimes what I like to do when I need to edit an egg file is to install the egg in a development fashion. This is what I do for our Trac installment when I need to make a change: svn co http://svn.edgewall.org/repos/trac/branches/0.12-stable 0.12dev cd 0.12dev sudo python setup.py develop This will create a symbolic link to your svn repo instead of creating an egg (allowing you to make changes on the fly). This _may_ not be the best finalized method, but until you figure out exactly what you need to edit permanently, this is the _best_ method. Once your satisfied with your changes, do a standard sudo python setup.py to create the standard egg. Good Luck! 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.