Re: #10244 FileFields can't be set to NULL in the db

2009-02-20 Thread Alex Gaynor
On Fri, Feb 20, 2009 at 4:05 PM, Karen Tracey wrote: > On Fri, Feb 20, 2009 at 3:21 PM, Øyvind Saltvik > wrote: > >> >> Attached new patch to ticket that should make the behaviour as >> expected. >> > > To what ticket? There's no reference to a ticket in this (argh, > top-posted) thread. > > >>

Re: Small URLconf suggestion

2009-02-22 Thread Alex Gaynor
On Sun, Feb 22, 2009 at 12:29 PM, rihad wrote: > > > > On Feb 22, 7:47 pm, Jacob Kaplan-Moss > wrote: > > On Sun, Feb 22, 2009 at 9:37 AM, rihad wrote: > > > Unless someone kindly proves me wrong, I really do think trailing > > > slashes in the URL should be optional, > > > > As Russ already sa

Re: Localflavor "US state" field choices

2009-02-22 Thread Alex Gaynor
On Sun, Feb 22, 2009 at 5:17 PM, James Bennett wrote: > > Over the past few months we've had a few back-and-forth tugs in the > ticket tracker, and a couple of commits, related to the choice list > for ``django.contrib.localflavor.us.forms.USStateField.`` > > Relevant background: > > * First, tick

Re: Localflavor "US state" field choices

2009-02-23 Thread Alex Gaynor
On Mon, Feb 23, 2009 at 4:35 PM, Eugene Lazutkin wrote: > > Let's not dabble in the international politics, but support practical > choices. There is an official table provided by U.S.P.S. listing states, > possessions, and military "states" recognized as valid abbreviations: > http://www.usps.com

Re: My case for #9006

2009-02-27 Thread Alex Gaynor
On Fri, Feb 27, 2009 at 1:21 PM, PauloS wrote: > > Hi, > > I have a related patch (#10263). > > I have an application where I rendered my inline forms like an > spreadsheet, the effect when the user saves the form and the row order > changes is very unpleasant. This bug does not show up often bec

Re: My case for #9006

2009-02-28 Thread Alex Gaynor
On Sat, Feb 28, 2009 at 6:34 PM, PauloS wrote: > > InlineFormSet is perfect to build spreadsheet-like grid interfaces, > but for a good user experience the form elements need to have > consistent order across GET-after-POST cycles. Currently this happens > BY ACCIDENT in most SGBD backends, and I

Re: My case for #9006

2009-03-01 Thread Alex Gaynor
On Sun, Mar 1, 2009 at 2:31 PM, PauloS wrote: > > > Perhaps I'm not making myself clear, but it ALREADY take a queryset > > argument: > > Alex, I know this, but last time I checked BaseInlineFormSet does not. > Same case with *formset_factory helper functions. It's clear why not, > it's because t

Re: My case for #9006

2009-03-02 Thread Alex Gaynor
On Mon, Mar 2, 2009 at 12:41 PM, PauloS wrote: > > > > > Firstly there is no reason for the _factory functions to take a queryset > > argument, the queryset is specific to the formset instance, not the class > > itself. Secondly in no way are 2 arguments more consistant than a single > > queryse

Re: My case for #9006

2009-03-03 Thread Alex Gaynor
On Tue, Mar 3, 2009 at 11:50 AM, PauloS wrote: > > On Mar 2, 3:23 pm, Alex Gaynor wrote: > > > I'm happy with this. Can I start writing a patch? > > > > He who has the patch has the power :) > > Atached to ticket #10263. > > With this change I was ab

Re: My case for #9006

2009-03-04 Thread Alex Gaynor
On Mar 4, 2009, at 8:29 AM, PauloS wrote: > > On Mar 3, 1:55 pm, Alex Gaynor wrote: >> Looking at the patch IMO it should still dot he >> filter(**{self.fk.name: >> self.instance.pk}) even if you provide a queryset. > > You are right again. Would you mind to

Re: sessions are not lazily created

2009-03-08 Thread Alex Gaynor
Are you using the auth middleware? If so it will be hitting the session each query, even if your stuff doesn'tm Alex On 3/8/09, Dennis wrote: > > Memcached-backed sessions seemed to be created, even when the session > is not written to. > > This is what I'm finding when I look at my memcache a

Re: Model validation

2009-03-09 Thread Alex Gaynor
On Mon, Mar 9, 2009 at 5:25 AM, David Reynolds wrote: > > Hi, > > I need to use some sort of model validation in a project I am working > on and I wondered what that status of > http://code.djangoproject.com/ticket/6845 is. > > Is the github code useable for production? Is there anything I can do

Re: 'week_day' starting with sunday as first day of a week need to be fixed

2009-03-09 Thread Alex Gaynor
On Mon, Mar 9, 2009 at 5:48 AM, Malcolm Tredinnick wrote: > > This is getting ridiculous. > > On Mon, 2009-03-09 at 03:20 -0700, Semmel wrote: > > On Mar 6, 7:24 am, Russell Keith-Magee wrote: > > > Both options are supported _in many cases_. Not _all_ cases. The > > > Sunday=1 case is supported

Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings

2009-03-10 Thread Alex Gaynor
On Tue, Mar 10, 2009 at 12:21 PM, Adrian Holovaty wrote: > > I'm working on adding multiple-database support to an application and > am building a custom manager that lets me specify which DATABASE_NAME > to use for a particular model. It looks something like this: > > class OtherDatabaseManager(m

Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings

2009-03-10 Thread Alex Gaynor
On Tue, Mar 10, 2009 at 3:46 PM, Adrian Holovaty wrote: > > On Tue, Mar 10, 2009 at 12:55 PM, Alex Gaynor > wrote: > > I've been looking at adding multiple database support to Django for a > little > > while now and as a part of my plan of action the first step is t

Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings

2009-03-10 Thread Alex Gaynor
On Tue, Mar 10, 2009 at 4:03 PM, Alex Gaynor wrote: > > > On Tue, Mar 10, 2009 at 3:46 PM, Adrian Holovaty wrote: > >> >> On Tue, Mar 10, 2009 at 12:55 PM, Alex Gaynor >> wrote: >> > I've been looking at adding multiple database support to Django for

Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings

2009-03-10 Thread Alex Gaynor
On Tue, Mar 10, 2009 at 8:56 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Tue, 2009-03-10 at 12:21 -0500, Adrian Holovaty wrote: > [...] > > One ugliness about this is that it has to monkeypatch the settings > > file in order to change the DATABASE_NAME, before passing it to >

ModelForm field ordering

2009-03-10 Thread Alex Gaynor
Currently the order of fields in a ModelForm is always the same as their order on the Model with any many to many fields coming last. -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~-

Re: ModelForm field ordering

2009-03-10 Thread Alex Gaynor
Aren't I smart: Currently the order of fields in a ModelForm is always the same as their order on the Model with any many to many fields coming last. This is obviously disadvantageous since often a developer/designer wants them to be in a different order. This is ticket #8164 and #6953 . The su

Re: Python Argentina's PyCamp 09 (Mar 21-24), best day for a Django Sprint?

2009-03-11 Thread Alex Gaynor
On Wed, Mar 11, 2009 at 9:32 AM, Jacob Kaplan-Moss < jacob.kaplanm...@gmail.com> wrote: > > Hey Ramiro -- > > Sounds great -- we could use the help getting bugs closed for 1.1! > > I can be available some of Monday 3/23 and most of Tuesday 3/24; I'll > make a point of being in #django-sprint whene

Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings

2009-03-11 Thread Alex Gaynor
On Wed, Mar 11, 2009 at 8:36 AM, Narso wrote: > > > > > This is not unlike the code here: > http://www.eflorenzano.com/blog/post/easy-multi-database-support-django/ > > -- > > > > Adrian > Hi, forgive my poor English. > > It would be very good to have multiple database support, but to be > comple

Re: django in javascript

2009-03-11 Thread Alex Gaynor
On Wed, Mar 11, 2009 at 12:46 AM, dudus wrote: > > I just read an article at, > http://www.b-list.org/weblog/2006/jul/04/javascript-orm-and-hding-sql/ > . First I'll introduce myself, I'm a not so experienced web developer > concluding graduation doing my final thesis about django and Gears. > >

Re: Ticket #8161 - Please help me fix this.

2009-03-11 Thread Alex Gaynor
On Wed, Mar 11, 2009 at 10:31 AM, Madhusudan C.S wrote: > Hi all, > I wanted to fix this bug. I just went through the code to see what was > happening. For the same sample code given in the ticket, these were my > findings: > > The schema generated looks like this and there is no issue with i

Re: Ticket #8161 - Please help me fix this.

2009-03-11 Thread Alex Gaynor
On Wed, Mar 11, 2009 at 5:25 PM, Madhusudan C.S wrote: > Hi Alex, > Sorry for wasting your time :( > On Thu, Mar 12, 2009 at 1:15 AM, Madhusudan C.S wrote: > >> Hi Alex, >> First of all thanks a lot for the reply. >> >> On Wed, Mar 11, 2009 at 9:11 PM,

Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings

2009-03-12 Thread Alex Gaynor
On Thu, Mar 12, 2009 at 1:26 PM, Yuri Baburov wrote: > > On Thu, Mar 12, 2009 at 11:44 AM, James Bennett > wrote: > > > > On Wed, Mar 11, 2009 at 11:39 PM, Yuri Baburov > wrote: > >> Maybe let's go a bit further towards pool of db connections and wrap a > >> bunch of lines importing backend int

Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings

2009-03-12 Thread Alex Gaynor
On Thu, Mar 12, 2009 at 7:04 PM, Adrian Holovaty wrote: > > On Wed, Mar 11, 2009 at 11:39 PM, Yuri Baburov wrote: > > Maybe let's go a bit further towards pool of db connections and wrap a > > bunch of lines importing backend into some function that depends on > > engine argument? > > And later c

Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings

2009-03-12 Thread Alex Gaynor
On Thu, Mar 12, 2009 at 11:42 PM, Adrian Holovaty wrote: > > On Thu, Mar 12, 2009 at 7:59 PM, Alex Gaynor > wrote: > >> I've created a ticket here: > >> > >>http://code.djangoproject.com/ticket/10487 > >> > >> If anybody (Alex?) want

Re: More multi-database plumbing (WAS Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings)

2009-03-12 Thread Alex Gaynor
On Fri, Mar 13, 2009 at 12:26 AM, Adrian Holovaty wrote: > > On Thu, Mar 12, 2009 at 11:53 PM, Alex Gaynor > wrote: > > Great, since we've moved so quickly on improving our plumbing for this > there > > was one other idea I wanted to put forth(since I believe it

Re: More multi-database plumbing (WAS Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings)

2009-03-13 Thread Alex Gaynor
On Fri, Mar 13, 2009 at 7:57 AM, Jeremy Dunck wrote: > > On Fri, Mar 13, 2009 at 7:55 AM, Shai Berger wrote: > ... > > Or has some other solution surfaced lately for distributed transactions? > > A big fat documentation warning and careful selection of distribution > strategy? > > > > To give an

Re: More multi-database plumbing (WAS Re: Changing DatabaseWrapper._cursor() to take a dict instead of settings)

2009-03-14 Thread Alex Gaynor
On Sat, Mar 14, 2009 at 8:35 AM, koenb wrote: > > > Is there any downside to checking this in immediately? It's a simple > > enough change that I don't see it introducing any bugs (famous last > > words, right?)... > > Please don't allow using connections from different database backends > unless

Re: Google Summer of Code 2009

2009-03-14 Thread Alex Gaynor
2009/3/14 Nicolas Lara > Here's the wiki article: > http://code.djangoproject.com/wiki/SummerOfCode2009 > > > 2009/3/12 Raj > >> >> Hello all, >> >> On Mar 6, 9:13 pm, Jacob Kaplan-Moss >> wrote: >> > On Fri, Mar 6, 2009 at 4:07 AM, Petar Marić >> wrote: >> > > Will Django be participating in

Re: IPy for settings.INTERNAL_IPS

2009-03-14 Thread Alex Gaynor
On Sat, Mar 14, 2009 at 11:02 PM, Jeremy Dunck wrote: > > On Sat, Mar 14, 2009 at 6:33 PM, Rodrigo Guzman wrote: > ... > > So, it seems like it'd be a straight forward change to > > django.core.context_processors.debug to implement it. However, it > > seems that this functionality would be bett

Re: #3182 -- model instance update() method and QuerySet update_or_create() method

2009-03-15 Thread Alex Gaynor
On Sun, Mar 15, 2009 at 2:44 PM, Dan Watson wrote: > > On Mar 15, 1:12 pm, "Gary Wilson Jr." wrote: > > What do you think? > > Wouldn't this be a backwards-incompatible change at this point? It > would clash with any model fields named "update". > > Dan > > > Take a look at the backwards compati

Re: [9760] "ModelAdmin.formfield_for_dbfield re-factor" changes behaviour.

2009-03-15 Thread Alex Gaynor
On Mon, Mar 16, 2009 at 1:32 AM, Tai Lee wrote: > > The re-factored code moves the definition of default widgets for each > model field into an update-able dict and uses `if dbfield.__class__ in > self.formfield_overrides` to look up the correct widget for `dbfield` > instead of using `isinstance

Re: Signal Connection Decorators

2009-03-19 Thread Alex Gaynor
On Thu, Mar 19, 2009 at 2:43 PM, Zachary Voase wrote: > > I spoke about this on here a while ago, but seeing as the 1.1 feature > freeze is looming, I thought it would be a good idea if I brought it > up again. > > I think it's a good idea to have some support for using Python's > decorator syntax

Re: Reminder: Django 1.1 beta this week means feature freeze

2009-03-19 Thread Alex Gaynor
On Thu, Mar 19, 2009 at 6:11 PM, Antoni Aloy wrote: > > 2009/3/18 Jacob Kaplan-Moss : > > > > Hi folks -- > > > > Quick reminder that Django 1.1 beta is due to drop Friday. This means > > feature freeze -- any feature additions not completed by the beta > > timeline won't make it into 1.1. Realis

[GSOC] Multiple Database API proposal

2009-03-20 Thread Alex Gaynor
Hello all, To those who don't me I'm a freshman computer science student at Rensselaer Polytechnic Institute in Troy, New York. I'm on the mailing lists quite a bit so you may have seen me around. A Multiple Database API For Django == Django current has the low l

Re: Multiple admin forms

2009-03-20 Thread Alex Gaynor
On Fri, Mar 20, 2009 at 4:44 PM, Stuart Jansen wrote: > > On Fri, 2009-03-20 at 10:55 -0700, Collin Grady wrote: > > Usage questions belong on the django-users mailing list. This list is > > for the development of django itself. > > So you're saying that what the original author wants to accompli

Re: [GSOC] Multiple Database API proposal

2009-03-20 Thread Alex Gaynor
On Fri, Mar 20, 2009 at 11:21 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Fri, 2009-03-20 at 09:45 -0400, Alex Gaynor wrote: > > Hello all, > > > > To those who don't me I'm a freshman computer science student at > > Renssela

Re: [GSOC] Multiple Database API proposal

2009-03-20 Thread Alex Gaynor
> > > One suggestion Eric Florenzano had was that we go above and beyond > > just storing the methods and parameters, we don't even excecute them > > at all until absolutely necessary. > > Excuse me for a moment whilst I add Eric to a special list I've been > keeping. He's trying to make trouble. >

Re: [GSOC] Multiple Database API proposal

2009-03-20 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 1:25 AM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Sat, 2009-03-21 at 00:41 -0400, Alex Gaynor wrote: > > > > > > > One suggestion Eric Florenzano had was that we go above and > > beyond >

Re: Proposal: enable CSRF middleware by default

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 12:20 PM, Luke Plant wrote: > > Hi Adrian, > > On Saturday 21 March 2009 01:47:08 Adrian Holovaty wrote: > > > I've been traveling since Tuesday, and, shall we say, I'm not that > > excited about this being in the default middleware. In fact, I'm +1 > > for reverting this

Re: Minor bug in the documentation

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 1:45 PM, Randy wrote: > > Just looking over the documentation for the release process and > noticed a small word duplication: > > Index: release-process.txt > === > --- release-process.txt (revision 10112) > +

Re: Multiple Database API proposal

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 1:45 PM, Eric Florenzano wrote: > > > To me replication is a major use-case. I suspect most people who move > > beyond single server setup and beyond 10'000 - 20'000 visitors realize > > that replication should just be in place ensuring performance and > > redundancy. In m

Re: Proposal: enable CSRF middleware by default

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 2:25 PM, James Bennett wrote: > > On Sat, Mar 21, 2009 at 11:24 AM, Alex Gaynor > wrote: > > b) Having the admin be CSRF safe by default doesn't seam like a feature, > it > > feels like a bug, even if it's implementation gives everything

Re: GSoC - denormalization model field proposal

2009-03-21 Thread Alex Gaynor
On Sat, Mar 21, 2009 at 6:46 PM, Renato Garcia Pedigoni < renatopedig...@gmail.com> wrote: > > Hi folks, > > My name is Renato, 21, currently studying Biomedical Informatics at > the University of São Paulo, Brazil. I'm submitting in the next week > my proposal to GSoC, to create a denormalized mo

Re: auto_now = True - only on some updates

2009-03-22 Thread Alex Gaynor
On Sun, Mar 22, 2009 at 8:23 PM, nwalt...@sprynet.com wrote: > > I have a table where users can add their own rows, but the admin must > approve it. > So my model contains this: > dateAdminDecision = db.DateTimeProperty(auto_now=True) > > Obviously, at first, every row, even when the users added

Re: %ifequal - what am I missing here?

2009-03-22 Thread Alex Gaynor
On Sun, Mar 22, 2009 at 9:06 PM, nwalt...@sprynet.com wrote: > > I'm trying to compare the current user logged on to user stored in the > database (using GAE - Google App Engine). > > Here are my four attempts so far and their results: > > 1) {%ifequal conference.userAdded user.email %} > 2)

Re: QuerySet.values() Shallow Copy

2009-03-22 Thread Alex Gaynor
On Sun, Mar 22, 2009 at 9:51 PM, Vitaly Peressada wrote: > > Malcolm, I might take a stab on this later. Do you know if queryset- > refactor branch was merged into trunk? > > On Mar 20, 10:52 pm, Malcolm Tredinnick > wrote: > > On Fri, 2009-03-20 at 05:08 -0700, Vitaly Peressada wrote: > > > @Mal

Re: #9282 (comment moderation features) and Akismet removal

2009-03-22 Thread Alex Gaynor
On Sun, Mar 22, 2009 at 10:38 PM, Thejaswi Puthraya < thejaswi.puthr...@gmail.com> wrote: > > > On Mar 23, 6:42 am, James Bennett wrote: > [snipped] > > Is there any reason behind that? I know there's always some wariness > > when it comes to relying on a third-party service for a Django > > feat

Re: select_related to work with backward relationships?

2009-03-23 Thread Alex Gaynor
On Mon, Mar 23, 2009 at 9:50 AM, Jari Pennanen wrote: > > Found out that it doesn't work. > > I think this should be documented that backwards relationships does > *not* work in select_related, since I see no reason why it couldn't > work, it might be tricky to implement, but I think it should be

Re: DDN on #9284

2009-03-24 Thread Alex Gaynor
On Mon, Mar 23, 2009 at 8:17 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > Hey Joseph, > > On Mon, 2009-03-23 at 15:32 -0500, Joseph Kocherhans wrote: > > #9284 [1] Has a patch to make BaseModelFormSet call ModelForm.save() > > when saving objects rather than using completely custo

Re: Schema Evolution

2009-03-25 Thread Alex Gaynor
On Wed, Mar 25, 2009 at 10:28 AM, dononyx wrote: > > Was there any thought about having migration tied to production or > development? It would be cool to have schema evolution in development > mode work like Rails but then lock it off in production mode, or just > have a flag set to True or Fals

Re: Dynamic urlconf

2009-03-29 Thread Alex Gaynor
On Sun, Mar 29, 2009 at 4:06 PM, Jeremy Dunck wrote: > > I have a need for dynamic URL definition, but I see that > RegexURLResolver.reverse uses a cache, _reverse_dict. > > Option 1): > Make a RegexURLResolver subclass which sets _reverse_dict back to > an empty MultiValueDict when a URL is ad

Re: Changeset 10219 does not fix #9587

2009-03-31 Thread Alex Gaynor
On Tue, Mar 31, 2009 at 1:32 PM, Vinicius Mendes wrote: > In the ticket description, the user says that he is using > inlineformset_factory, so do I. The changeset only fixes the FormSet. > ModelFormSet and InlineFormSet are still bugged. In the methods > save_new_objects and save_existing_object

Re: Changeset 10219 does not fix #9587

2009-03-31 Thread Alex Gaynor
> I don't want to create the cleaned data. I just adopted the same logic > used in the patch to solve the problem. If the form doesn't have a > cleaned_data attr, so I get it from the field, and check it. All the > changes were made in the django/forms/models.py In the metho

Re: Changeset 10219 does not fix #9587

2009-03-31 Thread Alex Gaynor
wrote a little patch, if you want to take a look, you will > understand what I am saying. The diff is here: > > http://dpaste.com/21753/ > > On Mar 31, 2:41 pm, Alex Gaynor wrote: > > On Tue, Mar 31, 2009 at 1:39 PM, Vinicius Mendes | meiocodigo.com < > > > &

Re: Changeset 10219 does not fix #9587

2009-03-31 Thread Alex Gaynor
On Tue, Mar 31, 2009 at 2:57 PM, Vinicius Mendes | meiocodigo.com < vbmen...@gmail.com> wrote: > > Joseph, > > I think the problem is still the same of the reported in the ticket, > since the reporter talks about inlineformset_factory, so he is using > InlineFormsets. > > Did you see the patch I p

Re: django <--> wsgi

2009-03-31 Thread Alex Gaynor
On Tue, Mar 31, 2009 at 2:21 PM, Travis Parker wrote: > > hello django devs, > > It was nice to meet a few of you at pycon. I talked briefly with jacob > about a plan to improve django's ability to play nice with the wsgi > community with 2-way conversions between django views and wsgi apps, > and

Re: django <--> wsgi

2009-03-31 Thread Alex Gaynor
On Tue, Mar 31, 2009 at 3:22 PM, Travis Parker wrote: > > On Mar 31, 12:04 pm, Alex Gaynor wrote: > > On Tue, Mar 31, 2009 at 2:21 PM, Travis Parker >wrote: > > > > > > > > > > > > > hello django devs, > > > > > It was nice t

Re: GSoC - Generic REST API module for Django

2009-03-31 Thread Alex Gaynor
On Tue, Mar 31, 2009 at 6:38 PM, Bill Konrad wrote: > > Kaylan, > > Good point. That would have to be a part of the specification 100%. > Any foreign key table entries that are "folded in" would have to check > out with the permissions component. > > On Mar 31, 6:24 pm, Kalyan Lanka wrote: > >

Re: About ticket 5622

2009-04-02 Thread Alex Gaynor
On Thu, Apr 2, 2009 at 1:55 PM, Matias Surdi wrote: > > I think that the attached patch corrects the problem. > > Is there still something missing in order to get it into trunk? > > > Thanks! > > > > > It is, at a minimum missing tests. Alex -- "I disapprove of what you say, but I will defend

Re: "Delete selected objects" in admin batch edit

2009-04-04 Thread Alex Gaynor
On Sat, Apr 4, 2009 at 7:10 PM, kmike wrote: > > Totally agree, bulk delete shouldn't be enabled by default. > > One more issue with that: it is nice to be able to define actions > order in drop-down list. It can be achieved with very simple patch, > see http://code.djangoproject.com/ticket/10734

Re: Using form validation to prevent deletion no longer works (after rev 10206/ticket #9587)

2009-04-05 Thread Alex Gaynor
On Sun, Apr 5, 2009 at 5:57 PM, Joseph Kocherhans wrote: > > > On Sun, Apr 5, 2009 at 11:33 AM, Dan Tallis wrote: > >> >> Prior to 10206, the formset is_valid returned False and the user saw >> the error messages as I intended. From 10206 on, the formset is_valid >> returns True (because validat

Re: Using form validation to prevent deletion no longer works (after rev 10206/ticket #9587)

2009-04-05 Thread Alex Gaynor
On Sun, Apr 5, 2009 at 10:39 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Sun, 2009-04-05 at 18:03 -0400, Alex Gaynor wrote: > [...] > > Sure we can have it both ways, how about a constructor option, > > "validate_deletions". W

Re: Proposal: New transaction API with multiple databases

2009-04-06 Thread Alex Gaynor
On Mon, Apr 6, 2009 at 5:00 PM, Andreas wrote: > > I dont know if this has been covered in some of the mentioned previous > multi db support threads but how is it supposed to work with admin? > > > It seems rather orthagonal to the admin to me(at least as far as it can be). The Admin executes qu

Re: Proposal: New transaction API with multiple databases

2009-04-06 Thread Alex Gaynor
On Mon, Apr 6, 2009 at 5:04 PM, Alex Gaynor wrote: > > > On Mon, Apr 6, 2009 at 5:00 PM, Andreas wrote: > >> >> I dont know if this has been covered in some of the mentioned previous >> multi db support threads but how is it supposed to work with admin? >> &

Re: i18n for permissions names in auth

2009-04-07 Thread Alex Gaynor
On Tue, Apr 7, 2009 at 8:55 AM, Vinicius Mendes wrote: > I was thinking that it would be a good feature if the names of the auth > permissions could be internationalizated. For example, instead of storing > 'Can add user' in database, can store something like 'Can add > %(model_verbose_name)s'. A

Re: PseudoField / Field-level query managers

2009-04-09 Thread Alex Gaynor
On Thu, Apr 9, 2009 at 12:46 PM, Steve wrote: > Hello Djeople, > > Trolling for criticism, broader use-cases, or a lurking solution for my > latest problem: Say you've got a model with two fields 'primary_lang' and > 'secondary_lang' and you'd like to filter across them in one fell swoop. The > o

Re: PseudoField / Field-level query managers

2009-04-09 Thread Alex Gaynor
itional > convention of looking for foo_filter() methods in the event it hits a > FieldError while filtering. Certainly nothing for trunk, but its one > approach. > > -S > > On Apr 9, 1:38 pm, Alex Gaynor wrote: > > On Thu, Apr 9, 2009 at 12:46 PM, Steve wrote: > >

[GSOC] Multi-DB

2009-04-21 Thread Alex Gaynor
ed to put every thought down this moment. Other than that if you're going to be an EuroDjangoCon and have an interest in this please come talk to me as I'll be there. Sincerely, Alex Gaynor 1: http://groups.google.com/group/django-developers/browse_frm/thread/c393d5c5f46cc564/3e4b2

Re: [GSOC] Multi-DB

2009-04-21 Thread Alex Gaynor
On Tue, Apr 21, 2009 at 3:14 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Tue, 2009-04-21 at 13:45 -0400, Alex Gaynor wrote: > > Hello All, > > > > As you know by now I've been selected to work on multiple database > > support in Djan

Re: [GSOC] Multi-DB

2009-04-21 Thread Alex Gaynor
On Tue, Apr 21, 2009 at 4:29 PM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Tue, 2009-04-21 at 15:46 -0400, Alex Gaynor wrote: > > > > > > On Tue, Apr 21, 2009 at 3:14 PM, Malcolm Tredinnick > > wrote: > > [...] > > > >

Re: [JOB] Python/Django Developer, 3-months - NYC

2009-04-22 Thread Alex Gaynor
On Wed, Apr 22, 2009 at 12:12 PM, OSS wrote: > > Our NYC client is a four-year-old multidisciplinary agency > specializing in the true marriage of consumer insight, brand strategy > and design. Serving as strategic and visual consultants for clients, > they provide top tier thinking in all forms

Re: Schema Evolution

2009-04-23 Thread Alex Gaynor
On Thu, Apr 23, 2009 at 9:44 PM, Joshua Partogi wrote: > > +1 with South. It's really comprehensive. > > On Apr 18, 12:01 am, JL wrote: > > Just to through in my 2c (since I'm acutally in the US). I'd second > > South as being the most complete and flexible migration project. I've > > used it o

Re: For QuerySet qs, list(qs)[k] does not always equal qs[k]

2009-04-24 Thread Alex Gaynor
On Fri, Apr 24, 2009 at 10:09 AM, David Gouldin wrote: > > I've run into a bit of an odd problem with the ORM. I have a model > without an order_by in its Meta. When I create a queryset and iter > through it, I get the items in a sensical fashion. However, when I > access the the queryset item

Re: Feeds as views.

2009-04-24 Thread Alex Gaynor
On Fri, Apr 24, 2009 at 1:05 PM, Ben Firshman wrote: > > On 24 Apr 2009, at 16:21, zellyn wrote: > > > > > [I wasn't sure whether to post this before or after 1.1 dropped, but > > decided to post now, since I'm just looking for discussion and > > comments.] > > > > Django's contrib.syndication ap

Re: For QuerySet qs, list(qs)[k] does not always equal qs[k]

2009-04-24 Thread Alex Gaynor
On Fri, Apr 24, 2009 at 3:24 PM, Joseph Kocherhans wrote: > > > On Fri, Apr 24, 2009 at 2:01 PM, Karen Tracey wrote: > >> >> I don't see how to solve the general problem at the framework level, but >> there may be some additional sanity checks we could add to help out here. >> For instance we cou

Re: For QuerySet qs, list(qs)[k] does not always equal qs[k]

2009-04-24 Thread Alex Gaynor
On Fri, Apr 24, 2009 at 5:49 PM, Karen Tracey wrote: > On Fri, Apr 24, 2009 at 4:41 PM, Alex Gaynor wrote: > >> On Fri, Apr 24, 2009 at 3:24 PM, Joseph Kocherhans > > wrote: >> >>> On Fri, Apr 24, 2009 at 2:01 PM, Karen Tracey wrote: >>> >>>>

Re: For QuerySet qs, list(qs)[k] does not always equal qs[k]

2009-04-24 Thread Alex Gaynor
On Fri, Apr 24, 2009 at 6:02 PM, Karen Tracey wrote: > On Fri, Apr 24, 2009 at 5:52 PM, Alex Gaynor wrote: > >> On Fri, Apr 24, 2009 at 5:49 PM, Karen Tracey wrote: >> >> Also, it would be nice if we could accomplish the lookup in one DB call >>> rather than loo

Re: My Proposal [GSoC '09 Admin UI Improvements]

2009-04-24 Thread Alex Gaynor
On Fri, Apr 24, 2009 at 8:05 PM, Jeremy Dunck wrote: > > On Fri, Apr 24, 2009 at 6:19 PM, Zain Memon wrote: > > Hello, > > As you might know, I'm one of the Django GSoC students this year. My > mentor > > is (the) Jacob Kaplan-Moss, and he's already started corrupting my > innocent > > mind. > >

Re: My Proposal [GSoC '09 Admin UI Improvements]

2009-04-24 Thread Alex Gaynor
On Sat, Apr 25, 2009 at 12:35 AM, Zain Memon wrote: > On Fri, Apr 24, 2009 at 9:13 PM, Jerome Leclanche wrote: >> >> For one it's kind of annoying the FKey/m2m/etc don't link either to >> the corresponding object's admin or site page if either are available >> (checking for admin first, then for

Re: [GSOC] Multi-DB

2009-04-24 Thread Alex Gaynor
On Sat, Apr 25, 2009 at 2:01 AM, Russell Keith-Magee wrote: > > On Wed, Apr 22, 2009 at 1:45 AM, Alex Gaynor > wrote: > > Hello All, > > > > As you know by now I've been selected to work on multiple database > support > > in Django as a part of the Go

Re: [GSOC] Multi-DB

2009-04-24 Thread Alex Gaynor
On Sat, Apr 25, 2009 at 2:21 AM, Richard S wrote: > when done is this giong to be as simple as adding installed apps to one DB > or the other? > > On Fri, Apr 24, 2009 at 11:11 PM, Alex Gaynor wrote: > >> >> >> On Sat, Apr 25, 2009 at 2:01 AM, Russell Keith-

Re: SQL Anywhere database backend

2009-04-28 Thread Alex Gaynor
On Tue, Apr 28, 2009 at 2:38 PM, Nathan Auch [Sybase] wrote: > > Hi Russ, > > Thanks for taking the time to respond. We will finish off the SQL > Anywhere work in Django and then follow the procedure you outlined. It > sounds like starting with a externally maintained module and seeing > where tha

Re: Django 1.0 and Django SVN side by side?

2009-04-29 Thread Alex Gaynor
On Wed, Apr 29, 2009 at 6:08 PM, Andrew Smith wrote: > Hello > > Sorry, this is probably a silly question but I'm fairly new to > python/django. Is it possible to have django 1.0.x and the svn version > installed side by side and if so, how do I achieve this? > > The reason I ask is that I'm devel

Re: Django 1.0 and Django SVN side by side?

2009-04-29 Thread Alex Gaynor
On Wed, Apr 29, 2009 at 6:23 PM, Alex Gaynor wrote: > > > On Wed, Apr 29, 2009 at 6:08 PM, Andrew Smith wrote: > >> Hello >> >> Sorry, this is probably a silly question but I'm fairly new to >> python/django. Is it possible to have django 1.0.x and the

Re: Multi-DB

2009-04-29 Thread Alex Gaynor
On Wed, Apr 29, 2009 at 7:19 PM, Joey Wilhelm wrote: > On Wed, Apr 29, 2009 at 16:03, Simon Willison wrote: > >> 3. (really nutty one this) - a very high scale situation where an >> application is partitioned across hundreds of databases, which each >> one having the same set of tables. This is h

Re: Multi-DB

2009-04-29 Thread Alex Gaynor
On Wed, Apr 29, 2009 at 8:24 PM, Simon Willison wrote: > > On Apr 30, 12:25 am, Alex Gaynor wrote: > > My question would be how is using a DSN and letting those be passed > directly > > to using() any advantage over letting someone pass a dict of those > options > &g

Re: Use RequestContext if possible in default 500 error view

2009-04-30 Thread Alex Gaynor
On Thu, Apr 30, 2009 at 9:57 PM, Collin Grady wrote: > > Perhaps the default 500 view could just include a few simple things > like MEDIA_URL on its own? > > Alternatively, one can make a custom 500 handler with whatever info > they want, instead of using django's default :) > > -- > Collin Grady

[GSOC] Multi-DB Update

2009-05-01 Thread Alex Gaynor
Hi all, Not a lot of new news or progress. I'll be at EuroDjangoCon all of next week so I may be starting my work there, depending on the status of 1.1. The only new news was Simon and I discussed switching to a DSN string in place of the dict of settings. Personally I'm -1 on that as I find the

Re: Week 2 Status and Info

2009-05-01 Thread Alex Gaynor
On Fri, May 1, 2009 at 4:16 PM, Kevin Kubasik wrote: > Absolutely, My apologies! Allow me a retroactively re-introduce myself:Kevin > Kubasik - Testing Framework. > > So I also just saw another GSOC student mention revision control. I myself > have been continuing to use github. I know we are res

Re: Need Django Developer urgent

2009-05-05 Thread Alex Gaynor
On Tue, May 5, 2009 at 3:50 PM, Adi wrote: > > Hello, > > I need Django Developer urgently. > > please email me back as soon as you can . > > thank you > > > > This is the wrong mailing list for a query of this nature, this should go to django-users instead (and should probably contain more infor

Re: multiple lookups for date fields

2009-05-05 Thread Alex Gaynor
On Tue, May 5, 2009 at 10:46 PM, shadfc wrote: > > Hey everyone, > I came across the need today to use something like > MyModel.objects.filter(date__month__gte=9). However, that doesn't > work: > >>> ContactEvent.objects.filter(date__month__gte=9) > Traceback (most recent call last): > File "

Re: Need Django Developer urgent

2009-05-06 Thread Alex Gaynor
2009/5/6 Yeh, Kenzou K.F. > > Hello there, > > Actually i come from Taiwan, and i' m a software engineer. > > i am programmer, used to coding with c/c++, java, python, ruby. So > nice to meet you. : ) > > > 在 2009/5/6 下午 12:08000 時, haur 寫到: > > > hello , i'am in china > > > > i'am a pythoner

Re: Django 1.1 Release Update

2009-05-06 Thread Alex Gaynor
On Wed, May 6, 2009 at 6:20 AM, Tarun Pasrija wrote: > > Hi All > > I recently checked the schedule for Django 1.1 final release and the > website says April 13th. > > http://code.djangoproject.com/wiki/Version1.1Roadmap. > > Are there any updates about the change in schedule and when is the > fin

Re: Posting to the wrong list (was: Re: Need Django Developer urgent)

2009-05-08 Thread Alex Gaynor
On Fri, May 8, 2009 at 1:49 PM, Ned Batchelder wrote: > Add the word "core" to make the first sentence, "Discussion group for > Django core developers". > > Not that that will make them read the description, but... > > --Ned. > > Jacob Kaplan-Moss wrote: > > On Fri, May 8, 2009 at 12:59 PM, Joshu

[GSOC] Multi-DB Status Update

2009-05-08 Thread Alex Gaynor
Hello All, I've spent the past week at EuroDjangocon, and as such I've had the opportunity to discuss multi-db stuff with a bunch of very smart people. Simon and I resolved the issue of DSNs vs. dicts (as long as Simon can dynamically add a new DB he's happy). Otherwise nothing has changed. Pers

[GSOC] Multi-DB Status Update - Week 0

2009-05-16 Thread Alex Gaynor
Hi all, I officially began work this week (for some value of officially that doesn't include the official GSOC project starting :) ). I've had good success in getting a lot of the ground work laid, specifically I got the connections object in, updated a bunch of management commands for a --databa

Re: Site object in django.contrib.contenttypes.views.shortcut

2009-05-16 Thread Alex Gaynor
On Sat, May 16, 2009 at 6:18 PM, Sergey Belov wrote: > > Hello! > > We must not try to select Site object from DB in > django.contrib.contenttypes.views.shortcut if no Site model is > installed. > Can somebody pay some attention to this ticket, review and may be > commit one-liner patch? =) > htt

<    1   2   3   4   5   6   >