Re: GSoC: Data importation class

2010-03-25 Thread Malcolm Tredinnick
Hi, I see a few problems here. The gist of what follows is that it seems a bit abstract and as one tries to nail down the specifics it either devolves to a more-or-less already solved problem that doesn't require Django core changes, or a problem that is so unconstrained as to not be solvable by a

Re: GSoC10 Idea: Additional queryset methods

2010-03-19 Thread Malcolm Tredinnick
On Fri, 2010-03-19 at 05:39 -0700, Sh4wn wrote: [..] > I want to refactor the QuerySet and other databases related API's, > which adds an additional method of selecting records, and provides > more control of what data you'll select, but probably is a bit more > complex than the current API. It's a

Re: Shouldn't custom fields in ModelForms pick up model Field options by default?

2009-08-12 Thread Malcolm Tredinnick
On Wed, 2009-08-12 at 20:05 -0700, Kevin Henry wrote: [...] > But if you decide to customize the widget, for example: > > class AuthorForm(forms.ModelForm): > name = forms.CharField(widget=forms.TextInput(attrs={'size':80})) > > class Meta: > model = Author > > the form field no

Re: App Engine support

2009-08-12 Thread Malcolm Tredinnick
On Wed, 2009-08-12 at 03:04 -0700, Waldemar Kornewald wrote: > On Aug 12, 11:40 am, Malcolm Tredinnick > wrote: > > On Wed, 2009-08-12 at 02:32 -0700, Waldemar Kornewald wrote: > > > Is there a way to override sql.subqueries? > > > > Not yet. As mentioned earlie

Re: App Engine support

2009-08-12 Thread Malcolm Tredinnick
On Wed, 2009-08-12 at 02:32 -0700, Waldemar Kornewald wrote: > On Aug 12, 2:09 am, Russell Keith-Magee > wrote: > > > Is the consensus that further refactoring or rethinking of things like > > > QuerySet and Query are required to make this happen? > > > > Not really a consensus - more a general f

Re: Change list default sort modification proposal

2009-08-11 Thread Malcolm Tredinnick
For those, like me, wondering what this proposal was about, it's concerning changing sorting in the admin interface to initially use the full set of fields specified in Meta.ordering on the model. What I can't work out yet, due to difficulty in reviewing the patch, mentioned below, is whether it

Re: FileFields and file ownership

2009-08-11 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 04:39 -0700, Ole Laursen wrote: > Hi! > > There are a couple of bugs open/closed about what happens when you > upload a new file to a file field that already has a file: > > http://code.djangoproject.com/ticket/11663 > http://code.djangoproject.com/ticket/2983 > http:

Re: 1.2 Proposal: Database savepoint refactoring

2009-08-11 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 10:21 -0700, Richard Davies wrote: > > I don't agree the current savepoint use within Django is inconsistent. As > > far as I can tell, savepoints are used internally in the one case where > > Django itself catches and suppresses an IntegrityError. > ... > > Right now it is

Re: Online Documentation issues

2009-08-11 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 10:45 +0200, Marc Remolt wrote: > Hi, > > browsing the online docs, I stumbled over two minor issues: > > The online documentation under http://docs.djangoproject.com/en/ still > redirects to http://docs.djangoproject.com/en/dev/, which should be > .../1.1/ I suppose. No

Re: App Engine support

2009-08-11 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 00:03 -0700, Waldemar Kornewald wrote: > Hi, > > On Aug 11, 1:55 am, Russell Keith-Magee > wrote: > > > In conclusion, no on is currently working on, but for all the people > > > who seem to ask for this I've seen almost no code written, which > > > suprises me since this i

Re: App Engine support

2009-08-10 Thread Malcolm Tredinnick
On Mon, 2009-08-10 at 22:31 -0500, Jacob Kaplan-Moss wrote: > On Mon, Aug 10, 2009 at 9:07 PM, Malcolm > Tredinnick wrote: > > The only that seems to be possibly *required* to be changed in Django to > > support app-engine as a storage backend is the ManyToManyField change (I

Re: App Engine support

2009-08-10 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 10:58 +0800, Russell Keith-Magee wrote: [...] > This one is slightly topical. Alex has a github branch that refactors > the m2m code to get the SQL out of the related field model [1]. In > order to do this, it introduces a dummy model for m2m fields. This is > needed for Alex

Re: App Engine support

2009-08-10 Thread Malcolm Tredinnick
On Mon, 2009-08-10 at 05:19 -0700, Waldemar Kornewald wrote: > Hi, > now that 1.1 is out we can finally discuss App Engine support. Is > anyone planning to work on this feature or working on it for real or > are there just announcements that someone might consider doing it? > > BTW, I've reworked

Re: App Engine support

2009-08-10 Thread Malcolm Tredinnick
On Tue, 2009-08-11 at 07:55 +0800, Russell Keith-Magee wrote: > On Mon, Aug 10, 2009 at 10:56 PM, Alex Gaynor wrote: > > > > On Mon, Aug 10, 2009 at 7:19 AM, Waldemar Kornewald > > wrote: > >> > >> Hi, > >> now that 1.1 is out we can finally discuss App Engine support. Is > >> anyone planning to

Re: Allowing single values instead of tuples for choices in ChoiceField

2009-08-09 Thread Malcolm Tredinnick
On Sun, 2009-08-09 at 00:41 -0700, andybak wrote: > It does get slightly uglier when you have cases such as: > f = CharField(choices=zip > (some_complex_expression_that_generates_a_list, > some_complex_expression_that_generates_a_list)) > > You don't really want to assign the expression to a vari

Re: Allowing single values instead of tuples for choices in ChoiceField

2009-08-07 Thread Malcolm Tredinnick
On Fri, 2009-08-07 at 08:37 -0700, gruszczy wrote: > Hi everyone! > > I have created a ticket here: http://code.djangoproject.com/ticket/11644, > but it was marked wontfix and told to ask here about this change. > > The issue is that I consider convenient being able to pass a list of > either tu

Re: Status

2009-08-07 Thread Malcolm Tredinnick
On Fri, 2009-08-07 at 20:17 -0700, Marc Garcia wrote: > Hi Malcolm, > > I thought it didn't make sense to close tickets from commits until > now. You don't close the ticket. You put "Refs" in the commit message and it puts the commit message in the ticket without closing. This is all described i

Re: 1.2 Proposal: Add a few more tutorial steps

2009-08-07 Thread Malcolm Tredinnick
On Sat, 2009-08-08 at 00:15 +0100, Dougal Matthews wrote: > I'm a +1 for helping and doing whatever I can do improve the tutorials > as I think they could be expanded. However I'm about to bugger off for > a month so I'm not sure how that will fit in with timelines and such. We are thinking of wa

Re: Logging instead of connection.queries

2009-08-05 Thread Malcolm Tredinnick
On Tue, 2009-08-04 at 09:22 -0400, George Vilches wrote: [...] > > Putting signals on a replacement CursorWrapper would give the same > functionality from a user standpoint (the ticket outright says "This > will enable all sorts of interesting and useful things, such as > logging and debugging fu

Re: Session namespaces

2009-08-05 Thread Malcolm Tredinnick
On Tue, 2009-08-04 at 13:36 -0700, veena wrote: [...] > Do you think session namespaces would be useful and should be in > Django 1.2 development roadmap? I honestly can't get that excited about this. You can already use whatever dictionary keys you like now in sessions and if you want to split i

Re: [soc2008/i18n] Status

2009-08-05 Thread Malcolm Tredinnick
Hi Marc, On Wed, 2009-08-05 at 05:22 -0700, Marc Garcia wrote: [...] > Now, while waiting for feedback, I'll be fixing some minor i18n bugs, > already reported on trac. I assigned to myself, what I plan to work > on, so you can check the list on trac [2]. None ot eh tickets you have currenly mar

Re: Ticket 10912: Autoescaping variable input in template tags

2009-08-03 Thread Malcolm Tredinnick
On Mon, 2009-08-03 at 16:25 -0700, ab wrote: > Is this something that could be backwards-incompatible in 1.2? Please, no. There are thousands of template tags in the wild. This would be a *massive* imposition on existing code. Regards, Malcolm --~--~-~--~~~---~--~--

Re: Logging instead of connection.queries

2009-08-03 Thread Malcolm Tredinnick
On Mon, 2009-08-03 at 15:48 +0400, Ivan Sagalaev wrote: > Hello! > > A couple of days ago a sudden thought has struck me while thinking on > the matter of logging in Python libraries. I consider a good practice > for a library to log what it's doing into a named logger without setting > up log

Re: Long-term direction for shortcuts

2009-08-03 Thread Malcolm Tredinnick
On Mon, 2009-08-03 at 10:06 +0400, Ivan Sagalaev wrote: > Brent Hagany wrote: > > The issue of making shortcuts better (and decreasing the number of > > imports in views.py files) was brought up at DjangoCon > > Another angle on the issue of reducing imports is that we can do it not > with short

Re: Long-term direction for shortcuts

2009-08-02 Thread Malcolm Tredinnick
On Sun, 2009-08-02 at 18:53 -0700, chairface wrote: > On Aug 2, 8:36 pm, Malcolm Tredinnick > wrote: > > On Sun, 2009-08-02 at 18:05 -0700, Brent Hagany wrote: > > > > Putting too much weight on more or less throwaway comments in a single > > video isn

Re: Long-term direction for shortcuts

2009-08-02 Thread Malcolm Tredinnick
On Sun, 2009-08-02 at 18:05 -0700, Brent Hagany wrote: [...] > If you watch the video, there was some disagreement with the idea > right from the start. Putting too much weight on more or less throwaway comments in a single video isn't going to be particularly useful. > The ticket that grew ou

Re: Ticket 10912: Autoescaping variable input in template tags

2009-07-31 Thread Malcolm Tredinnick
On Sat, 2009-08-01 at 12:17 +1000, Malcolm Tredinnick wrote: > Hi Andrew, > > On Fri, 2009-07-31 at 15:44 -0700, ab wrote: > > When a template tag takes a variable as input and renders its value > > (like the `cycle` or `firstof` tags), that value should respect the >

Re: Ticket 10912: Autoescaping variable input in template tags

2009-07-31 Thread Malcolm Tredinnick
Hi Andrew, On Fri, 2009-07-31 at 15:44 -0700, ab wrote: > When a template tag takes a variable as input and renders its value > (like the `cycle` or `firstof` tags), that value should respect the > context's autoescape setting. Right now, the values are never escaped. > I'm proposing to make this

Re: Encodings outside of utf-8

2009-06-17 Thread Malcolm Tredinnick
On Wed, 2009-06-17 at 15:54 -0500, Jeremy Dunck wrote: > On Wed, Jun 17, 2009 at 3:50 PM, ccahoon wrote: > ... > > > > Does anyone have a use-case they could share with me? > > > > I hear Malcolm's hovercraft is full of eels. For those wondering if Jeremy might have lost his mind (well, that's a

Re: Localization of permissions names

2009-05-13 Thread Malcolm Tredinnick
On Wed, 2009-05-13 at 13:14 -0700, hcarvalhoalves wrote: > I tried both reopening [1] and filling a new ticket [2], but looks > like I'm doing it the wrong way as they kept being closed. So here I > come asking for help on the list. The reason in both cases was explained in the tickets (and in th

Re: ticket 10032, joins and isnull=True

2009-05-11 Thread Malcolm Tredinnick
On Mon, 2009-05-11 at 16:27 +0200, Michael Radziej wrote: > On Mon, May 11, Gábor Farkas wrote: > > > > > but that's not the case here. the nullable field i have here is a > > DateTimeField. > > > > we are talking about this sql: > > > > SELECT "x_group"."id", "x_group"."name" > > FROM "x_gro

Re: DatabaseWrapper operators

2009-05-04 Thread Malcolm Tredinnick
On Mon, 2009-05-04 at 03:26 -0700, pbzRPA wrote: > I would like to know if anyone knows how to create custom operators > for querysets. > > Currently you can do something like: > > foo.objects.filter(myfield__icontains = x) > > I would like to add my own operator so I can do something like: >

Re: dict over DSN; mixing bound/unbound fields; ManyToMany for create view

2009-05-02 Thread Malcolm Tredinnick
On Sat, 2009-05-02 at 08:29 -0700, ken keller wrote: [...] > I'm interested in hearing how you cope w/ the problem of specifying > ManyToMany relationships in an object creation view. Consider two > models M1 & M2 and a creation view/form for M1. A technique I'm using > is to specify M2 values as

Re: Multi-DB Update

2009-05-01 Thread Malcolm Tredinnick
On Fri, 2009-05-01 at 08:47 -0700, codysacoder wrote: > Why not allow both to work (parse the DSN string if encountered)? That should be an option of last resort. One way to do things, preferably obvious, even if you're not Dutch, and all that jazz. I'd prefer dictionaries to strings, because st

Re: GSoC Status update (week 2) - HTTP & WSGI Support

2009-05-01 Thread Malcolm Tredinnick
On Fri, 2009-05-01 at 13:09 -0600, Brian Rosner wrote: > On Fri, May 1, 2009 at 12:10 PM, ccahoon wrote: > > I have also been looking in to how I want to do revision control > > locally. After playing around with various systems, I think I've > > settled on Git. Does anyone have any recommendatio

Re: Week 2 Status and Info

2009-05-01 Thread Malcolm Tredinnick
Trimming the reply list a fair bit, since all the individual CC'd people are already on django-dev. On Fri, 2009-05-01 at 11:46 -0600, Kevin Kubasik wrote: > Hey, so its Week 2 of the 'get to know things and people' phase, and > things are going well. Here's a request for, I guess, everybody d

Re: SQL Anywhere database backend

2009-04-28 Thread Malcolm Tredinnick
On Tue, 2009-04-28 at 14:38 -0400, 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

Re: Schema Evolution

2009-04-27 Thread Malcolm Tredinnick
On Mon, 2009-04-27 at 13:22 -0700, andr...@klydd.se wrote: [...] > It seems like its to difficult to make such a decision, I get the > feeling that the core team is > to afraid to get criticism of picking the wrong one. Permit me to correct that impression: you are mistaken. > But as I said, >

Re: unassigned variable use in db/models/sql/query.py (wingware ide raised exception)

2009-04-24 Thread Malcolm Tredinnick
On Fri, 2009-04-24 at 08:25 -0700, falken wrote: > hi, should this be for a ticket?, sorry for twice post, but it > prevents this fine ide to be used smoothly for beginners: > > http://groups.google.com/group/django-users/browse_thread/thread/7289436c968d9c8b# There's no bug there. Your propose

Re: [GSOC] Multi-DB

2009-04-21 Thread Malcolm Tredinnick
On Tue, 2009-04-21 at 16:36 -0400, Alex Gaynor wrote: > > > On Tue, Apr 21, 2009 at 4:29 PM, Malcolm Tredinnick > wrote: > > On Tue, 2009-04-21 at 15:46 -0400, Alex Gaynor wrote: > > > > > > On Tue, Apr 21,

Re: [GSOC] Multi-DB

2009-04-21 Thread Malcolm Tredinnick
On Tue, 2009-04-21 at 15:46 -0400, Alex Gaynor wrote: > > > On Tue, Apr 21, 2009 at 3:14 PM, Malcolm Tredinnick > wrote: [...] > > Postponing any real decision making (at the code level -- I'm > not > talking about the human l

Re: About localization settings

2009-04-21 Thread Malcolm Tredinnick
On Mon, 2009-04-20 at 15:04 -0700, Marc Garcia wrote: > Hi folks, > > just to warm up for my Google Summer of Code on i18n, I want to start > a discussion on to simple things... > > First thing is where to place l10n settings. In my opinion it should > be under the existing directories for every

Re: About localization settings

2009-04-21 Thread Malcolm Tredinnick
On Tue, 2009-04-21 at 01:47 -0700, Fidel Ramos wrote: > On Apr 21, 12:04 am, Marc Garcia wrote: > > just to warm up for my Google Summer of Code on i18n, I want to start > > a discussion on to simple things... > > I'm glad to see something is going to finally get done in i18n and > l10n, which m

Re: [GSOC] Multi-DB

2009-04-21 Thread Malcolm Tredinnick
On Tue, 2009-04-21 at 12:14 -0700, Malcolm Tredinnick wrote: > On Tue, 2009-04-21 at 13:45 -0400, Alex Gaynor wrote: [...] > > 1) Make sure absolutely no tests are done against self.connection > > before the SQL is actually sent to the database(currently this occurs > &

Re: [GSOC] Multi-DB

2009-04-21 Thread Malcolm Tredinnick
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 Django as a part of the Google Summer of Code. I'm going > to try to keep this brief as a) not much of my API thoughts have > changed since my or

Re: Schema Evolution

2009-04-18 Thread Malcolm Tredinnick
On Fri, 2009-04-17 at 07:01 -0700, 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. Have you written up your comparison of South with the other major options anywhere that we can need? Perhaps doing

Re: BigInt Patch for Django 1.0.2

2009-04-18 Thread Malcolm Tredinnick
On Fri, 2009-04-17 at 03:19 -0700, Richard Davies wrote: > Ticket 399 has various patches. > > Not clear to me why none of these have been merged for 1.1 yet? Because it's not on the 1.1 roadmap and the time for feature additions is long past. Regards, Malcolm --~--~-~--~~---

Re: Adding a signal to indicate when all models have finished loading. (#7538)

2009-04-10 Thread Malcolm Tredinnick
On Fri, 2009-04-10 at 12:51 -0700, polarc...@gmail.com wrote: > I'd like to get get discussion started on the introduction of a "all > models loaded and ready for use" signal within AppCache. There's a > ticket already out there for this (http://code.djangoproject.com/ > ticket/7538) but it looks

Re: Possible Q() bug, duplicate where clause

2009-04-09 Thread Malcolm Tredinnick
On Thu, 2009-04-09 at 20:48 -0700, jameslon...@gmail.com wrote: > I have a dynamically generated search form which constructs Q() > objects at runtime. This works brilliantly in almost every case. There > is a particular combination of these objects which appears to create > an extra where clause

Re: PseudoField / Field-level query managers

2009-04-09 Thread Malcolm Tredinnick
On Thu, 2009-04-09 at 12:46 -0400, 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

Re: Why hardcoded unique and db_index?

2009-04-09 Thread Malcolm Tredinnick
On Thu, 2009-04-09 at 14:31 -0700, Adys wrote: > http://groups.google.com/group/django-developers/browse_thread/thread/87aae5cbd60bb904/505f3bd962711db7?hl=en > > You wanted an use case, someone else just provided you with it. No they didn't. There's still an unanswered request in that thread to

Re: add_constraint=False on relation fields

2009-04-06 Thread Malcolm Tredinnick
On Mon, 2009-04-06 at 04:53 -0700, Adys wrote: > I made a small patch for my local Django install to be able to precise > add_constraint=False (default True, normal behaviour) to FKeys/ > M2Ms/... > As the tin says, it prevents index/constraint creation for that field. > I won't bother going throu

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

2009-04-05 Thread Malcolm Tredinnick
On Sun, 2009-04-05 at 22:44 -0400, Alex Gaynor wrote: [...] > > To be clear(since I most certainly wasn't before). I'm not > necessarily advocating that idea, merely saying that it's a false > dichotomy to say he have to pick only one way, we merely need to > provide the default behavior. No, i

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

2009-04-05 Thread Malcolm Tredinnick
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". With the current(that is no validation) > behavior as the default. No, we really can't. Having an option for every single possibility isn't a good

Re: MySQL test failure

2009-04-03 Thread Malcolm Tredinnick
On Sat, 2009-04-04 at 01:21 -0400, Daniel Tang wrote: [...] > Not sure if this is an end-all solution, but you can pass a > client_flag kwarg that makes MySQLdb return the number of matched rows > instead of affected rows. In MySQLdb.constants.CLIENT there is a > FOUND_ROWS constant. Passing it to

Re: MySQL test failure

2009-04-03 Thread Malcolm Tredinnick
On Fri, 2009-04-03 at 21:56 -0500, Jacob Kaplan-Moss wrote: [...] > > File > "/var/buildbot/slave/parts/ubuntu-8.04-python2.4-mysql5.0/django-trunk_ubuntu-8.04-python2.4-mysql5.0/build/tests/regressiontests/model_inheritance_regress/models.py", > line ?, in regressiontest

Re: A bunch of little fixes

2009-04-03 Thread Malcolm Tredinnick
On Fri, 2009-04-03 at 17:50 +0200, Raffaele Salmaso wrote: > * add app_label name to related_name > http://code.djangoproject.com/ticket/9638 [... etc, etc...] What are you wanting to achieve here? Are some of these actual bug fixes (as opposed to feature enhancements) that are not already in th

Re: GSoC - Generic REST API module for Django

2009-04-02 Thread Malcolm Tredinnick
On Thu, 2009-04-02 at 09:15 -0700, Bill Konrad wrote: > Malcolm, > > I'm just following up on my last post. A whole 12 hours after the previous one. I had a day away from mail. That happens sometimes. > I have gone over the django- > restapi library and would appreciate more guidance on the i

Re: GSoC - Generic REST API module for Django

2009-03-31 Thread Malcolm Tredinnick
On Tue, 2009-03-31 at 17:31 -0700, Bill Konrad wrote: > First off, thanks for taking the time to read through it and give so > much feedback. > > Please let me clarify one thing. If you read the above as a proposal > than it wouldn't have seemed much like a proposal. I was only > outlining what

Re: GSoC - Generic REST API module for Django

2009-03-31 Thread Malcolm Tredinnick
On Tue, 2009-03-31 at 15:36 -0700, Bill Konrad wrote: > Ivan, > > Thanks for the quick feedback. What I meant by predictable (and maybe > it's the wrong word in this case) is that when assigning a URI to a > resource, a convention is followed, not that the user can "predict" > the URI itself. I

Re: GSoC - Generic REST API module for Django

2009-03-31 Thread Malcolm Tredinnick
On Tue, 2009-03-31 at 14:35 -0700, bkonrad wrote: > I was fortunate enough today to have a quick chat with Jacob Kaplan- > Moss about the concept of a generic REST API module for Django. We > spoke about how this has been attempted before and some of the > remaining issues that still require atte

Re: Deletion of related objects

2009-03-31 Thread Malcolm Tredinnick
On Tue, 2009-03-31 at 14:48 -0500, Jeremy Dunck wrote: > Malcolm, Jacob pointed me at you, since the code in question was a > commit around QSRF-time. > > I'm aware of ticket #7539, but would prefer to keep the scope narrower > and ask the hopefully-useful question-- is #9308 a bug? If so, I'd >

Re: Signals sent by the cache framework?

2009-03-29 Thread Malcolm Tredinnick
On Sun, 2009-03-29 at 17:15 -0700, Oliver Beattie wrote: > I figured that might be the case. I am wrapping the backend now in > tests, I just hate monkey patching :) There should be no monkey-patching involved. Using a separate settings file for tests so that it points to its own cache isn't monk

Re: Signals sent by the cache framework?

2009-03-29 Thread Malcolm Tredinnick
On Sun, 2009-03-29 at 16:28 -0700, Oliver Beattie wrote: > Hey Everyone, > > I just wanted to poll opinion on a feature request I'm considering > posting a ticket for (and obviously write a patch for). Basically, I > want the cache framework to send signals whenever it interacts with > the cache

Re: Dynamic urlconf

2009-03-29 Thread Malcolm Tredinnick
On Sun, 2009-03-29 at 16:06 -0500, 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 a

Re: How to set the CURRENT_TIMESTAMP in a datetime field

2009-03-27 Thread Malcolm Tredinnick
On Fri, 2009-03-27 at 03:58 -0700, PyMan wrote: > Hi all guys. > > I tried to look for around a way to set a datetime field with the > CURRENT_TIMESTAMP value. I found nothing useful. Did I miss anything? You missed that this list is for the development of Django itself, not "how can I..." quest

Re: An idea (with full patch) for enhancing Meta.permissions behavior

2009-03-27 Thread Malcolm Tredinnick
On Fri, 2009-03-27 at 13:57 -0700, faldridge wrote: [...] > Though a small change, this is definitely one that requires a design > decision. I would greatly appreciate it if someone with authority > would let me know whether I should open a ticket for this patch or > not, and/or make any improvem

Re: [GSoC] Proposal for discussion about Serialization requirements and requesting for Review

2009-03-26 Thread Malcolm Tredinnick
On Fri, 2009-03-27 at 00:23 +0530, Madhusudan C.S wrote: > Hi all, > > What a blunder :( I submitted my proposal the way I will > have to submit to socghop.appspot.com with lines manually wrapped > at 80 chars per line and the groups wrapp it at 75 chars making > my proposal look as ugly as possi

Re: Killing reloaders when parent receives TERM signals

2009-03-26 Thread Malcolm Tredinnick
On Thu, 2009-03-26 at 21:58 +, Chris Lamb wrote: > Malcolm Tredinnick wrote: > > > The development server is intended for single user, simple development > > stuff. It runs as a foreground process and ^C stops it very nicely. > [..] > > The goal is, intentional

Re: Killing reloaders when parent receives TERM signals

2009-03-24 Thread Malcolm Tredinnick
On Tue, 2009-03-24 at 15:27 -0700, Dave Benjamin wrote: > No, I'm trying to run it as a dev server. I use mod_python in > production. However, I use the dev server in a shared environment so > that a few other programmers and testers in the office can view the > site. > > In any case, sending a T

Re: Flatpages has been broken by a recent change (10139)

2009-03-24 Thread Malcolm Tredinnick
On Tue, 2009-03-24 at 07:06 -0700, Stephane Raimbault wrote: > The following changeset has broken the flatpages feature: > http://code.djangoproject.com/changeset/10139 > > I can't access the flat page list (admin/flatpages/flatpage/) with > this change (error on f.rel.get_related_field().name).

Re: select_related to work with backward relationships?

2009-03-23 Thread Malcolm Tredinnick
On Mon, 2009-03-23 at 21:45 -0400, George Vilches wrote: > > On Mar 23, 2009, at 8:08 PM, Malcolm Tredinnick wrote: > > > It is documented in that respect. In a couple of different Trac > > tickets > > (since there are multiple issues: select related for reverse

Re: DDN on #9284

2009-03-23 Thread Malcolm Tredinnick
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 custom code as it > does now. I think this is the "right thing (tm)" to do, but it will > break people'

Re: select_related to work with backward relationships?

2009-03-23 Thread Malcolm Tredinnick
On Mon, 2009-03-23 at 06:50 -0700, 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: #3182 -- model instance update() method and QuerySet update_or_create() method

2009-03-23 Thread Malcolm Tredinnick
On Mon, 2009-03-23 at 10:44 +0300, Ivan Sagalaev wrote: [...] > A person there wanted an `update()` method too but not behaving like you > show. Instead he wanted it to update *just* the fields passed as > arguments. I.e. it should be equivalent to this: > > def update(self, **kwargs): >

Re: [GSoC] Ticket #5929 (Previously Serialization Refactor)

2009-03-22 Thread Malcolm Tredinnick
On Sun, 2009-03-22 at 14:07 +0530, Madhusudan C.S wrote: [...] > > To be very frank I haven't myself come up with anything > concrete till now, since the ideas list themselves don't > tell anything in specific, but just give a hint to what > might be lead to a potential GSoC project. B

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

2009-03-22 Thread Malcolm Tredinnick
On Sun, 2009-03-22 at 21:29 -0500, James Bennett wrote: > On Sun, Mar 22, 2009 at 9:20 PM, Justin Lilly wrote: > > My thoughts are that while akismet is the current gold standard, it > > should be replaceable with another, user-defined, backend if you so > > choose. Another that comes to mind is

Re: %ifequal - what am I missing here?

2009-03-22 Thread Malcolm Tredinnick
On Sun, 2009-03-22 at 18:06 -0700, 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 %} Thi

Re: auto_now = True - only on some updates

2009-03-22 Thread Malcolm Tredinnick
On Sun, 2009-03-22 at 17:23 -0700, 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 adde

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

2009-03-22 Thread Malcolm Tredinnick
On Sun, 2009-03-15 at 12:44 -0700, 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". No, because of a technicality. We considered this

Re: [urls bug?] django calls several views at once.

2009-03-22 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 23:18 -0700, igor.potapenko wrote: > Is it normal behavior? > In example below, I try to call myapp2.view.cat2_view through "/a/" > url-path. It's calling, however another views myapp1.view.cat1_viewis > also calling with it at same time. Django doesn't call more than one vi

Re: [GSoC] Ticket #5929 (Previously Serialization Refactor)

2009-03-21 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 23:16 +0530, Madhusudan C.S wrote: > Hi Malcolm and all, >Doesn't ticket #5929 (http://code.djangoproject.com/ticket/5929) > look very similar to what I proposed for Python? Allowing Python > built in complex datatype objects to be mapped to Relational > Database (which i

Re: defer() and only()

2009-03-21 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 13:09 +0300, Ivan Sagalaev wrote: > Hello everyone! > > Just played with new defer() and only() and noticed that fields deferred > with only() aren't loaded when asked explicitly. I.e.: > > a = Article.objects.defer('text')[0] > a.text # <-- does a new query as e

Re: [GSOC] Multiple Database API proposal

2009-03-20 Thread Malcolm Tredinnick
On Sat, 2009-03-21 at 00:41 -0400, Alex Gaynor wrote: > > > > 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. >

Re: [GSOC] Multiple Database API proposal

2009-03-20 Thread Malcolm Tredinnick
Trimming unused portions of the response to make it readable (which I should have done the first time around, too)... On Fri, 2009-03-20 at 23:41 -0400, Alex Gaynor wrote: > > > On Fri, Mar 20, 2009 at 11:21 PM, Malcolm Tredinnick > wrote: > > >

[Fwd: Re: [GSoC] Serialization Refactor]

2009-03-20 Thread Malcolm Tredinnick
Whoops... hadn't noticed this was sent to multiple lists, so only replied to the first one. Sending my technical discussion reply to django-dev, since that's where the main audience participation is likely to be. Forwarded Message ---- From: Malcolm Tredinnick Reply-to

Re: IPAddressField

2009-03-20 Thread Malcolm Tredinnick
On Mon, 2009-03-16 at 13:18 +0100, Gregor Kling wrote: [...] > Generally i do agree with the *usefulness* of not breaking compatibiltiy. > But on the other hand, I think that correcting this weird handling of IP > addresses would legitimate the cut. > Because the handling of IP addresses is not t

Re: [GSOC] Multiple Database API proposal

2009-03-20 Thread Malcolm Tredinnick
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 > 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

Re: QuerySet.values() Shallow Copy

2009-03-20 Thread Malcolm Tredinnick
On Fri, 2009-03-20 at 05:08 -0700, Vitaly Peressada wrote: > @Malcolm: > > I agree with you that there are some holes in code - it was a quick > hack to solve issue at hand. I did suspect that there should be some > effort to implement this feature and tickets quoted confirm that. It > is too bad

Re: Url tag and context variables (Re: #7917)

2009-03-19 Thread Malcolm Tredinnick
On Thu, 2009-03-19 at 19:30 -0700, Ulrich Petri wrote: > Hi, > > since #9666 (SSI-tag variable resolving) got accepted by Jacob lately > I would like to restart discussion about the same functionality for > the url template tag (as was already proposed in #7917). > > Pro arguments: > - The url t

Re: QuerySet.values() Shallow Copy

2009-03-19 Thread Malcolm Tredinnick
On Thu, 2009-03-19 at 05:17 -0700, Vitaly wrote: > I wanted json serialize a tree of django model objects: Schedule -> > Player -> django.models.User. > django.core.serializers.serialize does shallow serialization of > QuerySet but I want a deep one. Next, I looked at QuerySet.values() > plus simp

Re: QuerySet.values() Shallow Copy

2009-03-18 Thread Malcolm Tredinnick
On Wed, 2009-03-18 at 17:59 -0700, Vitaly wrote: > I am using django version 1.0 and ran into shallow copy limitation of > QuerySet.values() where it returns ints for ForeignKey columns. Here > is my take on deep copy implementation. Instead of leaping right into a proposed solution, can you expl

Re: WTForm should be inbuilt to Django, and make admin & others use it.

2009-03-18 Thread Malcolm Tredinnick
On Wed, 2009-03-18 at 17:06 -0700, Jari Pennanen wrote: [...] > I wish people has some thoughts about this... Well, one thought is that your timing is a little off. We're in the final phases of getting the 1.1-beta release out and then it's heads down, fixing bugs for 1.1-final. In a couple of m

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

2009-03-15 Thread Malcolm Tredinnick
On Sun, 2009-03-15 at 23:11 -0500, Gary Wilson Jr. wrote: > On Sun, Mar 15, 2009 at 4:40 PM, Malcolm Tredinnick > wrote: > > On Sun, 2009-03-15 at 12:12 -0500, Gary Wilson Jr. wrote: > >> Another option would be to allow Model.update() to take the > >> force_upda

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

2009-03-15 Thread Malcolm Tredinnick
On Sun, 2009-03-15 at 12:12 -0500, Gary Wilson Jr. wrote: [...] > Another option would be to allow Model.update() to take the > force_update and force_insert parameters that save() does and just > pass these through to the save() call. Aside from the fact that I dislike the ideal as a whole (see

Re: Return value from update()

2009-03-13 Thread Malcolm Tredinnick
On Sat, 2009-03-14 at 16:36 +1100, Malcolm Tredinnick wrote: [...] > > I understand what you're saying here, though, so it might not be easy. > I'll think about it a bit, but I'd like to make that return value > meaningful on all backends. Just about to run out t

Re: Return value from update()

2009-03-13 Thread Malcolm Tredinnick
Hey Russ, On Sat, 2009-03-14 at 14:10 +0900, Russell Keith-Magee wrote: > Hi all, > > [9967] introduced a failure into the test suite, highlighting either > an error in the documentation, or a potentially nasty problem that > requires fixing. > > According to the docs[1] : > > "The update() me

Re: Call for review: #689 - REMOTE_USER authentication

2009-03-13 Thread Malcolm Tredinnick
On Thu, 2009-03-12 at 17:50 +1100, Malcolm Tredinnick wrote: > Hey Gary, > > On Thu, 2009-03-12 at 01:40 -0500, Gary Wilson Jr. wrote: > > Just posted an updated patch: > > > > http://code.djangoproject.com/attachment/ticket/689/689.4.diff > > If nobody gets t

Re: Proposal: New transaction API with multiple databases

2009-03-13 Thread Malcolm Tredinnick
On Sat, 2009-03-14 at 19:52 +1930, qwerty wrote: [...] > What about having an attribute in the Meta class of the model that > let's the model have a default connection for executing the 4 most > common different operations in each conneciton, something like > > class MyModel(models.Model) >

Re: Call for review: #689 - REMOTE_USER authentication

2009-03-11 Thread Malcolm Tredinnick
Hey Gary, On Thu, 2009-03-12 at 01:40 -0500, Gary Wilson Jr. wrote: > Just posted an updated patch: > > http://code.djangoproject.com/attachment/ticket/689/689.4.diff If nobody gets to it beforehand, I'll give this a serious look tomorrow. Cheers, Malcolm --~--~-~--~~

  1   2   3   4   5   6   7   8   9   10   >