Re: Problem setting up registry.py

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On Tue, 11 Jan 2005, John Sullivan wrote:
>
> I've been trying to set up the registry.py plugin. I've run into a 
> number of problems. First is, I can't get my setup to validate when 
> executing pyblosxom.cgi directly. I set the three variables in my 
> config.py.
>
> #registry
>
> py["registry_dir"] = "/arpa/hm/j/johnsu01/html/downloads/"
> py["registry_edit"] = 0
> py["registry_default_flavour"] = "html"

That looks fine.


> But when I run ./pyblosxom.cgi, I get FAIL!! as the response from 
> registry.py, with no error explanation.

If you check the code, the verification function just fails automatically. 
It doesn't do any verification because I didn't write any.

I wrote the registry plugin with my needs in mind.  It could use some work 
to make it more user-friendly.


> The registry_dir exists and has the correct permissions.
>
> I created the templates in my datadir, though they are empty files at 
> the moment. But for all of the template files named in the comments at 
> the top of registry.py, template.html exists as an empty file with the 
> correct permissions. I'm not sure, BTW, what these template files are 
> supposed to look like inside.

You'll need real template files.  Additionally, if you want to enable 
comments with the registry, you'll have to use the most recent comments 
plugin because it has the code that doesn't cause stomping on templates 
when printing the comment form.


> Should the plugin validate? Any ideas what is wrong? This is still with 
> 1.0; I haven't yet upgraded.

If the only reason you think something is wrong is because it's doing FAIL 
in the verification step, then your installation could be fine.  Try 
creating some registry entries and see if the registry stuff works.

/will


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
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.