Re: multiple-db-support

2007-06-05 Thread JP
I replied to Ben via email, but for the group, again: multi-db needs a new maintainer. I don't have the time to keep up with merging it, let alone to add new features or complete the documentation. I think Ben has some excellent ideas here and would be a great maintainer candidate. JP On Jun 5

Re: Django is really starting to muddle MVC, and it has me concerned

2007-04-12 Thread jp
concerned about tagging model fields with arguments that aren't directly related to the DB. On Apr 12, 3:23 pm, "Adrian Holovaty" <[EMAIL PROTECTED]> wrote: > On 4/12/07, jp <[EMAIL PROTECTED]> wrote: > > > Numerous arguments applicable to different fields. > >

Re: Django is really starting to muddle MVC, and it has me concerned

2007-04-12 Thread jp
AIL PROTECTED]> wrote: > On 4/12/07, jp <[EMAIL PROTECTED]> wrote: > > > That doesn't make a whole lot of sense to me. I would think that with > > the newforms admin stuff it would be an ideal time to completely > > remove all display-related information from

Re: Django is really starting to muddle MVC, and it has me concerned

2007-04-12 Thread jp
that with the newforms admin stuff it would be an ideal time to completely remove all display-related information from the models. It really just doesn't belong there. On Apr 12, 1:22 pm, "jp" <[EMAIL PROTECTED]> wrote: > I feel a bit ashamed. I came across a post about the newforms-ad

Re: Django is really starting to muddle MVC, and it has me concerned

2007-04-12 Thread jp
I feel a bit ashamed. I came across a post about the newforms-admin stuff and one of the prime goals is to move the admin information out of the model. Yay! I guess I will be writing my code with that in mind from here on out. On Apr 12, 12:50 pm, "jp" <[EMAIL PROTECTED]

multi-db branch: looking for a new maintainer

2007-01-24 Thread JP
maintainer get up to speed on the changes and new features in the branch, and will always be available to answer questions about it -- as much as time allows anyway. :) Any takers? JP --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: django.contrib.formtools: High-level abstractions of common form tasks

2006-12-08 Thread JP
already-validated data, you just need to ensure that it hasn't changed since you validated it. JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-17 Thread jp
Nymbl, I definitly agree that something like that would be ideal and is important if developers are able to get the full power out of generic views. On Nov 14, 8:38 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have an idea. Instead of a 'message' parameter, there could be a >

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread jp
You are correct Collin. :) I noticed that myself but couldn't go back and edit it or anything. James, also I noticed that the messages system even with authenticated users won't work properly with generic views because again, there is no way to know whether the update/creation was a success or

Re: The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread jp
, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 11/13/06, jp <[EMAIL PROTECTED]> wrote: > > > Something that is fairly common in web applications are indicator > > messages. For example, after you've posted an article, the site should > > echo back to you

The create/update/delete generic views need a 'message' parameter...

2006-11-13 Thread jp
Something that is fairly common in web applications are indicator messages. For example, after you've posted an article, the site should echo back to you 'Article x created'. This is important because it let's the user know what is going on. Unfortunately with Django generic views, particularly

Re: bump: give Gabor (or somebody else) a unicode branch in svn

2006-10-17 Thread JP
Malcolm Tredinnick wrote: > And my apologies to use, JP: I still haven't gotten around to reviewing > all the changes as I promised I would. It's not forgotten, more that > Life has gotten in the way of Fun Projects a lot lately and there aren't > enough hours in the day. No need

Re: bump: give Gabor (or somebody else) a unicode branch in svn

2006-10-16 Thread JP
ope multi-db will be merge worthy sometime soon, as of today I don't think it is. Sorry. JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send

Re: Test framework in memory database

2006-10-05 Thread JP
post r3661. The trouble is (or seems to me to be) that anything that uses the test client causes the request_finished signal to fire, which causes connection.close() to be called, which makes the in-memory database go away, or at least lose all of the tables, etc, that were populat

Re: Serious problems with the way Django handles file uploads

2006-09-20 Thread jp
Actually I did apply that patch and it worked. Problem is, even though it kept the dev server form simply stopping when I went to upload large files, it did not speed up the upload process at all. --~--~-~--~~~---~--~~ You received this message because you are

Re: Serious problems with the way Django handles file uploads

2006-09-20 Thread jp
I found out a solution to the problem! Today I thought about possibly subverting Django's way of parsing file uploads and using something else to do so, while still using Django itself for everything else. After a question in IRC about it, someone mentioned that request.POST and request.FILES

Re: Serious problems with the way Django handles file uploads

2006-09-15 Thread jp
Turns out when I was trying to apply ticket 2070, I was forgetting to actually enable the upload middleware. I've enabled it now, but I'm getting errors. This patch *should* fix the problem if I can get it working. --~--~-~--~~~---~--~~ You received this message

Serious problems with the way Django handles file uploads

2006-09-13 Thread jp
be applied. Thanks, jp --~--~-~--~~~---~--~~ 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 unsubscribe from this group,

Re: Proposal: Forms and BoundForms

2006-09-12 Thread JP
at takes a model instance as its bind parameter. Otherwise, I think this is excellent, and Joseph's extensions to the proposal also make a lot of sense. And +1 to the suggestions that there's no need for a separate BoundForm class. JP --~--~-~--~~~---~--~~ You rece

Re: Custom default managers interfere with delete operations

2006-09-09 Thread JP
emy does something similar to the 2nd example, in that relations are related to mappers not mapped classes. JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Re: App portability

2006-09-07 Thread JP
to the INSTALLED_APPS in baz and do whatever you want to do to hook up the urls from bar.foo under the desired prefix in baz. Just like using the django admin app. JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Initial data hooks: management.install vs. management.syncdb

2006-09-05 Thread JP
Russell Keith-Magee wrote: > On 9/5/06, JP <[EMAIL PROTECTED]> wrote: > > > > > > Now that syncdb can be run non-interactively, I can switch the plugin > > over to calling that instead. It will take some time, however, because > > I need to figure out how

Re: Initial data hooks: management.install vs. management.syncdb

2006-09-05 Thread JP
o mention that the plugin's home is now on Google code: http://code.google.com/p/nose-django/ JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email t

Re: Integrating Django and SQLAlchemy

2006-08-30 Thread JP
There I go, answering the wrong question... I should learn not to post after 10 pm, too many brain cells are asleep and the remainder can't handle typing and thinking at the same time. The reason not to use it I guess would be that you already have a working app and you don't need it. JP

Re: Integrating Django and SQLAlchemy

2006-08-30 Thread JP
Django query syntax is a great way to map a flattened dict to a query. A flattened dict like, say, GET or POST data. ;) JP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post

Re: Integrating Django and SQLAlchemy

2006-08-30 Thread JP
> Then when you need to get at the > SQLAlchemy Table object, you'd do something like > Story._sa_table.some_method(). How about `Story._meta.table` or `Story._meta.c` or .columns or something, to avoid littering the model's namespace with more proper

Re: Integrating Django and SQLAlchemy

2006-08-30 Thread JP
Robin Munn wrote: > On 8/30/06, JP <[EMAIL PROTECTED]> wrote: > > > > This is great news! > > > > One question comes to mind first, because I am nothing if not > > self-absorbed. :) I wonder how much of the multi-db branch I have been > > working on

Re: Validation Aware Models and django.forms on steroids

2006-08-24 Thread JP
James Bennett wrote: > On 8/24/06, JP <[EMAIL PROTECTED]> wrote: > > I like James Bennetts's example a lot, but I'd like it more if the form > > class were ModelForm, descending from a more general Form class that > > would look much like the base Manipulator class o

Re: Validation Aware Models and django.forms on steroids

2006-08-24 Thread JP
mime type and the file contents). JP --~--~-~--~~~---~--~~ 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 unsubscribe from this group,

Re: [Fw]The Python Web Framework

2006-08-23 Thread JP
e tough part will be hooking up connection.close() to release the connection back into the pool 3. from django import db; db.connections = YourPoolingClass() So in multi-db at least it's doable without too much hackery, and you can plug in whatever kind of pooling y

Re: Multi-db: Change DatabaseWrappers to no longer be local?

2006-08-23 Thread JP
Ivan Sagalaev wrote: > JP wrote: > > Looking back over the multi-db branch today, I realized that it seems > > to be duplicating the thread locality of connections. The connection > > management classes in multi-db django.db manage all connections as > > thread loc

Multi-db: Change DatabaseWrappers to no longer be local?

2006-08-22 Thread JP
the change up here before comitting it. Let me know if you have any objections or can see that I am missing something. I'll commit the change within a couple of days if there are no objections, or sooner if anyone wants to try it now. JP --~--~-~--~~~---~--~~ You

Re: [Fw]The Python Web Framework

2006-08-22 Thread JP
enario is a nice error or a slow response, not a dead db server. JP --~--~-~--~~~---~--~~ 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@

Re: [Fw]The Python Web Framework

2006-08-22 Thread JP
lume threaded server, that can be a life saver. And even for a low-volume server you can get rid of the overhead of making and breaking the connection on each request without the risk of a runaway googlebot starting 10 threads and beating your db server to a pulp. JP --~--~-~--~~---

Re: [Fw]The Python Web Framework

2006-08-22 Thread JP
t make and hold its own connection. So I agree, django's ORM doesn't need pools (definition 1), but it does need pools (definition 2) to help it scale better in some environments and to reduce request startup time. Hopefully the words I've put in your mouths are the right ones. :) JP --~--

Re: The Python Web Framework

2006-08-22 Thread JP
figure() being executed, we can install a Settings instance in settings._target that behaves appropriately for those environments (eg, is thread-local and resets on request start in WSGI environments, for Paste friendliness). JP --~--~-~--~~~---~--~~ You re

Re: The Python Web Framework

2006-08-22 Thread JP
as an open source project. It's good enough for serious, professional work now and it's getting better all the time. I think it's going to keep getting better as it attracts more users with more good ideas -- so long as the core developers' bandwidth holds up. :) JP

Re: Proposal: make templatetag loading magic a little more invisible

2006-08-11 Thread JP
in setup.py. JP * ref my fevered rantings here: http://groups.google.com/group/django-developers/browse_frm/thread/af002765821b5e57 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" grou

Re: Connection pooling

2006-04-06 Thread JP Farias
Hmmm... Some question come to my mind now... 1. Does django uses only one connection for the whole process? 2. Does it open and close a connection once for every request? 3. Can django handle many requests at once (multi-threaded or something else)? -- JP