Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

FullBlogPlugin with Trac 12 - Errors

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


cathy.talman at gmail

Oct 13, 2009, 7:48 AM

Post #1 of 5 (503 views)
Permalink
FullBlogPlugin with Trac 12 - Errors

I realize Trac 12 is still in development but I wasn't able to find
any existing reports of problems using FullBlogPlugin with Trac 12.
I suspect I have a strange combination of things installed that might
be causing this problem.

When I tried to install the latest release of FullBlogPlugin (r6685) I
wasn't able to use Trac at all because of Internal Server Errors:

Here are errors from server log:
---------------------------------------------------------------------------------
[Tue Oct 13 09:43:22 2009] [error] [client 67.184.16.215] File "/usr/
local/lib/python2.5/site-packages/mod_python/importer.py", line 1537,
in HandlerDispatch\n default=default_handler, arg=req,
silent=hlist.silent)
[Tue Oct 13 09:43:22 2009] [error] [client 67.184.16.215] File "/usr/
local/lib/python2.5/site-packages/mod_python/importer.py", line 1229,
in _process_target\n result = _execute_target(config, req, object,
arg)
[Tue Oct 13 09:43:22 2009] [error] [client 67.184.16.215] File "/usr/
local/lib/python2.5/site-packages/mod_python/importer.py", line 1128,
in _execute_target\n result = object(arg)
[Tue Oct 13 09:43:22 2009] [error] [client 67.184.16.215] File "/usr/
local/lib/python2.5/site-packages/Trac-0.12dev_r8641-py2.5.egg/trac/
web/modpython_frontend.py", line 149, in handler\n gateway.run
(dispatch_request)
[Tue Oct 13 09:43:22 2009] [error] [client 67.184.16.215] File "/usr/
local/lib/python2.5/site-packages/Trac-0.12dev_r8641-py2.5.egg/trac/
web/wsgi.py", line 88, in run\n response = application
(self.environ, self._start_response)
[Tue Oct 13 09:43:22 2009] [error] [client 67.184.16.215] File "/usr/
local/lib/python2.5/site-packages/Trac-0.12dev_r8641-py2.5.egg/trac/
web/main.py", line 434, in dispatch_request\n
translation.make_activable(lambda: req.locale, env.path)
[Tue Oct 13 09:43:22 2009] [error] [client 67.184.16.215]
AttributeError: 'NoneType' object has no attribute 'path'
---------------------------------------------------------------------------------


I backed out that install and put back the previous release but when
selecting the title link from the sidebar - I get this error:

---------------------------------------------------------------------------------
File "/usr/local/lib/python2.5/site-packages/Trac-0.12dev_r8641-
py2.5.egg/trac/web/main.py", line 467, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/local/lib/python2.5/site-packages/Trac-0.12dev_r8641-
py2.5.egg/trac/web/main.py", line 212, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/local/lib/python2.5/site-packages/TracFullBlogPlugin-0.1-
py2.5.egg/tracfullblog/web_ui.py", line 202, in process_request
prevnext_nav(req, 'Post')
---------------------------------------------------------------------------------



I tried upgrading to latest release of Trac 12 but I am receiving lots
of TypeError problems.

If it is obvious to anyone where the problem might be or how I should
investigate, I would appreciate the help.

Thank you,

Cathy

--~--~---------~--~----~------------~-------~--~----~
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


remy.blank at pobox

Oct 13, 2009, 12:08 PM

Post #2 of 5 (476 views)
Permalink
Re: FullBlogPlugin with Trac 12 - Errors [In reply to]

CM wrote:
> AttributeError: 'NoneType' object has no attribute 'path'

This has been fixed a few days ago, in [8658].

There are some parts missing from your second traceback, so you may want
to post the complete traceback.

-- Remy
Attachments: signature.asc (0.19 KB)


cboos at neuf

Oct 13, 2009, 1:12 PM

Post #3 of 5 (479 views)
Permalink
Re: FullBlogPlugin with Trac 12 - Errors [In reply to]

CM wrote:
> ...
> File "/usr/local/lib/python2.5/site-packages/TracFullBlogPlugin-0.1-
> py2.5.egg/tracfullblog/web_ui.py", line 202, in process_request
> prevnext_nav(req, 'Post')
> ---------------------------------------------------------------------------------
>

And this one is now documented, see:
http://trac.edgewall.org/wiki/TracDev/ApiChanges/0.12#prevnext_nav

-- Christian

--~--~---------~--~----~------------~-------~--~----~
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


oddsimons at gmail

Oct 13, 2009, 1:25 PM

Post #4 of 5 (480 views)
Permalink
Re: FullBlogPlugin with Trac 12 - Errors [In reply to]

On Oct 13, 4:48 pm, CM <cathy.tal...@gmail.com> wrote:
> File "/usr/local/lib/python2.5/site-packages/TracFullBlogPlugin-0.1-
> py2.5.egg/tracfullblog/web_ui.py", line 202, in process_request
>   prevnext_nav(req, 'Post')

The plugin has not been tested against 0.12 by me for quite some
time... This error however, I have somewhat been waiting for as cboos
recently changed the API for previous/next navigation to make it
easier to translate for languages that uses different word forms (or
something to that effect, iirc). It broke Bitten, and I knew it would
break my FullBlog plugin - and also expect breakage in other plugins
too that use the API.

So, either I can fix this in the plugins - and call various forms
depending on Trac version. Or, Trac can be fixed to allow a graceful
migration of this API change supporting both new and old-style
callers. I'm quite tempted to fix this in Trac and have held out on
comitting the fix for Bitten (http://bitten.edgewall.org/ticket/450)
until I had time to look into the Trac side. Which means I need to get
my 0.12 development setup running again... Which may still take some
time...


:::simon

https://www.coderesort.com
http://www.ohloh.net/accounts/osimons


--~--~---------~--~----~------------~-------~--~----~
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


cboos at neuf

Oct 13, 2009, 2:29 PM

Post #5 of 5 (476 views)
Permalink
Re: FullBlogPlugin with Trac 12 - Errors [In reply to]

osimons wrote:
> So, either I can fix this in the plugins - and call various forms
> depending on Trac version.

Simpler to maintain and cleaner solution: just make a 0.12 branch for
your plugin. That's also simpler for the users.

> Or, Trac can be fixed to allow a graceful
> migration of this API change supporting both new and old-style
> callers.

Well, in this case, I think it's better to break the compatibility, as
there's no way to get the complete information from the old call.
Being backward compatible in this case means support broken link labels
(e.g. when the selected language is french, we would have: "Précédent
Post", "Suivant Post").

> I'm quite tempted to fix this in Trac and have held out on
> comitting the fix for Bitten (http://bitten.edgewall.org/ticket/450)
> until I had time to look into the Trac side. Which means I need to get
> my 0.12 development setup running again... Which may still take some
> time...
>
>
> :::simon
>
> https://www.coderesort.com
> http://www.ohloh.net/accounts/osimons
>


--~--~---------~--~----~------------~-------~--~----~
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.