add a callback to FileEntry or Entry while adding files

Filippo Giunchedi <filippo-gGNWoN3l/[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
Hi,
I started using (and enjoying) pyblosxom since 1 week and it is really
great!
However I found myself editing some entries in data_dir and of course
they got published as soon as I save the file while still editing it.

It would be really cool to have a callback called when FileEntry (or
Entry) is about to add a file (or an entry) so that a plugin can choose
to actually publish the file (by let the callback return True or False,
for example).
My use case for this would be to ignore files that have a .swp file
(i.e. they are being edited with vi(m)) but also date/time-based
publishing would be interesting.

any comments?

thanks in advance,
filippo



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
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.