metadate improvements
"Hiếu Hoàng" <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm using metadate.py. The links at `pyblosxom's entry`_ are dead, so I grabbed `a copy`_ from SFLC's trac instead. I tweaked the file a bit: • Use str.startswith and time.strptime instead of regexp • Add a optional property ``postdate_formats`` to hold a list of time format strings • Fallback to original mtime if no format matches, and prints out a warning The warning is a print statement, so I'm pretty sure I got it wrong. _ .. pyblosxom's entry: http://pyblosxom.sourceforge.net/blog/registry/date/metadate _ .. a copy: http://code.softwarefreedom.org/projects/backports/browser/external/with-debian/muse/current/contrib/pyblosxom/metadate.py I have a question: how do I debug 500 errors? For example, if I load 404.py and go to a non-existent page, I get a 500. Setting renderer to debug doesn't escape that. I looked into my logfile, only one line:: 2007-12-19 00:53:57,891 [INFO] wbgflavourmedia: ['notfound'] corresponds to that request :( Any pointer is appreciated, this is costing me much time. Hiếu -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHaAqlh4dScvxKz04RAnZNAJ9GOZx5JxPwgtO72XvqanZLqUzadQCgsUXi wvBaP0jiv3lrzLcpF5fpThA= =k/fn -----END PGP SIGNATURE----- ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Pyblosxom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel