On Mar 11, 5:03 am, Christian Boos <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I have install this trac plugin error, but when I use it, I get this
> > traceback, can you please tell me how can I trouble shoot it?
>
> > Thank you.
>
> > Python Traceback
>
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387,
> > in dispatch_request
> >     dispatcher.dispatch(req)
> >   File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237,
> > in dispatch
> >     resp = chosen_handler.process_request(req)
> >   File "/srv/svn/tracenv/snapshot/plugins/TracCC-0.1.2-py2.4.egg/
> > traccc/traccc.py", line 229, in process_request
>
> I haven't looked at the TracCC code, but most probably there's a
> "Markup(something)" in there, with "something" being a string with
> non-ascii content. This code should be modified to read
> "Markup(to_unicode(something))", with "to_unicode" being our generic,
> robust, anything to unicode converter ;-)
> (add "from trac.util.text import to_unicode" at the top of the traccc.py
> file).
>

Thanks. I take a look at the file traccc.py: Here is the 2 lines with
Markup(something)"
1.   def get_navigation_items(self, req):
        yield 'mainnav', 'cruisecontrol', Markup('<a
href="%s">CruiseControl</a>' % self.env.href.cruisecontrol())

2.   req.hdf['cc.html_result'] =
Markup(style.saveResultToString(result))

Both seem to be ascii content, so which lines need to be modified?

And CruiseControl plugin is 1 egg file. How can I modify the source
traccc.py (which is inside the egg file)?


> -- Christian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to