Re: 1.2 Proposal: Extra template tags and filters

2009-08-11 Thread Russell Keith-Magee
On Tue, Aug 11, 2009 at 11:20 PM, Andrew Gwozdziewycz wrote: > > On Tue, Aug 11, 2009 at 10:50 AM, Richard > Davies wrote: >> > I'm a fan of having more if tags, but am not a fan of having if tags that > require me to remember all of the suffixes. Perhaps a smarter if tag in > general would be bet

Re: App Engine support

2009-08-11 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 2:56 AM, mitch wrote: > > As a heavy SimpleDB user, I would love to see a way to use Django and > SimpleDB together and I would certainly be willing to devote time to > helping make that happen.  I think I can contribute on the SimpleDB > side (boto has supported SimpleDB f

Re: Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 3:11 AM, Mark Ferrer wrote: > Hi everyone, > This is my first time here, and I've been holding on to some code for a > custom model field type for a little while now. I call it a DictionaryField > and it takes a Python dictionary object and stores it in a database as a > te

Re: App Engine support

2009-08-11 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 1:49 AM, Waldemar Kornewald wrote: > > On Aug 11, 10:01 am, Malcolm Tredinnick > wrote: >> On Tue, 2009-08-11 at 00:03 -0700, Waldemar Kornewald wrote: >> > And these are just the first few issues we've run into when analyzing >> > the source. >> >> Most of those are the k

Re: Proposal for contrib feature (DictionaryField in models)

2009-08-11 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 9:02 AM, Jerome Leclanche wrote: > Might be slightly off-topic, but, if that's the main criterion, are we ever > going to include django-tagging in contrib? "Ever" is a very long time. I wouldn't be surprised if _eventually_ django-tagging is added to django.contrib. It is

Re: Admin interface not preventing simultaneous editing of the same record

2009-08-11 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 9:24 AM, David wrote: > > After being unable to get any advice or further information via > google, #django or the users' mailing list, I opened > http://code.djangoproject.com/ticket/11652 regarding the admin > interface not preventing simultaneous editing of the same reco

Re: Admin interface not preventing simultaneous editing of the same record

2009-08-11 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 10:55 AM, David wrote: > > > > On Aug 11, 10:29 pm, Russell Keith-Magee > wrote: > >> There are any number of ways to solve this problem by adding a field >> to the model (autofield with an 'edit number', timestamp tracking last

Re: 1.2 Proposal: django debug toolbar in contrib

2009-08-12 Thread Russell Keith-Magee
On Tue, Aug 11, 2009 at 11:59 PM, Rob Hudson wrote: > > On Tue, Aug 11, 2009 at 7:01 AM, Russell > Keith-Magee wrote: >> Firstly, there is the simple issue of ownership and copyright. >> Obviously, those that have written DDT components that are to be >> included need t

Re: Why does Django make it hard to debug tags?

2009-08-12 Thread Russell Keith-Magee
On Wed, Aug 12, 2009 at 9:45 AM, SmileyChris wrote: > > http://code.djangoproject.com/ticket/11461 > > DebugNodeList catches all exceptions, sticks them in a > TemplateSyntaxError, and stuffs the original exception in the new > exception. I'm not sure why this is done, but it breaks debugging and

Re: editing django-admin.py

2009-08-12 Thread Russell Keith-Magee
On Thu, Aug 13, 2009 at 12:51 PM, ashish tiwari wrote: > > > when i try to run the "django-admin.py" file in my pardus linux system > than i got the error"c:\python25\python.exebad interpreter" > something like this... >  i enter the command "whereis django-admin.py" > and i got the path w

Re: 1.2 Proposal: django debug toolbar in contrib

2009-08-13 Thread Russell Keith-Magee
On Thu, Aug 13, 2009 at 5:00 AM, Rob Hudson wrote: > > I'm not sure if this is the place but here are some other issues or > questions I have if this were to happen... This is as good a place as any. > * The jQuery question is a big one.  I've taken strides to make the > debug toolbar interopera

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-13 Thread Russell Keith-Magee
On Thu, Aug 13, 2009 at 12:04 AM, Michael Glassford wrote: > > http://code.djangoproject.com/ticket/7539 suggests a way to add On > Delete and On Update support to Django foreign key fields, and includes > a patch that implements the suggestions. At the time I submitted it, > getting Django 1.1 ou

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-13 Thread Russell Keith-Magee
On Fri, Aug 14, 2009 at 12:06 AM, Michael Glassford wrote: > > Russell Keith-Magee wrote: >> On Thu, Aug 13, 2009 at 12:04 AM, Michael Glassford >> wrote: >>> http://code.djangoproject.com/ticket/7539 suggests a way to add On >>> Delete and On Update suppo

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-13 Thread Russell Keith-Magee
On Fri, Aug 14, 2009 at 9:16 AM, Michael Glassford wrote: > > Russell Keith-Magee wrote: >>>> Secondly: I'm sensitive to the extent that 'on delete cascade' et al >>>> are phrased in SQL specific terms. I fully acknowledge the use case - >>>

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-14 Thread Russell Keith-Magee
On Sat, Aug 15, 2009 at 8:09 AM, hcarvalhoalves wrote: > > On Aug 13, 9:30 am, Russell Keith-Magee > wrote: >> On Thu, Aug 13, 2009 at 12:04 AM, Michael Glassford >> wrote: >> >> Secondly: I'm sensitive to the extent that 'on delete cascade' et

Re: admin reuse

2009-08-15 Thread Russell Keith-Magee
On Sat, Aug 15, 2009 at 3:52 PM, Haroldo Stenger wrote: >  I've seen the admin evolve to very sophisticated user interaction. > Nonetheless, the param to  HttpResponse() when a model object has been > saved, is hardcoded and most of the times "../../.." or "../.."  (see > options.py in contrib.adm

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread Russell Keith-Magee
On Sat, Aug 15, 2009 at 10:57 AM, Michael Glassford wrote: > > Russell Keith-Magee wrote: >> On Sat, Aug 15, 2009 at 8:09 AM, hcarvalhoalves >> wrote: >>> On Aug 13, 9:30 am, Russell Keith-Magee >>> wrote: >>>> On Thu, Aug 13, 2009 at 12:04 AM, M

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread Russell Keith-Magee
On Sat, Aug 15, 2009 at 10:46 PM, Michael Glassford wrote: > > Russell Keith-Magee wrote: >> On Sat, Aug 15, 2009 at 10:57 AM, Michael Glassford >> wrote: >>> Russell Keith-Magee wrote: >>>> On Sat, Aug 15, 2009 at 8:09 AM, hcarvalhoalves >>>

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-15 Thread Russell Keith-Magee
On Sun, Aug 16, 2009 at 1:45 AM, hcarvalhoalves wrote: > > On Aug 14, 11:48 pm, Russell Keith-Magee > wrote: >> On Sat, Aug 15, 2009 at 8:09 AM, hcarvalhoalves >> wrote: >> >> > On Aug 13, 9:30 am, Russell Keith-Magee >> > wrote: >> >

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-16 Thread Russell Keith-Magee
On Sun, Aug 16, 2009 at 12:31 PM, hcarvalhoalves wrote: > > On Aug 15, 8:53 pm, Russell Keith-Magee > wrote: >> On Sun, Aug 16, 2009 at 1:45 AM, hcarvalhoalves >> wrote: >> >> > On Aug 14, 11:48 pm, Russell Keith-Magee >> > wrote: >>

Re: #6148. Should database schemas be created as well?

2009-08-17 Thread Russell Keith-Magee
On Mon, Aug 17, 2009 at 11:12 PM, Ian Kelly wrote: > > On Mon, Aug 17, 2009 at 8:19 AM, kmpm wrote: >> >> I'm working on issue http://code.djangoproject.com/ticket/6148 and >> have some questions. >> >> If a db_schema is defined, should it be created automatically or >> should the user be required

Re: #11627: Test suites in test framework

2009-08-18 Thread Russell Keith-Magee
2009/8/18 Filip Gruszczyński : > > What I was thinking, is to provide all Test classes (both cases and > suites) as class attributes in a modified TestSuite. When such a > TestSuite is run using django framework, it would feed with proper > instances, basing on those classes. This way end user wou

Re: #11627: Test suites in test framework

2009-08-18 Thread Russell Keith-Magee
2009/8/18 Filip Gruszczyński : > >> I don't think I understand your proposal. An example would be >> extremely helpful here. Under your proposal, what would my new >> tests.py look like? How would I invoke a single test? A single test >> case? A single suite? > > That's not exactly my proposal. Pr

Re: Ticket #7539 (ON DELETE support) in Django 1.2?

2009-08-18 Thread Russell Keith-Magee
On Wed, Aug 19, 2009 at 1:43 AM, drakkan wrote: > > Hey guys, > > not a flame only a consideration: the best python orm/sql toolkit > (sqlalchemy) already support this and many many other features/ > database engines, why not move the efforts in sa integration? Using sa > in django is simple but a

Re: #11627: Test suites in test framework

2009-08-19 Thread Russell Keith-Magee
2009/8/19 Filip Gruszczyński : > > Still, I've got a question: if someone creates a suit through a > function, how should it be invoked? Only explicitly > app.module.suite_function or if run ./manage.py test should this suite > be also invoked (and then some tests will be run twice)? I see no rea

Re: Django 1.2 proposal: revisit admin autodiscover improvement for custom sites

2009-08-20 Thread Russell Keith-Magee
On Thu, Aug 20, 2009 at 8:36 AM, Brian Rosner wrote: > > > On Aug 19, 2009, at 3:32 PM, Manuel Saelices wrote: > >> This ticket was marked by duplicate of #8500, but I think #8572 >> approach is better (better explicit than implicit). Ticket number is >> not important, but I think that functionali

Re: Inline formsets

2009-08-20 Thread Russell Keith-Magee
On Sun, Aug 16, 2009 at 5:45 AM, mrts wrote: > > At HTML level, a form is a set of fields that gets submitted when > a the form submit button is pressed. > > However, this is not the case with model forms and inline formsets > (e.g. an admin page with inlines) -- inline formsets are > disparate fr

Re: #10355 Add support for email backends

2009-08-20 Thread Russell Keith-Magee
On Fri, Aug 21, 2009 at 12:34 PM, Andi Albrecht wrote: > > Hi, > > I'm interested in working on #10355 "Add support for email backends." > > IMHO it's an good idea to make the email backend configurable. There > are at least two use cases I can think of. The first is to send email > with other ser

Re: #10355 Add support for email backends

2009-08-21 Thread Russell Keith-Magee
On Fri, Aug 21, 2009 at 5:53 PM, Zachary Voase wrote: > > Hi Andi, > > On 21 Aug 2009, at 05:34, Andi Albrecht wrote: > >> Hi, >> >> I'm interested in working on #10355 "Add support for email backends." >> >> IMHO it's an good idea to make the email backend configurable. There >> are at least two

Re: #10355 Add support for email backends

2009-08-21 Thread Russell Keith-Magee
On Fri, Aug 21, 2009 at 8:24 PM, Andi Albrecht wrote: > > On Fri, Aug 21, 2009 at 7:23 AM, Russell > Keith-Magee wrote: >> A 'test email backend' (as well as a dummy no-mail-at-all backend, and >> a log-to-console/log-to-file backend) is a different way to target

Re: #10355 Add support for email backends

2009-08-22 Thread Russell Keith-Magee
On Sat, Aug 22, 2009 at 1:34 PM, Andi Albrecht wrote: > > On Fri, Aug 21, 2009 at 1:45 PM, Russell > Keith-Magee wrote: >> >> On Fri, Aug 21, 2009 at 5:53 PM, Zachary >> Voase wrote: >>> >>> Hi Andi, >>> >>> On 21 Aug 2009, at 05:34

Re: USStateField (again)

2009-08-22 Thread Russell Keith-Magee
On Sat, Aug 22, 2009 at 7:49 PM, Tim Chase wrote: > > James Bennett wrote: >> The current proposal is for a "USPostalCodeField" which >> corresponds to the US Postal Service's list of postal codes: >> >> http://www.usps.com/ncsc/lookups/abbr_state.txt >> >> [snip] Based on the various arguments up

Re: Request for comments on patch

2009-08-22 Thread Russell Keith-Magee
On Sat, Aug 22, 2009 at 9:14 PM, Manoj Govindan wrote: > > I recently came across a django ticket dealing with a pet issue of > mine. I thought of expediting the chances of a fix by writing up a > patch myself. > > Ticket: http://code.djangoproject.com/ticket/5416 > > I would like to know what ex

Re: On returning appropriate subclass instances when querying a model with subclasses

2009-08-23 Thread Russell Keith-Magee
On Sun, Aug 23, 2009 at 9:18 AM, Andrea Zilio wrote: > > Hi all, > > Here's what I'm talking about: > You have 3 models: Place, Restaurant and Cinema where Restaurant and > Cinema both inherits from Place. > So in the database you have some simple places, some places which > really are Cinemas and

Re: On returning appropriate subclass instances when querying a model with subclasses

2009-08-23 Thread Russell Keith-Magee
On Sun, Aug 23, 2009 at 11:00 PM, Andrea Zilio wrote: > > Great, but that wasn't exactly what I was looking for. > > What I need is a way to get the right instances from a *single* query. > > This means that I should do LEFT JOINS on direct subclasses of the > base class. > > What I need to know i

Re: Ticket #9150 needs design decision: Generic views should accept arguements for form_class

2009-08-24 Thread Russell Keith-Magee
On Mon, Aug 24, 2009 at 1:40 PM, tom wrote: > > Hi, > > The form_class property for generic views such a > django.views.generic.create_update.* should accept either a ModelForm? > class or a ModelForm? object. This would allow generic "wrapper views" > to easily inject run-time data into the form

Re: On returning appropriate subclass instances when querying a model with subclasses

2009-08-24 Thread Russell Keith-Magee
On Mon, Aug 24, 2009 at 9:14 AM, Andrea Zilio wrote: > > So the answer to the question "Can I get the right instances with one > single and only DB query" seems to be: > "No, you cannot do so without touching the Django orm code". > > Am I right? If, by "one single and only DB query", you mean a

Re: #11775 ABSOLUTE_URL_OVERRIDES doesn't work for the majority of contrib models

2009-08-24 Thread Russell Keith-Magee
On Mon, Aug 24, 2009 at 5:09 AM, Jukka wrote: > > Hi all, > > I've been working with Django for a bit now, and decided to try > contributing, by submitting a patch to fix a problem I ran into at > work. This seems like something that requires a design decision. > > So, what do you think? On the w

Re: #10355 Add support for email backends

2009-08-24 Thread Russell Keith-Magee
On Mon, Aug 24, 2009 at 8:47 PM, Andi Albrecht wrote: > > I've attached a patch to the issue on the tracker. The patch splits up > the mail module into a package and provides the backend functionality. > Documented functions and classes are of course available in the > top-level module. Undocument

Re: USStateField (again)

2009-08-25 Thread Russell Keith-Magee
On Tue, Aug 25, 2009 at 11:08 AM, ch...@moffitts.net wrote: > > > > On Aug 22, 8:12 am, Russell Keith-Magee > wrote: >> On Sat, Aug 22, 2009 at 7:49 PM, Tim >> >> Chase wrote: >> >> > James Bennett wrote: >> >> The current proposal is

Re: Feature proposal: Test client form value extraction

2009-08-26 Thread Russell Keith-Magee
On Wed, Aug 26, 2009 at 4:41 PM, Joshua Russo wrote: > I figured someone had done this at some time. > What's the general consensus on when some thing like this should > be considered to be added to the project and when it should just stay as an > outside utility? It's certainly worth putting up

Re: App Engine support

2009-08-27 Thread Russell Keith-Magee
On Fri, Aug 28, 2009 at 5:54 AM, Waldemar Kornewald wrote: > > The active contributors currently are: > * Andi Albrecht (working on email backend support) > * Thomas Wanschik (my colleague) > * Waldemar Kornewald (that's me ;) > > Since we're all busy guys who can't work full-time on this project

Re: App Engine support

2009-08-27 Thread Russell Keith-Magee
On Fri, Aug 28, 2009 at 6:01 AM, Waldemar Kornewald wrote: > > On Aug 27, 11:54 pm, Waldemar Kornewald wrote: >> We also have a few other potential contributors on our list, but right >> now they're too busy or not ready for contributing, yet: >> * Thomas Bohmbach (from Giftag) >> * Curtis Thomps

Re: CSRF proposal and patch ready for review

2009-08-29 Thread Russell Keith-Magee
On Sun, Aug 30, 2009 at 3:10 AM, Luke Plant wrote: > > Can I have some feedback on this please? ... > As far as I'm concerned, this is ready for checkin, except that I > haven't had *any* recent feedback or thumbs up etc. from the list or > other core devs. Apologies, Luke. I had this one flagged

Re: CSRF proposal and patch ready for review

2009-08-30 Thread Russell Keith-Magee
On Mon, Aug 3, 2009 at 11:25 PM, Luke Plant wrote: > > 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 ticke

Re: App Engine support

2009-08-30 Thread Russell Keith-Magee
On Mon, Aug 31, 2009 at 2:54 AM, sjtirtha wrote: > > Hi, > > From this point of view, I would propose, to make a new Model that > supports non SQL DB. > So developer can decide whether they want to store the object in SQL > or in non SQL DB. There are two problems here: 1. You want Django to be

Re: App Engine support

2009-08-30 Thread Russell Keith-Magee
On Mon, Aug 31, 2009 at 2:48 AM, sjtirtha wrote: > > Hi, > > I'm starting using CouchDB with Python. > Django db models always work with Queries. I can understand this, > because SQL is a query language. > However, the non sql DBs do not always have the concept of queries. > For example, in CouchD

Re: App Engine support

2009-08-30 Thread Russell Keith-Magee
On Sun, Aug 30, 2009 at 8:52 PM, Waldemar Kornewald wrote: > > On Aug 28, 1:49 am, Russell Keith-Magee > wrote: >> To the extent that I'm in a position to provide design guidance and >> feedback from the perspective of the Django Core, put me on this list >> too.

Re: CSRF proposal and patch ready for review

2009-08-31 Thread Russell Keith-Magee
On Mon, Aug 31, 2009 at 8:45 PM, Luke Plant wrote: > > Thanks for your response Russell: > >> I've had a quick look at the patch, and found a few minor cosmetic >> things. I've also done a lot of reading of the archives to >> understand why the patch is the way it is. A comprehensive teardown >> o

Re: #10355 Add support for email backends

2009-09-02 Thread Russell Keith-Magee
On Wed, Sep 2, 2009 at 6:46 PM, Mat Clayton wrote: > I'm sure you have this covered but thought I would throw it into the mix. We > are currently having lots of problems with blacklisting and spam filters > blocking our email servers, one way we are investigating to avoid this is to > outsource th

Re: backend query_class() question

2009-09-02 Thread Russell Keith-Magee
On Wed, Sep 2, 2009 at 2:44 PM, Waldemar Kornewald wrote: > > Hi, > why does the backend's query_class() function get the default query > class as its parameter? Can't the backend just import BaseQuery? I'm > asking because with different BaseQuery implementations (for SQL and > non-SQL) there is

Re: backend query_class() question

2009-09-03 Thread Russell Keith-Magee
On Thu, Sep 3, 2009 at 4:21 PM, Waldemar Kornewald wrote: > > Also, when will your branch be merged into trunk? Is there any > roadmap? When It's Done (tm) :-) I would like to think this is on target for v1.2, but that does depend somewhat on solving one or two outstanding design issues. So, op

Re: manage.py reset and custom sql

2009-09-03 Thread Russell Keith-Magee
On Thu, Sep 3, 2009 at 5:10 PM, Anssi Kaariainen wrote: > > Hello all, > > The problem I am trying to solve is this: I have defined some views > and corresponding models with managed = False. Now when I issue > manage.py reset I get an error because the views block dropping the > tables. I need to

Re: Final Multi-DB status Update

2009-09-03 Thread Russell Keith-Magee
On Fri, Sep 4, 2009 at 7:14 AM, Craig Kimerer wrote: > I've spent a little time using this branch and looking at the possibility of > using it with my project.  Below is a short list of problems and ponies that > I have encountered (or want). > > 1. It'd be awesome if we could mark certain databas

Re: Final Multi-DB status Update

2009-09-03 Thread Russell Keith-Magee
On Fri, Sep 4, 2009 at 8:56 AM, Craig Kimerer wrote: > > > On Thu, Sep 3, 2009 at 5:00 PM, Russell Keith-Magee > wrote: >> >> On Fri, Sep 4, 2009 at 7:14 AM, Craig Kimerer >> wrote: >> > I've spent a little time using this branch and looking at t

Re: patch for # 7270, select_related cannot follow reverse one-to-one relationship

2009-09-04 Thread Russell Keith-Magee
On Fri, Sep 4, 2009 at 6:30 AM, Ben Davis wrote: > Hi I've submitted a patch for this bug that I'd like to have considered for > some trunk action...  I can't take the credit for all the work on this,  but > it seems I'm taking the initiative to get it resolved. ... which is exactly what is neede

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread Russell Keith-Magee
On Fri, Sep 4, 2009 at 7:19 PM, patrickk wrote: > > thanks for the reply. > > On 4 Sep., 13:02, Luke Plant wrote: >> On Friday 04 September 2009 10:00:37 patrickk wrote: >> >> > e.g, when I´m using djangos auth-app and I´m extending the user-model >> > with a user-profile, I´m having "auth" (with

Re: #4926, Ordering in admin listview ignores ordering in admin options

2009-09-04 Thread Russell Keith-Magee
On Thu, Sep 3, 2009 at 12:07 PM, bendavis78 wrote: > > This issue has been up with a patch for quite awhile,  and wanted to > get some feedback from some devs on this.   The fix is pretty simple, > and seems to work ok for me. > > Here's my thoughts on it:  When I specify ordering with multiple >

Re: #8010: adding support for multiple test files for applications

2009-09-04 Thread Russell Keith-Magee
On Fri, Sep 4, 2009 at 6:21 PM, Evgeny Sizikov wrote: > > Hi, > > I'd like the developers community to review the #8010 and the last > patch attached to the ticket. It still seems to me that it makes a > great sense and worth to make it go into the mainline Django. I echo Malcolm's comment when h

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread Russell Keith-Magee
On Fri, Sep 4, 2009 at 8:37 PM, patrickk wrote: > > fair enough. > > I don´t have a problem with just seperating INSTALLED_APPS from > ADMIN_APPS within the settings-file. I just thought another admin-file > is nicer (but that´s not the key argument of my proposal). > > INSTALLED_APPS = ( >    'dj

Re: proposal: decouple admin index page from INSTALLED_APPS

2009-09-04 Thread Russell Keith-Magee
On Sat, Sep 5, 2009 at 3:32 AM, James Bennett wrote: > > On Fri, Sep 4, 2009 at 2:21 PM, andybak wrote: >> 1. I think worrying about projects vs. apps is a red-herring. We are >> talking about a way to configure an admin app. There might be several >> of these on a 'site/project/whatever' > > Sinc

Re: django.core.urlresolvers reverse, args and kwargs (Ticket 8764)

2009-09-08 Thread Russell Keith-Magee
On Tue, Sep 8, 2009 at 12:35 PM, vegas wrote: > > Okay, so I've looked at the previous discussion on this topic, and the > code. Firstly let me say a big thank you to everyone who has worked on > Django, it's a fabulously useful piece of software, and a lot of fun > to work with. Hi Alex, Thanks

Re: backend query_class() question

2009-09-11 Thread Russell Keith-Magee
On Fri, Sep 11, 2009 at 2:51 PM, Waldemar Kornewald wrote: > > On Sep 3, 4:06 pm, Russell Keith-Magee wrote: >> Adding non-SQL backends into the mix complicates things a little >> further, since a query could be directed at a non-SQL backend. Working >> out exactly ho

Re: SoC merge plans?

2009-09-13 Thread Russell Keith-Magee
On Sun, Sep 13, 2009 at 1:36 AM, Alex Gaynor wrote: > > Hey! > > On Sat, Sep 12, 2009 at 6:40 AM, Jacob Kaplan-Moss wrote: >> >> Hi folks -- >> >> I'd like to start thinking about merging the SoC branches. As far as I >> can tell we've got solid, worth-merging work out of all six of 'em -- >> WO

Re: Integrating Django with Tornado's web server

2009-09-13 Thread Russell Keith-Magee
On Mon, Sep 14, 2009 at 4:30 AM, Bret Taylor wrote: > > I am one of the authors of Tornado (http://www.tornadoweb.org/), the > web server/framework we built at FriendFeed that we open sourced last > week (see http://bret.appspot.com/entry/tornado-web-server). > > I just checked in change to Torna

Re: CSRF proposal and patch ready for review

2009-09-15 Thread Russell Keith-Magee
On Mon, Sep 14, 2009 at 9:05 PM, Luke Plant wrote: > > On Monday 31 August 2009 15:26:42 Russell Keith-Magee wrote: > >>  3. CSRF is currently a contrib app. Why? CSRF control is the very >> model of a feature that shouldn't be decoupled from the base >> framewo

Re: Strange behaviour with exclude / filter and a nullable FK

2009-09-15 Thread Russell Keith-Magee
On Wed, Sep 16, 2009 at 3:19 AM, Marcob wrote: > > On Sep 15, 8:05 pm, Alex Gaynor wrote: > >> This has already been filed as a bug in Django's ticket >> tracker:http://code.djangoproject.com/ticket/10790.  In the future please try >> searching the tracker before filing a bug. > > Thanks Alex,

Re: SoC merge plans?

2009-09-17 Thread Russell Keith-Magee
On Thu, Sep 17, 2009 at 4:35 PM, Simon Willison wrote: > > On Sep 13, 12:52 pm, Russell Keith-Magee > wrote: >> Although the branch isn't ready for merge yet, the code that is >> present is all up to spec. I think the sprints have produced workable >> soluti

Re: CSRF proposal and patch ready for review

2009-09-17 Thread Russell Keith-Magee
On Thu, Sep 17, 2009 at 3:11 PM, Simon Willison wrote: > > On Sep 15, 2:57 pm, Luke Plant wrote: >> OK, I'll wait and see. > > Here's the code: http://github.com/simonw/django-safeform > >>  * it requires using Django's form system.  I've got plenty of views that >> don't (e.g. anything with a d

Re: Proposal for 1.2: built-in logging with django.core.log

2009-09-17 Thread Russell Keith-Magee
On Thu, Sep 17, 2009 at 6:53 PM, Ivan Sagalaev wrote: > > Hi Simon, > > Simon Willison wrote: >> 1. We'll be able to de-emphasise the current default "e-mail all >> errors to someone" behaviour, which doesn't scale at all well. > > In a recent thread[1] on a similar topic Russel has also emphasiz

Re: Proposal for 1.2: built-in logging with django.core.log

2009-09-17 Thread Russell Keith-Magee
On Thu, Sep 17, 2009 at 4:25 PM, Simon Willison wrote: > > I think we should add logging to Django in version 1.2, implemented as > a light-weight wrapper around the Python logging module > (django.core.log maybe?) plus code to write errors to the Apache error > log under the mod_python handler a

Re: patch for # 7270, select_related cannot follow reverse one-to-one relationship

2009-09-17 Thread Russell Keith-Magee
On Fri, Sep 18, 2009 at 2:49 AM, Ben Davis wrote: > I noticed this ticket is currently assigned to Malcolm; in the comments he > says it's on his list of patches to work on.   It looks like the last thing > he did was set the milestone to 1.2 back in March,  but haven't seen any > comments on the

Re: django + couchdb

2009-09-19 Thread Russell Keith-Magee
On Sat, Sep 19, 2009 at 5:08 PM, Suno Ano wrote: > > Hi folks, > > I was wondering, are there any plans to support couchdb [0] as > backend/database at some point? I don't want to seem rude, but a search of very recent activity in django-developers will answer your question http://groups.go

Re: CSRF proposal and patch ready for review

2009-09-19 Thread Russell Keith-Magee
On Fri, Sep 18, 2009 at 6:09 AM, Luke Plant wrote: > > Hi Simon, > > OK, here is my response.  I hope this doesn't turn into a personal my-code-vs- > your-code match (especially as most of "my code" is really other people's code > and ideas :-) but I want to make sure we do this right, as it pote

Re: Django error

2009-09-20 Thread Russell Keith-Magee
On Sun, Sep 20, 2009 at 2:49 PM, zweb wrote: > > When I try to download a file through django in IE , I get > > [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1]     response = > func(request, response), referer: http://www.com > [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1]   Fil

Re: #9194: Allow additional hashing algorithms for passwords

2009-09-20 Thread Russell Keith-Magee
On Fri, Sep 18, 2009 at 10:29 PM, PiotrLegnica wrote: > > Hi. There is a feature described in a ticket #9194[1], which has been > marked as 'Design decision needed'. > > Is it still being discussed, or has it been forgotten completely? I'm > working on a patch for myself, but I'm not sure whether

Re: django.core.urlresolvers reverse, args and kwargs (Ticket 8764)

2009-09-20 Thread Russell Keith-Magee
On Tue, Sep 8, 2009 at 12:35 PM, vegas wrote: > > Okay, so I've looked at the previous discussion on this topic, and the > code. Firstly let me say a big thank you to everyone who has worked on > Django, it's a fabulously useful piece of software, and a lot of fun > to work with. > > By my lights

Re: SoC merge plans?

2009-09-20 Thread Russell Keith-Magee
On Fri, Sep 18, 2009 at 5:30 PM, Waldemar Kornewald wrote: > > On Sep 17, 1:48 pm, Russell Keith-Magee > wrote: >> My hesitation here is that there one of the outstanding changes is a >> fairly big refactor of the way the SQL backend handles queries, and I >> want to

Re: Session/cookie based messages (#4604)

2009-09-20 Thread Russell Keith-Magee
On Fri, Sep 11, 2009 at 7:00 AM, Tobias wrote: > > In the spirit of Russell's No! Bad Pony! talk at DjangoCon I'd like to > start a conversation about cleaning up session messages enough to get > them into core or contrib.  Alex suggested that the ticket (http:// > code.djangoproject.com/ticket/4

Re: django.core.urlresolvers reverse, args and kwargs (Ticket 8764)

2009-09-20 Thread Russell Keith-Magee
On Sun, Sep 20, 2009 at 10:44 PM, vegas wrote: > > Cool, will do.   I guess the earliest release this could get into > would be django 1.2? > > Looking at http://docs.djangoproject.com/en/dev/internals/contributing/ > , it seems to me like this would definitely be considered a non- > trivial patc

Re: Session/cookie based messages (#4604)

2009-09-20 Thread Russell Keith-Magee
On Mon, Sep 21, 2009 at 6:13 AM, Chris Beaven wrote: > >> One of the questions that needs to be answered >> is "why should [a session based notification system] be shipped with Django?" > >> Another piece of the puzzle that is missing from my perspective is any >> discussion of how session-based

Re: Looking for a project

2009-09-21 Thread Russell Keith-Magee
On Sun, Sep 20, 2009 at 11:29 PM, Daniel Watkins wrote: > > Hello all, > > As part of the third year of my computer science degree (at the > University of Warwick), I need to complete an individual project.  I'd > quite like to use this to do something for Django.  The project is meant > to be do

Re: SoC merge plans?

2009-09-21 Thread Russell Keith-Magee
On Mon, Sep 21, 2009 at 4:28 PM, Waldemar Kornewald wrote: > > On Sep 20, 1:54 pm, Russell Keith-Magee > wrote: >> Based on the discussion Alex and I had at the sprints, query_class() >> will still exist, but it will play a slightly different role - >> essentially, it

Re: CSRF proposal and patch ready for review

2009-09-21 Thread Russell Keith-Magee
On Sun, Sep 20, 2009 at 2:57 AM, Luke Plant wrote: > > On Saturday 19 September 2009 16:56:52 Russell Keith-Magee wrote: > >> On Fri, Sep 18, 2009 at 6:09 AM, Luke Plant wrote: >> >  If the target of a is internal: >> >   * add {% load csrf %} to the template

Re: CSRF proposal and patch ready for review

2009-09-22 Thread Russell Keith-Magee
On Tue, Sep 22, 2009 at 10:34 AM, Luke Plant wrote: > > OK, you convinced me.  I really would rather this wasn't baked in, but given > the migration issues and the fact that it is security related, I guess I can > stomach it. > > I've updated the patch [1] to move things to builtin functionality.

Re: Session/cookie based messages (#4604)

2009-09-22 Thread Russell Keith-Magee
On Wed, Sep 23, 2009 at 1:55 AM, Tobias McNulty wrote: > Vaclav, > I think this is less of an issue, because you'd have to switch to another > tab and perform a second operation that generated feedback in the ~200 > millisecond window of time between clicking a link and the new page loading. Ah.

Re: How to customize field to get the correct python value?

2009-09-24 Thread Russell Keith-Magee
On Fri, Sep 25, 2009 at 10:40 AM, Jay wrote: > > Hi there, > > I have a question on customize the db field. For this field, I want to > save integers in db, but want them to be my custom class when they are > used in Python code. In Django docs, it's said that I should set the > __metaclass__ to

Re: Adding signing (and signed cookies) to Django core

2009-09-24 Thread Russell Keith-Magee
On Fri, Sep 25, 2009 at 1:18 AM, Simon Willison wrote: > > As mentioned in the thread about cookie-based notifications, at the > DjangoCon Sprints I raised the subject of adding signing (and signed > cookies) to Django core. > > I've found myself using signing more and more over time, and I think

Re: django.template refactoring (again) #7806

2009-09-26 Thread Russell Keith-Magee
2009/9/26 Аркадий Левин : > > Pong. OK - that is rude and complety uncalled for. Johannes has gone to a lot of effort to make a complex proposal; if you aren't going to contribute back in kind, I would kindly ask you to keep your comments to yourself. Johannes - I apologize for not giving you fe

Re: Proposal: Better HTML4 support

2009-09-28 Thread Russell Keith-Magee
On Sun, Sep 27, 2009 at 1:34 AM, Rob Hudson wrote: > > On Sat, Sep 26, 2009 at 2:13 AM, Simon Willison > wrote: >> Yes - I looked briefly at how much work was involved in doing this and >> it's not insubstantial, which is why I opted for string replacement >> just to demonstrate the API. I'm co

Re: django.template refactoring (again) #7806

2009-09-28 Thread Russell Keith-Magee
On Fri, Aug 28, 2009 at 9:41 PM, Johannes Dollinger wrote: > > The proposal and motivation are essentially the same as in the last > thread [1] and the ticket description [2]. I put it on the 1.2 feature > list. > I tried to split my patch into smaller, more readable commits here:   > http://gith

Re: django.template refactoring (again) #7806

2009-09-28 Thread Russell Keith-Magee
On Tue, Sep 29, 2009 at 12:44 AM, Johannes Dollinger wrote: > >>> Variable and FilterExpression will be deprecated as they require the >>> caller to know the length of the expression in advance. >> >> I'm not sure I follow this assertion. I have no problem believing >> FilterExpression can be mad

Re: Model.objects.raw() (#11863)

2009-09-28 Thread Russell Keith-Magee
On Tue, Sep 29, 2009 at 9:29 AM, Alex Gaynor wrote: > > On Mon, Sep 28, 2009 at 9:24 PM, SeanOC wrote: >> >> Hello All, >> >> During the Djangocon sprints I started to work on a patch which would >> add a nicer interface for dealing with raw SQL queries.  While there I >> talked to RKM about whe

Re: admin - form instantiation add_view, change_view

2009-09-29 Thread Russell Keith-Magee
On Tue, Sep 29, 2009 at 3:51 PM, Peter Cicman wrote: > > Wouldn't it be handy to add get_form_instance function to ModelAdmin? > Currently there is function get_form, which actually returns > FormClass. This is then getting instantiated on several places. > Sometimes its important to have possibi

Re: Model.objects.raw() (#11863)

2009-09-29 Thread Russell Keith-Magee
On Tue, Sep 29, 2009 at 4:27 PM, David Reynolds wrote: > > Russ, > > On 29 Sep 2009, at 03:25, Russell Keith-Magee wrote: > >>  (1) know about the trick of instantiating an object with the >> unrolled list version of a cursor, and > > > Any chance you cou

Re: Proposal for 1.2: built-in logging with django.core.log

2009-09-29 Thread Russell Keith-Magee
On Tue, Sep 29, 2009 at 5:09 PM, Vinay Sajip wrote: > > On Sep 17, 3:04 pm, Russell Keith-Magee > wrote: >> In the absence of specifics, this makes me a little bit nervous. The >> Python logging interface may be very Java-heavy and complex, but it is >> a thorou

Re: Proposal for 1.2: built-in logging with django.core.log

2009-09-29 Thread Russell Keith-Magee
On Tue, Sep 29, 2009 at 9:00 PM, Waylan Limberg wrote: > > On Tue, Sep 29, 2009 at 4:36 AM, Vinay Sajip wrote: >> >> >> >> On Sep 17, 9:25 am, Simon Willison wrote: >>> Problems and challenges >>> === >>> >>> 1. The Python logging module isn't very nicely designed - its Java

Re: Adding an option to re-test only failed tests

2009-09-29 Thread Russell Keith-Magee
On Wed, Sep 30, 2009 at 3:47 AM, Simon Willison wrote: > > On Sep 29, 7:34 pm, Rob Madole wrote: >> TEST_RUNNER = 'django.contrib.test.nose.run_tests' >> >> There might be some futzy bits to make that actually work, but I think >> it'd doable. > > I'd love to see this working. Obviously this wou

Re: Proposal for 1.2: built-in logging with django.core.log

2009-09-30 Thread Russell Keith-Magee
On Tue, Sep 29, 2009 at 10:59 PM, Vinay Sajip wrote: > > On Sep 29, 1:53 pm, Russell Keith-Magee > wrote: >> >> However, since you're interested in feedback, my suggestion would be >> to look at every defense you've made of logging in this thread (and

Re: Model.objects.raw() (#11863)

2009-10-02 Thread Russell Keith-Magee
On Fri, Oct 2, 2009 at 7:35 PM, mrts wrote: > > Wishful thinking follows. > > It would be awesome if one could mix ordinary QuerySet methods > with raw() (or, rather, raw_extra(), see below for that). While I can see what you're aiming at here, I'm not really a fan of the idea. Django's ORM is

  1   2   3   4   5   6   7   8   9   10   >