Cool - nice. If I get time I'll see if I can switch to using this
instead of the standard gallery. Regenerating the thumbs every time does
annoy me.
All the best,
Michael
On 21/03/2010 16:30, Yuri D'Elia wrote:
> Hi everyone. I've made some modifications to the gallery plugin that I
> would like to share.
>
> I've made optional the "page_template" parameter: if not set, a
> direct link to the image is made. I've switched the "cgi.replace" (and
> the ugly ** escapes) to use "embedded_code" like everywhere else.
>
> The thumbnails are now regenerated only when needed, not at every
> invocation. The plugin is attached as "gallery2", since the templates
> are not directly compatible with the old ones. The plugin works
> otherwise the same.
>
> I tried to make the plugin system work on "rest" files by using
> substitution references (which look like this: |gallery|). I raised the
> question in the docutils ML, but without much success:
>
> http://article.gmane.org/gmane.text.docutils.user/5619
>
> The proposed solution to define the substitutions by concatenating
> text work (of course), but you cannot define 'raw html' in the
> substitution:
>
> .. |sub| replace::
> .. raw:: html
> test
>
> thus making them much less useful for that purpose.
>
> Bests
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
>
>
> _______________________________________________
> Rest2web-develop mailing list
> Res...@li...
> https://lists.sourceforge.net/lists/listinfo/rest2web-develop
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
|