Re: Ticket 10912: Autoescaping variable input in template tags

2009-08-03 Thread Malcolm Tredinnick
On Mon, 2009-08-03 at 16:25 -0700, ab wrote: > Is this something that could be backwards-incompatible in 1.2? Please, no. There are thousands of template tags in the wild. This would be a *massive* imposition on existing code. Regards, Malcolm --~--~-~--~~~---~--~--

Re: Feeds as views.

2009-08-03 Thread Russell Keith-Magee
On Tue, Aug 4, 2009 at 2:12 AM, Ben Firshman wrote: > > > On 3 Aug 2009, at 14:50, Alex Gaynor wrote: >> >> Ben Firshman has written similar code that is backwards compatible >> with the current implementation: >> http://github.com/bfirsh/syndication-view/tree/master >> >> Alex > > I started going

Re: Ticket 10912: Autoescaping variable input in template tags

2009-08-03 Thread ab
Is this something that could be backwards-incompatible in 1.2? For 1.1, the options I can think of are to make new tags (cyclesafe) or add yet another setting. Neither seems good. Any other ideas? --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Logging instead of connection.queries

2009-08-03 Thread Malcolm Tredinnick
On Mon, 2009-08-03 at 15:48 +0400, Ivan Sagalaev wrote: > Hello! > > A couple of days ago a sudden thought has struck me while thinking on > the matter of logging in Python libraries. I consider a good practice > for a library to log what it's doing into a named logger without setting > up log

Re: Logging instead of connection.queries

2009-08-03 Thread Yuri Baburov
Hi Russell, On Mon, Aug 3, 2009 at 9:02 PM, Russell Keith-Magee wrote: > > On Mon, Aug 3, 2009 at 7:48 PM, Ivan Sagalaev > wrote: >> In this vein I propose to teach CursorDebugWrapper to log SQL queries >> into a named logger instead of storing them into connection.queries. >> Before writing a p

On [Django] #5833: Custom FilterSpecs

2009-08-03 Thread Yuri Baburov
Hi devs, What do you think, is it a good idea to integrate django-filter by Alex Gaynor into django admin instead of [Django] #5833: Custom FilterSpecs which have now 15 people in cc: already? App is looking nice, and working pretty fine as a foreign library, but using it from django.contrib.ad

Re: Feeds as views.

2009-08-03 Thread Zellyn Hunter
On Aug 3, 9:40 am, Russell Keith-Magee wrote: >  * Parameterized feeds. >  * Named urls. >  * Making individual feed views decoratable Should all just work, by making them normal views. > some code missing (at the very least, documentation) Definitely — I was attempting to make the smallest poss

Re: Feeds as views.

2009-08-03 Thread Ben Firshman
On 3 Aug 2009, at 14:50, Alex Gaynor wrote: > > Ben Firshman has written similar code that is backwards compatible > with the current implementation: > http://github.com/bfirsh/syndication-view/tree/master > > Alex I started going through all the syndication tickets and fixing them too, notabl

CSRF proposal and patch ready for review

2009-08-03 Thread Luke Plant
Hi all, Some big changes to the CSRF protection nearly got in to Django 1.1, but didn't. Since then, more work has been done, overhauling the whole thing really. There has been a huge amount of discussion on mailing lists and tickets, so I've put together what I consider to be the conclusio

Re: IntegrityError is not more an attribute of model?

2009-08-03 Thread Alex Gaynor
On Mon, Aug 3, 2009 at 9:02 AM, dnedbaylo wrote: > > Hey All, > > I have a model with unique field. Here is what i get when i try to > save record with not-unique field value: > from psdj.ksel import models try: > ...   m = models.Keyword(phrase='insurance') > ...   m.save() > ... except

IntegrityError is not more an attribute of model?

2009-08-03 Thread dnedbaylo
Hey All, I have a model with unique field. Here is what i get when i try to save record with not-unique field value: >>> from psdj.ksel import models >>> try: ... m = models.Keyword(phrase='insurance') ... m.save() ... except models.Keyword.IntegrityError, e: ... print e ... Traceback (mos

Re: Logging instead of connection.queries

2009-08-03 Thread Russell Keith-Magee
On Mon, Aug 3, 2009 at 7:48 PM, Ivan Sagalaev wrote: > > Hello! > > A couple of days ago a sudden thought has struck me while thinking on > the matter of logging in Python libraries. I consider a good practice > for a library to log what it's doing into a named logger without setting > up logging

Re: Feeds as views.

2009-08-03 Thread Russell Keith-Magee
On Mon, Aug 3, 2009 at 8:37 PM, zellyn wrote: > > [Hi folks. This is a re-post, now that 1.1 has been released.] > > Django's contrib.syndication app feels different from normal views, > using a dictionary and dispatching by slug, then finding objects by > splitting the rest of the URL into "bits"

Re: Feeds as views.

2009-08-03 Thread Alex Gaynor
On Mon, Aug 3, 2009 at 8:40 AM, Russell Keith-Magee wrote: > > On Mon, Aug 3, 2009 at 8:37 PM, zellyn wrote: >> >> [Hi folks. This is a re-post, now that 1.1 has been released.] >> >> Django's contrib.syndication app feels different from normal views, >> using a dictionary and dispatching by slug,

Feeds as views.

2009-08-03 Thread zellyn
[Hi folks. This is a re-post, now that 1.1 has been released.] Django's contrib.syndication app feels different from normal views, using a dictionary and dispatching by slug, then finding objects by splitting the rest of the URL into "bits". It takes surprisingly few changes to make Feeds respon

Logging instead of connection.queries

2009-08-03 Thread Ivan Sagalaev
Hello! A couple of days ago a sudden thought has struck me while thinking on the matter of logging in Python libraries. I consider a good practice for a library to log what it's doing into a named logger without setting up logging by itself. It's then a responsibility of an application that w

Re: Long-term direction for shortcuts

2009-08-03 Thread Ivan Sagalaev
Malcolm Tredinnick wrote: > As a general process, I'm inclined to think it's the wrong direction -- > making namespaces larger and larger. That way lies PHP or web2py. Having read your replies in this thread I refrain from speaking about general directions :-). This one was about particular issu

Re: Long-term direction for shortcuts

2009-08-03 Thread Malcolm Tredinnick
On Mon, 2009-08-03 at 10:06 +0400, Ivan Sagalaev wrote: > Brent Hagany wrote: > > The issue of making shortcuts better (and decreasing the number of > > imports in views.py files) was brought up at DjangoCon > > Another angle on the issue of reducing imports is that we can do it not > with short