CacheMiddleware with generation-style caching

2011-10-31 Thread jonathan
E_MIDDLEWARE_SECONDS for the Cache-Control headers? Obviously, I can make this change locally, but I'd like to know if I'm missing something and if this change has any chance of making it upstream. :) Thanks! Jonathan [1] http://assets.en.oreilly.com/1/event/27/Accelerate%20your%20Rail

Re: Proposal: Allow LOGIN_URL to be a callable

2009-10-15 Thread Jonathan Lukens
+1 This would also be a help in cases where you have different sets of users and have to use a) to redirect them to the view appropriate to their account type. On Oct 14, 6:35 pm, Ulrich Petri wrote: > Hi, > > in some projects I've had to interface with external authentication > sources that di

Thanks for all the hard work

2009-12-29 Thread Jonathan Nelson
amework that is so well made, so well thought out and so well documented. It's a pleasure working with Django, and I'm looking forward to working with it for the foreseeable future. Cheers and best wishes, Jonathan Nelson -- You received this message because you are subscribed to t

Easier debugging of Django templates. {% try %} ... {% endtry %} template tag and traceback.

2010-03-05 Thread Jonathan S
aster/templatetags/stylize.py All feedback is welcome! Jonathan -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send e

Re: Easier debugging of Django templates. {% try %} ... {% endtry %} template tag and traceback.

2010-03-05 Thread Jonathan S
On Mar 5, 5:49 pm, Jared Forsyth wrote: > I presume these only get shown with DEBUG turned on? Yes, they are only shown when DEBUG is on: see line 163: http://github.com/citylive/Django-Template-Tags/blob/master/templatetags/debug.py#L163 -- You received this message because you are subscrib

Re: Easier debugging of Django templates. {% try %} ... {% endtry %} template tag and traceback.

2010-03-05 Thread Jonathan S
On Mar 5, 6:59 pm, Jared Forsyth wrote: > On a related note, is there a way to tell templates *not* to fail silently? > (most tags etc. do) > for testing/debugging purposes? I don't think that all template tags fail silently. Lookup of variables does always fail silently. That is, when a varia

Re: Template Compilation

2010-03-05 Thread Jonathan S
Just a few thoughts, this is my idea and I'm not an expert at compilers, so forgive me if I'm somewhere wrong. (1) For me, personally, I think the scoping of variables should be kept inside a block. {% with "x" as x %} {% with "y" as x %} {% endwith %} {{ x }} - you would print "y", because

Re: Easier debugging of Django templates. {% try %} ... {% endtry %} template tag and traceback.

2010-03-06 Thread Jonathan S
On Mar 6, 3:36 am, Leo wrote: > This is really cool, thanks for sharing it! > > One small question though, would it be better to check TEMPLATE_DEBUG > instead of DEBUG > -http://docs.djangoproject.com/en/dev/ref/settings/#template-debug > ? Yes, TEMPLATE_DEBUG would be better indeed. Thanks.

Re: Easier debugging of Django templates. {% try %} ... {% endtry %} template tag and traceback.

2010-03-06 Thread Jonathan S
and DEBUG are True, and return this traceback instead. Certainly something I will take a look at next week. Jonathan -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegr

Re: Proposal: {% include_partial %} template tag

2010-07-09 Thread Jonathan S
gn pattern pretty well, as far as I remember. The alternative in this particular example is to use two include tags "before.html" and "after.html", but is ugly because the opening and closing html tag are separated over different files. -- Jonathan On 8 juin, 19:47, Grego

Re: ANN: multi-auth branch ready for testing

2006-05-16 Thread Jonathan Daugherty
ith it, as we maintain a large collection of OpenID implementations, the leader of which is our python library: http://www.openidenabled.com/ -- Jonathan Daugherty http://www.parsed.org --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: openid & django

2006-07-13 Thread Jonathan Daugherty
en't used the multi-auth backend so I don't know about that. -- Jonathan Daugherty http://www.janrain.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Re: openid & django

2006-07-13 Thread Jonathan Daugherty
ields, it'd be great if you change the name of the form input field to "openid_url" so the OpenIDs I (or others) use on other OpenID-enabled sites will be available as auto-complete choices. Otherwise, looks great. Nice handling of the sreg profile data. -- Jonathan Daugherty ht

#2672 - RSS2.0 feed has no support for copyright element

2007-01-22 Thread Jonathan Buchanan
ework, will I (or someone else) have to write unit tests for the syndication framework before the patch goes anywhere? I still wake up in cold sweats thinking about the sheer variety of tests defined for Mark Pilgrim's feed parser :) Thanks, Jonathan.

Ticket #2922 - Defining outer joins

2007-02-01 Thread Jonathan Buchanan
es_vote v ON v.object_id = aa.id AND v.user_id = 2 AND v.content_type_id = 15 WHERE aa.id = 1; Putting the extra conditions in the WHERE clause instead results in a row not being retrieved at all if the user hasn't voted on the object it represents. Thanks, Jonathan. [1] htt

Re: The locmem patch and development progress

2007-04-18 Thread Jonathan Daugherty
least be automated[1][2]. (How is it done currently, if not with that sort of automation?) HTH, [1] http://buildbot.sourceforge.net/ [2] http://www.python.org/dev/buildbot/ -- Jonathan Daugherty http://www.b-tree.org --~--~-~--~~~---~--~~ You received this

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Jonathan Daugherty
example code previously provided. [1] http://tinyurl.com/383plw -- Jonathan Daugherty http://www.b-tree.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this g

Claiming Tickets

2023-01-28 Thread Jonathan Wang
Hi all, I was reading up on the documentation for new contributors and was reading the "Claiming Tickets" section where it says "If a ticket for this issue already exists, make sure nobody else has claimed it. To do this, look at the “Owned by” section of the ticket. If it’s assigned to “nobod

Re: Ticket #34555 ModelBase prevents addition of model Fields via __init_subclass__

2023-06-09 Thread Jonathan Clarke
Hi all, just wanted to check in to see if a conclusion can be reached on this idea? Thanks :) On Tue, 16 May 2023 at 19:17, charettes wrote: > Just wanted to publicly +1 here as well. I was skeptical that we could add > support for it without invasive changes at first but it seems to be > relat

Re: Ticket #34555 ModelBase prevents addition of model Fields via __init_subclass__

2023-07-22 Thread Jonathan Clarke
to deprecate, so if they're > breaking that may mean the change is not easy or even possible. > > On Fri, Jun 9, 2023 at 1:39 PM Jonathan Clarke < > jonathan.a.cla...@gmail.com> wrote: > >> Hi all, just wanted to check in to see if a conclusion can be reached on &g

Transactions in the admin

2005-10-11 Thread Jonathan Daugherty
ere this stands. Thanks for django! -- Jonathan Daugherty http://www.parsed.org

Re: Transactions in the admin

2005-10-11 Thread Jonathan Daugherty
'); under what circumstances are new connections opened and closed? -- Jonathan Daugherty http://www.parsed.org

Re: Transactions in the admin

2005-10-12 Thread Jonathan Daugherty
uot; This sounds like a rather invasive exception, and it sounds like something that makes this middleware more than a plugin. -- Jonathan Daugherty http://www.parsed.org

Re: Transactions in the admin

2005-10-12 Thread Jonathan Daugherty
guess I'm assuming that users will run all of their database interactions through the django core where things like this can be controlled. I suppose that users can go poking around if they want to get cursors or connections, but IMHO that's a case of too much rope. -- Jonathan Daugherty http://www.parsed.org

Re: Transactions in the admin

2005-10-12 Thread Jonathan Daugherty
, can you illustrate how one would accomplish this? -- Jonathan Daugherty http://www.parsed.org

Re: Transactions in the admin

2005-10-12 Thread Jonathan Daugherty
ng away the possibility of # explicit control for those who know exactly what to do. And the # combined middleware/decorator thingy is working very nicely with the # caching system, so I just thought it would be the ideal choice for # the transactionality system, too :-) Yeah, it sounds like dec

Re: MS SQL date vs. datetime problem

2005-10-22 Thread Jonathan Daugherty
# oops # I put in date and I get datetime back. But DateTime objects can be used to represent both; you just have a DateTime object with no time values. -- Jonathan Daugherty http://www.parsed.org

Re: Small report from Django/Rails meetup

2005-11-08 Thread Jonathan Daugherty
; category. Admittedly, AJAX integration of some kind would be nice, but IMHO there are lots of other bigger, more important things going on that need to be considered. -- Jonathan Daugherty http://www.parsed.org

Re: Pretty error pages for Django

2005-11-10 Thread Jonathan Daugherty
# Server error page: http://toys.jacobian.org/django/500.html # 404 error page: http://toys.jacobian.org/django/404.html Yay! -- Jonathan Daugherty http://www.parsed.org

Re: implicit "pk=" in get_object()?

2005-11-11 Thread Jonathan Daugherty
# I like it, but I also wish that "__exact" was optional, so I might # not be a good person to ask... Interesting idea, although I'd rather all of the conditional kwargs be consistent, personally. Making an exception would make it weird. -- Jonathan Daugherty http://www.parsed.org

Re: implicit "pk=" in get_object()?

2005-11-11 Thread Jonathan Daugherty
member what the primary key name is. -- Jonathan Daugherty http://www.parsed.org

Re: Names for Django components

2005-11-14 Thread Jonathan Daugherty
# 1. Django guitar # # 2. Django beats # # 3. Django singer # # 4. Django piano Novel, for sure, but wouldn't people have a hard time remembering which is which? -- Jonathan Daugherty http://www.parsed.org

Re: Dajngo wishlist

2005-11-14 Thread Jonathan Daugherty
# Simon, you are saying that FastCGI serves worse than mod_python? He said "CGI", which is not the same as FastCGI. -- Jonathan Daugherty http://www.parsed.org

Re: Dajngo wishlist

2005-11-14 Thread Jonathan Daugherty
;s hosting provider isn't sufficiently accommodating... -- Jonathan Daugherty http://www.parsed.org

Re: Data Types

2005-11-15 Thread Jonathan Daugherty
ut, should each field type know about the various backend types in order to maintain the mapping? -- Jonathan Daugherty http://www.parsed.org

Re: Django and AJAX: Setting aside the conflict

2005-11-16 Thread Jonathan Daugherty
# Sorry for replying to myself. Don't apologize to us; apologize to yourself! -- Jonathan Daugherty http://www.parsed.org

Re: Proposal: models.py by default instead of "models" directory

2005-11-18 Thread Jonathan Daugherty
nyone when they're looking through the docs for the Right Way? I think the "one way" mantra applies here.. -- Jonathan Daugherty http://www.parsed.org

Re: Proposal: models.py by default instead of "models" directory

2005-11-18 Thread Jonathan Daugherty
models.py module would make for a cleaner layout if a package isn't needed. I was just pointing out that regardless of the pythonic-ness of it, I wonder if the extra option will confuse newcomers. -- Jonathan Daugherty http://www.parsed.org

Re: Tree structure

2005-11-20 Thread Jonathan Daugherty
ForeignKey(Category) # # def __repr__(self): # return self.name Just use: parent = meta.ForeignKey("self") For more information, see: http://www.djangoproject.com/documentation/model_api/ (See the "Many-to-one relationships" section.) -- Jonathan Daugherty http://www.parsed.org

Re: "Magic" model module change proposal

2005-12-06 Thread Jonathan Daugherty
class -- would still be created, but it would live in appname.models # rather than django.models. For example, in the polls tutorial, the # module "choices" in "from django.models.polls import choices" would # be in myproject.polls.models: "from myproject.polls.models impo

Re: "Magic" model module change proposal

2005-12-06 Thread Jonathan Daugherty
# Why can't we just allow the model class defined by the user to be # used? That doesn't seem promote a clean separation of "table-level" vs. "row-level" functionality. -- Jonathan Daugherty http://www.parsed.org

Re: "Magic" model module change proposal

2005-12-06 Thread Jonathan Daugherty
I think it's cleaner to keep these functionalities physically separate. Maybe the best thing to do would be to round up as many newcomers as possible and see what they think would be clearer. -- Jonathan Daugherty http://www.parsed.org

Re: "Magic" model module change proposal

2005-12-06 Thread Jonathan Daugherty
ign possibilities and ask newcomers which one(s) seem clearer, in terms of the developement experience. Obviously asking newcomers to *design* would not be prudent. :) -- Jonathan Daugherty http://www.parsed.org

Re: Removing the magic

2005-12-08 Thread Jonathan Daugherty
painfully obvious what sort of error has occurred. Makes the code that much more readable, too, IMHO. -- Jonathan Daugherty http://www.parsed.org

Re: Potentially confusing urlconf error messages

2005-12-11 Thread Jonathan Daugherty
# Not particularly clever, but in a Django request context you could # argue that "//" == "//" == "/" and change the url pattern logic # appropriately. Or just remove all leading slashes from any URLconf entry's regex. -- Jonathan Daugherty http://www.parsed.org

OpenID

2006-01-05 Thread Jonathan Daugherty
05/12/07/too-many-usernames/ My questions are: - Who has already put some thought into this? - Who has written code? - Should this be done as a middleware? - How can I help? Thanks! [1] http://www.openid.net http://www.openidenable.com -- Jonathan Daugherty http://www.parsed.org

Re: OpenID

2006-01-10 Thread Jonathan Daugherty
# http://www.openidenable.com This should be: http://www.openidenabled.com -- Jonathan Daugherty http://www.parsed.org

Re: developers needed

2006-01-14 Thread Jonathan Daugherty
ders. Any suggestions on how to find a number of # candidates to consult would be appreciated. A 5-10 K job . thanks Command Prompt, Inc. does Django and PostgreSQL website development. You can contact them via the information on their site, http://www.commandprompt.com/ -- Jonathan Daughe

Re: developers needed

2006-01-14 Thread Jonathan Daugherty
d say the consensus is most certainly the opposite. Flamingly yours, -- Jonathan Daugherty http://www.parsed.org

Re: Docutils link in admin interface

2006-01-17 Thread Jonathan Daugherty
n area may be historical and having access to the docs online *is* really great, but I can't think of a reason why they should live in admin specifically. My 0.02 USD, -- Jonathan Daugherty http://www.parsed.org

Re: Django auth magic

2006-02-03 Thread Jonathan Daugherty
to try a sequence of authenticators. I'm concerned particularly with OpenID authentication, and OpenID auth is usually tried in addition to whatever is desired for the site's normal accounts, in which case authentication mechanisms must be able to coexist. -- Jonathan Daugherty http://www.parsed.org

Re: Django auth magic

2006-02-04 Thread Jonathan Daugherty
odate various incarnations, such as with LDAP, OpenID, and normal usernamd-and-password. So this SQL model's structure does come to bear heavily on whether we can use other authentication mechanisms *if* we want external auth to conveniently blend with "normal" accounts. -- Jonat

Re: How about converting python config files to text config files

2006-02-09 Thread Jonathan Daugherty
evelopment copies of a project very easy. You can employ similar techniques. But at any rate, you can always just write a python script that imports the settings and programmatically traverses them if you need to inspect them. -- Jonathan Daugherty h

Re: How about converting python config files to text config files

2006-02-09 Thread Jonathan Daugherty
x27;t think it's bad to do this manually, particularly because it doesn't need to be done often. What's the impetus for wanting an automated way to perform this kind of task? -- Jonathan Daugherty http://www.parsed.org --~--~-~--~~~---~--~---

Re: proposal: endif, endfor etc assume whatever follows in tag is comment

2006-03-13 Thread Jonathan Daugherty
# It regularly becomes difficult to track which {% endif %} belong to # which {% if %}, it would be good if we can say {% endif # start_process %} where start_process is purely comment. Maybe implement generic support for /* .. */ in template tags? -- Jonathan Daugherty http

Re: GSoC 2012 Proposal

2012-02-07 Thread Jonathan Paugh
ore dev and don't influence such decisions.) I believe someone recently suggested incorporating less (http://lesscss.org/) and bootstrap (http://twitter.github.com/bootstrap) into Django, and this might be something you're interested in. At any rate, this list is full of good propositions.

ticket/15926, advice

2012-02-07 Thread Jonathan Paugh
s patch to a (much) later tip of the git repo, and expanded it's scope as per my comments on the ticket page. I also added some documentation for my changes, which I believe is adequate. Thanks for your help. Jonathan -- You received this message because you are subscribed to the Google

Re: start using less (and bootstrap!)

2012-02-14 Thread Jonathan Paugh
projects could be tarball-ed together somehow. (Could it be that hard to teach setup.py to install another package from a subdir? Or to tar up them separately?) (And what is virtualenv? Do I need it to install admin? Let's address that in a separate tutorial, with a link and a notation.) P

Re: auth.User usernames

2012-02-17 Thread Jonathan Slenders
On 16 fév, 13:05, Tom Evans wrote: > 75 isn't large enough these days for either email or username. We run > a patched version of django for some time that has changed both these > fields to 255 characters in order to accommodate the needs of our > users. See RFC 3696. This and other issues made

Re: Revisiting multiline tags

2012-02-24 Thread Jonathan French
Since we're consensus building or whatever the fancy term is, another +1. Mainly for comments, since {# #} is far, far more readable than {% comment %}{% endcomment %} even with syntax highlighting, but also for other tags too, particularly long i18n ones -- or even relatively short ones where you

Re: Newline stripping in templates: the dnl way

2012-02-24 Thread Jonathan French
Jinja implements whitespace control by putting a minus sign after/before the % in a tag - http://jinja.pocoo.org/docs/templates/#whitespace-control - I haven't tried it myself, but it looks like {% tag -%} is equivalent to your {% tag %}{# . On 24 February 2012 17:37, Tobia wrote: > Tai Lee wrot

Re: Revisiting multiline tags

2012-02-24 Thread Jonathan French
On 24 February 2012 17:16, Alex Gaynor wrote: > > > On Fri, Feb 24, 2012 at 12:06 PM, h3 wrote: > >> > If you'd like to make an argument as to *why* it's useful, that's >> useful, but we don't take polls. >> >> I think the argument as to why it's useful as been made quite >> extensively. >> >> O

Re: Newline stripping in templates: the dnl way

2012-02-25 Thread Jonathan French
Let me make sure I've got this right --- The situation being discussed is not where whitespace is insignificant and can be stripped, but where whitespace is important and you want to control the exact amount of it, e.g. plain text emails. In this case, just using stripwhitespace is not enough. Righ

Re: make the File Storage API works with a file-like object instead of the Django File object.

2012-02-28 Thread Jonathan French
You can create a Django file object from any file-like object just by passing it to the constructor. django.core.files.File(my_file_like_object) This is basically what all the storage backends do where there is an existing file object from whatever source, and what you have to do if you want to s

Re: Class based views: A standard hook for http-method-independent code

2012-03-02 Thread Jonathan French
That's true, but I agree it seems a useful enough hook to make it a hook, rather than needing to do it yourself like that. I would vote for it being called 'preprocess', to make it clear that it's both optional and run before the method-specific function. - ojno On 2 March 2012 13:40, Michael van

Re: Class based views: A standard hook for http-method-independent code

2012-03-02 Thread Jonathan French
ak the rules. > > > Cheers, > AT > > > On Fri, Mar 2, 2012 at 11:53 AM, Jonathan French > wrote: > >> That's true, but I agree it seems a useful enough hook to make it a hook, >> rather than needing to do it yourself like that. I would vote for it being >

Re: [GSoC 2012] Schema Alteration API proposal

2012-03-19 Thread Jonathan French
On 18 March 2012 23:33, Russell Keith-Magee wrote: > > 2. An inspection tool that generates the appropriate python code after > >inspecting models and current state of database. > > The current consensus is that this shouldn't be Django's domain -- at > least, not in the first instance. It mi

Re: suggestion: Don't make the tag "url" dirty in Django1.5

2012-03-27 Thread Jonathan French
That example is incorrect. {% url app_views.client %} will not change to {% "url app_views.client" %} it will change to {% url "app_views.client" %} which, as you can see, enables passing the view from something other than a literal string. On 27 March 2012 09:22, gs412 wrote: > In Django1

Model inheritance extended.

2012-09-24 Thread Jonathan Slenders
sed before. And whether, if useful, this would make a candidate for django.db. https://github.com/citylive/django-model-blueprint Cheers, Jonathan -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on

Automatic deployment tool

2012-12-09 Thread Jonathan Slenders
ent/deployer/contrib/services/django.py I'll publish one of these days on pypi. All feedback is welcome. For bugs/feature requests on things which arn't Django related, please go to the github. Cheers, Jonathan -- You received this message because you are subscribed to the Google Gr

Re: Automatic deployment tool

2012-12-09 Thread Jonathan Slenders
ther people. Cheers, Jonathan Le lundi 10 décembre 2012 00:15:58 UTC+1, Cal Leeming [Simplicity Media Ltd] a écrit : > > Hi Jonathan, > > Just from a very brief point of view.. my eyes started to glaze over > whilst looking at the github README, and even more so when I looked a

TIMEZONE default

2013-02-09 Thread Jonathan Loy
7;t they be the same, and if so which one? Thanks for taking the time to read/answer my queston. v/r Jonathan -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: TIMEZONE default

2013-02-09 Thread Jonathan Loy
Z. > > If you search the archives of this mailing list you'll find a detailed > explanation for USE_TZ. > > -- > Aymeric. > > > Le 9 févr. 2013 à 23:44, Alex Ogier > a > écrit : > > Hi Jonathan, > > I don't know the particular history of thi

Re: Moving database backends out of the core

2013-03-05 Thread Jonathan Slenders
midldeware=..., ) No disadvantages I think. But it's not an easy migration path. Cheers, Jonathan -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: javascript view for named urls

2013-03-31 Thread Jonathan Slenders
As Andrew says, some "rely" on the obscurity of this server side information. The same can be said of translations. I'd like to see better support for javascript preprocessing. gettext(...) in javascript could be preprocessed if the language is known. url_resolve('name', { ...}) could probably a

Re: websockets

2013-04-16 Thread Jonathan Slenders
Maybe it's worth noting that Guido is working on a Tulip, a specification for an asynchronous API in Python 3, this to get some consensus. Right now, there is almost zero compatibility between al the different approaches: twisted, tornado, gevent, etc... If we decide to go for one technology, b

Nested blocks in base template.

2013-04-27 Thread Jonathan Slenders
n that much progress last year.) Thanks, Jonathan -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com

Re: Automatic deployment tool

2013-05-16 Thread Jonathan Slenders
hat's not shown, but great: - typing "--connect" will open a bash shell on the remote end of the current node. - introspection of everything - a lot more. Feedback is very welcome, but maybe keep it off django-developers. https://github.com/jonathanslenders/python-deployer/

Template preprocessing (to improve template rendering speed, en page filesize)

2010-10-15 Thread Jonathan S
Hi all, At my current job, I spent a week of programming on a preprocessor for Django templates. In short, what it does is compiling the templates in a more compact version, dropping all useless information and preprocessing templatetags where possible. The Apache benchmark tools showed a page loa

i18n bug in template rendering.

2011-01-05 Thread Jonathan S
I guess, we found a bug, not sure if it has been reported earlier and whether this is the right place to report. When a template contains translations in variables, like {{ _("text") }}, the text seems to be translated already during the creation of the Template object. Every following call of Tem

Re: i18n bug in template rendering.

2011-01-05 Thread Jonathan S
See also: http://pastebin.com/Wstya2C6 -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@goo

Re: i18n bug in template rendering.

2011-01-06 Thread Jonathan S
> You aren't supposed to use _('Foo') as a standalone variable. > (see last paragraph > herehttp://docs.djangoproject.com/en/1.2/topics/i18n/internationalization...) Why shouldn't I use it as a standalone variable? (A language should have a *context free* grammar, which means, that the undersco

Re: i18n bug in template rendering.

2011-01-06 Thread Jonathan S
Thanks Ramiro, we hope the patch will be applied in the next release. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to dj

Proposal for inclusion of two additional default template tags.

2011-01-07 Thread Jonathan S
wether you'd like to see something different. - Jonathan -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to d

Re: Proposal for inclusion of two additional default template tags.

2011-01-07 Thread Jonathan S
Jonas H." wrote: > On 01/07/2011 05:11 PM, Jonathan S wrote: > > > ** And a {% decorate %} template tag: > >http://paste.pocoo.org/show/316593/ > > +1 > > > {% macro %} avoids the usage of external template files. I think it's > > not worth the over

Re: Proposal for inclusion of two additional default template tags.

2011-01-07 Thread Jonathan S
> Regarding the macro-tag I think the idea is valid but I'd personally > prefer a more flexible approach regarding variables being  provided > for the macro block. Something like Jinja's macro comes to mind where > I can define parameters for each macro and then pass them in as needed Jinja's appr

Missing semi-colon

2011-02-23 Thread Jonathan S
SelectFilter.init(value.id, namearr[namearr.length-1], true, "{% admin_media_prefix %}"); }) } } Thanks a lot, Jonathan -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this grou

Re: Missing semi-colon

2011-02-23 Thread Jonathan S
Aparently, there are several semicolons missing at several places: django/contrib/admin/templates/admin/edit_inline/tabular.html lines 90, 94 and 124 django/contrib/admin/templates/admin/edit_inline/stacked.html lines 45, 48 and 78 Of course, this really is a minor issue, but easy enough to fix

Re: Missing semi-colon

2011-02-24 Thread Jonathan S
Thanks, I made a patch and created a ticket. http://code.djangoproject.com/ticket/15490 On 23 fév, 13:48, Russell Keith-Magee wrote: > On Wed, Feb 23, 2011 at 8:24 PM, Jonathan S > wrote: > > Aparently, there are several semicolons missing at several places: > > >

Bug in ManyRelatedManager.get_query_set?

2011-02-24 Thread Jonathan S
a query Model2.objects.get(id=...) to be executed. Model1 is defenitely not involved, so I think there's no reasen to pass Model1 to the router, instead of Model2. This patch should solve it: http://paste.pocoo.org/show/343888/ cheers, Jonathan -- You received this message because you are subs

Re: Template Compilation

2011-03-28 Thread Jonathan S
me know if you have other questions. There is more I have to tell, but I'm a little busy right now... Have a nice day, Jonathan -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop

Re: Template Compilation

2011-03-29 Thread Jonathan S
Maybe. We solved that use-case by adding another custom directory to TEMPLATE_DIRS when we had to override the base template. But I can imagine that someone wants to be able to dynamically change the base template, from inside a view or context processor. This was a choice we made, because almost

Re: Proposal for Template Engine Refactoring

2011-03-29 Thread Jonathan S
+1 on this. Are you planning on keeping the API for registering template tags compatible? (django.template.Library.register.tag) I think this may be required for backwards-compatibility, but personally, I'd like to see a cleaner API for this, which doesn't expose the parser details. (Writing temp

Re: Django Template Compilation rev.2

2011-03-30 Thread Jonathan Slenders
enario. I don't know whether using a 'result' variable is the best way. But if it is, you could turn a filter tag into the following code and nest in your other generated code. So, it'll override 'result' in the inner scope. > def _f(): >result = [] >... >

Re: GSoc : Templates Compilation

2011-03-30 Thread Jonathan Slenders
How exactly do you want to solve dynamic inheritance? It seems that some people are still interested in dynamic inheritance, by using {% extends variable %}. (Which is still dirty in my opinion, but anyway.) Block information has to be kept somehow. Maybe one small improvement. Isn't the followin

Re: GSoc : Templates Compilation

2011-03-31 Thread Jonathan Slenders
Hi Andrey I haven't yet looked through all of your code, but already a little feedback. Remember that every dot operator requires a dictionary lookup or getattr call. Also the [ ]-operator is another level of redirection. I think using 'self' inside a for-loop is not a good idea. If you're going

Re: GSoc : Templates Compilation

2011-03-31 Thread Jonathan Slenders
nal implementation to the new implementation as an additional function parameter. (As a curry.) I guess it's fast, and can be cached in memory. For each rendering, only a copy of the required template dictionaries have to be made. (Not even a deep copy.) --- Cheers,

Re: GSoc : Templates Compilation , draft 2

2011-04-12 Thread Jonathan Slenders
riting a parser or compiler, but it can sometimes take many times of refactoring and rewriting code before you get a satisfying enough result. By the way, someone in this group said that l10n takes a lot of time during template rendering. I wonder what we can do about that... Have a nice day, Jona

Re: DDN: #2594 (Template system whitespace) may cause blocktrans issue

2011-04-18 Thread Jonathan Slenders
Some concerns, even if I don't know much about the subject. Are you sure that it's always appropriate to strip indentation? Some companies (like us) use templates for other stuff than HTML. (like plain text mail.) In this case the indentation is meaningful (not to the translator, but important for

Re: Fixing makemessages for Javascript

2011-04-19 Thread Jonathan Slenders
n catalog for javascript is no longer required, even for external files. https://github.com/citylive/django-template-preprocessor cheers, Jonathan On 18 avr, 00:14, Ned Batchelder wrote: > On 4/15/2011 12:40 PM, Russell Keith-Magee wrote: > > > > > > > > > On Fri, Ap

  1   2   >