webfront with Blosxom 1.5

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

webfront with Blosxom 1.5

Bill Purcell
I'm not having much luck with webfont and Pyblosxom 1.5.

[05:37:22] ~$ pyblosxom-cmd --version
pyblosxom-cmd version 1.5rc2 20100803

When I browse to http://whpiv.net/blog/blog.cgi?edit=entry I get the
following in my error.log

[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] Traceback (most recent call last):
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/usr/lib/python2.6/wsgiref/handlers.py", line 93, in run
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     self.result = application(self.environ, self.start_response)
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 458, in __call__
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     return [self.run_pyblosxom(env, start_response)]
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 450, in run_pyblosxom
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     p.run()
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 173, in run
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     donefunc=lambda x:x)
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/tools.py", line 776, in run_callback
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     output = func(input)
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/share/www/whpiv.net/blog/plugins/webfront/__init__.py", line 50, in cb_handle
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     webfront.handle()
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/share/www/whpiv.net/blog/plugins/webfront/webfront.py", line 275, in handle
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     self.render()
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/share/www/whpiv.net/blog/plugins/webfront/webfront.py", line 336, in render
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     self.template.render()
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/share/www/whpiv.net/blog/plugins/webfront/template.py", line 170, in render
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     parsed = tools.parse(self.request, encoding,  self, self.core)
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] TypeError: parse() takes exactly 3 arguments (4 given)

I've tried playing around fixing it but it wasn't as simple as only
passing in three of the arguments.  Anyway, has anyone had webfront
working with Pyblosxom 1.5?

Thank,
Bill

 

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
pyblosxom-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
Reply | Threaded
Open this post in threaded view
|

Re: webfront with Blosxom 1.5

Michael Goddard
Hi Bill, 

I took a quick look at the problem.  I haven't tried running webfront on Pyblosxom 1.5 myself yet but I'll talk a deeper look to make sure there are no other problems.

I haven't tested this but for Pyblosxom 1.5 line 170 in webfront/template.py should read 

parsed = tools.parse(self.request, self, self.core)

instead of what is in your traceback

parsed = tools.parse(self.request, encoding,  self, self.core)

Basically the encoding variable needs to be dropped.

Regards,
Michael "Z" Goddard

On Sun, Dec 19, 2010 at 7:03 PM, Bill Purcell <[hidden email]> wrote:
I'm not having much luck with webfont and Pyblosxom 1.5.

[05:37:22] ~$ pyblosxom-cmd --version
pyblosxom-cmd version 1.5rc2 20100803

When I browse to http://whpiv.net/blog/blog.cgi?edit=entry I get the
following in my error.log

[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] Traceback (most recent call last):
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/usr/lib/python2.6/wsgiref/handlers.py", line 93, in run
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     self.result = application(self.environ, self.start_response)
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 458, in __call__
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     return [self.run_pyblosxom(env, start_response)]
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 450, in run_pyblosxom
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     p.run()
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 173, in run
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     donefunc=lambda x:x)
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/tools.py", line 776, in run_callback
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     output = func(input)
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/share/www/whpiv.net/blog/plugins/webfront/__init__.py", line 50, in cb_handle
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     webfront.handle()
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/share/www/whpiv.net/blog/plugins/webfront/webfront.py", line 275, in handle
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     self.render()
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/share/www/whpiv.net/blog/plugins/webfront/webfront.py", line 336, in render
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     self.template.render()
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]   File "/share/www/whpiv.net/blog/plugins/webfront/template.py", line 170, in render
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1]     parsed = tools.parse(self.request, encoding,  self, self.core)
[Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] TypeError: parse() takes exactly 3 arguments (4 given)

I've tried playing around fixing it but it wasn't as simple as only
passing in three of the arguments.  Anyway, has anyone had webfront
working with Pyblosxom 1.5?

Thank,
Bill



------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
pyblosxom-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
pyblosxom-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
Reply | Threaded
Open this post in threaded view
|

Re: webfront with Blosxom 1.5

Bill Purcell
On 201210-00:19, Michael Goddard wrote:
> parsed = tools.parse(self.request, self, self.core)

This was the one thing I tried which didn't completely fix my
problem which you might have already figured out by now.

[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] Traceback (most recent call last):
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/usr/lib/python2.6/wsgiref/handlers.py", line 93, in run
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     self.result = application(self.environ, self.start_response)
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 458, in __call__
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     return [self.run_pyblosxom(env, start_response)]
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 450, in run_pyblosxom
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     p.run()
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyblosxom.py", line 173, in run
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     donefunc=lambda x:x)
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/tools.py", line 776, in run_callback
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     output = func(input)
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/share/www/whpiv.net/blog/plugins/webfront/__init__.py", line 50, in cb_handle
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     webfront.handle()
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/share/www/whpiv.net/blog/plugins/webfront/webfront.py", line 275, in handle
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     self.render()
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/share/www/whpiv.net/blog/plugins/webfront/webfront.py", line 336, in render
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     self.template.render()
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/share/www/whpiv.net/blog/plugins/webfront/template.py", line 170, in render
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     parsed = tools.parse(self.request, self, self.core)#encoding,
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/tools.py", line 486, in parse
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     return _VAR_REGEXP.sub(replacer.replace, template)
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/usr/local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/tools.py", line 454, in replace
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     elif len(inspect.getargspec(r)[0]) == 2:
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]   File "/usr/lib/python2.6/inspect.py", line 803, in getargspec
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90]     raise TypeError('arg is not a Python function')
[Mon Dec 20 00:20:34 2010] [error] [client 38.114.64.90] TypeError: arg is not a Python function

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
pyblosxom-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
Reply | Threaded
Open this post in threaded view
|

Re: webfront with Blosxom 1.5

Bill Purcell
Sorry it's taken me so long to get back to you.  I tried to patch
__init__.py and template.py and here are my results using the patches
you sent:

root@funnyfarm:/share/www/whpiv.net/blog/plugins/webfront# patch template.py -i pbwebfront-templatepy.patch -o template.py
patching file template.py
Hunk #3 FAILED at 172.
Hunk #4 FAILED at 180.
Hunk #6 FAILED at 242.
Hunk #7 FAILED at 272.
Hunk #8 FAILED at 294.
5 out of 8 hunks FAILED -- saving rejects to file template.py.rej

root@funnyfarm:/share/www/whpiv.net/blog/plugins/webfront# patch __init___orig.py -i pbwebfront.patch -o __init__.py
patching file __init___orig.py
Hunk #1 FAILED at 30.
Hunk #2 FAILED at 56.
Hunk #3 FAILED at 59.
Hunk #4 FAILED at 63.
Hunk #6 FAILED at 91.
5 out of 6 hunks FAILED -- saving rejects to file __init__.py.rej
patching file __init___orig.py
Hunk #2 FAILED at 720.
Hunk #3 FAILED at 788.
Hunk #4 FAILED at 806.
Hunk #5 FAILED at 827.
Hunk #6 FAILED at 831.
Hunk #7 FAILED at 1112.
6 out of 7 hunks FAILED -- saving rejects to file __init__.py.rej
patching file __init___orig.py

I'm not a 100% sure on what I'm doing.  How should I be using these
patches?

Thanks,
Bill

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
pyblosxom-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users