Re: Some tickets that need love before 1.3 feature freeze.

2010-12-13 Thread Russell Keith-Magee
On Tue, Dec 14, 2010 at 11:34 AM, Tai Lee wrote: > There are a few tickets that I believe are or should be RFC that I > would like to see committed before the 1.3 feature freeze kicks in, > which I just heard was very soon now. If anyone has time, could they > please review the following and bump

Re: Python 3

2010-12-14 Thread Russell Keith-Magee
On Wed, Dec 15, 2010 at 6:52 AM, mofle wrote: > Is there any plan or roadmap for porting Django to Python 3? > > The latest info I could is from 1 year ago. Nothing has really changed since a year ago. Python 3 support is on our long term roadmap, but we're not planning to actively support Python

Re: Some tickets that need love before 1.3 feature freeze.

2010-12-14 Thread Russell Keith-Magee
On Wed, Dec 15, 2010 at 3:29 PM, Shai Berger wrote: > Hi, > > On Tuesday 14 December 2010, Russell Keith-Magee wrote: >> >> From an initial inspection, none of these tickets are subject to the >> feature freeze, because none of them are features. They're all bugs &

Re: Enabling context access in simple_tag

2010-12-15 Thread Russell Keith-Magee
On Wed, Dec 15, 2010 at 6:41 PM, Julien Phalip wrote: > On Dec 14, 7:34 pm, Christian Hammond wrote: >> On Dec 14, 12:02 am, Julien Phalip wrote: >> >> >> > On Dec 13, 10:16 am, Tai Lee wrote: >> >> > -snip- >> >> > > One suggestion from #1105 was to split out this functionality into >> > > ind

Re: Python 3

2010-12-15 Thread Russell Keith-Magee
On Wed, Dec 15, 2010 at 3:45 PM, sirex wrote: > On 15 Gruo, 01:51, Russell Keith-Magee > wrote: >> but we're not planning to actively support Python 3 any time soon. > > Why? Please search the archives, and the FAQ, for the answer to this question. It's been answere

Re: formsets should be iterable: closed [WONTFIX] -- why

2010-12-19 Thread Russell Keith-Magee
On Thu, Dec 16, 2010 at 5:23 AM, KentH wrote: > Any chance this one (#16455) can be reviewed before feature freeze? Hi Kent, I've just committed this in r14986. Thanks for your work on this ticket. For future reference, I've left a couple of notes on the ticket explaining the relatively minor d

Re: Django support added to BuiltWith!

2010-12-19 Thread Russell Keith-Magee
On Monday, December 20, 2010, Yo-Yo Ma wrote: > UPDATE: > > The BuiltWith team has removed Django because there aren't enough > clues to accurately detect Django in some circumstances, and they > didn't want to give bad data. Instead, they've added > http://trends.builtwith.com/cms/Django-CSRF (wh

Re: Delete leads to IntegrityError (Trac Ticket #14896)

2010-12-20 Thread Russell Keith-Magee
On Mon, Dec 20, 2010 at 9:49 PM, thierry wrote: > Hi all, > > I've tested the django 1.3 alpha release, but it seems that's the > delete cascading rule doesn't work anymore when a class contains a > ManyToManyField pointing on a class having subclasses. Consequently, > I've created a ticket in dja

Re: RFC #9964 - fix "missing" db commits by forcing managed transactions to close

2010-12-21 Thread Russell Keith-Magee
On Wed, Dec 22, 2010 at 3:39 AM, Jacob Kaplan-Moss wrote: > On Thu, Nov 25, 2010 at 7:46 AM, Russell Keith-Magee > wrote: >> However, that doesn't mean we're completely prevented from making >> change. We could make this change under two circumstances. Either: > [

Re: USStateField (hopefully) one last time

2010-12-22 Thread Russell Keith-Magee
On Wednesday, 22 December 2010 at 8:24 PM, James Bennett wrote: > I've just opened ticket #14937[1] with a patch implementing what > seemed -- last time around -- to be the consensus fix for the ongoing > fracas that is the list of "state" choices in contrib.localflavor.us. > The patch attempts to

Re: Using asserts in test code

2010-12-25 Thread Russell Keith-Magee
On 25/12/2010, at 3:33 AM, Alex Gaynor wrote: > > > On Fri, Dec 24, 2010 at 12:56 PM, Will Hardy wrote: > Maybe we could add a keyword argument to Django's TestCase.assert*() methods > that raises an AssertionError instead of failing the test when the method's > condition is not met (I assu

Re: Question pertaining to availability of ``request`` throughout different scopes

2010-12-28 Thread Russell Keith-Magee
You are correct that threadlocal approaches are generally discouraged by the core team. A threadlocal is just a fancy word for a global variable, and should be discouraged for exactly the same reasons that globals are discouraged. As for "do we intend to solve this issue" -- you haven't been exact

Re: merge 2 views?

2010-12-29 Thread Russell Keith-Magee
On Wed, Dec 29, 2010 at 11:21 PM, Thom van Ledden wrote: > could anyone point me where i go wrong? (the main_page 's vars are the > ones i need, aside of title ofcourse) Well, the first place you went wrong was by posting to django-developers. This is a mailing list for discussing the development

Re: Need advice on ticket #14928 (manage runserver does not allow host name as address)

2010-12-30 Thread Russell Keith-Magee
2010/12/31 Łukasz Rekucki : > Hi, > > I'm not sure about resolution for this ticket[1]. Initially this looks > like a regression. On the other hand, it was never documented that > "runserver" accepted anything other than an IP:port pair. > > I don't know how many people actually used that feature (

Re: Style guide for section headers in docs?

2011-01-01 Thread Russell Keith-Magee
On Sunday, January 2, 2011, Adam V. wrote: > The Django docs prefer "First word only" capitalization, though there > are some cases where seemingly random words are also capitlized, > "Views" in a couple headers here for instance: > http://docs.djangoproject.com/en/dev/topics/http/views/ > > Just

Re: Add admin.py if it is installed when you run startapp.

2011-01-02 Thread Russell Keith-Magee
On Sunday, January 2, 2011, James Hancock wrote: > Django-dev, > > I know this is probably just lasy, but can we have startapp check if admin is > installed and if it is, add an admin.py file? > > If it isn't safe to assume then I understand not doing it, but it seems that > if you have the admi

Re: Remove admonition in admin docs?

2011-01-02 Thread Russell Keith-Magee
On Mon, Jan 3, 2011 at 1:13 AM, Adam V. wrote: > Since older "versionadded/changed" tags were dropped in 1.3, should > the admonition mentioning 0.96 on top of the admin docs also be > dropped? > >    "The admin site has been refactored significantly since Django > 0.96." > > http://docs.djangopro

Re: Problem with ``Model.objects.create``

2011-01-02 Thread Russell Keith-Magee
On Mon, Jan 3, 2011 at 7:46 AM, Yo-Yo Ma wrote: > I apologize ahead of time, if this bug is rather a user error. > > If you have a model: > > class Foo(Model): >    spam= CharField(max_length=30) >    xyz= CharField(max_length=30) > >    def __unicode__(self): >        return self.xyz > > and you

Re: Doc idea: Split request & response?

2011-01-03 Thread Russell Keith-Magee
On Tue, Jan 4, 2011 at 1:13 AM, Adam V. wrote: > The request & response docs for 1.3 look like: >    Reference: Request/response objects | TemplateResponse objects > > > The first link has requests, associated request objects, and > responses. The second link has new derived response objects. > >

Re: AttributeError: module 'object' has no attribute events

2011-01-03 Thread Russell Keith-Magee
On Tue, Jan 4, 2011 at 2:07 AM, Yo-Yo Ma wrote: > I would head over the the django-users list (this one's for > development on Django itself): http://groups.google.com/group/django-users/ > Also, you might try Stack Overflow. It's a great place to get quick > answers. You might also try the djang

Re: Namspace packages in Django

2011-01-04 Thread Russell Keith-Magee
On Wed, Jan 5, 2011 at 4:15 AM, Nils Fredrik Gjerull wrote: > Hi, Django folks! > > This is my first time posting on the Django developer list. Thanks for > an amazing framework. > > The Distribute build system supports namespaced packages > (http://packages.python.org/distribute/setuptools.html#n

Regressions in 1.2.4

2011-01-05 Thread Russell Keith-Magee
Hi all, As I just noted on a blog entry, I've tagged the 1.3 release blocking bugs in Trac: http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&keywords=%7Eblocker Most of these are fairly minor issues. However, there are 5 tickets that are regressions from 1.2.3 to 1.

Opinions on #15012 -- cache_page and TemplateResponse incompatibilities

2011-01-05 Thread Russell Keith-Magee
Hi all, Ticket #15012 highlights that you can't use a cache_page decorators on pages that return a TemplateResponse. The problem goes like this: * A decorator operates on the output of a function * cache_page stores the output of a function so it can be used in the future instead of invoking th

Re: Opinions on #15012 -- cache_page and TemplateResponse incompatibilities

2011-01-05 Thread Russell Keith-Magee
On Thu, Jan 6, 2011 at 4:48 AM, Florian Apolloner wrote: > Hi, > > Option (5) sounds great; but if you want backwards compat option (1) > is the only way to go. cache_page isn't the only decorator affected by > this problem; I could imagine there are many decorators in 3rd party > apps which try t

Re: ImageField documentation clarification

2011-01-06 Thread Russell Keith-Magee
On Thu, Jan 6, 2011 at 6:06 PM, James Hancock wrote: > I am very new to Django, and so I spend a lot of time in the documentation. > The other day I found something that I wished would have some more > clarification in retrospect, so I thought I would post it here. > > > My goal was to have the ad

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

2011-01-07 Thread Russell Keith-Magee
On Saturday, January 8, 2011, Jacob Kaplan-Moss wrote: > On Fri, Jan 7, 2011 at 10:11 AM, Jonathan S > wrote: >> Like {% include %} and {% extends %}, I think we can include two more >> template tags in Django's defaulttags for controlling the "render >> flow". Click the links below for a usage

Re: Ticket #14176

2011-01-09 Thread Russell Keith-Magee
On Mon, Jan 10, 2011 at 11:25 AM, Chris Haines wrote: > Hi Everyone, > I would like to start contributing patches to django and I had a question > about how to handle ticket #14176.  The gist of it is that the > settings.feeds dictionary changed from using a class object for values to > using an i

Re: Kilobyte or Kibibite

2011-01-12 Thread Russell Keith-Magee
On Wed, Jan 12, 2011 at 8:35 PM, Gabriel Hurley wrote: > Though technically accurate, I would say it goes against the rest of the > purpose of that filter: "human readable". > And though technically inaccurate, everyone from hard drive manufacturers to > major web companies use KB, MB, etc. to rep

Re: Kilobyte or Kibibite

2011-01-12 Thread Russell Keith-Magee
On Thu, Jan 13, 2011 at 10:40 AM, Richard Laager wrote: > On Wed, 2011-01-12 at 21:26 +0800, Russell Keith-Magee wrote: >> Until I start seeing kibibyte being used in the New York Times, or the >> prefered usage in the Chicago Manual of Style, the kibibyte is little >&g

Re: Inheritance on django model

2011-01-13 Thread Russell Keith-Magee
2011/1/13 Manuel Gonçalves - Analista de Sistemas IFPI : > Hi guys, mi first post on group, sorry for poor english. Hi Manuel, Django-developers is a mailing list for discussing the development of Django itself. If you want help structuring your models, you should post to django-users -- that's t

Re: Fixing a regression in FormWizard from #14498 in 1.2.X and 1.3

2011-01-13 Thread Russell Keith-Magee
On Fri, Jan 14, 2011 at 1:07 AM, Sta? Ma?olepszy wrote: > Hi, > > I saw the discussion about replacing the FormWizard in Django 1.4 in [1] and > while I haven't used django-formwizard yet, I'm looking forward to seeing > the new code in action. > > That said, I would like to bring to your attentio

Re: Feature suggestion: auto translate verbose names

2011-01-14 Thread Russell Keith-Magee
On Fri, Jan 14, 2011 at 10:00 PM, Klaas van Schelven wrote: > Hi, > > A lot of my models look like this > > class MyModel(models.Model): >    some_field = models.IntegerField(verbose_name=_("Some field")) >    some_other_field = models.IntegerField(verbose_name=_("Some other > field")) > >    clas

Re: TemplateResponse, url tag and custom urlconf

2011-01-14 Thread Russell Keith-Magee
On Fri, Jan 14, 2011 at 10:28 PM, Sayane wrote: > There is a problem with TemplateResponse and request.urlconf. Custom urlconf > is removed[1] before TemplateResponse is rendered[2]. This means that any > call to reverse() when rendering template will use default urlconf (from > settings). This ma

Re: i18n bug in inlines (failing silently)

2011-01-15 Thread Russell Keith-Magee
On Sat, Jan 15, 2011 at 9:14 PM, Marc Garcia wrote: > Hey guys, > > I just detected a bug, that causes inlines to "disappear" if there are > non-ascii characters on the inline data. I'm still working on > detecting what's going on, and I'll fill a bug ticket when having all > the information, but

Re: Feature request: post_form_save signal

2011-01-15 Thread Russell Keith-Magee
On Sun, Jan 16, 2011 at 12:49 PM, James wrote: > Hello All, > > I understand that feature requests are supposed to be posted to django- > developers, but I had a tentative patch, so I went ahead and opened a > ticket as well: http://code.djangoproject.com/ticket/15096 > > Just repeating the summar

Re: i18n bug in inlines (failing silently)

2011-01-17 Thread Russell Keith-Magee
On Mon, Jan 17, 2011 at 10:16 PM, Daniel Moisset wrote: > On Sat, Jan 15, 2011 at 9:23 PM, Marc Garcia wrote: >> Well, I still see that policy a way of hiding symptoms, more than an >> advantage for users, but thank you so much for the explanations >> Russell. >> > > I've also felt the same alway

Re: Should #14930 be reopened?

2011-01-18 Thread Russell Keith-Magee
On Wed, Jan 19, 2011 at 5:50 AM, wrote: > On Tue, Jan 18, 2011 at 10:23:33PM +0100, ??ukasz Rekucki wrote: >> On 18 January 2011 20:07,   wrote: >> > #14930 was closed wontfix blaming a buggy version of Python (2.6.1) for the >> > issue. ??I've reproduced the same issue on Python 2.6.6 and on 2.7

Re: Should #14930 be reopened?

2011-01-18 Thread Russell Keith-Magee
On Wed, Jan 19, 2011 at 10:07 AM, wrote: > > In that case, I would assume the test case in that bug submission is > sufficient > for the purpose at hand. Yes, the test case is sufficient. > If there's anything else I can do, let me know. Well... you could fix the bug :-) Russ %-) -- You re

Re: Questions about possible regression in recent changeset addressing cache

2011-01-23 Thread Russell Keith-Magee
On Sat, Jan 22, 2011 at 2:27 PM, Jim D. wrote: > Howdy, > > I reported a bug earlier today (http://code.djangoproject.com/ticket/ > 15144) related to a possible regression in changeset 15021 (http:// > code.djangoproject.com/changeset/15021). The apparent regression is > that as of this changeset,

Re: Cruft in __getstate__ method of django.db.models.fields.files.FieldFile?

2011-01-23 Thread Russell Keith-Magee
On Fri, Jan 21, 2011 at 5:50 AM, Alexey Toptygin wrote: > I've been reading django/db/models/fields/files.py to figure out how > FileFields work under the hood, and I've noticed a bit I don't > understand. The __getstate__ method of FieldFile does: > > return {'name': self.name, 'closed': False, '

Re: Feature request - add raw_post to test client

2011-01-23 Thread Russell Keith-Magee
On Mon, Jan 17, 2011 at 1:16 AM, Vincent wrote: > When looking through the test client I noticed that it requires a > dictionary and always uses multipart/form-data posts. Sometimes it's > helpful to use a raw post, instead. The flexibility allows you to just > post a string, use key-value pair fo

Re: Question on ForeignKey (on_delete=DO_NOTHING)

2011-01-23 Thread Russell Keith-Magee
On Mon, Jan 24, 2011 at 3:26 PM, Rahul wrote: > Hi, > >  I am working on upgrading DB2 Django adaptor for 1.3. I had a small > question on the above. As per the docs of 'DO_NOTHING', you mention > 'IF' your DB backend enforces referential integrity, this will cause > an IntegrityError. > http://do

Re: Question on ForeignKey (on_delete=DO_NOTHING)

2011-01-24 Thread Russell Keith-Magee
On Mon, Jan 24, 2011 at 4:51 PM, Rahul wrote: > Can you let me know how i can specify that this test case should not > be run, when i run the inbuilt unit test-cases. Currently i just run > them like this 'python runtests.py --setting=settings' http://docs.djangoproject.com/en/dev/internals/contr

Re: One Django instance, hundreds of websites

2011-01-25 Thread Russell Keith-Magee
On Tue, Jan 25, 2011 at 10:56 PM, Jari Pennanen wrote: > Hi! > > I'm on a monumental task here, I've decided to get one Django instance > running hundreds of websites. > > I've run in to couple of shortcomings with django: > > 1. Global SITE_ID does not work since some requests belong to > differe

Re: One Django instance, hundreds of websites

2011-01-25 Thread Russell Keith-Magee
2011/1/25 Łukasz Rekucki : > On 25 January 2011 16:15, Russell Keith-Magee wrote: >> >> For the next couple of weeks the core developers will be a little busy >> finalizing the 1.4 release; > > That is obviously supposed to be 1.3 ;) Erm... ahh... No... I'm writi

Re: Ticket #15124: BooleanField should not use False as default (unless provided)

2011-01-26 Thread Russell Keith-Magee
On Fri, Jan 21, 2011 at 7:35 AM, Karen Tracey wrote: > On Thu, Jan 20, 2011 at 4:52 PM, Chris Beaven wrote: >> >> For good or bad, in Django a BooleanField is only ever supposed to be True >> or False. >> A default of False seems the logical equivalent to the default of '' on a >> not-null CharFi

Re: Admin DateTimeShortcuts performance (feature request / improvement suggestion)

2011-01-28 Thread Russell Keith-Magee
On Fri, Jan 28, 2011 at 10:18 PM, Fabian Büchler wrote: > Hello Django developers, > > as this is my first post here, let me shortly introduce myself: > I'm Fabian Büchler, webdeveloper from Vienna, Austria; relatively new to > Django and just thinking about hacking on Django itsself ... > I've re

Re: #15183: wont fix follow up

2011-01-28 Thread Russell Keith-Magee
On Fri, Jan 28, 2011 at 11:05 PM, Sergiy Kuzmenko wrote: > A couple of points regarding this: > http://code.djangoproject.com/ticket/15183#comment:1. > > If nulls should not be counted then then they should be excluded from > results but they are not. > > You always get an entry for nulls (if they

Re: Google Summer of Code 2011

2011-01-29 Thread Russell Keith-Magee
2011/1/29 Lauri Võsandi : > Hello, > > GSoC was just announced few days ago. Is Django going to participate > on GSoC as mentoring organization? Related blogpost is here: > > http://google-opensource.blogspot.com/2011/01/google-summer-of-code-announced-at-lca.html Yes, we do intend to participate.

Re: One Django instance, hundreds of websites

2011-01-29 Thread Russell Keith-Magee
On Sat, Jan 29, 2011 at 8:55 PM, Jari Pennanen wrote: > Certainly something new for me. > > That does look like a rather cool. Essentially if that works one could > save even the request object to thread "global" and it would be > accessible anywhere. ... and this is one of the biggest reasons wh

Re: ANN: Server upgrade on djangoproject.com

2011-01-29 Thread Russell Keith-Magee
On Sat, Jan 29, 2011 at 5:45 AM, Jacob Kaplan-Moss wrote: > On Fri, Jan 28, 2011 at 3:33 PM, Jacob Kaplan-Moss wrote: >> I'm starting the switchover to the new djangoproject.com server right >> now. Might be around 5 mins of downtime or so. > > Migration should be complete now. I'm still cleaning

Re: ANN: Server upgrade on djangoproject.com

2011-01-30 Thread Russell Keith-Magee
On Sun, Jan 30, 2011 at 2:11 PM, Russell Keith-Magee wrote: > On Sat, Jan 29, 2011 at 5:45 AM, Jacob Kaplan-Moss wrote: >> On Fri, Jan 28, 2011 at 3:33 PM, Jacob Kaplan-Moss >> wrote: >>> I'm starting the switchover to the new djangoproject.com server right >&

Re: settings.py should have way to hide key/values even when debug set True

2011-01-31 Thread Russell Keith-Magee
On Tue, Feb 1, 2011 at 12:12 AM, Horst Gutmann wrote: > On Mon, Jan 31, 2011 at 5:02 PM, Matteius wrote: >> I think it would be really useful to have a way (possibly a decorator >> such as @hide_setting) such as to protect deployed sites when they >> switch over to debug mode.  To me this would b

Re: Various small issues

2011-01-31 Thread Russell Keith-Magee
On Tue, Feb 1, 2011 at 7:47 AM, Stephen Kelly wrote: > Klaas van Schelven wrote: > >> Hi all, >> >> Maybe I wasn't clear enough last time... I've provided patches for >> both these old problems and would appreciate either a brutal Linus >> style rant for being such an idiot or would like to see th

Re: Pluggable models

2011-01-31 Thread Russell Keith-Magee
On Tue, Feb 1, 2011 at 9:22 AM, David Greisen wrote: > Dear List, > > This is my first time writing to the list. I've been working with Django for > the last two years and recently started hacking on Django itself. > > For a while I have felt restricted by the fact that I cannot replace the > user

Re: Various small issues

2011-01-31 Thread Russell Keith-Magee
On Tue, Feb 1, 2011 at 11:45 AM, Brian Neal wrote: > On Jan 31, 7:35 pm, Russell Keith-Magee > wrote: >> >> The core team aren't the only people who can review tickets. In fact, >> all you need is for someone who isn't you to review your ticket and >

Re: ForbiddenMixin for Django?

2011-02-03 Thread Russell Keith-Magee
On Thu, Feb 3, 2011 at 4:47 PM, Jari Pennanen wrote: > "Meh - this seems like reinventing a syntactic wheel to me. Python > 2.6 > has class decorators." - Russel The pair of Ls in my email address aren't just there for show. Russell. Two Ls. > Why to use decorators? They cannot be overridden nea

Re: django/db/models/sql/where.py: line 215

2011-02-06 Thread Russell Keith-Magee
On Thu, Feb 3, 2011 at 6:40 AM, Sneaky Wombat wrote: > I'm not sure what sort of answer this question will lead to, but here > goes. I know foreignkeys on separate databases isn't supposed to work, > according to the django docs, but I got it to work.  First off, I'm > using an old release (1, 2,

Re: Hello Django developers

2011-02-06 Thread Russell Keith-Magee
On Mon, Feb 7, 2011 at 6:24 AM, Juan Antonio Infantes wrote: > Hi, > > My name is Juan Antonio (aka ersame) from Spain and I am a computer science > student . I have been enrolled in some Django projects since September 2010. > > I think it’s time to start contributing in this amazing project. I j

Re: Redesigned django community site displays old posts under new dates

2011-02-08 Thread Russell Keith-Magee
On Wed, Feb 9, 2011 at 12:02 AM, Robert wrote: > Hello, > > I don't know if this is the right place to report this issue, but I'll > try :) It's as good a place as any :-) > Redesigned django community site displays old posts under new dates. > Example: > >  - on the page http://www.djangoprojec

Re: contributing to django as a part of master thersis

2011-02-09 Thread Russell Keith-Magee
On Wed, Feb 9, 2011 at 8:44 AM, Bogdan Yakovenko wrote: > Dear Developers, > > My name is Bogdan Yakovenko and I'm a graduate student in Warsaw University, > Poland. I have recently completed my internship at Facebook inc and > currently thinking about writing my master thesis. I realized it would

Re: [Django Design] Inline debugging

2011-02-09 Thread Russell Keith-Magee
On Thu, Feb 10, 2011 at 3:21 AM, Sameer Rahmani wrote: > Hi, > > i was working in a project with a very complex logic, and i mixed up > with logical problems in the code. i used some debugging methods and > tools like ipdb, pdb.set_trace(), django-command-extension and etc. but > at last i end up

Re: contributing to django as a part of master thersis

2011-02-09 Thread Russell Keith-Magee
On Thu, Feb 10, 2011 at 5:45 AM, Thomas Adamcik wrote: > On Wed, Feb 9, 2011 at 12:00 PM, Russell Keith-Magee > wrote: >> Another interesting, but more complicated opportunity in this area >> would be asynchronous database calls [1], which some databases (by >> which I

Re: [Django Design] Inline debugging

2011-02-09 Thread Russell Keith-Magee
On Thu, Feb 10, 2011 at 12:46 PM, Sameer Rahmani wrote: > Hi Russell > > that patch is just a lazy code as i said before, but the idea will > implements in better ways. it will be a good idea to use such code in > development web server as an option. so user can easily use it, but using > hooks an

Re: Inheritance of rel fields from base classes should not cause conflicts if the base classes involved are all abstract.

2011-02-09 Thread Russell Keith-Magee
On Wed, Feb 9, 2011 at 1:43 AM, Stephen Burrows wrote: > Hi! I was going to submit this as a ticket, but I glanced over the patch > submission guidelines once more and this seems to fall under the category of > a "non-trivial change" that would require a design decision. The code > samples/traceba

Re: Design design needed: #14093 - Unable to create a new session key on higher traffic

2011-02-09 Thread Russell Keith-Magee
On Wed, Feb 9, 2011 at 12:08 AM, Ryan McIntosh wrote: > Hi, > > This could be done as an optional configuration with a hardcoded default of > 1.  Since no configuration change is necessary to retain original > behavior, than would this still qualify as a feature change? > > I think I will we

Re: Dropping support for old Python versions in Django 1.4

2011-02-09 Thread Russell Keith-Magee
2011/2/5 Łukasz Rekucki : > With Django 1.3 almost out, I would like to ask, what's the current > deprecation plan of old Python versions (namely 2.4 and 2.5). The > major argument against dropping 2.4 was RHEL support. RHEL6 seems to > support Python 2.6 (dunno about CentOS), so is that still a bl

Re: Design design needed: #14093 - Unable to create a new session key on higher traffic

2011-02-10 Thread Russell Keith-Magee
On Thu, Feb 10, 2011 at 7:36 PM, Tom Evans wrote: > On Thu, Feb 10, 2011 at 6:56 AM, Russell Keith-Magee > wrote: >> However, my concern here is that for any value of N, there will be >> some level of traffic that will render that N insufficient. I'm not >> fundamen

Re: GSoC 2011 student contribution

2011-02-10 Thread Russell Keith-Magee
On Thu, Feb 10, 2011 at 3:48 PM, Ben Ripkens wrote: > Hello Django developer community, > my name is Ben Ripkens and I'm planning to contribute to the Django > project through this years Google Summer of Code. I found the ideas page > for 2011 [1] and even though it seems not publicly available I'

Re: Pluggable encryption for django auth (design proposal)

2011-02-11 Thread Russell Keith-Magee
ilable natively. Of course, we will balance the value of a change against the cost of maintaining a local copy of that library, but to say that we won't do this at all is patently and demonstrably incorrect. Yours, Russell Keith-Magee -- You received this message because you are subscrib

Re: question about django.core.context_processors.PermWrapper

2011-02-13 Thread Russell Keith-Magee
On Sun, Feb 13, 2011 at 8:55 PM, Shailesh Kumar wrote: > Hi, > > I am new to this list. > > Looking at the source code I was curious why > django.core.context_processors.PermWrapper is in django.core. > > Is there any specific reason why it isn't moved to > django.contrib.auth.context_processors?

Re: ValueQuerySet should be serializable into json but isn't

2011-02-13 Thread Russell Keith-Magee
On Mon, Feb 14, 2011 at 9:55 AM, Matteius wrote: > I want to optimize my json call and protect data by doing something > like: > > >        assignments = Assignment.objects.values('id', > 'name').filter(course=enrollment.course) >        payload = serializers.serialize("json", assignments, >      

Re: ValueQuerySet should be serializable into json but isn't

2011-02-14 Thread Russell Keith-Magee
On Tue, Feb 15, 2011 at 1:51 AM, Matteius wrote: > Yes and I am stating that a ValueQuerySet seems related enough to > QuerySet that in Django default behavior should allow them to work > with Django serializers, and I'm not the only one to have assumed it > would!  Using Django serializes you'll

Re: Pluggable encryption for django auth (design proposal)

2011-02-14 Thread Russell Keith-Magee
On Tue, Feb 15, 2011 at 2:24 PM, Carl Meyer wrote: > Hi Paul, > > On Feb 14, 1:37 am, poswald wrote: >> * Django ships with SHA2-256, SHA2-512 or PBKDF2 by default. SHA2 is >> python 2.5 compatible (due to hashlib being added in python 2.5) and >> PBKDF2 is short enough that it could be included

Re: Pluggable encryption for django auth (design proposal)

2011-02-14 Thread Russell Keith-Magee
On Tue, Feb 15, 2011 at 3:29 PM, william ratcliff wrote: > Carl and Russ, > Thanks for the response!  Would you prefer that those of us interested in > working on this (pluggable user cryto-system) proceed from the trunk, or > from 1.2? New features are always applied to trunk, so if you're devel

Re: django.forms.fields.Field.localize to default to settings.USE_L10N

2011-02-15 Thread Russell Keith-Magee
On Tue, Feb 15, 2011 at 9:37 AM, Simon Charette wrote: > Hi, I encountered a problem with DecimalField and DECIMAL_SEPARATOR in the > admin which lead me > to a ticket [1] which was marked as worksforme. > > Well it wasn't quite workingforme so I tried to come up with a testcase > since the ticket

Re: Missing release notes for point releases (#15330)

2011-02-18 Thread Russell Keith-Magee
On Sat, Feb 19, 2011 at 11:16 AM, Jorge Vargas wrote: > On Feb 18, 11:10 pm, Carl Meyer wrote: >> Hi Russell et al, >> >> I don't agree with the wontfix resolution of #15330. I think the OP >> there is right - we should be consistent in providing release notes >> for all releases, even if they wo

Re: r15580 breaks change list result template overwrites

2011-02-19 Thread Russell Keith-Magee
On Sunday, February 20, 2011, Sean Brant wrote: > Looks like r15580 modified the way change list rows are returned. The > template used to just iterate over {{ result }} but now requires > iteration over {{ result.row }}.  This will breaking anyones templates > that happen to overwrite admin/chang

Re: r15580 breaks change list result template overwrites

2011-02-20 Thread Russell Keith-Magee
On Sun, Feb 20, 2011 at 7:43 AM, Russell Keith-Magee wrote: > On Sunday, February 20, 2011, Sean Brant wrote: >> Looks like r15580 modified the way change list rows are returned. The >> template used to just iterate over {{ result }} but now requires >> iteration over {{

Re: Suggestion: a new "nature" field in Trac

2011-02-21 Thread Russell Keith-Magee
On Tue, Feb 22, 2011 at 2:05 AM, Julien Phalip wrote: > Hello, > > I was wondering if others would find it useful to introduce a new > field in Trac to characterise the nature of a ticket, allowing to > choose from at least: "bug report", "feature request", or > "optimisation". I think this would

Re: Your thoughts on the Secure Web Application Framework Manifesto

2011-02-21 Thread Russell Keith-Magee
On Mon, Feb 21, 2011 at 11:21 PM, Rohit Sethi wrote: > Django devs, I wanted to thank you for a truly awesome framework. > Programming with Python, and web app dev in Django, is truly a > pleasure. Our company, Security Compass, uses Django quite > substantially internally. > > We put together a d

Re: Suggestion: a new "nature" field in Trac

2011-02-22 Thread Russell Keith-Magee
On Tue, Feb 22, 2011 at 3:49 PM, Julien Phalip wrote: > I know there already is a "Has patch" flag, but I actually find that > one a bit useless since there's no way to distinguish from the mass of > tickets where there are good, solid patches (whose authors themselves > think could be RFC or sim

Re: Suggestion: a new "nature" field in Trac

2011-02-22 Thread Russell Keith-Magee
On Tue, Feb 22, 2011 at 9:48 PM, Yishai Beeri wrote: > On Tue, 22 Feb 2011 13:22:30 +0200, Russell Keith-Magee > wrote: > >> On Tue, Feb 22, 2011 at 3:49 PM, Julien Phalip wrote: >> One Trac feature that I suspect *might* help in this regard is one >> that I've

Re: Multiple email connections

2011-02-22 Thread Russell Keith-Magee
On Wed, Feb 23, 2011 at 9:02 AM, Niran Babalola wrote: > Multiple databases and caches can currently be configured in one's > settings file. It'd be nice if the same could be done with email > connections. For example, Amazon's SES starts out new users with a low > quota that they gradually increa

Re: Delete cascade up for Inherited models

2011-02-22 Thread Russell Keith-Magee
On Mon, Feb 21, 2011 at 1:56 PM, Rahul wrote: > When i ran the test cases ( "modeltests/delete/ > test_inheritance_cascade_up" ) which were doing cascade up for > inherited models, it failed for DB2 cause of the fact that DB2 doesn't > support initial deferred constraint checks like behavior, henc

Re: render_to_* vs Template.render

2011-02-22 Thread Russell Keith-Magee
On Tue, Feb 22, 2011 at 6:41 AM, Chris Beaven wrote: > After hunting down a very elusive bug, I found the cause to be due to the > fact that render_to_string leaves the context in a different state than it > started (due to the context stack being pushed before rendering, and then > not popped). >

Re: Delete cascade up for Inherited models

2011-02-22 Thread Russell Keith-Magee
On Wed, Feb 23, 2011 at 2:39 PM, Alex Gaynor wrote: > > > On Wed, Feb 23, 2011 at 1:37 AM, Russell Keith-Magee > wrote: >> >> On Mon, Feb 21, 2011 at 1:56 PM, Rahul >> wrote: >> > When i ran the test cases ( "modeltests/delete/ >> > test_inhe

Re: Suggestion: a new "nature" field in Trac

2011-02-22 Thread Russell Keith-Magee
On Tue, Feb 22, 2011 at 10:36 PM, Daniel Moisset wrote: > On Tue, Feb 22, 2011 at 11:21 AM, Russell Keith-Magee > wrote: >> >> This is one of those areas where we need someone to step up an >> volunteer to do some Trac work and show us what is possible. >> >

Re: Suggestion: a new "nature" field in Trac

2011-02-22 Thread Russell Keith-Magee
On Wed, Feb 23, 2011 at 2:53 AM, Julien Phalip wrote: > On Feb 22, 3:22 am, Russell Keith-Magee > wrote: >> Like I have said many times in the past -- issuing queries to find >> tickets needing review isn't a problem we have. The information that >> is needed is all

Re: Missing semi-colon

2011-02-23 Thread Russell Keith-Magee
On Wed, Feb 23, 2011 at 8:24 PM, Jonathan S wrote: > 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 >

Re: Multiple email connections

2011-02-23 Thread Russell Keith-Magee
On Thu, Feb 24, 2011 at 1:44 AM, Luke Plant wrote: > On Tue, 2011-02-22 at 19:02 -0600, Niran Babalola wrote: >> Multiple databases and caches can currently be configured in one's >> settings file. It'd be nice if the same could be done with email >> connections. For example, Amazon's SES starts o

Re: CSRF_Token and Ajax

2011-02-23 Thread Russell Keith-Magee
On Thu, Feb 24, 2011 at 8:44 AM, Paul wrote: > Dear all, > > allow me to quickly introduce myself, my name is Paul, I'm a PhD > student from Germany and am playing around with django for mere joy > (procrastination). > > I have a quick question on why ticket #15352 ( > http://code.djangoproject.c

Re: Benchmarking change to query.get() #15361

2011-02-24 Thread Russell Keith-Magee
On Thu, Feb 24, 2011 at 11:15 PM, Jacob Kaplan-Moss wrote: > On Thu, Feb 24, 2011 at 4:59 PM, mmcnickle wrote: >> So there you have it, we have a small regression in performance for >> the most common case use, and a huge potential gain for the less used >> (and some would argue, badly designed)

Re: Control json serialization

2011-02-26 Thread Russell Keith-Magee
On Sun, Feb 27, 2011 at 5:23 AM, Alexander Bolotnov wrote: > Is there a way to control json serialization in django? Simple code below > will return serialized object in json: ... > You can see it's serializing it in a way that you are able to re-create the > whole model, shall you want to do this

Re: Customizable Serialization

2011-02-26 Thread Russell Keith-Magee
On Thu, Feb 24, 2011 at 10:24 PM, Vivek Narayanan wrote: > Hi, > > I am Vivek Narayanan, an undergrad student at IIT, Varanasi in India > and am interested in participating in this year's SoC Hi Vivek, and thanks for your interest in the GSoC! > Problem > > Django provides a seriali

Re: The XMLField ticket

2011-02-26 Thread Russell Keith-Magee
On Sun, Feb 27, 2011 at 3:31 AM, Jacob Kaplan-Moss wrote: > On Sat, Feb 26, 2011 at 11:47 AM, Paul McMillan wrote: >> We need to either deprecate it, provide some validation, or fix the >> docs to say it doesn't do anything. We can't fix the docs till we have >> a decision on this ticket. > > I s

Re: "needsinfo": resolution vs. triage stage

2011-02-26 Thread Russell Keith-Magee
On Sat, Feb 26, 2011 at 5:43 PM, Julien Phalip wrote: > On Feb 24, 7:17 pm, Gabriel Hurley wrote: >> In regards to #14702 , which so >> far has been a universally favored idea, there's one lingering issue: >> >> Do we want to implement it as a resolutio

Re: Trac components cleanup

2011-02-28 Thread Russell Keith-Magee
On Mon, Feb 28, 2011 at 4:13 PM, Julien Phalip wrote: > Hi, > > Tweaking Trac seems to be in the air, so I had some more ideas to > suggest :) > > The "component" field in Trac is very useful when people look for > tickets in their areas of familiarity/expertise. I think there are a > few things t

Re: type-field model inheritance

2011-03-03 Thread Russell Keith-Magee
On Thu, Mar 3, 2011 at 10:07 AM, Craig de Stigter wrote: > I realise everyone's been busy with getting 1.3 ready, but doesn't anyone > have thoughts on this? It's been two weeks ... Hi Craig, Thanks for the suggestion. As you've noted, we've been busy with the 1.3 release, which has been consumi

Re: Brute force attacks

2011-03-05 Thread Russell Keith-Magee
On Sat, Mar 5, 2011 at 5:56 AM, Rohit Sethi wrote: > Hi all, I wanted to revisit a key security discussion. Brute force > attacks are the 7th most prevalent attack by number of incidents in > the Web Hacking Incidents Database (http://projects.webappsec.org/w/ > page/13246995/Web-Hacking-Incident-

<    13   14   15   16   17   18   19   20   21   22   >