Re: templates & elements

2005-12-04 Thread Colin Howlett
Robert Wittams wrote: > Sorry, I just can not work out what on earth you are actually trying to > achieve - too many instances of the word 'generic'... A concrete > example would be best. Robert, Sorry, I guess I wasn't communicating very clearly. What I want is something like the {% include %

Re: templates & elements

2005-12-04 Thread Robert Wittams
Sorry, I just can not work out what on earth you are actually trying to achieve - too many instances of the word 'generic'... A concrete example would be best.

Re: templates & elements

2005-12-04 Thread Colin Howlett
At risk of hijacking the thread, I've been struggling with something similar (if I understand patrick correctly) Basically, I've been trying to come up with a way of including re-usable 'pagelets' or sub-templates into a parent template that are rendered with their own local context generated by g

Re: Paginating complex queries

2005-12-04 Thread Colin Howlett
Hmmm, looking at ticket #925, I think I prefer that solution - never mind, just ignore me.

Re: Paginating complex queries

2005-12-04 Thread Colin Howlett
I'm a little late to this, but it should be noted that it's not currently impossible to make the request available to the context, just a little messy. I wrote the following middleware which does it (forgive the rotten code - it was just a proof of concept) from django.core.extensions import Djan

Re: i18n for JavaScript - Proposal

2005-12-04 Thread hugo
Hi, I just commited two patches that implement JavaScript translation based on my proposal to Django. I added translations to the date and time pickers in the admin and added the necessary tags and references to the admin app. If you want to create an empty translation file for JavaScript, you j