Thanks - looks like I'm on the right track.
On Mar 2, 2:38 pm, Olemis Lang wrote:
> On Tue, Mar 2, 2010 at 2:32 PM, Stodge wrote:
> > Is this acceptable?
>
> > return format_to_oneliner(self.env, context, data["description"])
>
> If talking about
Is this acceptable?
return format_to_oneliner(self.env, context, data["description"])
On Mar 2, 8:34 am, Stodge wrote:
> I'm writing a simple plugin that implements ITimelineEventProvider, so
> I need to format timeline entries. My descriptions contain ticket
> ref
I'm writing a simple plugin that implements ITimelineEventProvider, so
I need to format timeline entries. My descriptions contain ticket
references but when they're displayed the references aren't clickable:
def render_timeline_event(self, context, field, event):
data = eve
Oh never mind - I forgot the commit!!
On Feb 26, 2:39 pm, Stodge wrote:
> Same problem from the console - no new record:
> python
> Python 2.6.2 (r262:71600, Aug 21 2009, 12:23:57)
> [GCC 4.4.1 20090818 (Red Hat 4.4.1-6)] on linux2
> Type "help", "copyright&quo
uot;
>>> db = env.get_db_cnx()
>>> cursor = db.cursor()
>>> cursor.execute(query)
>>> query
"INSERT INTO codereviews (url, time, name, message, rid) values
('url', '752125', 'mike', 'Log message', '31')"
>
,
"name" text,
message text,
rid integer,
CONSTRAINT codereviews_pkey PRIMARY KEY (id)
)
On Feb 26, 2:31 pm, Stodge wrote:
> I'm trying to load a Trac environment from a subversion plugin
> (python) and insert a record into its database. The query completes
> succ
I'm trying to load a Trac environment from a subversion plugin
(python) and insert a record into its database. The query completes
successfully but no new records are created. There are no errors in
any log, including Apache, PostgreSQL or Trac. Any ideas why query
isn't creating a new record? Than
Oh wait - never mind. The answer was staring me in the face. post-
commit was passing the SVN path instead of the Trac env. Doh.
On Feb 11, 2:53 pm, Stodge wrote:
> Sorry - using web dav over Apache, svn 1.6.6, dav_svn 1.6.6-1, Trac
> 0.11.6.
>
> Thanks
>
> On Feb 11, 2:51
"IOError: [Errno 2] No such file or directory: '/home/ak/repository/
VERSION' "
How did you fix this error?
On Feb 9, 11:16 am, AK wrote:
> Hi ,
> I have completed the installation of trac on our ubuntu box..following
> this document
>
> http://wiki.slicehost.com/doku.php?id=install_trac_on_ubun
Sorry - using web dav over Apache, svn 1.6.6, dav_svn 1.6.6-1, Trac
0.11.6.
Thanks
On Feb 11, 2:51 pm, Stodge wrote:
> I'm running Trac (latest version) on Fedora 12. I created a new
> project but I reused an existing SVN repository. I'm using the trac-
> post-commit hook but
I'm running Trac (latest version) on Fedora 12. I created a new
project but I reused an existing SVN repository. I'm using the trac-
post-commit hook but it's giving me the error:
[Errno 2] No such file or directory: '/srv/svn/support/VERSION'
when it tries to open the environment:
sel
All I want to do is add a menu link (beneath the main nav bar) to the
Changeset page. I thought I could implement post_process_request in
IRequestFilter, but template is None for the Changeset page. Odd.
On Feb 5, 11:33 am, Stodge wrote:
> Thanks.
>
> So if something else matches the
Thanks.
So if something else matches the URL first, my plugin doesn't get a
change to perform the match?
On Feb 5, 11:27 am, Olemis Lang wrote:
> On Fri, Feb 5, 2010 at 11:04 AM, Stodge wrote:
> > This is a silly question but I've written a test plugin to help me
> >
I forgot - I have the --auto-reload set for tracd. But is it possible
the pugin source is being cached somehow and not reloaded after I make
a change?
On Feb 5, 11:04 am, Stodge wrote:
> This is a silly question but I've written a test plugin to help me
> learn how to develop for Tr
This is a silly question but I've written a test plugin to help me
learn how to develop for Trac.
The plugin is supposed to match the URL when a changeset is being
displayed, so the match_request function is:
def match_request(self, req):
self.log.debug(' ChangesetPlug
I'm writing a Trac plugin that interacts with an existing Django
environment. I'm trying to use the following code, which works nicely
when used in a Mercurial hook:
sys.path.append("/var/www/sites/indigo/")
os.environ['DJANGO_SETTINGS_MODULE'] = 'indigo.settings'
from djan
We're using Trac 0.11.1 and I've added a custom field to the ticket
called Requirement. I want to be able to filter on requirements but
when I select "Requirement" in the Add Filter combo box, nothing
happens. It doesn't create a new filter.
Does anyone know if this feature works or maybe in what
Why don't you just archive the subversion and trac data and move it to
a test/development server and try the update there. Use a sandbox to
see if it works or not and if it does, then backup and upgrade your
main server.
On Apr 2, 2:42 pm, Paurush wrote:
> Hello All,
>
> I am in the process of u
rry I don't know anything about Windows authentication with
Apache/Trac. Maybe someone else could answer this?
On Feb 19, 11:27 pm, ray wrote:
> Stodge,
>
> Thank you for responding to my concerns in the google trac goup. I
> read the page about the Apache configure your messag
Things like this should be stored on the Trac Wiki I think. Useful
stuff!
On Feb 12, 8:45 am, Gem wrote:
> On Feb 12, 12:54 pm, Gem wrote:
>
> > Has anyone got a report kicking about that will report the total
> > tickets, tickets closed and tickets raised for a version by any
> > chance?
>
> O
Same as Jani, we use Trac's post-commit hook, which forces you to add
a valid ticket number in the commit comment. Works like a charm.
On Feb 12, 8:09 am, Jani Tiainen wrote:
> bessarabov kirjoitti:
>
>
>
> > We do it manually.
>
> > When committing to svn, we are doing something like: 'svn co -
Have you added your name & email in the settings?
On Feb 11, 11:35 am, Rob Wilkerson wrote:
> On Wed, Feb 11, 2009 at 10:16 AM, Stodge wrote:
> > There's a voting mechanism on the ticket page, just beneath the "View
> > Tickets" menu item.
>
> It must
There's a voting mechanism on the ticket page, just beneath the "View
Tickets" menu item.
On Feb 11, 9:07 am, Rob Wilkerson wrote:
> On Wed, Feb 11, 2009 at 9:03 AM, Christian Boos wrote:
> > Just add your vote to #2035
>
> Genius! Thanks. And it looks like the PeerReviewPlugin might fill the
>
I updated my page on Trac hacks with the Apache configuration files
for Trac & Subversion. Hope this helps:
http://trac-hacks.org/wiki/AdminToolkitScript
On Feb 9, 9:44 pm, Stodge wrote:
> We use Apache to access Trac and Subversion. I also wrote some scripts
> that make it easier
We use Apache to access Trac and Subversion. I also wrote some scripts
that make it easier to create and manage multiple projects (one
project per Trac environment). I'm in the slow process of open
sourcing the scripts onto http://track-hacks.org. I will also include
two Apache configuration files
Thanks, very useful.
On Feb 6, 1:23 pm, "Peter von Kaenel"
wrote:
> >Or does anyone have any comments on the book "Managing Software
> >Development
> >with Trac and Subversion"? It might be useful to me too.
>
> After seeing the email that listed this book I looked into it, and the
> only review
Or does anyone have any comments on the book "Managing Software
Development
with Trac and Subversion"? It might be useful to me too.
Thanks
On Feb 6, 8:38 am, Stodge wrote:
> Are there any good Trac books for development of trac plugins/scripts/
> macros/components etc
Are there any good Trac books for development of trac plugins/scripts/
macros/components etc? I know there's "Managing Software Development
with Trac and Subversion" but this is geared towards configuring and
using Trac.
Cheers
--~--~-~--~~~---~--~~
You received th
A macro might work; that way it would be usable elsewhere, e.g.:
[[SCM(ticket:9)]]
On Feb 5, 11:09 am, Stodge wrote:
> Is there an easy way to get all changesets given a ticket in Python? I
> want to change the post-commit hook so it doesn't add a comment when a
> changeset i
ctable "Display the list of changesets
> relative to this ticket." Selecting this gives you a changeset
> listing in numeric order with selectable changeset ( [number] and name
> of submitter and date and time.
>
> The screen ends with "Back to ticket #number"
>
&
d the base.
Do you have a link to a page explaining how add a mapping?
Thanks
On Feb 5, 11:51 am, Erik Bray wrote:
> On Thu, Feb 5, 2009 at 11:23 AM, Stodge wrote:
>
> > Let me clarify this. Currently when a commit occurs, my custom post-
> > commit script adds the changeset numbe
ustom field, which I don't want. If I could get all
changeset for a ticket, then I wouldn't need to update the custom
field after a commit.
Thanks
On Feb 5, 11:09 am, Stodge wrote:
> Is there an easy way to get all changesets given a ticket in Python? I
> want to change the post-comm
Is there an easy way to get all changesets given a ticket in Python? I
want to change the post-commit hook so it doesn't add a comment when a
changeset is created that references a ticket. Subsequently I want
access to all changes for the ticket so I can generate some a custom
history for the tick
Got it:
out = StringIO()
Formatter(self.env, context).format(content, out)
return Markup(out.getvalue())
On Feb 4, 11:18 am, Stodge wrote:
> I just tried that and it works. Except if I return formatted text that
> includes say wiki formatting, it's display
I just tried that and it works. Except if I return formatted text that
includes say wiki formatting, it's displayed as plain text, so my
concept won't work I think.
On Feb 4, 11:06 am, Flatfender wrote:
> On Wed, Feb 4, 2009 at 10:42 AM, Stodge wrote:
>
> > Oh yes, ucm.p
Oh yes, ucm.pyc isn't created so my macro isn't being executed.
On Feb 4, 10:41 am, Stodge wrote:
> I wrote a tiny macro to test this out. I created /usr/lib/python2.4/
> site-packages/Trac-0.11.2.1-py2.4.egg/trac/mimeview/ucm.py, which
> contains:
>
> def execute(hdf
I wrote a tiny macro to test this out. I created /usr/lib/python2.4/
site-packages/Trac-0.11.2.1-py2.4.egg/trac/mimeview/ucm.py, which
contains:
def execute(hdf, txt, env):
return "#1"
I added ucm to mimeview/api.py.
My custom field contains:
{{{
#!ucm
[changeset:25 Changeset 25]
* [brows
One option might be http://trac.edgewall.org/wiki/WikiProcessors.
On Feb 4, 8:28 am, Stodge wrote:
> I have a custom ticket field that I populate/update in the Subversion
> post-commit hook script. I basically dump in pure text (file
> revisions). I want to perform some custom form
I have a custom ticket field that I populate/update in the Subversion
post-commit hook script. I basically dump in pure text (file
revisions). I want to perform some custom formatting of this field
when it is rendered. However, I would probably need to run some Python
code to convert the field con
Looks like this might work:
[changeset:?new...@readme.txt&old...@readme.txt 23]
This produces a clickable link with the text "23".
On Feb 3, 12:39 pm, Stodge wrote:
> I've added a custom ticket field called "Changes" to my Trac
> environment and I hacked
I've added a custom ticket field called "Changes" to my Trac
environment and I hacked Trac to support Wiki formatting in custom
fields. I had to copy/paste code from a patch, as the patch wouldn't
apply for me. I've also modified the post-commit hook to write change
set details to this field, for
If you mean this - http://trac.edgewall.org/changeset/7563 - it was
fixed a while ago, but not "released".
On Feb 2, 1:09 pm, Remy Blank wrote:
> Stodge wrote:
> > Any ideas when this will be released?
>
> According to the roadmap, about 6 weeks ago :-/
>
> On Behalf Of Remy Blank
> > Sent: Friday, January 30, 2009 10:03 AM
> > To: trac-users@googlegroups.com
> > Subject: [Trac] Re: Changes to my plugin aren't detected by Trac/Apache
> > unless Apache is restarted?
>
> > Stodge wrote:
> > > I'
Any ideas when this will be released?
On Dec 12 2008, 6:16 pm, Remy Blank wrote:
> > on a related note, what is needed to put wiki mark-up in a custom
> > field, or just a traclink for that matter?
>
> You need to install from trunk, which supports custom fields with
> wikiformatting since [7563
Trac is written in Python so you will need Python bindings for
whichever database you want to use.
On Feb 1, 5:46 pm, "Guy..L" wrote:
> Trac Users:
>
> All the web posts say that SQLite is easy to install and use. I
> couldn't get it to work.
> So I tried MySQL. I got the database up and runni
The peer review plugin is ok, except it has one major flaw that makes
it unusable - (from memory!) you have to manually enter the lines
numbers of the code you want to review. This is impractical for large
reviews.
On Jan 30, 2:22 pm, yoh...@gmail.com wrote:
> On Jan 30, 3:43 am, Sergey Marchenko
Ok thanks.
On Jan 30, 1:03 pm, Remy Blank wrote:
> Stodge wrote:
> > I'm learning how to write Trac plugins and I have a very simple one
> > for when a ticket is changed. However, changes I make to this plugin
> > only run when I do /etc/rc.d/init.d/httpd graceful. Is
I'm learning how to write Trac plugins and I have a very simple one
for when a ticket is changed. However, changes I make to this plugin
only run when I do /etc/rc.d/init.d/httpd graceful. Is this really
necessary or am I missing something simple as to why changes to my
plugin aren't detected by T
Try it on a test server. :)
On Jan 30, 6:25 am, alberto.giord...@gefran.com wrote:
> Hi all,
> I would like to know if SimpleTicketPlugin
> (http://trac-hacks.org/wiki/SimpleTicketPlugin) is compatible withTrac
> 0.11.2.1, as I can't see it listed with the 0.11 tag in trac-hacks but
> there is a
I'm using an .htpasswd file for authentication for both Trac and
Subversion. Currently I use first names for usernames, which was a bad
idea. I want to change this to either use an email address as a
username or a surname instead. What needs to be changed for Trac &
Subversion to maintain data int
I want to use csv2trac from the following location. I'm using csv2trac.
3.py, which supports Postgresql.
http://trac.edgewall.org/wiki/TracSynchronize
http://tomster.org/geek/trac/csv2trac.3.py/view
I can successfully run the script and it enters all of the tasks. All
the tasks appear to be link
I'm having problems with PYTHON_EGG_CACHE on Centos 5.2 with Trac 0.11
and 0.11.1.
No matter what I set PYTHON_EGG_CACHE to, and no matter where I set
it, it's always ignored and the cache is always in /root/.
I noticed that the TracPython page states that mod_python 3.3 is
required for the cach
This is a fresh install with no plugins.
Thanks
On Aug 20, 3:42 pm, Jonas Borgström <[EMAIL PROTECTED]> wrote:
> Stodge wrote:
>
> > I just installed Trac 0.11.1 on Centos 5.2. I configured Apache
> > (mod_python) and restarted and all looks ok. I can
> > browseh
I just installed Trac 0.11.1 on Centos 5.2. I configured Apache
(mod_python) and restarted and all looks ok. I can browse http://localhost/trac
and I see:
Available Projects
* .egg-cache: Error
('module' object has no attribute 'ChangeSet')
I get en exception when I run trac-admin wit
54 matches
Mail list logo