Inline formsets

2009-08-15 Thread mrts
At HTML level, a form is a set of fields that gets submitted when a the form submit button is pressed. However, this is not the case with model forms and inline formsets (e.g. an admin page with inlines) -- inline formsets are disparate from the model form. This creates at least two problems: 1)

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

2009-10-02 Thread mrts
Wishful thinking follows. It would be awesome if one could mix ordinary QuerySet methods with raw() (or, rather, raw_extra(), see below for that). Assuming the following models: class Foo(models.Model): name = models.CharField(max_length=255) class FooDates(models.Model): foo = models.

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

2009-10-02 Thread mrts
On Oct 2, 5:42 pm, "Sean O'Connor" wrote: > To be honest this seems like something which would be a lot of work with > relatively little gain.  For this to work raw() would need to change from a > relatively simple bit of code which doesn't need to touch all of the complex > query code in the ORM

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

2009-10-05 Thread mrts
On Oct 2, 7:35 pm, mrts wrote: > But let me stop right here. Contradicting myself, I've pursued this further and implemented raw_override() for order_by in [1] as a proof of concept. See [2] for what's different and tests [3] for usage. I'd say that for order_by, the implem

Branchy Django developement on GitHub

2009-10-05 Thread mrts
Many core developers and the GSOC folks use GitHub for Django development, so I hope discussing the best practices is appropriate for django-dev. Let me outline the desired workflow, please amend and correct as you see fit as there are probably errors or omissions. I expect various useful pattern

Re: Branchy Django developement on GitHub

2009-10-05 Thread mrts
There's http://code.djangoproject.com/wiki/CollaborateOnGithub that I wrote some time ago, but it doesn't give guidelines for branchy development. I will update that page with these instructions, but it would be excellent if others who have collaborated more intensively via GitHub could amend the

Re: Branchy Django developement on GitHub

2009-10-06 Thread mrts
On Oct 5, 7:08 pm, mrts wrote: > There'shttp://code.djangoproject.com/wiki/CollaborateOnGithub > I will update that page with these instructions, Done. Any comments and amendments should probably go to the wiki page now. Best, MS --~--~-~--~~~---~-

The this-needs-to-be-in-django angst

2009-10-19 Thread mrts
Let me suggest that there are many who have at times felt frustrated how contributions or suggestions are managed in Django. Some of them seem to have walked away or just don't participate in discussions any longer. The same applies to several other large open source projects, the Linux kernel and

Re: The this-needs-to-be-in-django angst

2009-10-19 Thread mrts
(Inspired by Yuri Baburov's criticism and RKM's response.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscr

Re: The this-needs-to-be-in-django angst

2009-10-20 Thread mrts
Jacob, I'm afraid you totally misunderstood me. My message was intended to encourage people to scratch their own itches more now that it's so much easier -- and, of course, give back -- instead of grumbling on the mailing list. I fail to see how can "so it's time to put the grudges behind and hap

Re: The this-needs-to-be-in-django angst

2009-10-21 Thread mrts
On Oct 20, 7:19 pm, Jacob Kaplan-Moss wrote: > What's frustrating, though, is hearing that you have a > problem with our workflow without any concrete suggestions > to improve it or offers of assistance. There's a general > theme underlying most of this "angst" (as you call it): > the tone implie

Re: The this-needs-to-be-in-django angst

2009-10-22 Thread mrts
On Oct 22, 3:36 am, Russell Keith-Magee wrote: > On the other hand, saying "I am going to" is extraordinarily helpful. > Saying "I already have" is even better. You don't need the core's > blessing to do anything. Yes, I wholeheartedly agree and that was the point of my initial message. > Allow

Re: The this-needs-to-be-in-django angst

2009-10-22 Thread mrts
> Another benefit of a merge-queue branch is testing and verifying that > multiple patches play well together before actually hitting trunk. > For multiple big branches this is even more important. Currently blocking on http://support.github.com/discussions/feature-requests/560-two-forks-of-a-sin

Re: Bug in django\template\__init__.py ??

2009-10-29 Thread mrts
On Oct 29, 4:50 pm, Russell Keith-Magee wrote: > Django's dependence on DJANGO_SETTINGS_MODULE is an oft-lamented > problem. Suggestions on how to address this constraint are most > welcome. With an explicit main (i.e. a single explicit entry point to code). Would also fix the "where can I initi

Re: Inline Formsets Again

2009-10-29 Thread mrts
On Oct 28, 9:43 am, John Debs wrote: > I've written a creaky hack to work around the issue in my own projects > but after seeing this thread I'm going to take a shot at implementing > FormSetField (or something like it) myself. If anyone has any code - > or more arguments for or against that have

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

2009-11-10 Thread mrts
Great news! Have you discussed the workflow yet? I.e. will a DVCS be involved, and if yes, will there be a central repo for coordinating the effort? A special repo on Github would otherwise be perfect, but as mentioned before, we have a problem with re-forking: http://support.github.com/discussio

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

2009-11-11 Thread mrts
On Nov 11, 1:57 pm, Russell Keith-Magee wrote: > Also - I know you're very enthused about Git and GitHub, but Django > uses SVN as the canonical store for trunk and branches, and this isn't > likely to change in the near future. Thank you, but no, I'm not enthused about git and GitHub per se :)

Re: Sprint issue tracking / triaging

2009-12-08 Thread mrts
On Dec 8, 5:32 am, Russell Keith-Magee wrote: > On Tue, Dec 8, 2009 at 11:11 AM, Tobias McNulty > wrote: > > On Mon, Dec 7, 2009 at 6:31 PM, Russell Keith-Magee > > wrote: > >> I was thinking more of having one person at the sprint to take the > >> role of integrator - that is, the patches stil

Re: Sprint issue tracking / triaging

2009-12-08 Thread mrts
> On Tue, Dec 8, 2009 at 12:35 PM, Jeremy Dunck wrote: > > Sorry to hear that.  The document you linked is a start, but I'm a bit > > concerned by this goal: > >  "to keep the main integration branch as stable as the official trunk > > so that it can be used in actual deployments" > > > My concern

Re: Finalizing model-validation: ComplexValidator

2010-01-04 Thread mrts
Malcolm had some good comments when all of this was discussed previously: http://groups.google.com/group/django-developers/browse_thread/thread/436307e426844ae0/f2fa0647b97569ad He also seemed to have further ideas and code, perhaps he can be pinged for sharing them. Best, MS -- You received t

Re: What The Enterprise wants from Django

2010-01-19 Thread mrts
On Jan 20, 5:59 am, David Cramer wrote: > The first three have been huges ones with us. We're just now running > into the settings issue, but would love to see what people can come up > with for solutions (we dont have a good one). The override_settings() idea that Eric Florenzano describes at ht

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

2010-02-10 Thread mrts
On Feb 10, 5:24 pm, Tom Evans wrote: > On Wed, Feb 10, 2010 at 3: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

Re: Deprecating cmemcache, adding pylibmc

2010-03-16 Thread mrts
On Mar 1, 5:27 pm, Jacob Kaplan-Moss wrote: > Also, a step 2.5, if you'd like, would be to write a tiny app on pypi > that enabled the use of pylibmc via an external cache backend. We > could point to it in the deprecation notes when we explain why > cmemcache is being deprecated. See http://gist

Threading review wiki page removal

2010-04-06 Thread mrts
James has replaced the content of http://code.djangoproject.com/wiki/DjangoSpecifications/Core/Threading with the following disclaimer: "This page and several others were created by a wiki user who was not and is not a member of the Django core team. Previous contents of this and other similar p

Re: Threading review wiki page removal

2010-04-06 Thread mrts
On Apr 7, 6:21 pm, Russell Keith-Magee wrote: > James spoke with me about this decision at the time, and I completely > agree with and endorse his actions. So be it then. > While it is true that wikis contain all sorts of information, often > unofficial, the naming of the wiki pages in question

i18n improvements

2008-06-10 Thread mrts
Please give you thougths on the following. * contrib.localflavor should be deprecated and transferred to a separate project or contributed to Babel. It is incomplete by nature as covering all regions/postal codes in the world takes a lot of effort. That effort is out of Django's scope.

Re: i18n improvements

2008-06-11 Thread mrts
Could someone of the core devs give his opinion on this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscrib

Re: RFC: Django 1.0 roadmap and timeline

2008-06-12 Thread mrts
I'd like to bring up trac milestones again. Currently Django has over 1000 active tickets. Some of them are relevant to oldforms-admin, some are from pre-qsrf merge, some are features for 1.1. But quite a few are small bugs that should be fixed before 1.0. Putting up milestones in trac would spa

Re: Application Admin Index

2008-06-18 Thread mrts
Please see http://code.djangoproject.com/ticket/3591 http://code.djangoproject.com/wiki/DjangoSpecifications/NfAdmin/FlexibleAppHandling http://code.djangoproject.com/wiki/InstalledAppsRevision Will http://code.djangoproject.com/wiki/DjangoSpecifications/NfAdmin/FlexibleAppHandling do what you

Re: GSOC: More backends for djangosearch

2008-06-21 Thread mrts
On Jun 20, 12:47 am, Ben Firshman <[EMAIL PROTECTED]> wrote: > I'm still in exams unfortunately, so this will be brief, but I'd like   > to hear some thoughts. > > Imagine a small site without a great deal of traffic or data, and they   > wish to add search support for a model. Lucene or Xapian ar

django.contrib.sessions problems

2008-07-07 Thread mrts
I'd like to get some feedback for the following major tickets regarding sessions, all of which are in scope for 1.0. 1) Session key collisions: http://code.djangoproject.com/ticket/1180 Due to the birthday paradox, sqrt(n) is roughly the number you need to have a 50% collision chance when pickin

Re: django.contrib.sessions problems

2008-07-07 Thread mrts
On Jul 7, 5:00 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On Mon, Jul 7, 2008 at 8:48 AM, mrts <[EMAIL PROTECTED]> wrote: > > I'd like to get some feedback for the following major tickets > > regarding sessions, all of which are in scope for

Re: django.contrib.sessions problems

2008-07-07 Thread mrts
> > Due to the birthday paradox, sqrt(n) is roughly the number you need to > > have a 50% collision chance when picking items at random from an > > inexhaustible set of n items. (0, sys.maxint - 1) is currently the > > random range. On 32-bit platforms the collision bound is thus quite > > low as

Re: django.contrib.sessions problems

2008-07-07 Thread mrts
On Jul 7, 6:32 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > That comment has no bearing. > > (1) We pick a random session key. > (2) We save it to the database, where it should be unique, otherwise an > error is raised. > (3) We use that session key to pass back to the user. > > At this

Re: django.contrib.sessions problems

2008-07-07 Thread mrts
Thus, looks there are two problems -- collisions happen too often on 32-bit machines (fixed by my patch) and db session backend doesn't handle them properly (no fix so far). As for the latter -- Malcolm, you were about to add a clear distinction between INSERT and UPDATE to .save() in http://grou

Re: django.contrib.sessions problems

2008-07-08 Thread mrts
On Jul 8, 5:27 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Increasing > some value from 32 bits to 64 bits is only changing some probabilities; > it's not actually solving the problem, just moving the goalposts to make > it harder to score an own goal. The rest of the conversation should >

Re: django serializers are not thread safe?

2008-07-08 Thread mrts
I reviewed threading in Django and found a few problems, one of which is serialization. See http://code.djangoproject.com/wiki/DjangoSpecifications/Core/Threading#Problems . Fix was contributed to the most eminent one in #6950, but I never got to fixing serialization. The fix is easy though, jus

Re: django serializers are not thread safe?

2008-07-08 Thread mrts
tch? Where is "#FIXME:" ? ;) > > On 8 Лип, 16:07, mrts <[EMAIL PROTECTED]> wrote: > > > I reviewed threading in Django and found a few problems, one of which > > is serialization. > > Seehttp://code.djangoproject.com/wiki/DjangoSpecifications/Core/Thread

Re: Testing django-admin and manage.py

2008-07-08 Thread mrts
> Yes, the tests run on Windows now as well.  Only problem is two tests with > file paths in their output, the forward slashes are backslashes on Windows > so the output doesn't match what the tests are looking for: > > http://dpaste.com/61364/ > > Not sure if/how you ordinarily get around that in

Re: Localizing digits

2008-08-19 Thread mrts
I'm using http://babel.edgewall.org/ exactly for that purpose. Works extremely well. There are even some Django-specific extensions at http://babel.edgewall.org/wiki/BabelDjango (I don't use them though). On Aug 18, 4:48 pm, Joost Cassee <[EMAIL PROTECTED]> wrote: > Hi all, > > A Farsi-localized

Re: Be explicit about which reverse lookup failed after r8211

2008-08-23 Thread mrts
It is quite common to be hit by the insufficiently verbose reporting that #8221 and #7524 fix -- e.g. see the duplicates that have popped up. As I already said, #8221 is only needed because the patch I provided in #8177 and that got commited fixed only the most burning issue I was directly hit wi

Re: Be explicit about which reverse lookup failed after r8211

2008-08-23 Thread mrts
http://code.djangoproject.com/ticket/7524 is tagged as post-1.0. http://code.djangoproject.com/ticket/8221 was closed as duplicate of #7524, which it is not. On Aug 23, 9:40 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2008-08-23 at 10:46 -0700, mrts wrote: > >

Re: Be explicit about which reverse lookup failed after r8211

2008-08-24 Thread mrts
On Aug 24, 4:40 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Sat, Aug 23, 2008 at 2:43 PM, mrts <[EMAIL PROTECTED]> wrote: > >http://code.djangoproject.com/ticket/8221 was closed as duplicate of > > #7524, which it is not. > > In triaging, I&#x

Re: Django 1.0 and multithreading issues.

2008-08-29 Thread mrts
I am mrts (Mart Sõmermaa). The page was created and updated by me and I'm quite certain the anonymous updates are also mainly by me. So I am entirely to blame for the confusing naming and for any incorrect information. But I do hope that the information is mostly correct and relevant, it is

New milestones for ticket triagers

2008-09-05 Thread mrts
Hopefully the devs are taking a well-deserved break now as 1.0 is out :) Once back online, a bit of release planning + corresponding new milestones in Trac would come in handy for ticket triagers to categorize tickets. I'd propose something in the lines of the following (and I'd really prefer no

I want a pony: Django Cheeseshop

2008-09-10 Thread mrts
This is for Django 2.0. Rationale: a) useful (and less-useful) Django apps are proliferating on Google Code, djangoplugables.com and Django resources wiki page, b) apps need refactoring (#3591, http://code.djangoproject.com/wiki/VersionOneFeatures#INSTALLED_APPSrefactoring ) c) reusable apps

Re: I want a pony: Django Cheeseshop

2008-09-10 Thread mrts
On Sep 10, 6:57 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > Have I made my point clear enough yet? Your point is clear but is likely to bring less order to the current chaos. And it doesn't handle project-local installation (arguably this can be done with virtualenv, but that will just clutt

Re: I want a pony: Django Cheeseshop

2008-09-10 Thread mrts
On Sep 10, 7:12 pm, "Eric Holscher" <[EMAIL PROTECTED]> wrote: > your django apps. There is no reason to reinvent the wheel here, especially > after what Mark talked about at Djangocon (Django being considered seperate > from the Python community). Although I don't know anything about the talk, t

Re: I want a pony: Django Cheeseshop

2008-09-10 Thread mrts
On Sep 10, 8:00 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > I don't see why Django can't be just as much a part of the Python > community as, say, Zope, who frequently distribute code through PyPi. I > don't see the advantage of fragmenting the infrastructure. That's what > it's there for - supp

Re: I want a pony: Django Cheeseshop

2008-09-10 Thread mrts
10, 9:00 pm, "Brett Hoerner" <[EMAIL PROTECTED]> wrote: > On Wed, Sep 10, 2008 at 11:20 AM, mrts <[EMAIL PROTECTED]> wrote: > > And it doesn't handle project-local installation (arguably this > > can be done with virtualenv, but that will just clutter user-sp

Re: I want a pony: Django Cheeseshop

2008-09-16 Thread mrts
On Sep 16, 2:10 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-09-16 at 00:16 -0700, mrts wrote: > > Let me try to wrap this up: > > > * there seems to be a general consensus that amending setuptools to > > create Django-specific extensions is

Re: Proposal: app objects

2008-09-17 Thread mrts
I just copy-pasted the app objects requirement as listed and discussed in http://code.djangoproject.com/wiki/InstalledAppsRevision . I personally have no use case for it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Proposal: app objects

2008-09-17 Thread mrts
On Sep 17, 11:13 am, mrts <[EMAIL PROTECTED]> wrote: > I just copy-pasted the app objects requirement as listed and discussed > inhttp://code.djangoproject.com/wiki/InstalledAppsRevision. I > personally have no use case for it. Doh, that should have been *multiple* ap

Re: Proposal: app objects

2008-09-17 Thread mrts
On Sep 18, 2:56 am, zvoase <[EMAIL PROTECTED]> wrote: > I think the app object thing is a really good idea, but I have to say > one thing; why not see if some middle ground can be met between the > Django cheeseshop idea (going on in another thread in this group) and > this. That's the point. B

Re: Call for comments: CommonMiddleware (and others) break streaming HttpResponse objects.

2008-09-22 Thread mrts
On Jul 4, 2:26 am, Tai Lee <[EMAIL PROTECTED]> wrote: > > The only thing that might be worth doing in this are is adding a way to > > say "middleware should never be called on this response" and then > > somebody can write their own HttpResponse subclass and be in complete > > control of their des

Re: Call for comments: CommonMiddleware (and others) break streaming HttpResponse objects.

2008-09-23 Thread mrts
On Jul 1, 1:02 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > I've implemented iterable HttpResponse > in the first place out of purely practical reason: web server times out > if a particularly long file was passed into an HttpResponse. And also it > was really slow and was consuming all the memo

Re: #6845 - model validation DDN

2008-09-25 Thread mrts
Hi Honza, thank you for your work on model validation! What's the status? Getting model validation in (if the powers that be agree) would help to fix a couple of annoying bugs listed below that are present in 1.0. http://code.djangoproject.com/ticket/9039 http://code.djangoproject.com/ticket/888

Re: Re-thinking model validation

2008-10-05 Thread mrts
mrts wrote: > Looking at the path Honza has taken [1], it looks that it both And the missing reference is [1] http://code.djangoproject.com/ticket/6845 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

Re-thinking model validation

2008-10-05 Thread mrts
Looking at the path Honza has taken [1], it looks that it both complicates things and causes overhead -- for every constraint on an model object, an extra db call for checking it is made, instead of relying on the constraint checks enforced by the db backend and corresponding exceptions during `sa

Re: Re-thinking model validation

2008-10-06 Thread mrts
On Oct 6, 2:03 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-10-05 at 14:11 -0700, mrts wrote: > > Looking at the path Honza has taken [1], it looks that it both > > complicates things and causes overhead -- for every constraint on > > an model o

Re: Re-thinking model validation

2008-10-07 Thread mrts
On Oct 7, 12:08 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-10-06 at 15:27 -0700, mrts wrote: > resolution on updates. The multiple simultaneous writes to the exact > same piece of data is only one corner of the full domain space. We plan > for the worst,

Distutils/packaging sprint this weekend

2008-10-10 Thread mrts
In context of the Django community apps and app object discussions we had some time ago, there's a sprint upcoming tomorrow: http://mail.python.org/pipermail/python-dev/2008-October/082971.html http://www.openplans.org/projects/plone-conference-2008-dc/distribute This is a good occasion to speak

"OperationalError: database is locked" with Python 2.6 multiprocessing and SQLite backend

2008-10-21 Thread mrts
It seems that current DB lock management doesn't play nice with the new Python 2.6 multiprocessing package and SQLite. See [1]. The same error also popped up in Google search under mod_python [2]. I wasn't able to reproduce this with MySQL. [1] http://code.djangoproject.com/ticket/9409 [2] http

Re: "OperationalError: database is locked" with Python 2.6 multiprocessing and SQLite backend

2008-10-27 Thread mrts
On Oct 27, 5:16 pm, Brian Beck <[EMAIL PROTECTED]> wrote: > > As others have pointed out, this isn't an issue with Django.  The > easiest solution is to make this error less common with a higher > timeout.  In settings.py: > > DATABASE_OPTIONS = {'timeout': 30} Thanks Brian, increasing the timeou

Re: "OperationalError: database is locked" with Python 2.6 multiprocessing and SQLite backend

2008-10-27 Thread mrts
On Oct 27, 6:57 pm, mrts <[EMAIL PROTECTED]> wrote: > On Oct 27, 5:16 pm, Brian Beck <[EMAIL PROTECTED]> wrote: > > As others have pointed out, this isn't an issue with Django.  The > > easiest solution is to make this error less common with a hig

1.0.1 release blockers?

2008-10-31 Thread mrts
There has been much reluctancy in letting triagers tag and prioritize 1.0.1 milestone tickets. Now that 1.0.1 is really close, can we perhaps discuss what are the things that really should be fixed before it is released? The only major issue I have encountered is http://code.djangoproject.com/ti

String freeze for 1.0.1?

2008-11-03 Thread mrts
Shouldn't we have a string freeze before the 1.0.1 release (e.g. both #8882 and #9493 bring in new error strings)? Otherwise translators have to either continuously update the translations as new strings land or accept that 1.0.1 is released without complete translations. --~--~-~--~~

Re: 1.0.1 release blockers?

2008-11-03 Thread mrts
On Oct 31, 5:19 pm, "Joey Wilhelm" <[EMAIL PROTECTED]> wrote: > I would like to suggest the following: > http://code.djangoproject.com/ticket/9245 > http://code.djangoproject.com/ticket/6710 > > They both have fully functional patches... although granted the second has > no tests. IMHO http://cod

Re: 1.0.1 release blockers?

2008-11-04 Thread mrts
On Nov 4, 2:33 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > Yes, there is a reason, and it has been given several times in recent > history. The v1.0.1 milestone has not bee created in Trac because it > will not in any way help us deliver the v1.0.1 release. There is no > difference betw

Re: 1.0.1 release blockers?

2008-11-05 Thread mrts
On Nov 5, 1:35 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 4, 2008 at 11:04 PM, mrts <[EMAIL PROTECTED]> wrote: > > > Most other projects are managed by a priority queue and clear target > > set for releases ("this has to go in

Re: 1.0.1 release blockers?

2008-11-05 Thread mrts
On Nov 5, 2:31 pm, mrts <[EMAIL PROTECTED]> wrote: > little by a) milestones: assuring that there is a known date when a > given ticket will be looked at Let me clarify a little: "looked at" doesn't necessarily mean "integrated", it may be deferred to the nex

Re: Multi-Threaded Dev Server

2008-11-18 Thread mrts
On Nov 17, 6:54 pm, Ludvig Ericson <[EMAIL PROTECTED]> wrote: > On Nov 16, 2008, at 07:26, Chris wrote: > > > 3. Fear of multi-threading bugs shouldn't be a reason to avoid multi- > > threading, especially when it could be very useful. We don't even know > > if there are multi-threading bugs. And

Explicit default managers?

2008-11-20 Thread mrts
Currently, "the first manager declared is the default manager". However, given the following hierarchy: --- class PublishedObjectManager(models.Manager): def get_query_set(self): return super(PublishedObjectManager, self).get_query_set()\ .filter(is_published=True) c

Re: Explicit default managers?

2008-11-24 Thread mrts
http://code.djangoproject.com/ticket/9676 created to track this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To un

Re: Dropping Python 2.3 compatibility for Django 1.1

2008-11-26 Thread mrts
On Nov 26, 3:20 am, Julien Phalip <[EMAIL PROTECTED]> wrote: > On Nov 26, 11:43 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> > wrote: > > > > On Wed, Nov 26, 2008 at 2:08 AM, Jacob Kaplan-Moss > > > <[EMAIL PROTECTED]> wrote: > > > > Hi folks -- > > > > I'd like to officially drop Python 2.3 supp

Making Django 1.0 work well under Google App Engine

2008-12-05 Thread mrts
On Aug 11, 9:11 pm, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I'd write more but I'll first wait for responses, file some tickets, > and think about what else Django could do to improve its cooperation > with App Engine... because Django is App Engine's favorite framework! Shouldn't easier in

Re: Default manager

2008-12-15 Thread mrts
See also http://code.djangoproject.com/ticket/9676 On Dec 15, 12:51 pm, "Alex Rades" wrote: > Hi, > my understanding about custom managers is that if you want to define a > custom manager, you also HAVE to remember to define the "objects" > manager first, otherwise some parts of django (eg. admi

Some tickets that should perhaps get looked at before 1.1

2009-01-06 Thread mrts
As the list seems to be resuming from holiday hibernation, I risk causing another "don't you dare to push us" flame-bombing :) by proposing that the following get looked at before 1.1: * `__import__(mod, {}, {}, [''])` causes double import of modules [1] After discussions on python-dev, an idiom

Re: Ticket 8764 (Mixing args and **kwargs in reverse() function)

2009-01-07 Thread mrts
On Jan 7, 3:43 am, Malcolm Tredinnick wrote: > On Tue, 2009-01-06 at 15:38 -0800, Killarny wrote: > > There are many instances where, in a complicated implementation of > > views, one might want to have a combination of required args and > > optional kwargs, and the inability to mix them introduc

Re: Some tickets that should perhaps get looked at before 1.1

2009-01-07 Thread mrts
upon him/herself OR someone opposes this). I've created a fork of the unofficial git mirror for that purpose at http://github.com/mrts/django/tree/master . Everybody is most welcome to contribute. By semi-champion I mean that I'll contribute as much as I can beside daily job tasks by di

Re: Some tickets that should perhaps get looked at before 1.1

2009-01-07 Thread mrts
On Jan 7, 9:59 pm, "Alex Gaynor" wrote: > 1.1 is not 8 days away, the 1.1 major feature freeze, this means items that > are new features on the 1.1 features list. /me puts on a brown paper bag. Right, feature freeze and bug fixing are different things. Can we perhaps agree on a set time when pe

Distributed workflow and the woes of slow testsuite

2009-01-12 Thread mrts
A proper "agile" workflow for distributed collaboration on a largeish chunk of functionality should be as follows: Feature developer: * implement tests for the features to be added * commit locally * implement the features * commit locally * run the test suite iteratively, fixing whatever the tes

Re: Distributed workflow and the woes of slow testsuite

2009-01-12 Thread mrts
On Jan 12, 3:45 pm, "Jacob Kaplan-Moss" wrote: > On Mon, Jan 12, 2009 at 6:53 AM, mrts wrote: > > What if we try to be nice to ourselves and get #8138 and something in > > the lines ofhttp://oebfare.com/blog/2008/mar/25/faster-django-test-suite/ > > into trun

Re: Testing speedup checked in

2009-01-17 Thread mrts
Great thanks and praises to everybody involved! Getting down from 1346 to 204 seconds is such a relief... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email t

Overview of the "GitHub process"

2009-01-17 Thread mrts
Feeling that an overview of the "GitHub process" would help people to get more easily involved, I created http://code.djangoproject.com/wiki/CollaborateOnGithub . Opinions, criticisms and edits most welcome. --~--~-~--~~~---~--~~ You received this message because

Model-validation: call for discussions

2009-01-17 Thread mrts
There are several problems in model validation as of now. As pouring them out here would create a too long, ill-formatted post, I created a separate page for it at http://wiki.github.com/mrts/honza-django/form-and-model-validation This is just "design gruntwork", a basic text body ana

Re: Model-validation: call for discussions

2009-01-19 Thread mrts
odel fields' to_python to a separate django.utils.typeconverters library (see http://github.com/mrts/honza-django/commit/a8239b063591acc367add0a01785181a91a37971 for the first steps in that direction) and using both django.core.validators and django.utils.typeconverters throughout model and form fields. I

Re: Model-validation: call for discussions

2009-01-19 Thread mrts
out converters from things that work with standard types. But > definitely try to keep them close together in the source, rather than > putting them in django.utils, which can sometimes be a dumping ground > for stuff that better belongs elsewhere. As seen in the commit, http://github.com/m

Re: Model-validation: call for discussions

2009-01-22 Thread mrts
On Jan 19, 11:23 pm, mrts wrote: > The directory-based approach is best, I'll go with it -- but it's yet > uncertain > when as I have to handle pressing matters at work during daytime. I've implemented some fundamental changes that need review. The commit is at http

Re: Model-validation: call for discussions

2009-01-22 Thread mrts
On Jan 23, 3:40 am, Malcolm Tredinnick wrote: > On Thu, 2009-01-22 at 17:27 -0800, mrts wrote: > > [] > > >  A > > side note: the `instance` attribute is not used in validator functions > > and I can't see a clear use case for it, so it looks like it c

Re: Model-validation: call for discussions

2009-01-23 Thread mrts
As the uniform all values approach has created a bit of confusion, let me present a larger example: Validators in core.validators should not be concerned with either model or form internals if possible. This is currently straightforward to achieve by passing all values always as a dict via form.c

Re: Model-validation: call for discussions

2009-01-23 Thread mrts
After discussing with Honza, we agreed that the dichotomy between forms and models that was present before will remain, i.e. instance will always be a model instance if given and all_values will always be form.cleaned_data. Honza's rationale was that it's common to have properties in models and t

Re: Model-validation: call for discussions

2009-01-23 Thread mrts
On Jan 23, 4:38 pm, Marty Alchin wrote: > I haven't been following everything, but I do have a couple comments > to make here. Thanks, interesting points. The get_value approach looks simpler though, so unless you or anybody else disagrees I'll implement this. --~--~-~--~~---

Re: Model-validation: call for discussions

2009-01-24 Thread mrts
After several discussions with Honza, we are still on somewhat different positions what the validator function signature should be and how core validators should access the fields of a form or a model instance. In core validators, no special case handling of forms and models is needed even in mul

App settings

2009-02-02 Thread mrts
Whenever the app objects discussion is resuscitated, the following by yours truly may be of relevance: http://github.com/mrts/plugit/tree/master As of now, settings handling is present. The SettingsUpdater class in plugit/settingshandler.py provides a high-level API for updating configuration

Re: Model-validation: call for discussions

2009-02-18 Thread mrts
The last unsolved model-validation design issue is the error message protocol (my work on fields is waiting on it). Let me present the approach that looks sane to me. The old Field.default_error_messages dict and corresponding logic is no longer required (and removed in my branch) as default erro

Re: Model-validation: call for discussions

2009-02-18 Thread mrts
On Feb 18, 2:28 pm, mrts wrote: >    def validate(self, value, all_values={}, form_instance=None): That should have been def validate(self, value, all_values={}): --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Model-validation: call for discussions

2009-02-18 Thread mrts
On Feb 18, 8:03 pm, Honza Král wrote: > Hi, > see inline text. > > On Wed, Feb 18, 2009 at 1:28 PM, mrts wrote: > > > The last unsolved model-validation design issue is the error message > > protocol (my work on fields is waiting on it). Let me present the > &g

Re: Model-validation: call for discussions

2009-02-19 Thread mrts
On Feb 19, 12:49 am, Malcolm Tredinnick wrote: > On Wed, 2009-02-18 at 04:28 -0800, mrts wrote: > > The old Field.default_error_messages dict and corresponding > > logic is no longer required (and removed in my branch) as default > > error messages live in core/validators n

Milestones and roadmap cleanup - thanks!

2009-03-08 Thread mrts
Jacob, thanks for the great work on Trac cleanup! This makes the devs intentions and goals so much more transparent. I especially like that we have a somewhat official ticket-set-based roadmap now (http:// code.djangoproject.com/roadmap ) instead of the manual one (http:// code.djangoproject.com/

  1   2   >