Re: pybloxsom
Wari Wahab <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Joseph Reagle wrote: > That's wicked cool! I plan to move some of my blogging activity from my > hand/python-script site [1] to a more generic system and seeing how simple > the plugin can be, definitely makes me think pybloxsom is the way! <smile/> Hmm, isn't pyblosxom a hand/python-script site too? :) > One other question, if I edit a file (to correct a typo) does it > automatically bring it up as the latest entry? If so, I'm figuring I could > probably tweak the code somewhere to rely upon creating date instead of > last modified date in those cases... 1. You can edit a file with the given 'contrib/editfile.py'. It updates the mtime for you so you don't have to :) 2. You can name your files foo-2002-05-05-12-34.bar, and use the pyfilenamemtime.py plugin (in contrib/plugins/pyfilenamemtime.py) 3. Create a plugin that does timestamp caching (in a pickle or something like that), and derive your timestamps from there with the filestat() plugin (see pyfilenamemtime for example), and base on that timestamp file, you can later run a utility that hopefully changes the file in its desired timestamp. PS: Timestamp style plugins affect caching and plugins like weblogsping and conditionalhttp though, making data stale, of course you can delete the cache file yourself :) BTW, you have to use the cache if you are planning to process the text (like the .html entryparser plugin) > [1] http://goatee.net/ Hmm, sounds like a familiar site. -- Regards: Wari Wahab RoughingIT - http://roughingit.subtlehints.net PyBlosxom - http://roughingit.subtlehints.net/pyblosxom ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge