Re: weblog-add
Wari Wahab <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
James Hosken wrote: > I've just installed pyblosxom for the first time and I'm trying to get > weblog-add to work. > I've set up the .htaccess and the password file but I can't work out > what I need to change in the weblog-add.py file. Not much to change really, just the pointer to your blog directory. Is there a problem using weblog_add.py in the first place? For example, permissions problems is the one I presume to be one of the main problem that users may face. > I have changed the blog_root to where my entries are stored but I don't > understand what I need to do with user2Link() > > def user2Link(user): > ~ """given a username, return some representation of that user > ~ Generally, this will be an anchor ref of a mailto URL > ~ """ > ~ # could also look up mail addrs via a table lookup, etc > ~ return '<a href="mailto:%(user)[email protected]">%(user)s</a>' % > {"user": user} You can do way with this function altogether. What it basically does is look at your username and return some kind of email address . The weblog_add.py generally adds metadata to your weblog entry, which is just the username, and email address. You could then use this as a variable in your weblog template. You can also use the weblog_add.py script as a starting point to embed a lot more metadata as well. > Please could some one point out what I need to change to get this to > work. > > Do I need to put a entry in py['load_plugins'] weblog_add.py script is a standalone script that works outside of pyblosxom. You can use this same script to power a blosxom blog, etc. So there's no load_plugins variable to touch. Need more help on metadata, just mail us here and we'll be glad to help :) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/