Re: A question and a request
Wari Wahab <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
will wrote: >>So I could have a directory of entries only friends could read, or only >>family could read. >> >> >That's probably something you'd want to implement as a plugin. The plugin >could check the .htaccess directories and match it up with the entries >list being returned as well as the path_info of the request to make sure >unauthorized users weren't seeing things they weren't supposed to see. > > Yes it's not that difficult to do actually, just a little bit of hacking, Ted actually has interest in doing such things, but I guess there's no code yet for such things. >It might take a bit of hacking on the existing plugins (pycategories, >pyarchives, pycalendar, ...) if you choose to use them as they're not >really setup for that sort of thing. But I don't think it'd be too hard. > Or we could have an exclude plugin of some sort, based on the lack of http['HTTP_USER'] environment variables, that is much more easier to manage I guess. If you code in python, this is easily done as a plugin. BTW, we do not have support for static entries yet (although I do have some sort of funky caching code), you could place a .htaccess with an .htpassword to get things working with funky caching. >>The request is much larger. I like the simplicity in the way the entries >>are stored, but it's sort of HTML-centric. >> >>Has anyone looked at Structured Text as in what Zope uses and what's in >>the Docutils project? >> >> >We have "preformatters" which take the entry file and apply whatever >formatter you like. Wari has written preformatters for wiki, reST, >textile, and possibly a few others. This is really his cup of tea--I >write html. > > Yes, this is the first reason why I coded pyblosxom in the first place, without this reason, I don't have the drive to do it. I don't have Structured Text in the work, but if you download pyblosxom from CVS, you'll have reStructured Text, wiki that uses the moinmoin engine, and textile to name a few. You can code the Zope's structure text yourself if you know how. The plugin architechture is very simple to use (thanks to Will)