Re: Ticket #8425 and USStateField (again)

2009-12-24 Thread Russell Keith-Magee
On Thu, Dec 24, 2009 at 4:49 PM, James Bennett wrote: > On Wed, Dec 23, 2009 at 9:44 PM, Russell Keith-Magee > wrote: >> I could live with either approach existing in the codebase. I won't >> express a preference, though - I'll leave the decision of which >> ap

Re: Ticket #8425 and USStateField (again)

2009-12-24 Thread Russell Keith-Magee
On Fri, Dec 25, 2009 at 3:55 AM, James Bennett wrote: > On Thu, Dec 24, 2009 at 5:22 AM, Russell Keith-Magee > wrote: >> My concern with having two fields is that it introduces a false >> dichotomy. There aren't just 2 options here - potentially any >> permuta

Important info for translators (especially those with commit access)

2009-12-26 Thread Russell Keith-Magee
Hi all, I've just committed [12003], which reverted commit [12000]. This mirrors commit [11941], which reverted [11881]. These commits all relate to translation updates for the 1.0.X branch. Translations should *not* be backported to the 1.0.X branch. The 1.0.X branch is in security fix only mode

Re: Possible bug with multi-db changes

2009-12-27 Thread Russell Keith-Magee
On Sun, Dec 27, 2009 at 12:22 PM, Sean Brant wrote: > I just upgraded to the latest trunk today and the admin now throws an > exception http://dpaste.com/138130/ when I try and save to a > ImageField. I messed with it a bit to make sure that it was not > something else in my code that could be cau

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

2009-12-30 Thread Russell Keith-Magee
On Wed, Dec 30, 2009 at 8:15 AM, Nic Pottier wrote: > > New to Django, but certainly not web development.  After being > pleasantly surprised with a lot of the available Django filters I was > rather surprised not to see a string truncation filter included. > > A little googling shows I'm not the

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

2009-12-30 Thread Russell Keith-Magee
On Thu, Dec 31, 2009 at 12:54 AM, Jerome Leclanche wrote: > On Wed, Dec 30, 2009 at 2:06 PM, Russell Keith-Magee > wrote: >> >> Secondly, IMHO raw truncation based on characters is bad practice for >> human readable text. A sentence is composed of words, not characters.

Re: "view" permission in the administration as well as add/change/delete

2010-01-03 Thread Russell Keith-Magee
On Mon, Jan 4, 2010 at 11:20 AM, Natim wrote: > Hello everyone, > > We are working on a project where some people (which are member of the > staff) need to see one of the administration page (And be able to use > the search, sort, .. process) without having any right to the data but > be able to r

Re: "view" permission in the administration as well as add/change/delete

2010-01-03 Thread Russell Keith-Magee
On Mon, Jan 4, 2010 at 12:05 PM, Natim wrote: > > The real question is:  Is it possible to implements the view > permission in Django admin? > Why isn't it implemented yet since it seems to be useful for numbers > of users and that there is no direct security issues with that? I don't want to see

Backwards incompatible change to Email Backends in Django Trunk

2010-01-04 Thread Russell Keith-Magee
Hi all, If you have been using the new email backend feature in trunk, you should be aware that SVN revision 12084 introduces a small, but backwards-incompatible change. If you are using Django 1.1 (i.e., Django stable), or you haven't manually specified EMAIL_BACKEND in your settings file, you w

Re: WSGI support in Django

2010-01-04 Thread Russell Keith-Magee
On Mon, Jan 4, 2010 at 11:46 PM, Gustavo Narea wrote: > Hi, > > One more update about the WSGI related improvements for Django: > > I have created a Mercurial branch to keep track of these changes and > keep them synchronized with trunk: > http://bitbucket.org/Gustavo/django-wsgi/ > > Even though

Re: idea for using RequestContext by default

2010-01-04 Thread Russell Keith-Magee
On Tue, Jan 5, 2010 at 1:57 AM, buttman wrote: > On Jan 2, 5:52 pm, Simon Willison wrote: >> On Dec 30 2009, 10:28 pm, Wim Feijen wrote: >> >> > In the discussions on CSRF there have been several proposals to >> > include RequestContext by default in render_to_response or in a >> > similar funct

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

2010-01-04 Thread Russell Keith-Magee
On Mon, Jan 4, 2010 at 8:47 PM, Simon Willison wrote: > I'm pursing expert feedback on the crypto used in Django signing / > signed cookies. Here's the e-mail I'm sending out to various mailing > lists. I'll also link to this post from a number of places and see if > I can get some smart eyes on i

Re: idea for using RequestContext by default

2010-01-05 Thread Russell Keith-Magee
On Tue, Jan 5, 2010 at 9:23 PM, Ivan Sagalaev wrote: > Russell Keith-Magee wrote: >> I'm in complete agreement with Simon on this point. I fail to see the >> benefit of decorators in this context. > > I can see one valid point that "render_to" guys have. Whic

Re: idea for using RequestContext by default

2010-01-05 Thread Russell Keith-Magee
On Tue, Jan 5, 2010 at 11:00 PM, Jacob Kaplan-Moss wrote: > On Tue, Jan 5, 2010 at 7:41 AM, Russell Keith-Magee > wrote: >> I haven't taken the temperature of anyone else in the core, but you >> can take it as read that Simon and myself are both +1. The sprint this >

Re: Possible contrib.humanize addition

2010-01-05 Thread Russell Keith-Magee
On Wed, Jan 6, 2010 at 5:24 AM, harrym wrote: > I'm working a templatetag that determines whether to use 'a' or 'an' > in front of English words. My particular use case for this is in a > tumblelog app I'm developing - many different types of entry may be > added (link, html, quote, etc), and I'm

Re: Final call for feedback: Multi-db

2010-01-05 Thread Russell Keith-Magee
On Wed, Jan 6, 2010 at 12:42 AM, Brett Hoerner wrote: > On Dec 22 2009, 4:27 pm, Russell Keith-Magee > wrote: >> I'll need to cogitate on this over my Christmas pudding :-) > > Did you come to any conclusions, or need any more feedback on the read- > slave testing iss

Re: Using Django with Jinja2 and TEMPLATE_DEBUG=True

2010-01-06 Thread Russell Keith-Magee
On Thu, Jan 7, 2010 at 2:54 AM, Rick van Hattem wrote: > Hi, > > Maybe this question has already been asked, but I am wondering why Jinja2 > compatibility can't be fixed in a clean way. Currently the code assumes that > if an exception has a "source" attribute that it's a Django exception and can

Re: Problem with history view in admin page

2010-01-06 Thread Russell Keith-Magee
On Thu, Jan 7, 2010 at 2:02 PM, Mario Briggs wrote: > Russ, > > The indexing that Oracle is supporting is 'index-on-expression'. DB2 > also supports that, but it isnt enabled for character long columns, > since they hadnt had a request for that. I talked to the DB2 server > folks about these use-c

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

2010-01-07 Thread Russell Keith-Magee
On Fri, Jan 8, 2010 at 7:17 AM, j...@jeffcroft.com wrote: > With MultiDB, it's now essential that custom model save methods accept > the "using" keyword argument. However, the docs explicitly suggest a > signature like: > > def save(self, force_insert=False, force_update=False): > > (You can see t

Re: Final call for feedback: Multi-db

2010-01-07 Thread Russell Keith-Magee
On Fri, Jan 8, 2010 at 3:17 AM, Brett Hoerner wrote: > On Jan 5, 8:09 pm, Russell Keith-Magee wrote: >> If you're actually doing master/slave in the wild, your guidance may >> actually be more enlightening than my theoretical navel gazing. In >> particular - how

Call for comment: #5390 Many To Many signals

2010-01-08 Thread Russell Keith-Magee
Hi all, I've just uploaded a patch for #5390, which adds signals to many-to-many modifying operations. This is a ticket that was a low-priority accepted item for 1.1 (ORM-18), but got bumped due to time [1]. For some reason, it wasn't resubmitted for 1.2. The purpose of this post is twofold: 1)

Re: Call for comment: #5390 Many To Many signals

2010-01-08 Thread Russell Keith-Magee
On Fri, Jan 8, 2010 at 9:46 PM, Luke Plant wrote: > On Friday 08 January 2010 12:04:27 Russell Keith-Magee wrote: > >> Any feedback on this design? > > Just a few things: > > 1) In assessing performance impact, people need to be clear that there > is just one signal ha

Re: DB optimization docs

2010-01-08 Thread Russell Keith-Magee
On Fri, Jan 8, 2010 at 10:04 PM, Luke Plant wrote: > Hi all, > > I was prompted by this post: > > http://it.toolbox.com/blogs/database-soup/stuff-id-love-to-see-from- > django-36278 > > to add some notes about some DB access optimizations (essentially the > things I mentioned in my comment on that

Re: Porting Django to Python 3

2010-01-08 Thread Russell Keith-Magee
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 our undergraduate courses led by > Greg Wilson (http://www.cs.utoronto.ca/~gvwilson/), myself and a group > of 10 other c

Re: Call for comment: #5390 Many To Many signals

2010-01-08 Thread Russell Keith-Magee
On Sat, Jan 9, 2010 at 9:47 AM, Xia Kai(夏恺) wrote: > Hi all, > > IMHO this patch would still make django issue illogical signals in admin. > frans and I have pointed out that the __set__ method in the > ManyRelatedObjectsDescriptor is flawed[1-2], which is used by admin. It isn't as simple as say

Re: Is a partial translation acceptable?

2010-01-08 Thread Russell Keith-Magee
On Sat, Jan 9, 2010 at 8:23 AM, Jeff Balogh wrote: > How do you guys feel about getting an incomplete translation for some > locales?  We might want to support some locales that Django doesn't > have yet, but I'm trying not to overload our localizers with all the > strings in Django (they're alrea

Re: Call for comment: #5390 Many To Many signals

2010-01-09 Thread Russell Keith-Magee
On Sat, Jan 9, 2010 at 3:10 PM, Xia Kai(夏恺) wrote: > Hi, > > First thing first, I shall explain why this have something to do with admin. > > Django's admin save m2m relationship in ModelAdmin's change_view method. > After some tracing, you would find that the m2m relationship is saved using > Mod

Re: Message level API awkwardness

2010-01-10 Thread Russell Keith-Magee
On Fri, Jan 8, 2010 at 7:10 AM, SmileyChris wrote: > > > On Jan 6, 11:09 pm, Jeremy Dunck wrote: >> I realize I'm very late giving feedback on the API, sorry and feel >> free to ignore if I'm too late. >> >> That said, from the docs, the API to set the effective messaging level >> is awkward: >>

Re: Feedback on ticket 7777

2010-01-12 Thread Russell Keith-Magee
On Tue, Jan 12, 2010 at 12:05 PM, thebitguru wrote: > Can we please get a final decision on this please? I was under the impression I *had* given a final decision - we should reject Inf and NaN as invalid values. The ticket hasn't been closed because we're not focussing on bug fixes at the momen

Re: Feedback on ticket 7777

2010-01-12 Thread Russell Keith-Magee
On Tue, Jan 12, 2010 at 11:17 PM, thebitguru wrote: > Oh, I thought someone else might also have to agree, but anyways, I > see (http://code.djangoproject.com/wiki/Version1.2Roadmap) that the > complete feature freeze is January 26 so I will check again on > February 11 :) > > I changed the versio

Re: Porting Django to Python 3

2010-01-13 Thread Russell Keith-Magee
On Wed, Jan 13, 2010 at 5:21 PM, Hanne Moa wrote: > 2010/1/13 Tobias McNulty : >> I am by no means an expert on the matter, but I remember seeing a comment >> awhile back suggesting that it generally makes more sense to fix the 2to3 >> script than to maintain two branches of the same library. Migh

Re: Logging format decision

2010-01-13 Thread Russell Keith-Magee
On Sun, Jan 10, 2010 at 4:45 AM, Ivan Sagalaev wrote: > Hello everyone! > > There was a discussion here some time ago about logging in Django that led > to the ticket 12012 [1] where Simon has done most (all?) of the > implementation. > > There is still a disagreement on the format of the configur

Re: help needed: non-relational DB support

2010-01-14 Thread Russell Keith-Magee
On Thu, Jan 14, 2010 at 9:01 PM, Thomas Wanschik wrote: > > On Jan 8, 1:10 pm, Waldemar Kornewald wrote: >> Hi, >> our non-relational port has come to the point where we need to >> back-port the SQL layer to the query backend API (i.e., the new >> query_class()). We could need some help from Djan

Re: M2M Column Names Changed in 1.2 - Breaks Backwards Compatibility

2010-01-14 Thread Russell Keith-Magee
On Thu, Jan 14, 2010 at 3:13 PM, simonb wrote: > I think this ticket http://code.djangoproject.com/ticket/12386 > identifies a change in the m2m code which breaks backwards > compatibility. Hi Simon, I'm aware of the ticket - there are a couple of tickets that I need to take a look at regarding

Re: help needed: non-relational DB support

2010-01-14 Thread Russell Keith-Magee
On Fri, Jan 15, 2010 at 5:08 AM, Waldemar Kornewald wrote: > On Thu, Jan 14, 2010 at 2:42 PM, Russell Keith-Magee > wrote: >> Speaking for myself, I'm pretty busy trying to get features completed >> before the 1.2 feature deadline. At the moment, anything that isn't o

Re: Speeding up test running

2010-01-14 Thread Russell Keith-Magee
On Fri, Jan 15, 2010 at 9:59 AM, 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: DB optimization docs

2010-01-16 Thread Russell Keith-Magee
On Sat, Jan 16, 2010 at 7:52 PM, Mat Clayton wrote: > I know this isn't really related, but figure I would bring it up here. When > working on optimizing our django app, it became very clear that one of the > biggest issues as usual is Indexes, particularly multi column indexes, which > at present

Re: DB optimization docs

2010-01-16 Thread Russell Keith-Magee
On Sat, Jan 16, 2010 at 8:56 PM, Mat Clayton wrote: > Great, have to confess I don't know the ORM internals at all, so not sure > how long this could take me, shall see what I can do. Also any indications > of where/what to start looking for would be appreciated. In the end, db_index_together wil

Re: DB optimization docs

2010-01-16 Thread Russell Keith-Magee
On Sat, Jan 16, 2010 at 9:55 PM, Mat Clayton wrote: > Thanks, I've looked over both sets of code, seem's fine to me. The only > complex stuff is that Indexes can only be created on certain field types, so > additional checks may need doing. Also different index types are available > on different s

Call for comment: #12624 Class based test runners

2010-01-16 Thread Russell Keith-Magee
Hi all, This is a quick call for comment on ticket #12624. This ticket proposes to make Django's test runner a class-based, rather than function based operation. This makes it much easier to modify the individual parts of the behavior of the Django test runner. For example if you want to: - no

Re: help needed: non-relational DB support

2010-01-16 Thread Russell Keith-Magee
On Sun, Jan 17, 2010 at 9:37 AM, Waldemar Kornewald wrote: > On Sat, Jan 16, 2010 at 10:35 PM, flo...@gmail.com wrote: >> I'm not really a developer on Django itself, but I am fairly >> interested in non-relational databases, and some of the things being >> said in this thread worry me a bit. > >

Re: Logging format decision

2010-01-17 Thread Russell Keith-Magee
On Sun, Jan 17, 2010 at 5:17 AM, Ivan Sagalaev wrote: > Russell Keith-Magee wrote: >> >> That said - I really do want to see logging in Django's trunk. If we >> can sort out the details in the background and get a good >> implementation ready, it could easily be th

Re: help needed: non-relational DB support

2010-01-17 Thread Russell Keith-Magee
On Sun, Jan 17, 2010 at 9:56 PM, Waldemar Kornewald wrote: > On Sun, Jan 17, 2010 at 5:36 AM, Russell Keith-Magee > wrote: >> On Sun, Jan 17, 2010 at 9:37 AM, Waldemar Kornewald >> wrote: >>> On Sat, Jan 16, 2010 at 10:35 PM, flo...@gmail.com wrote: >>>&g

Re: Reservations about "default" database in 1.2 alpha

2010-01-17 Thread Russell Keith-Magee
On Mon, Jan 18, 2010 at 1:21 AM, Bill Hubauer wrote: > > Hi all, > > I'm new to the group, so my apologies if this has been discussed > already.    I have some serious reservations about the implementation > of the "default" database in the new multi-db support feature. > > Anytime you obtain a mo

Re: DB optimization docs

2010-01-17 Thread Russell Keith-Magee
On Mon, Jan 18, 2010 at 2:03 AM, Mat Clayton wrote: > Thrown together a first attempt at adding multi column indexes and just want > some comments on the syntax used, for example. > from django.db import models > class Poll(models.Model): >     question = models.CharField(max_length=200, db_index=

Re: Call for comment: #12624 Class based test runners

2010-01-18 Thread Russell Keith-Magee
On Sun, Jan 17, 2010 at 4:58 AM, Jeff Balogh wrote: > On Sat, Jan 16, 2010 at 6:26 AM, Russell Keith-Magee > wrote: >> Hi all, >> >> This is a quick call for comment on ticket #12624. >> >> This ticket proposes to make Django's test runner a class-based

Re: Call for comment: #12624 Class based test runners

2010-01-18 Thread Russell Keith-Magee
On Tue, Jan 19, 2010 at 12:39 AM, Eric Holscher wrote: > Saw this go in, and it gets a huge +1 from me as well. However, I know that > in the past we have talked about adding other things to the test runner > (like coverage, etc), so it would seem like now would be a good time to > recommend accep

Re: Master/slave replication in multi-db era

2010-01-19 Thread Russell Keith-Magee
On Tue, Jan 19, 2010 at 3:10 PM, Ivan Sagalaev wrote: > Russell Keith-Magee wrote: >> >> There are some cases where this shouldn't happen - for example, in a >> master/slave setup. I'm tinkering with some code at the moment to >> control this sort of database

Re: Final call for feedback: Multi-db

2010-01-19 Thread Russell Keith-Magee
On Sat, Dec 19, 2009 at 10:48 PM, Russell Keith-Magee wrote: > On Sat, Dec 19, 2009 at 1:41 AM, Brett Hoerner wrote: >> >> I would think read-slaves would be a pretty common application of >> multidb, but I can only speak to our use case.  I know it's a bit late >>

Re: Final call for feedback: Multi-db

2010-01-19 Thread Russell Keith-Magee
On Tue, Jan 19, 2010 at 11:27 PM, Russell Keith-Magee wrote: > On Sat, Dec 19, 2009 at 10:48 PM, Russell Keith-Magee > wrote: >> On Sat, Dec 19, 2009 at 1:41 AM, Brett Hoerner >> wrote: >>> >>> I would think read-slaves would be a pretty common application

Re: Per application default database?

2010-01-19 Thread Russell Keith-Magee
On Tue, Jan 19, 2010 at 12:20 AM, Tobias McNulty wrote: > > > On Mon, Jan 18, 2010 at 11:04 AM, Bill Hubauer wrote: >> >> One of the use cases that may be common for multiple database support is >> being able to combine multiple Django applications that require different >> databases into a singl

Feedback requested: Multi-db database routing

2010-01-20 Thread Russell Keith-Magee
Hi all, I've just uploaded a new patch improving the multi-db interface. This patch introduces a way to easily configure the database selection process, and enables you to assign a database selection mechanism to models not under your control (e.g., changing database usage for the contrib.auth app

Re: Feedback requested: Multi-db database routing

2010-01-20 Thread Russell Keith-Magee
On Thu, Jan 21, 2010 at 3:59 AM, Jacob Kaplan-Moss wrote: > On Wed, Jan 20, 2010 at 10:06 AM, Russell Keith-Magee > wrote: >> Ok - so that's the patch. Any comments, queries, or criticisms are welcome. > > I'm happy -- +1. > > One thing, to point out, thoug

Re: What The Enterprise wants from Django

2010-01-20 Thread Russell Keith-Magee
On Thu, Jan 21, 2010 at 2:54 AM, Jacob Kaplan-Moss wrote: > On Wed, Jan 20, 2010 at 12:31 PM, Luke Plant wrote: >> I don't understand how avoiding the settings.py mechanism will produce >> *more* flexibility. > > The problem -- at least as I see it -- is that of a intertwingulment > of "applicati

Re: Feedback requested: Multi-db database routing

2010-01-21 Thread Russell Keith-Magee
On Thu, Jan 21, 2010 at 8:21 PM, Yuri Baburov wrote: > Hi Russell, > > Thanks, I'm rather happy too. > It's exactly what we wanted! > > DB Routing API is even better than some fixed db routing format. > I just thought about any model with GFK, like TagField from django-tagging -- > with multidb, t

Re: Proposal: errors with URLs in them

2010-01-21 Thread Russell Keith-Magee
On Fri, Jan 22, 2010 at 1:35 AM, Andy McKay wrote: > One of my favourite errors in Python is this one: > >        File "settings.py", line 2 >        SyntaxError: Non-ASCII character '\xce' in file settings.py on line 2, >        but no encoding declared; see http://www.python.org/peps/pep-0263.ht

Re: Feedback requested: Multi-db database routing

2010-01-21 Thread Russell Keith-Magee
On Fri, Jan 22, 2010 at 2:03 AM, Yuri Baburov wrote: > Hi Russell, > > On Thu, Jan 21, 2010 at 7:10 PM, Russell Keith-Magee > wrote: >> Secondly, while I can see how this information could be useful, it >> doesn't change the fact that the information is just as easy

Re: Feedback requested: Multi-db database routing

2010-01-21 Thread Russell Keith-Magee
On Thu, Jan 21, 2010 at 9:54 PM, Ivan Sagalaev wrote: > Russell Keith-Magee wrote: >> >> class MasterSlaveRouter(object): >>    def db_for_read(self, model, db=None): >>        # Point all read operations to a random slave >>        return random.choice(

Feedback requested: One last time with multi-db

2010-01-23 Thread Russell Keith-Magee
Hi all, This is a call for comments on what I hope will be the last two modifications to multi-db support for 1.2. Barring negative feedback, I aim to commit this at the start of next week, just in time for the beta-1 feature freeze. Change 1: Identifying which models are on which database -

Re: possible bug in count() in many_to_many relations?

2010-01-24 Thread Russell Keith-Magee
On Mon, Jan 25, 2010 at 7:14 AM, x13 wrote: > (sorry for my English mistakes) > Hello all, I have a problem with the count() function when I try to > use it in an empty many_to_many relationship. I have these models: > > > class Photo(models.Model): >   ... > > class Gallery(models.Model): >   ...

Re: App / Model specific database solution

2010-01-25 Thread Russell Keith-Magee
On Mon, Jan 25, 2010 at 7:31 PM, Bill Hubauer wrote: > > > Hi all, > > Given the new multi-db implementation, I put together a couple of little > "helper" classes to make app specific, or model specific databases really > easy. > > Please consider the following and let me know if you think this

Re: App / Model specific database solution

2010-01-25 Thread Russell Keith-Magee
On Mon, Jan 25, 2010 at 8:21 PM, Yuri Baburov wrote: > Hi Russell, > > regarding that doc page, > > there's a typo, please remove that hanging "admin.site.register": > class PublisherAdmin(MultiDBModelAdmin): >    inlines = [BookInline] > >    admin.site.register Done - thanks for the report, Yur

Re: Translation patch and the I18N mailinglist

2010-01-25 Thread Russell Keith-Magee
On Tue, Jan 26, 2010 at 6:06 AM, TiNo wrote: > Hi, > The reason I posted there was to see if anybody had any objections to the > one-liner patch [2] I suggested for a dutch translation that is wrong at the > moment. It would be really nice to see this checked in for 1.2, as it has > been looking q

Re: 1.2 beta?

2010-01-25 Thread Russell Keith-Magee
On Tue, Jan 26, 2010 at 2:55 AM, Jacob Kaplan-Moss wrote: > Hey folks -- > > Are we on track for releasing a 1.2 beta this week? > > That'd match our original schedule, but we did miss 1.2 alpha by a > week or so, so perhaps we should push back the beta to match? Or is > everyone happy with progre

Re: 1.2 beta?

2010-01-25 Thread Russell Keith-Magee
On Tue, Jan 26, 2010 at 7:09 AM, Luke Plant wrote: > On Monday 25 January 2010 18:55:34 Jacob Kaplan-Moss wrote: >> Hey folks -- >> >> Are we on track for releasing a 1.2 beta this week? >> >> That'd match our original schedule, but we did miss 1.2 alpha by a >> week or so, so perhaps we should pu

Re: 1.2 beta?

2010-01-25 Thread Russell Keith-Magee
On Tue, Jan 26, 2010 at 9:05 AM, Russell Keith-Magee wrote: > On Tue, Jan 26, 2010 at 2:55 AM, Jacob Kaplan-Moss wrote: >> Hey folks -- >> >> Are we on track for releasing a 1.2 beta this week? >> >> That'd match our original schedule, but we did miss 1.2 a

Re: Feedback on ticket #12399

2010-01-26 Thread Russell Keith-Magee
On Wed, Jan 27, 2010 at 12:30 AM, Giuseppe Ciotta wrote: > http://code.djangoproject.com/ticket/12399 > > It's a nasty bug which leads to a 100% cache misses situation on > memcached when using long keys timeouts. > > Do you think we can have this included in 1.2? Should i mark it with > Version:1

Re: Deleting related objects in the admin: patch for #6191

2010-01-26 Thread Russell Keith-Magee
On Wed, Jan 27, 2010 at 2:00 AM, Carl Meyer wrote: > Hey all, > > During the Chicago sprint a few weeks ago I put together a patch for > #6191: the admin's "the following related objects will be deleted" > list in some cases omits items that actually are deleted (oops!). The > admin has its own ro

Re: Pony request: refetch method to models

2010-01-26 Thread Russell Keith-Magee
On Wed, Jan 27, 2010 at 12:59 AM, Jukka wrote: > Hi all, > > I'd like to propose adding a method to Model that can be used to fetch > a "fresh" version of a model object from the database. This isn't a completely unreasonble idea, but it is an unreasonable time to suggest it :-) We are days away

Re: Any change this could make it in for 1.2?

2010-01-27 Thread Russell Keith-Magee
On Wed, Jan 27, 2010 at 10:54 PM, Alex Robbins wrote: > This ticket adds label and verbose_name to apps. I know this would be > very useful for lots of people. > http://code.djangoproject.com/ticket/3591 > > Is it too late for it to make it into 1.2? What can we do to make sure > it makes it in fo

Re: Any change this could make it in for 1.2?

2010-01-27 Thread Russell Keith-Magee
On Wed, Jan 27, 2010 at 11:08 PM, Harro wrote: > +1 > > Sick of explaining to dutch customers that I can't translate those > texts in the admin. This may be the case, but... > It's a simple patch which doesn't break backwards compatibility at > all. ...neither of these statements is correct. I

Re: 1.2 beta?

2010-01-27 Thread Russell Keith-Magee
On Wed, Jan 27, 2010 at 9:52 PM, Ben Firshman wrote: > On 25 Jan 2010, at 18:55, Jacob Kaplan-Moss wrote: > > Are we on track for releasing a 1.2 beta this week? > > That'd match our original schedule, but we did miss 1.2 alpha by a > week or so, so perhaps we should push back the beta to match? O

Re: Manage CSS/JS files in admin views.

2010-01-29 Thread Russell Keith-Magee
On Fri, Jan 29, 2010 at 11:47 PM, patrickk wrote: > @jannis: no, it isn´t. I thinkg you are able to _add_ js to your admin > views, but you´re not able to _remove_ javascripts. there´s still way > too much hardcoded stuff with the admin-interface (IMO). > > I hope that including jquery with the ad

Re: HTML 5

2010-01-30 Thread Russell Keith-Magee
On Sun, Jan 31, 2010 at 4:35 AM, Suno Ano wrote: > I've looked at the users and devel mailing list but didn't find > any information on HTML 5. I found > http://github.com/rhec/django-html5 though. Can anybody tell me > if there are any plans with regards to HTML 5 in Django and if > so, what are

Re: [PATCH] RawQuerySet one-liner

2010-01-31 Thread Russell Keith-Magee
On Mon, Feb 1, 2010 at 10:28 AM, Richard Laager wrote: > There's a small bug in RawQuerySet. It breaks (returns a deferred model > instance instead of a regular model instance even when the appropriate > column is SELECTed) with models that have a ForeignKey with a db_column > specified. For examp

Re: Patch uploaded for ticket 12180

2010-01-31 Thread Russell Keith-Magee
On Mon, Feb 1, 2010 at 11:05 AM, Christophe Pettus wrote: > I've uploaded a patch for this ticket, which fixes a somewhat obscure > problem: Thanks for the patch. However, as noted in [1], you don't need to post to django-dev just to tell us you uploaded a patch. The core developers all track dj

Re: Patch uploaded for ticket 12180

2010-01-31 Thread Russell Keith-Magee
On Mon, Feb 1, 2010 at 11:18 AM, Christophe Pettus wrote: > > On Jan 31, 2010, at 7:10 PM, Russell Keith-Magee wrote: >> >> However, as noted in [1], you don't need to post to django-dev just to >> tell us you uploaded a patch. > > OK, sorry for the noise.  Sin

Re: hide_email template tag

2010-01-31 Thread Russell Keith-Magee
On Mon, Feb 1, 2010 at 2:54 PM, Dave Jeffery wrote: > I know this is a bad time to bring up feature requests but I would most > likely have forgotten to bring it up at a later date. > Would a hide_email template tag be a good addition to the standard set of > template tags in django? There's a sni

Re: 1.2 Beta Thursday

2010-02-02 Thread Russell Keith-Magee
On Wed, Feb 3, 2010 at 5:19 AM, James Bennett wrote: > I'm kind of choosing this arbitrarily, but as far as I can tell we > should be good to go for rolling a beta any time. So I'm picking > Thursday. > > If there are any blockers I'm not aware of, let me know. Also, note > that this will be the f

Re: Per application default database?

2010-02-03 Thread Russell Keith-Magee
On Wed, Feb 3, 2010 at 3:53 AM, kmpm wrote: > Wouldn't a database router like this sort of do the thing for now... Yes - this is exactly what a router is designed for. At the time I posted my last reply, routers didn't exist yet. I had to implement routers in order to solve some other problems,

Re: 1.2 Beta Thursday

2010-02-03 Thread Russell Keith-Magee
On Thu, Feb 4, 2010 at 5:22 AM, Richard Davies wrote: > On Feb 2, 9:19 pm, James Bennett wrote: >> Also, note that this will be the final feature freeze for 1.2; >> if it ain't in trunk when I roll the tarball, it'll have to wait until 1.3. > > Any chance of getting #10476 and #11156 in? > > Both

Re: Per application default database?

2010-02-03 Thread Russell Keith-Magee
On Thu, Feb 4, 2010 at 4:00 AM, scastillo wrote: > And what if i just want to have the same database but with different > users for each app on project? If, by "users" are you referring to the database login credentials, you could set up a multiple connections to the same database, each with a di

Re: Per application default database?

2010-02-03 Thread Russell Keith-Magee
On Thu, Feb 4, 2010 at 2:11 AM, kmpm wrote: > Hmm... strange. > I get a strange error when I tried to do this > Something about a django_content_type  relation which I don't have. > This probably happens when the "app" gets registerd in the auth > system. > Same error with both postgresql and

Re: Refining Django admin look proposal

2010-02-03 Thread Russell Keith-Magee
On Thu, Feb 4, 2010 at 8:35 AM, tezro wrote: > Hi everybody. > > I use Django for about a year, do websites for about 5 years, am kind > of experienced in web, interface and techdesign, used lots of CMS or > other site management tools (99% is a piece of crab). And I'm writing > here because altho

Re: Refining Django admin look proposal

2010-02-05 Thread Russell Keith-Magee
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 the Django admin interface is dated > and has some UI issues that c

Re: Refining Django admin look proposal

2010-02-05 Thread Russell Keith-Magee
On Fri, Feb 5, 2010 at 7:03 PM, Dave Jeffery wrote: > > > On Thu, Feb 4, 2010 at 1:44 AM, Russell Keith-Magee > wrote: >> >> On Thu, Feb 4, 2010 at 8:35 AM, tezro wrote: >> > >> > As the most obvious thing - here's the margin/padding problem on

Re: State of the 1.2 documentation

2010-02-06 Thread Russell Keith-Magee
On Sun, Feb 7, 2010 at 5:50 AM, Yannick Gingras wrote: > > Greetings Django-devs, >  as stated previously, we organize a translation sprint in Montréal on > 2010-02-15.  What we have not decided yet is what version of the > documentation we are going to translate.  We want our effort to be > inclu

Re: Refining Django admin look proposal

2010-02-06 Thread Russell Keith-Magee
On Sun, Feb 7, 2010 at 7:55 AM, j...@jeffcroft.com wrote: > >> 1. I'm not in favor of redesigns for redesigns' sake; yes, the current >>    admin UI has been around for a while, but if we rework it, we >>    should rework it because there are actual issues with it which need >>    to be resolved.

Re: Django Design Czar

2010-02-07 Thread Russell Keith-Magee
On Sun, Feb 7, 2010 at 9:11 AM, j...@jeffcroft.com wrote: >> I'm opposed to this.  Firstly, unless I've missed something whoever > gets the position, would definitionally get it before they've done > anything! > > To respond to just this bit: you're right, but the reason whoever gets > this positi

Re: Django Design Czar

2010-02-07 Thread Russell Keith-Magee
On Mon, Feb 8, 2010 at 6:25 AM, Idan Gazit wrote: > > On Feb 7, 11:58 pm, "j...@jeffcroft.com" wrote: >> You're right, Idan. Sorry if I steered it off-track! I sent Wilson a >> message asking him to check out this thread. > > Awesome, thanks! > >> I think we first need to make sure we ARE going f

Re: Django Design Czar

2010-02-08 Thread Russell Keith-Magee
On Mon, Feb 8, 2010 at 2:34 PM, j...@jeffcroft.com wrote: > So, unless anyone disagrees with the idea that Wilson should have > first dibs on this position, it sounds like we have ourselves a Design > Czar. Or whatever you want to call it. Woot! I, for one, welcome our new (erm... old) Design Ove

Re: contrib.Auth

2010-02-08 Thread Russell Keith-Magee
On Tue, Feb 9, 2010 at 8:15 AM, Justin Lilly wrote: > To add another point, this doesn't mean that the day 1.2 hits release that > everyone is gung-ho on 1.3. If past releases are any indication, there is > usually a refactory period of a few weeks when everyone is basking in > post-release bliss.

Re: #12804 - decorating admin views marked as invalid

2010-02-08 Thread Russell Keith-Magee
On Tue, Feb 9, 2010 at 7:19 AM, Karen Tracey wrote: > On Mon, Feb 8, 2010 at 8:44 AM, Luke Plant wrote: >> >> What do people think? > > Ugh. Assuming no one can come up with a brilliant fix so that the auto_adapt > stuff can work when combined with arbitrary other decorators (I can't), I > favor

Re: #12804 - decorating admin views marked as invalid

2010-02-09 Thread Russell Keith-Magee
On Tue, Feb 9, 2010 at 10:51 PM, Luke Plant wrote: > On Tuesday 09 February 2010 02:40:03 Russell Keith-Magee wrote: > >> >> What do people think? >> > >> > Ugh. Assuming no one can come up with a brilliant fix so that the >> > auto_adapt stuf

Re: QuerySet.exists() - Possible bug?

2010-02-09 Thread Russell Keith-Magee
On Wed, Feb 10, 2010 at 3:11 PM, Jerome Leclanche wrote: > Hi list > > Using David Cramer's really nice replacement devserver > (http://github.com/dcramer/django-devserver), I noticed a bunch of > huge queries in some table generation code. Example: > http://dpaste.com/156907/ > This is from one o

Re: Admin refactoring

2010-02-10 Thread Russell Keith-Magee
On Wed, Feb 10, 2010 at 6:41 PM, PauloS wrote: > Currently it is easy to change the template engine in a Django > project, but if you change the ORM layer you lost the whole Admin > thing, the very app that made Django so special. > > If we are talking about refactoring Admin code (not only html/c

Translation policy - clarification required?

2010-02-10 Thread Russell Keith-Magee
Hi all, I need some feedback/assistance from those with experience with the translation tool set. Karen Tracey just pointed out that I may have made a booboo with the handling of translations in the 1.1.X branch. I committed updates to trunk for the no, fr, nl, sk, cz and ro translations. I also

Re: Status of branch soc2009/http-wsgi-improvements? (and ticket 2131)

2010-02-10 Thread Russell Keith-Magee
On Wed, Feb 10, 2010 at 11:09 PM, Jari Pennanen wrote: > Hi! > > I was wondering what is the status of branch branches/soc2009/http- > wsgi-improvements ( > http://github.com/django/django/tree/soc2009/http-wsgi-improvements > )? I'm personally interested one bug it fixes, mainly ticket #2131 > (

Re: Bug in Form metaclass?

2010-02-10 Thread Russell Keith-Magee
On Thu, Feb 11, 2010 at 7:40 AM, Simon Meers wrote: > Disclaimer: Just in case this was a naive mistake on my part, I posted > this on django-users first [1] and posed the question several times on > #django, but have received no answers. Firstly, django-dev isn't "second tier tech support" - if

Re: Translation policy - clarification required?

2010-02-10 Thread Russell Keith-Magee
On Thu, Feb 11, 2010 at 8:10 AM, Alex Gaynor wrote: > On Wed, Feb 10, 2010 at 7:07 PM, Russell Keith-Magee > wrote: >> Hi all, >> >> I need some feedback/assistance from those with experience with the >> translation tool set. >> >> Karen Tracey just poin

<    1   2   3   4   5   6   7   8   9   10   >