Re: Backwards compatibility and field validation

2013-10-17 Thread Anssi Kääriäinen
On Friday, October 18, 2013 5:28:21 AM UTC+3, Karen Tracey wrote: > > > On Wed, Oct 16, 2013 at 7:03 PM, Russell Keith-Magee < > rus...@keith-magee.com > wrote: > >> >>> 1) Without taking backwards compatibility into consideration, is it >>> reasonable to expect field validation automatically upon

Re: Backwards compatibility and field validation

2013-10-17 Thread Karen Tracey
On Wed, Oct 16, 2013 at 7:03 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > >> 1) Without taking backwards compatibility into consideration, is it >> reasonable to expect field validation automatically upon calling >> model.save() >> > > Yes. Based on the original discussions (as I re

Re: sensitive_post_parameters

2013-10-17 Thread Tim Graham
Posting some of the discussion from IRC: I've done some recent work with sensitive_post_parameters: https://github.com/django/django/commit/2daada800f8e28cc1ba664b3008efaefab8fb570 The general lesson I learned was blacklisting isn't a very comprehensive approach and there are definitely ways yo

Re: Django logo usage terms self-contradiction

2013-10-17 Thread Daniele Procida
On Fri, Oct 18, 2013, Russell Keith-Magee wrote: >Thanks for the heads up. The first piece of text you've indicated predates >the second, so it needed to be updated. I've just made the change. > >As for there being no Section 3.1 -- I'm not sure what you're referring to >here. I can see a Section

Re: Django logo usage terms self-contradiction

2013-10-17 Thread Russell Keith-Magee
Hi Daniele, Thanks for the heads up. The first piece of text you've indicated predates the second, so it needed to be updated. I've just made the change. As for there being no Section 3.1 -- I'm not sure what you're referring to here. I can see a Section 3 that contains 2 subsections, numbered 1

Re: Possible idea for removing global state in Django.

2013-10-17 Thread Shai Berger
On Thursday 17 October 2013 08:34:48 Aymeric Augustin wrote: > > For instance, thread locals are strictly equivalent to regular variables in > tests because they are single threaded (with a handful of exceptions). But > allowing testing in isolation is a major goal of "removing global state". If

Re: Backwards compatibility and field validation

2013-10-17 Thread Luciano Pacheco
A few cents... First, a project wide settings to control this behaviour would be complex with pluggable apps. Some apps might expect global valodation enabled, but some might expect it disabled. We should have model.save validating by default and have a flag to turn it off. I think it's reasonab

sensitive_post_parameters

2013-10-17 Thread Michael Manfre
I just discovered that using @method_decorator(sensitive_post_parameters()) doesn't properly cleanse request.POST for all of the traceback frames. Specifically, method_decorator's inner bound_func leaks the request because it is contained in the args2 variable and not named request. I plan on crea

[Announce] Expected djangoproject.com downtime tomorrow, Oct 18, starting 20:00 UTC

2013-10-17 Thread Jacob Kaplan-Moss
Hi folks - We'll be doing some work on djangoproject.com (and associated sub-sites) tomorrow, starting around 20:00 UTC. Expect some downtime, possibly as long as an hour or so, starting around then. During the downtime, as usual, you can find a mirror of Django's documentation on Read the Docs:

Django logo usage terms self-contradiction

2013-10-17 Thread Daniele Procida
"Additional text may not be added so that it appears to be part of the logo." section 3.2: "A group or event may use a logo that incorporates the Django logo by adding a word or picture [...]"

Re: Help related executing system command from django

2013-10-17 Thread Daniele Procida
On Thu, Oct 17, 2013, Jorge Cardoso Leitão wrote: >I suggest you to post your question in the django-users mailing list. >This mailing list is for the development of Django itself. The django-users list can be found at . The #django IRC channel on

Re: Help related executing system command from django

2013-10-17 Thread Jorge Cardoso Leitão
Hi Malhar. I suggest you to post your question in the django-users mailing list. This mailing list is for the development of Django itself. Thank you, Jorge On Oct 17, 2013, at 11:21 , Malhar Vora wrote: > Hello, > > I am executing a python script from django as described below. > > def exe

Help related executing system command from django

2013-10-17 Thread Malhar Vora
Hello, I am executing a python script from django as described below. def executeScript(request): ''' View to execute script from web interface ''' print "Execute script view called" basepath = os.path.dirname(os.path.abspath(__file__)) filepath = basepath + os.path.sep +

Re: ImportError: cannot import name actions

2013-10-17 Thread Marc Tamlyn
Can you perhaps try it with a check out of Django and use git bisect to find the cause? That might give us an indication of how the code base has changed to break it for you. Without a means of reproduction it is hard for us to do anything. Marc On 17 Oct 2013 09:12, "rok" wrote: > Hi everyone,

Re: An argument against mark_safe.

2013-10-17 Thread Bruno Renié
On Thu, Oct 17, 2013 at 10:06 AM, Daniele Procida wrote: > On Wed, Oct 16, 2013, Jonathan Slenders wrote: > >>Some people still have javascript in their templates and they use template >>tags inside their javascript. :( > > I am not sure if you're saying this is a bad thing, but it is unavoidable

Re: An argument against mark_safe.

2013-10-17 Thread Marc Tamlyn
Personally I tend to attach data attributes to the wrapping node for the map/chart at HTML escaped JSON and then read them from an external JS file. Especially as that js can be fairly complex it's best to keep it outside the template where it can be compressed. But we digress. I'm in favour of ma

Re: ImportError: cannot import name actions

2013-10-17 Thread rok
Hi everyone, unfortunately I am not able to reproduce it from a "scratch-point", I am sorry. Also, we are not using gunicorn, just apache+mod_wsgi. I read somewhere that this could be related to the python path so I checked it in dev and production environments, and simply set the same path in

Re: An argument against mark_safe.

2013-10-17 Thread Daniele Procida
On Wed, Oct 16, 2013, Jonathan Slenders wrote: >Some people still have javascript in their templates and they use template >tags inside their javascript. :( I am not sure if you're saying this is a bad thing, but it is unavoidable, isn't it? For example I use the Google Maps API, and I don't k