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

2009-08-11 Thread Alex Gaynor
On Tue, Aug 11, 2009 at 11:06 PM, Russell Keith-Magee wrote: > > 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 numb

Re: Form.Widgets use of Super (of lack there of)?

2009-08-12 Thread Alex Gaynor
On Wed, Aug 12, 2009 at 10:19 AM, Joshua Russo wrote: > Why is it that Super is only used sometimes in the __init__ methods of the > existing widgets? Is this by design? I thought that if you used Super > anywhere you had to use it everywhere, otherwise the one place you do use it > wouldn't behav

[GSOC] Final Multi-DB status Update

2009-08-18 Thread Alex Gaynor
Hey all, It seems GSOC has finally come to a close and so I'm giving my final status update as a part of GSOC (but I'm not going anywhere!). When we last left off I had just gotten Oracle support working, however after reviewing with Russ we agreed that the solution was a good bit too hacky, and

Re: Proposal: JS library in admin and tools

2009-08-18 Thread Alex Gaynor
On Tue, Aug 18, 2009 at 12:49 PM, David Zhou wrote: > > On Tue, Aug 18, 2009 at 1:35 PM, Yuri Baburov wrote: >> >> In example, I want some django 3rd-party or contrib package with >> autocomplete fields, ajax validation, ajax form sending and inline >> property editing. >> I want to be able to int

Re: Proposal: JS library in admin and tools

2009-08-18 Thread Alex Gaynor
On Tue, Aug 18, 2009 at 2:29 PM, Jacob Kaplan-Moss wrote: > > On Tue, Aug 18, 2009 at 2:04 PM, Alex Gaynor wrote: >> I'll take a Jacob's comment a step further and say that I personally >> am opposed to Django using an external JS framework for even the >> adm

Re: Final Multi-DB status Update

2009-08-21 Thread Alex Gaynor
b2'. When I try to access a foreignkey relation from something on Model1 to Model2, which DB should it use, the one it came from, or the default for Model2? > One more pony request: I should be able to spec a 'using' in any of > the short cut functions too ... like get_object

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

2009-08-25 Thread Alex Gaynor
On Tue, Aug 25, 2009 at 10:41 AM, Carl Meyer wrote: > > > > On Aug 23, 9:14 pm, 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?

Re: contrib.admindocs need some love.

2009-08-27 Thread Alex Gaynor
On Thu, Aug 27, 2009 at 4:03 PM, Justin Lilly wrote: > Hey guys. > >  I started writing some docs for another developer today and hit a few > issues with admindocs that I plan on sprinting on for DjangoCon. I'm > hoping anyone else with complaints / ideas will voice up, though my main > impetus fo

Re: Time frame for GSoC projects integration

2009-08-28 Thread Alex Gaynor
On Fri, Aug 28, 2009 at 6:17 PM, Yuri Baburov wrote: > > On Sat, Aug 29, 2009 at 2:35 AM, James Bennett wrote: >> >> On Fri, Aug 28, 2009 at 10:09 AM, Yuri Baburov wrote: >>> but could anyone please tell me what's planned time frame for GSoC >>> projects integration into Django if there's any. >>

Re: App Engine support

2009-08-30 Thread Alex Gaynor
On Sun, Aug 30, 2009 at 11:06 AM, Waldemar Kornewald wrote: > > On Aug 30, 3:50 pm, Andi Albrecht > wrote: >> No need to hurry. I'll keep this in sync with the trunk - should be >> really unproblematic :) > > I'm not really doing this just for fun, so I'd rather get it done > faster. ;) > >> Rega

Re: backend query_class() question

2009-09-02 Thread Alex Gaynor
On Wed, Sep 2, 2009 at 10:47 AM, Russell Keith-Magee wrote: > > 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 wi

Re: SoC merge plans?

2009-09-12 Thread Alex Gaynor
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 -- > WOOHOO! -- so let's cracking getting this stuff to trunk so people c

Re: Final Multi-DB status Update

2009-09-14 Thread Alex Gaynor
On Mon, Sep 14, 2009 at 12:49 PM, JL wrote: > > Russell Said: > > "I'm yet to be convinced that `Meta: using` is actually a good thing. > IMHO, it's the very model of a setting that makes it impossible to > re-use your application. The setting will probably survive into the > final version, but I

Re: Final Multi-DB status Update

2009-09-14 Thread Alex Gaynor
On Mon, Sep 14, 2009 at 1:54 PM, Joseph Kocherhans wrote: > > > On Mon, Sep 14, 2009 at 12:16 PM, Alex Gaynor wrote: >> >> FWIW, Russ, Joseph Kocherhans, and I discussed this at the DjangoCon >> sprints and our conclusion was to have syncdb only sync a single table

Re: Replacing get_absolute_url, I am against it

2009-09-14 Thread Alex Gaynor
On Mon, Sep 14, 2009 at 6:58 PM, Patrick J McNerthney wrote: > > We are not (at least not now), endless discussing the color to paint the > bike shed, we are discussing the fact that the bike shed is being built > in entirely the wrong location.  IMO, the proper place to build this > particular b

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

2009-09-15 Thread Alex Gaynor
On Tue, Sep 15, 2009 at 1:58 PM, Marcob wrote: > > On 15 Set, 19:32, Marcob wrote: > >>     LEFT OUTER JOIN "auth_user" ON ("ticket_ticket"."assigned_id" = > > I translated from italian, obviously assigned_id should be > assigned_to_id. > > Sorry. > > Ciao. > Marco. > > > > This has already bee

Re: An issue with ticket system

2009-09-18 Thread Alex Gaynor
On Fri, Sep 18, 2009 at 6:44 PM, Joshua Russo wrote: > I just tried to update a patch on a ticket that I had created but the file I > uploaded isn't displaying. It shows in the list and with the correct file > size but when I try to view the file it's empty. I've upload quite a few > patches prev

Re: Session/cookie based messages (#4604)

2009-09-20 Thread Alex Gaynor
On Sun, Sep 20, 2009 at 11:30 PM, Chris Beaven wrote: > > > > On Sep 21, 12:05 pm, Russell Keith-Magee > wrote: >> 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 w

Re: opener.dismissAddAnotherPopup error tinymce

2009-09-22 Thread Alex Gaynor
On Tue, Sep 22, 2009 at 10:57 AM, Ali Rıza Keleş wrote: > > Hi all, > > There is something strange with popups on admin page while this page > includes tinymce editor. > > When i click  to add a relating object, a popup is being opened and i > enter values and try to save. It is saved but popup i

Re: decorator_from_middleware change

2009-09-22 Thread Alex Gaynor
On Tue, Sep 22, 2009 at 6:04 PM, Jacob Kaplan-Moss wrote: > > On Tue, Sep 22, 2009 at 4:16 PM, Luke Plant wrote: >> James B - do we have a place to list things like this i.e. things >> that probably should go in release notes? > > I think it'd probably be best to just start > docs/releases/1.2-a

Re: Auth/Session modules and JSON views

2009-09-23 Thread Alex Gaynor
On Wed, Sep 23, 2009 at 8:58 PM, django_fo...@codechimp.net wrote: > > This is probably a dumb question, but I am working on some JSON views > that I need to apply authentication too.  I thought maybe I could use > the Django built-in auth/session apps to wrapper the JSON View > methods, but when

Re: Django IIS

2009-09-23 Thread Alex Gaynor
On Wed, Sep 23, 2009 at 9:18 PM, Ronn Ross wrote: > Can Django run on IIS? > > > > The django-developers mailng list is for the discussion of the developmeny of django itself, not developmeny with Django. Please ask the django-users maing list. Alex -- "I disapprove of what you say, but I wi

Re: CSRF - next step?

2009-09-26 Thread Alex Gaynor
On Sat, Sep 26, 2009 at 2:29 PM, Luke Plant wrote: > > Hi all, > > I just want to know what the status is before committing the CSRF > stuff: > >  * Jacob am I waiting for a thumbs up? I think you said you were going >   to try out the code. >  * Simon am I waiting for your patch? > > If I'm not

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

2009-09-28 Thread Alex Gaynor
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 where it should fit into the ORM API and where in > the code base

Re: Final Multi-DB status Update

2009-09-29 Thread Alex Gaynor
tainly think that tables should only exist for the db's > they apply to.  I had a yuck moment the first time I opened up the db > and saw those empty tables.  This one is going to be a hard sale on > our dev team.  I'm anticipating the argument I'm going to have with > the

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

2009-09-29 Thread Alex Gaynor
On Tue, Sep 29, 2009 at 1:58 PM, Simon Willison wrote: > > On Sep 29, 5:03 pm, Rob Madole wrote: >> I've been using nose for our tests, and one of the features that I >> really like is the ability to run the tests again but filter only the >> ones that caused a problem. >> >> I'm thinking it wou

Re: ORM roadmap

2009-10-03 Thread Alex Gaynor
On Sat, Oct 3, 2009 at 2:58 PM, Thierry wrote: > > http://code.djangoproject.com/wiki/Version1.2Features > > I know this is not a problem for most users. But when working with > complex projects or projects requiring some performance optimization > django orm doesn't suffice. Its a pity to see st

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

2009-10-09 Thread Alex Gaynor
On Fri, Oct 9, 2009 at 6:12 AM, Luke Plant wrote: > > On Friday 09 October 2009 10:33:28 Simon Willison wrote: >> For anyone interested in following this, I've just started a >> (currently experimental) branch on GitHub: >> >> http://github.com/simonw/django/tree/logging > > Is there some easy wa

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

2009-10-10 Thread Alex Gaynor
On Sat, Oct 10, 2009 at 9:11 AM, Vinay Sajip wrote: > > > > On Oct 10, 1:56 pm, Simon Willison wrote: >> I just hacked in a logger that increments a counter for every message >> - it indicates that there are 158,527 SQL statements executed by the >> test suite, which means we should expect to ad

Re: Proposal: Tutorial Refresh

2009-10-11 Thread Alex Gaynor
On Sun, Oct 11, 2009 at 7:24 AM, andybak wrote: > > Another thing that might be useful to cover in the tutorial is the > 'building for re-usability' ideas that have devloped via Pinax et al. > > Maybe at least one part of the functionality developed in the tutorial > should be in the form an app

Re: #7539 Add ON DELETE and ON UPDATE support

2009-10-13 Thread Alex Gaynor
On Tue, Oct 13, 2009 at 4:36 PM, Michael Glassford wrote: > > > > Jani Tiainen wrote: >> Michael Glassford kirjoitti: >>> >>> Jani Tiainen wrote: Is there anyone working for this ticket? There seemed to be few patches but then a silence. I would be interested in to help/i

Re: lazy auth context processor

2009-10-14 Thread Alex Gaynor
On Wed, Oct 14, 2009 at 8:24 AM, Luke Plant wrote: > > I want to fix #6552 (also #12031), and I've attached a patch that > makes the auth context processor lazy. > > I'm pretty sure this is the right thing to do, but I'd like to check > for any gotchas people might be aware of. > > Some behaviour

Re: shortcut proposal

2009-10-16 Thread Alex Gaynor
On Fri, Oct 16, 2009 at 12:05 PM, Michael P. Jung wrote: > > Some time ago I came up with a decorator to enable rendering jinja2 > templates easily. The decorator 'monkey patches' the request object by > providing a __getattr__ method and adding some new methods. > > https://labs.pyrox.eu/common/

Re: Django SAAS

2009-10-16 Thread Alex Gaynor
On Fri, Oct 16, 2009 at 8:00 PM, Savy wrote: > > > > I am developing  a Django project (with a few pluggable apps). > > I want to offer this project as a SaaS (something like 37signals.com). > > i.e: customer1.product1.com , customer2.product2.com etc > > product1 could be the basecamp product2 c

Re: Custom fields and PostGreSQL composite types

2009-10-20 Thread Alex Gaynor
On Tue, Oct 20, 2009 at 2:50 PM, thierry wrote: > > Hello everybody, > > I'm working on a scientific project and Django has been chosen to > develop our database model. I'd like to develop a > 'PhysicalQuantityField' that manages a value and its relative unit. > > The first way to do this stuff i

Re: 1.2 Feature Suggestion

2009-10-23 Thread Alex Gaynor
On Fri, Oct 23, 2009 at 10:21 AM, Jonas Obrist wrote: > > How about making  i18n strings translatable from the django admin site? > I like how the whole i18n thingy is built from a template perspective, > however getting the stuff actually translated (all those django-admin.py > commands ...)  is

Re: 1.2 Feature Suggestion

2009-10-24 Thread Alex Gaynor
On Sat, Oct 24, 2009 at 6:50 PM, veena wrote: > > Does the commentators have experience with maintaining the i18n django > project? I do and completely agree with Jonas. > "Gettext like+Rosetta like" but database driven translation app in > Django adminwithout translation-makemessages-compilemess

Re: __in and comma-separated strings.

2009-10-27 Thread Alex Gaynor
On Tue, Oct 27, 2009 at 11:57 AM, Jerome Leclanche wrote: > > I've got a patch to let __in accept comma-separated strings; I'm using > this locally to avoid going through the trouble of splitting a string > before processing a GET. The exact same technique is used in > django-admin, and I'd bet m

Re: __in and comma-separated strings.

2009-10-27 Thread Alex Gaynor
On Tue, Oct 27, 2009 at 12:19 PM, Jerome Leclanche wrote: > > It's not... if you got control over the code. However my patch is > specifically targeted at GET processing. You have to add a bunch of > checks after each other, it quickly becomes overwhelming. > > Alex, I'm interested by what you me

Re: non-relational DB

2009-10-29 Thread Alex Gaynor
On Thu, Oct 29, 2009 at 2:44 PM, Waldemar Kornewald wrote: > > Hi, > Russell and Alex, did you already look at QueryGlue? We really need to > discuss which branch the new query_class() should be in. > > Bye, > Waldemar Kornewald > > > > I haven't had a chance to look at it, and I probably won't

Re: Advocacy for Email-01 (email backends)

2009-10-30 Thread Alex Gaynor
On Fri, Oct 30, 2009 at 10:58 AM, Luke Plant wrote: > > On Sunday 25 October 2009 07:22:27 Russell Keith-Magee wrote: > >> I'm keen to see a resolution to this problem. To that end, I'm >> interested in hearing specific criticisms or concerns with the >>  current backend proposal. I'm also intere

Re: Regularly-scheduled Django sprints, first December 11 - 13

2009-11-10 Thread Alex Gaynor
On Tue, Nov 10, 2009 at 11:00 AM, Jeremy Dunck wrote: > > Djangonauts, >  To help speed along development on Django, I'd like us to start > holding regularly-scheduled sprints.  I've previously contacted core > committers to see who would be willing to supply the commit bits for > the sprint work

Re: Regularly-scheduled Django sprints, first December 11 - 13

2009-11-10 Thread Alex Gaynor
On Tue, Nov 10, 2009 at 11:14 AM, Sean Brant wrote: > > Alex, I can help you out in Chicago if you need it. > > Sean > > > > Sure that'd be great, I guess we don't really need to start planning until it gets a little closer, but if we want to have any discussions about the local things let's try

Re: Template filter for "in"

2009-11-10 Thread Alex Gaynor
On Tue, Nov 10, 2009 at 3:54 PM, Tim wrote: > > I haven't seen any notes on the subject, so I pose the question: > > Would there be warm reception for a new built-in filter called "in", > to provide the template system with the Pythonic keyword?  A full-blow > `{% if a in B %}` syntax would be gr

Re: Template Caching - Ticket #6262

2009-11-11 Thread Alex Gaynor
On Wed, Nov 11, 2009 at 8:15 PM, Mike Malone wrote: > Sup, > > I've been working on template caching (ticket #6262) with a mister > Alex Gaynor. The patch is getting pretty stable and I think it's close > to merge-able, so if anyone wants to take a look at what we'

Re: Documentation of backwards incompatible changes

2009-11-13 Thread Alex Gaynor
On Fri, Nov 13, 2009 at 11:15 PM, Russell Keith-Magee wrote: > On Sat, Nov 14, 2009 at 8:55 AM, Luke Plant wrote: >> Hi all, >> >> The online docs can easily give the impression that we have perfect >> compatibility with Django 1.0 — the 'Django over time' section on [1] >> has a link to 'Backwar

Re: Template Caching - Ticket #6262

2009-11-16 Thread Alex Gaynor
On Mon, Nov 16, 2009 at 8:58 AM, Russell Keith-Magee wrote: > On Thu, Nov 12, 2009 at 9:15 AM, Mike Malone wrote: >> Sup, >> >> I've been working on template caching (ticket #6262) with a mister >> Alex Gaynor. The patch is getting pretty stable and I think it

Oracle/GIS Testers Needed

2009-11-19 Thread Alex Gaynor
Hey all, Russ and I have been working on getting the multi-db work ready for merge (final stretch here hopefully!), and I just ported the Oracle backend to the slightly updated backend arcitecture so it could use some testers. If you've got an Oracle setup and can run some tests that would be gre

Re: Oracle/GIS Testers Needed

2009-11-20 Thread Alex Gaynor
On Fri, Nov 20, 2009 at 8:26 AM, Karen Tracey wrote: > On Fri, Nov 20, 2009 at 1:14 AM, Alex Gaynor wrote: >> >> Hey all, >> >> Russ and I have been working on getting the multi-db work ready for >> merge (final stretch here hopefully!), and I just ported the

Re: Oracle/GIS Testers Needed

2009-11-20 Thread Alex Gaynor
atch is basically a one character change to > datetime_safe.py which zero pads dates with year < 1000. Would you > mind fixing it? > > Cheers, > Ben > > On Nov 20, 3:17 pm, Alex Gaynor wrote: >> On Fri, Nov 20, 2009 at 8:26 AM, Karen Tracey wrote: >> > On Fri, Nov 2

Re: Oracle/GIS Testers Needed

2009-11-20 Thread Alex Gaynor
On Fri, Nov 20, 2009 at 3:56 PM, Karen Tracey wrote: >> Just running the Oracle tests is enough for now.  I've fixed the error >> you spotted with the stray import left over and pushed that to github. > > I get 6 failures and 26 errors but I do not know if any of them have > anything to do with mu

Re: Oracle/GIS Testers Needed

2009-11-20 Thread Alex Gaynor
On Fri, Nov 20, 2009 at 10:52 PM, Justin Bronn wrote: > >> For GIS I'm fairly certain that's broken, however I'm not quite setup >> for running the GIS tests yet, therefore if you're set up for it and >> can run the tests please just reply with your tracebacks here >> (preferably with them on a pa

Re: Feedback on ticket 7777

2009-11-25 Thread Alex Gaynor
On Wed, Nov 25, 2009 at 12:15 PM, thebitguru wrote: > Anyone? > > On Nov 23, 6:38 pm, thebitguru wrote: >> Hi, >> >> Can I please get some feedback on this ticket?  I am hoping that we >> can get this in soon. >> >> http://code.djangoproject.com/ticket/ >> >> Thanks, >> Farhan > > -- > > You

Re: Oracle/GIS Testers Needed

2009-11-25 Thread Alex Gaynor
On Thu, Nov 26, 2009 at 1:21 AM, Jani Tiainen wrote: > On Fri, 2009-11-20 at 01:14 -0500, Alex Gaynor wrote: >> Hey all, >> >> Russ and I have been working on getting the multi-db work ready for >> merge (final stretch here hopefully!), and I just ported the Oracle

Re: Oracle/GIS Testers Needed

2009-11-25 Thread Alex Gaynor
On Thu, Nov 26, 2009 at 1:42 AM, Jani Tiainen wrote: > On Thu, 2009-11-26 at 01:28 -0600, Alex Gaynor wrote: > >> >> Thanks for taking the time to run all of those!  All of those >> ConnectionDoesNotExist errors come from the fact that the multidb >> tests expect you

Re: smart if tag

2009-11-28 Thread Alex Gaynor
On Sat, Nov 28, 2009 at 11:40 AM, Luke Plant wrote: > Hi all, > > I started work replacing Django's if with the "smart-if" template tag > by Chris Beaven ( http://www.djangosnippets.org/snippets/1350/ ) > > Of course, it is not as simple as it looks... > > 4 issues: > > 1) Handling non-existent va

Django Developed Sprint in Chicago, January 9-10

2009-12-02 Thread Alex Gaynor
Hello all, On Janaury 9-10 in Chicago we'll be holding a development sprint for Django. This sprint will focus primarily on bugfixing for Django's upcoming 1.2 release. No prior experience is needed, there'll be plenty of people there to help you get started! More information can be found here:

Re: Session/cookie based messages (#4604)

2009-12-02 Thread Alex Gaynor
On Thu, Dec 3, 2009 at 12:58 AM, Tobias McNulty wrote: > > > On Tue, Dec 1, 2009 at 4:35 PM, Luke Plant wrote: >> >> I just converted some code, and the API seems good to me.  I had one >> issue, which was the fact that I had some code which only had access >> to the User object, and not the requ

Re: Multiple database support: Request for feedback and testing

2009-12-04 Thread Alex Gaynor
On Fri, Dec 4, 2009 at 2:41 PM, Paul McLanahan wrote: > What will be the default action of manage.py syncdb (without the > --database option)? Will it create all tables on all DBs, or just use > "default"? The former would be useful for the simple replication use > case, but wasteful for partition

Re: smart if tag

2009-12-06 Thread Alex Gaynor
The undcoumented scanner class in the regex module may interest you: http://code.activestate.com/recipes/457664/ Alex On Sun, Dec 6, 2009 at 3:32 AM, SmileyChris wrote: > Because that link intrigued me, I challenged myself to write my own > generic lexer & parser based on what I had read: > http

Re: Sprint issue tracking / triaging

2009-12-07 Thread Alex Gaynor
On Mon, Dec 7, 2009 at 4:46 PM, Jeremy Dunck wrote: > Hey all, >  I was wondering if I could do anything to streamline applying > sprint-created patches. > >  Obviously, I can do triaging and provide feedback on patches.   Can > I be blessed to say "Ready for checkin"? > >  What else can I do?  I

Re: Django 1.2 progress assessment

2009-12-07 Thread Alex Gaynor
On Mon, Dec 7, 2009 at 4:59 PM, Jacob Kaplan-Moss wrote: > Hi folks -- > > According to our timeline, we're at (a bit past, actually) the point > where we need to take a quick look at progress towards 1.2 and decide > whether the current timeline still makes sense. > > Right now, we've completed 4

Re: Django 1.2 progress assessment

2009-12-07 Thread Alex Gaynor
On Mon, Dec 7, 2009 at 5:13 PM, Jeremy Dunck wrote: > On Mon, Dec 7, 2009 at 4:03 PM, Alex Gaynor wrote: > >> I'm very confident that multi-db will be ready for merge by then, >> Justin and I (ok mostly Justin) have been working on the GIS stuff, >> which is th

Re: Sprint issue tracking / triaging

2009-12-08 Thread Alex Gaynor
On Tue, Dec 8, 2009 at 12:35 PM, Jeremy Dunck wrote: > On Tue, Dec 8, 2009 at 11:27 AM, mrts wrote: > ... >> I have thought about the process a bit and even wrote some >> helper code. >> >> Unfortunately I fell ill and haven't fully recovered (and am >> therefore horribly off-schedule with my wor

Re: Sprint issue tracking / triaging

2009-12-08 Thread Alex Gaynor
ld be > effortless, i.e. core can assume that the patch is > well reviewed, tested and non-controversial. > > This workflow is suitable for janitor-type work, not for > epic or controversial changes. > > On Dec 8, 7:40 pm, Alex Gaynor wrote: >> Because of this work t

Re: QuerySet __contains__

2009-12-08 Thread Alex Gaynor
On Tue, Dec 8, 2009 at 8:22 PM, Luke Plant wrote: > Hi all, > > I discovered that QuerySet supports the 'in' operator: > >  myset = Articles.objects.filter(foo=bar) >  if someobject in myset: >      # etc. > > The Python docs I could find imply (but don't state) that if there is > no __contains__(

Re: QuerySet __contains__

2009-12-08 Thread Alex Gaynor
On Tue, Dec 8, 2009 at 10:49 PM, Jeremy Dunck wrote: > On Tue, Dec 8, 2009 at 8:38 PM, Luke Plant wrote: >> On Wednesday 09 December 2009 01:52:48 Jeremy Dunck wrote: > ... >>> You could also inspect the item to see if it's an instance of the >>> .model; if not, fast path False. >>> >>> Which lea

Re: #12250 Feedback Request

2009-12-09 Thread Alex Gaynor
On Wed, Dec 9, 2009 at 11:21 PM, Michael Manfre wrote: > If a middleware throws an exception, it is not possible to catch and > handle that error. Instead it goes straight to the unhandled exception > handler and prevents any process_exception middleware methods from > acting on the exception. I i

Re: Deprecating psycopg 1

2009-12-12 Thread Alex Gaynor
On Sat, Dec 12, 2009 at 7:02 PM, Jacob Kaplan-Moss wrote: > Hi folks -- > > I'd like to start the process of deprecating and removing support for > psycopg 1. Why? > > * psycopg 2 is better in every way. > * psycopg 1 hasn't been updated since October 2005; it's basically a dead end. > * I don't k

Re: Python version roadmap

2009-12-15 Thread Alex Gaynor
On Tue, Dec 15, 2009 at 10:15 PM, DULMANDAKH Sukhbaatar wrote: >> Also, we should be adding any plans to drop 2.4, 2.5 etc into the >> internals/deprecation.txt documentation, and we ought to do that >> *before* 1.2 is released, to give as much warning as possible. > > Please note that python 2.4

Re: Re: Python version roadmap

2009-12-15 Thread Alex Gaynor
On Tue, Dec 15, 2009 at 10:35 PM, wrote: > A word of caution on dropping support of python 2.4: it is still shipped > with RHEL 5 which is supported until 2014 > (http://www.redhat.com/security/updates/errata/). > > -- > > You received this message because you are subscribed to the Google Groups

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

2009-12-16 Thread Alex Gaynor
On Wed, Dec 16, 2009 at 12:08 PM, Jacob Kaplan-Moss wrote: > On Wed, Dec 16, 2009 at 10:13 AM, Jeremy Dunck wrote: >> This won't work, because deferred fields are descriptors, and >> accessing foo.field would run the query. >> >> Something you could do is foo.deferred_fields.field_name -> Boolean

Re: What do people think about the get_absolute_url proposal?

2009-12-16 Thread Alex Gaynor
On Wed, Dec 16, 2009 at 2:02 PM, Mike Malone wrote: >> The way i see it (which may be wrong), this is not a proposal to make >> the request object global or replace/refactor the contrib.site app. In >> fact, some of the use cases mentioned strike me as things that would >> require overriding the d

Re: What do people think about the get_absolute_url proposal?

2009-12-16 Thread Alex Gaynor
On Wed, Dec 16, 2009 at 2:53 PM, Mike Malone wrote: > On Wed, Dec 16, 2009 at 11:10 AM, Alex Gaynor wrote: >> On Wed, Dec 16, 2009 at 2:02 PM, Mike Malone wrote: >>>> The way i see it (which may be wrong), this is not a proposal to make >>>> the request obje

Re: What do people think about the get_absolute_url proposal?

2009-12-16 Thread Alex Gaynor
On Wed, Dec 16, 2009 at 4:51 PM, SmileyChris wrote: > > > On Dec 17, 8:57 am, Alex Gaynor wrote: >> On Wed, Dec 16, 2009 at 2:53 PM, Mike Malone wrote: >> > How's that different than the current situation, where we return an >> > absolute URL reference that

Re: Final call for feedback: Multi-db

2009-12-18 Thread Alex Gaynor
On Fri, Dec 18, 2009 at 12:41 PM, Brett Hoerner wrote: > I'm not sure if 1.2 intended to fully support read-slaves, but I'll > post this quick anyway as we've just run into it while trying to > upgrade at DISQUS. > > You might think that having support for multiple databases implies > that using a

Re: Call for feedback: django.utils.signed and signed cookies

2009-12-21 Thread Alex Gaynor
On Tue, Dec 22, 2009 at 12:22 AM, Russell Keith-Magee wrote: > On Tue, Dec 22, 2009 at 8:00 AM, Simon Willison > wrote: >> I've made some changes based on the feedback in this thread: >> >> http://github.com/simonw/django/commit/802952bbb8b763e65ee545c6a8f39524b20e147c >> "Use sha('signer' + sec

Re: Congratulations Alex and Russell on committing multidb!

2009-12-22 Thread Alex Gaynor
On Tue, Dec 22, 2009 at 2:44 PM, Peter wrote: > > I just noticed and can only agree... nice work. > > //Peter > > On Tue, Dec 22, 2009 at 18:27, Simon Willison > wrote: >> >> And a big congratulations to all involved. Here's the changeset log >> (on GitHub since Trac seems not to like being linke

Re: Ticket #5025 - truncate filter, why hasn't it been accepted?

2009-12-29 Thread Alex Gaynor
On Tue, Dec 29, 2009 at 11:59 PM, John Debs wrote: > > > On Dec 29, 9:08 pm, James Bennett wrote: > >> It is built in, though, it's just called "slice". The only thing >> people seem to offer to differentiate this proposal from the existing >> filter is that the proposed "truncate" would add an e

Re: Ticket #5025 - truncate filter, why hasn't it been accepted?

2009-12-30 Thread Alex Gaynor
On Wed, Dec 30, 2009 at 10:53 AM, Nic Pottier wrote: > On Dec 29, 10:01 pm, Alex Gaynor wrote: >> Adding the ellepsis is as simple as: >> >> {{ foo|slice:":100" }}{% if foo|length > 100 %}...{% endif %} >> >> Given that the recent expansion of

Re: Ticket #5025 - truncate filter, why hasn't it been accepted?

2009-12-30 Thread Alex Gaynor
Ok, we get it, some people want this feature. I'd like to kindly request that people just saying "+1" stop. The number of people in this thread is minuscule compared to the size of the django user population, trying to extrapolate from 1, 10, or even 100 people in this thread to a large percentag

Re: Ticket #5025 - truncate filter, why hasn't it been accepted?

2009-12-30 Thread Alex Gaynor
On Wed, Dec 30, 2009 at 3:36 PM, dannyr wrote: > > Alex, > > What's the rationale of including truncatewords into the core? How is > truncatewords different to truncate (characters)? > > On Dec 30, 12:29 pm, Alex Gaynor wrote: >> Ok, we get it, some people want t

Django Development Sprint Reminder -- Chicago January 9-10th

2010-01-01 Thread Alex Gaynor
Hi all, This is just a quick reminder that there will be a development sprint for Django on January 9-10th in Chicago at the Everyblock offices. This is just after the major feature freeze so we'll be working on a bunch of smaller features. If you can make it we'd love if you could join us. If y

Re: Finalizing model-validation: ComplexValidator

2010-01-03 Thread Alex Gaynor
On Sun, Jan 3, 2010 at 7:31 PM, Honza Král wrote: > Hi everybody, > > > On Fri, Jan 1, 2010 at 10:30 PM, Joseph Kocherhans > wrote: > >> The ComplexValidator doesn't know in advance if it's going to be used >> for model validation or form validation. ComplexValidator's get_value >> method is mea

Re: Finalizing model-validation: ComplexValidator

2010-01-03 Thread Alex Gaynor
On Sun, Jan 3, 2010 at 7:50 PM, Joseph Kocherhans wrote: > On Sun, Jan 3, 2010 at 7:34 PM, Alex Gaynor wrote: >> >> What if we had some sort of wrapper class for objs, it could overide >> __getattribute__ to return either an attr if it's an obj, or a >> subscript

Re: Final call for feedback: Multi-db

2010-01-04 Thread Alex Gaynor
Yes, multiple database support was merged into trunk on December 22: http://www.djangoproject.com/multidb-changeset/ Alex On Mon, Jan 4, 2010 at 9:40 AM, Joe wrote: > Has this code been merged to a 1.2 alpha build somewhere or is the > multi-db branch still the current release?  Only asking beca

Re: Design and code review requested for Django string signing / signed cookies

2010-01-04 Thread Alex Gaynor
On Mon, Jan 4, 2010 at 4:53 PM, Luke Plant wrote: > On Monday 04 January 2010 21:45:41 jcampbell1 wrote: > >> I am not that familiar with your framework, but I think a signed >> cookie should use http only cookies by default.  There is no valid >> reason for a script to read a cookie that it can't

Re: Model validation incompatibility with existing Django idioms

2010-01-06 Thread Alex Gaynor
On Wed, Jan 6, 2010 at 4:06 PM, Brian Rosner wrote: > > On Jan 6, 2010, at 2:56 PM, Joseph Kocherhans wrote: >> I had another idea that I think might work out. What if >> ModelForm.validate() only validated fields on the form, like it worked >> before the merge, and ModelForm.save() would automati

Re: Django docs aren't aware custom model save methods need the "using" keyward arg.

2010-01-07 Thread Alex Gaynor
On Thu, Jan 7, 2010 at 5:25 PM, j...@jeffcroft.com wrote: >> Are you sending from other email addresses?  I only see a few >> occurrences of j...@jeffcroft.com on django-dev, and I haven't seen >> you get destroyed.  :-/  Sucks that you feel that way. > > The destruction tends to come via Twitter.

Re: Porting Django to Python 3

2010-01-12 Thread Alex Gaynor
On Tue, Jan 12, 2010 at 10:52 PM, Joshua Partogi wrote: > On Jan 9, 1:02 pm, Russell Keith-Magee wrote: >> On Sat, Jan 9, 2010 at 2:25 AM, Dave wrote: >> > Hello everyone, >> >> > My name is Dave Weber, and I'm a student at the University of Toronto, >> > studying Computer Science. For one of ou

Re: Speeding up test running

2010-01-14 Thread Alex Gaynor
On Thu, Jan 14, 2010 at 7:59 PM, Vitaly Babiy wrote: > I have also been thinking about this, I think there is one problem but I am > not sure. This is when you have functional test and they need talk to a > database. In most cases you will be using transactions which should be fine, > but if for s

Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-18 Thread Alex Gaynor
On Mon, Jan 18, 2010 at 3:55 PM, Jannis Leidel wrote: > > Am 18.01.2010 um 22:26 schrieb Luke Plant: > >> Hi Harro, >> >>> Hmm I guess I'll just have to keep on hacking django then.. >>> because that 1% case is something I keep running into for every >>> project in one way or another. >>> And if i

Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-18 Thread Alex Gaynor
2010/1/18 Noah Silas : > I'm not certain I understand - if anyone can perform some action, what's the > point of protecting it with a permissions check? > ~Noah Silas > > > 2010/1/18 Łukasz Rekucki >> >> 2010/1/18 Alex Gaynor : >> > On Mon, J

Re: TimeField for duration

2010-01-20 Thread Alex Gaynor
On Wed, Jan 20, 2010 at 6:31 PM, Ian Kelly wrote: > 2010/1/20 Łukasz Rekucki : >> 2010/1/21 Jerome Leclanche : >>> Hi Lukasz, thanks for the wrap up >>> >>> Main issue is precision. I personally very, very often work with >>> milliseconds, and I can imagine many use cases where I'd need to work >>

Re: Pony request: refetch method to models

2010-01-27 Thread Alex Gaynor
2010/1/27 Jukka Välimaa : > Sounds reasonable. I couldn't find an existing ticket, so I made a new one, > #12709. > --Jukka > > On Wed, Jan 27, 2010 at 2:34 AM, Russell Keith-Magee > wrote: >> >> On Wed, Jan 27, 2010 at 12:59 AM, Jukka wrote: >> > Hi all, >> > >> > I'd like to propose adding a me

Re: Pony request: refetch method to models

2010-01-27 Thread Alex Gaynor
On Wed, Jan 27, 2010 at 12:23 PM, Karen Tracey wrote: > On Wed, Jan 27, 2010 at 12:17 PM, Alex Gaynor wrote: >> >> I'm almost positive this is a dupe of another ticket, in the 3000-6000 >> range I think. > > The one I found was #901. > > Karen > > --

Re: Reg. Improving Django response time

2010-01-28 Thread Alex Gaynor
On Thu, Jan 28, 2010 at 3:53 PM, saran_ATD wrote: > I have Django installed in SUSE Linux with postgres. It is working > great. Kudos > I have an issue. I have total database structure containing more than > 100million rows. I have partitions and indexes. It is taking plenty of > time to load

Re: #3591 - Custom app_label in Django 1.2?

2010-02-04 Thread Alex Gaynor
On Thu, Feb 4, 2010 at 11:06 AM, Adam Nelson wrote: > I don't suppose there's any way to get the patches from ticket #3591 > into Django 1.2?  If not, can it be marked as definitively not in 1.2 > so I can roll a custom solution for myself?  It's always hard to tell > from the ticket details what

Re: Assertion Woes

2010-02-05 Thread Alex Gaynor
On Fri, Feb 5, 2010 at 6:47 PM, FeatherDark wrote: > So I installed pyWin32 today and all of my Django sites went POOF into > non-happyland > > I was prompted to post so here's a dpaste of just 1 of the errors in > the apache log > > I removed pyWin32 and all my Django woes vanished... other than

Re: Refining Django admin look proposal

2010-02-05 Thread Alex Gaynor
On Sat, Feb 6, 2010 at 1:02 AM, Russell Keith-Magee wrote: > On Fri, Feb 5, 2010 at 5:37 PM, j...@jeffcroft.com wrote: >> All due respect to Wilson (he's a great designer, a good friend, and >> he and I have talked on several occasions about the Django admin >> interface), I have to agree that th

  1   2   3   4   5   6   >