Re: pyarchives_enhanced.py updated package

Klaus Trainer <klaus.trainer-S0/[email protected]> Sat, 20 Sep 2008 11:17:35 +0200
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
[after a loong delay...]

On Mon, 28 Jul 2008, Ryan Barrett wrote:

> one request: i'd like to see the common code in pyarchives.py and
> pyarchives_enhanced.py enhanced. ideally, pyarchives_enhanced users would 
> install both, and pyarchives_enhanced.py would enable itself, disable 
> pyarchives.py, and reuse the common pieces.
> 

I've finally realized your proposal. The plugin is now 100% backward
compatible with the old pyarchives.py plugin. People using the newer
pyarchives_enhanced.py plugin just need to define
py['archives_enhanced'] = True
in their config.py, so it's also 100% backward compatible to the former
pyarchives_enhanced.py then.

What I've done in pyarchives_enhanced.py was to rename the method
"genLinearArchive" to "genEnhancedArchive" and paste the method
"genLinearArchive" from pyarchives.py into it. Then I added a check
whether "archives_enhanced" is set True, depending on this,
"genEnhancedArchive" or "genLinearArchive" will be invoked.
After all I've renamed pyarchives_enhanced.py to pyarchives.py, so there
will be no separate enhanced version anymore.

I've also made minor changes to pyarchives.js, the toggling
functionality is now even more similar to blogspot, i.e. the most recent
archives are now open by default.

example.css (the version from the previous attached package) has been
renamed to pyarchives.css.

README has also been updated according to the changes.


Regards,

Klaus

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Pyblosxom-devel mailing list
Pyblosxom-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel
pyarchives_enhanced.tar.gz (application/x-gzip, 5.4 KB) - not displayed