Re: webfront with Blosxom 1.5
Michael Goddard <[email protected]> Mon, 20 Dec 2010 00:19:38 -0500
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1023698419517468395== Content-Type: multipart/alternative; boundary=0016e65bcd60a379b60497d0aaef --0016e65bcd60a379b60497d0aaef Content-Type: text/plain; charset=ISO-8859-1 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 <[email protected]> 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 > pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/pyblosxom-users > --0016e65bcd60a379b60497d0aaef Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Bill,=A0<div><br></div><div>I took a quick look at the problem. =A0I hav= en't tried running webfront on Pyblosxom 1.5 myself yet but I'll ta= lk a deeper look to make sure there are no other problems.</div><div><br></= div> <div>I haven't tested this but for Pyblosxom 1.5 line 170 in webfront/t= emplate.py should read=A0</div><div><br></div><div>parsed =3D tools.parse(s= elf.request, self, self.core)</div><div><br></div><div>instead of what is i= n your traceback</div> <div><br></div><div><meta charset=3D"utf-8">parsed =3D tools.parse(self.req= uest, encoding, =A0self, self.core)</div><div><br></div><div>Basically the = encoding variable needs to be dropped.</div><div><br></div><div>Regards,<br= >Michael "Z" Goddard</div> <div><br></div><div>On Sun, Dec 19, 2010 at 7:03 PM, Bill Purcell <span dir= =3D"ltr"><<a href=3D"mailto:[email protected]">[email protected]</a>>= </span> wrote:</div><div><div class=3D"gmail_quote"><blockquote class=3D"gm= ail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le= ft:1ex;"> I'm not having much luck with webfont and Pyblosxom 1.5.<br> <br> [05:37:22] ~$ pyblosxom-cmd --version<br> pyblosxom-cmd version 1.5rc2 20100803<br> <br> When I browse to <a href=3D"http://whpiv.net/blog/blog.cgi?edit=3Dentry" ta= rget=3D"_blank">http://whpiv.net/blog/blog.cgi?edit=3Dentry</a> I get the<b= r> following in my error.log<br> <br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] Traceback (most rec= ent call last):<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 File "/usr= /lib/python2.6/wsgiref/handlers.py", line 93, in run<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 =A0 self.result= =3D application(self.environ, self.start_response)<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 File "/usr= /local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyb= losxom.py", line 458, in __call__<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 =A0 return [sel= f.run_pyblosxom(env, start_response)]<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 File "/usr= /local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyb= losxom.py", line 450, in run_pyblosxom<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 =A0 p.run()<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 File "/usr= /local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/pyb= losxom.py", line 173, in run<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 =A0 donefunc=3D= lambda x:x)<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 File "/usr= /local/lib/python2.6/dist-packages/pyblosxom-1.5rc2-py2.6.egg/Pyblosxom/too= ls.py", line 776, in run_callback<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 =A0 output =3D = func(input)<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 File "/sha= re/www/<a href=3D"http://whpiv.net/blog/plugins/webfront/__init__.py" targe= t=3D"_blank">whpiv.net/blog/plugins/webfront/__init__.py</a>", line 50= , in cb_handle<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 =A0 webfront.ha= ndle()<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 File "/sha= re/www/<a href=3D"http://whpiv.net/blog/plugins/webfront/webfront.py" targe= t=3D"_blank">whpiv.net/blog/plugins/webfront/webfront.py</a>", line 27= 5, in handle<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 =A0 self.render= ()<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 File "/sha= re/www/<a href=3D"http://whpiv.net/blog/plugins/webfront/webfront.py" targe= t=3D"_blank">whpiv.net/blog/plugins/webfront/webfront.py</a>", line 33= 6, in render<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 =A0 self.templa= te.render()<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 File "/sha= re/www/<a href=3D"http://whpiv.net/blog/plugins/webfront/template.py" targe= t=3D"_blank">whpiv.net/blog/plugins/webfront/template.py</a>", line 17= 0, in render<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] =A0 =A0 parsed =3D = tools.parse(self.request, encoding, =A0self, self.core)<br> [Sun Dec 19 17:27:09 2010] [error] [client 192.168.1.1] TypeError: parse() = takes exactly 3 arguments (4 given)<br> <br> I've tried playing around fixing it but it wasn't as simple as only= <br> passing in three of the arguments. =A0Anyway, has anyone had webfront<br> working with Pyblosxom 1.5?<br> <br> Thank,<br> Bill<br> <br> <br> <br> ---------------------------------------------------------------------------= ---<br> Lotusphere 2011<br> Register now for Lotusphere 2011 and learn how<br> to connect the dots, take your collaborative environment<br> to the next level, and enter the era of Social Business.<br> <a href=3D"http://p.sf.net/sfu/lotusphere-d2d" target=3D"_blank">http://p.s= f.net/sfu/lotusphere-d2d</a><br> _______________________________________________<br> pyblosxom-users mailing list<br> <a href=3D"mailto:pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org">pyblosxom-users@li= sts.sourceforge.net</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/pyblosxom-users" ta= rget=3D"_blank">https://lists.sourceforge.net/lists/listinfo/pyblosxom-user= s</a><br> </blockquote></div><br></div> --0016e65bcd60a379b60497d0aaef-- --===============1023698419517468395== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ 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 --===============1023698419517468395== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ pyblosxom-users mailing list pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/pyblosxom-users --===============1023698419517468395==--