yeararchives (2)

"Sebastian Spaeth" <[email protected]> Tue, 04 May 2010 16:51:47 +0200
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
Next issue with yeararchives and static rendering:

The yeararchives plugin creates URLS (thus files) called: 2003 2004
.... (not appending any .flavour appendix by the way)

The regular pyblosxom renderer creates files like /2003/index.snarfed
which will fail as 2003 is already a regular file created by
yeararchives.

This could be solved by:
1) having pybloxom renderer not create yearly index files. I have 
   py["static_monthnames"] = 0
   py["static_monthnumbers"] = 0
   in my config.py. Why not also have a py["static_year"] = 0 that
   disables this by default?

2) The yeararchives plugin should create .flavor files to not clash with
the year directories, ie if yeararchives created /2003.snarfed the
/2003/index.snarfed could exist just like it does today without
interfering.

2a) For this to work, the yeararchive plugin would need to understand
URLS such as /2003.snarfed which it does not now. If the URL is not
^/2003$ it won't recognize it. Here is a patch that drops of final
flavour bits, although I am not sure if that is the correct thing to do
here or if there are better ways. I have implemented that and can send
the patch if needed.

Separately, I am going to send a patch that implements the
cb_staticrender_filelist callback for the yeararchives plugin.

Sebastian

------------------------------------------------------------------------------

_______________________________________________
Pyblosxom-devel mailing list
Pyblosxom-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvgNIMACgkQVYX1jMgnoGLrMgCfc8XSa9mDf3Z/4HPH8QwJSoRT
5GMAn3P4uw/k00up7OD5MlXgdUFTmqfF
=CfMf
-----END PGP SIGNATURE-----