Outdated plugins ?

john <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Hi pyblosxom's Gurus.


I try to use the showmore.py and pylists.py
(http://persson.cx/pyblosxom/code/pyblosxom/) with
 Pyblosxom 1.2.1 and Python 2.3.2. Here the stacktrace for showmore.py.


/Library/WebServer/CGI-Executables/plugins/showmore.py
<mailbox:///Users/john/Library/Thunderbird/Profiles/3rs2ufc2.default/Mail/Local%20Folders/Drafts?number=34912990&part=1.2&filename=showmore.py>
in *showmore*(var='More...')
   15 def showmore(var = 'More...'):
   16         global entry
   17         registry = tools.get_registry()
   18         req = registry["request"]
   19         data = req.getData()
registry /undefined/, /global/ *tools* = <module 'Pyblosxom.tools' from
'/Library/Webserver/CGI-Executables/Pyblosxom/tools.py'>,
tools.get_registry /undefined**/

*AttributeError*: 'module' object has no attribute 'get_registry'
      args = ("'module' object has no attribute 'get_registry'",)

I don't know how modify the code to make it running and have no idea
where the get_registry is implemented now.

And here the stracktrace for pylist.py
 /Library/WebServer/CGI-Executables/plugins/pylists.py
<mailbox:///Users/john/Library/Thunderbird/Profiles/3rs2ufc2.default/Mail/Local%20Folders/Drafts?number=34912990&part=1.3&filename=pylists.py>

   34 """
   35 import Pyblosxom, os
   36 from Pyblosxom.Request import Request
   37 from Pyblosxom.renderers.blosxom import BlosxomRenderer
   38 from Pyblosxom.entries.base import EntryBase
*Pyblosxom* = <module 'Pyblosxom' from
'/Library/Webserver/CGI-Executables/Pyblosxom/__init__.py'>,
Pyblosxom.Request /undefined/, Request /undefined/

*ImportError*: No module named Request
      args = ('No module named Request',)

This module seems to be implemented elsewhere but, as wrote before, I
don't know how modify it.
I've tried to change things like :

- "from Pyblosxom.Request import Request" changed for "from
Pyblosxom.pyblosxom import Request"

but doing this returns :
*TypeError*: __init__() takes exactly 4 arguments (1 given)
      args = ('__init__() takes exactly 4 arguments (1 given)',) and
have no idea which 3 missing args it needs.

Well, as you see, I'm a Python and Pyblosxom newcomer (thanks Joe
Topjian) ;-) and I get a little bit lost.
Any help ?
Thanks for all.

John





-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.