Re: composite primary key

2006-05-10 Thread Brantley Harris
What you describe is a ManyToManyField in disguise. A thinly veiled disguise. Perhaps you might want to rethink what you actually need. Be carefull not to think too much within the frame of Rational Databases. On 5/10/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > > Hi, > > I need to be able

Re: +1 on part of #1810 (put parse_dsn() in django.conf)

2006-05-11 Thread Brantley Harris
+0 I have to agree that using DSN style names is a lot easier when you aren't using a settings.py file. And the argument of only one way to do it doesn't exactly work here, in my opinion, as it is a rather widely used standard. But, on the other hand, I think a parse_dsn function could easily b

Re: Schema evolution

2006-05-31 Thread Brantley Harris
Yeah, I always do that. Sorry. On 5/29/06, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote: > Brant, > > On 4/24/06, Brant Harris <[EMAIL PROTECTED]> wrote: > > I've created a proposal for working all of the Schema Evolution tidbits out: > > http://code.djangoproject.com/wiki/SchemaEvolu

Re: Schema evolution

2006-05-31 Thread Brantley Harris
You got it. I could barely get any feedback on this project anyhow, and I don't have much time right now to focus on it. So, no problem. GL On 5/29/06, Derek Anderson <[EMAIL PROTECTED]> wrote: > > jeroen, brant, ilias, etc: > > schema evolution was an idea suggested and specifically granted f

Custom Manipulators

2006-06-13 Thread Brantley Harris
Custom manipulators are a pain. Could we think about integrating this cookbook recipie into Django? Or at least start a dialogue about improving this process. http://code.djangoproject.com/wiki/CookBookManipulatorCustomManipulator --~--~-~--~~~---~--~~ You recei

Re: Custom Manipulators

2006-06-14 Thread Brantley Harris
Mind if I take a shot at it? On 6/14/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 6/13/06, Brantley Harris <[EMAIL PROTECTED]> wrote: > > Custom manipulators are a pain. Could we think about integrating this > > cookbook recipie into Django? Or a

Re: Manipulators going away?

2006-07-10 Thread Brantley Harris
Is there any discussion on the fate of manipulators? I've done a lot on my own to make it more managable (including making a very cool 'remote manipulator that executes via ajax'), so I'd like to see where this is all going, a plan or what not. Thanks. On 7/10/06, Adrian Holovaty <[EMAIL PROTEC

#django-devel

2006-07-18 Thread Brantley Harris
Being tired of all the craziness and mundane questions of #django, I created another room on freenode: #django-devel, where we can discuss the higher level Django related topics. That's all. --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: manipulator via ajax

2006-07-18 Thread Brantley Harris
e that's terribly confusing. Thusly, I am trying to simplify it, and work it into something manageable. Then I can release it. Hopefully I can combine this with a simplified Manipulator system and we're off. On 7/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Brantley

Re: #django-devel

2006-07-18 Thread Brantley Harris
You keep #django open too and answer questions in there. Therefore they have no reason to enter #django-devel. On 7/19/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 19-Jul-06, at 1:31 AM, Brantley Harris wrote: > > > > > Being tired of all the craz

Re: #django-devel

2006-07-19 Thread Brantley Harris
ons" wasn't supposed to hold any pejorative. Sorry if I have offended. On 7/19/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Wed, 2006-07-19 at 12:08 +0530, Kenneth Gonsalves wrote: > > > > On 19-Jul-06, at 11:46 AM, Brantley Harris wrote: > > &

New Manipulators and Validation Aware models.

2006-08-21 Thread Brantley Harris
I have built a proposal for a new Manipulator system. Here are some of the benefits of this new system: - Custom form views become very simple, and intuitive. - Validation aware models are harnessed. - Forms are raised as an exception. This allows the writer to assume the data is correct the wh

Re: Validation Aware Models and django.forms on steroids

2006-08-23 Thread Brantley Harris
Finally! I've been waiting :) On 8/23/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > How To Be Sexy, Rule 1: The word "manipulator" has really got to go. > > Thoughts/comments/suggestions on Joseph's plan below, and on Brant's > plan in Trac? > I know you want to get rid of the concept of "

Re: Re: Validation Aware Models and django.forms on steroids

2006-08-23 Thread Brantley Harris
On 8/23/06, James Bennett <[EMAIL PROTECTED]> wrote: > 1. I'm not sure I like the idea of manipulators having a 'process' > method which does everything; it would feel more natural to just try > 'manipulator.save()', have that save if all is well, and catch any > validation errors. The problem is

Re: Re: Re: Validation Aware Models and django.forms on steroids

2006-08-23 Thread Brantley Harris
On 8/24/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 8/23/06, Brantley Harris <[EMAIL PROTECTED]> wrote: > > The problem is that to make it usefull to the user (read: api-user / > > developer), you have to put the model save in a try / except block so >

Re: Validation Aware Models and django.forms on steroids

2006-08-24 Thread Brantley Harris
On 8/24/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > Brantley Harris wrote: > > Maybe it's a philosophic question, but I see it best > > defined in the "model" space because then it provides a modular > > process for views to leverage. > >

Re: Validation Aware Models and django.forms on steroids

2006-08-24 Thread Brantley Harris
On 8/24/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Al-rightly then... thoughts? > +1 ValidationErrors with an s, as I've said before: the more errors returned at once, the better. My problem with Joseph's proposal is that I believe it to be too tied to the concept of the Model. Idealy

Re: Validation Aware Models and django.forms on steroids

2006-08-24 Thread Brantley Harris
On 8/24/06, Bill de hÓra <[EMAIL PROTECTED]> wrote: > > I gather this proposal means validation will be highly optimised for web > forms and available only on POST? I understand that is the mainline use > case, but I have a preference something that wasn't baked into HTML 'cos > I'll have to hack

Re: Validation Aware Models and django.forms on steroids

2006-08-25 Thread Brantley Harris
On 8/25/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > The whole raising a Form thing is just a shocking idea. > > Which, right there, is what I'm opposed to it. Often there's a reason > why things are usually done one way, and I don't want to break from > the standard way of using exception

Re: Integrating Django and SQLAlchemy

2006-08-31 Thread Brantley Harris
That's all well and good but there are a few projects going on that would be rendered useless if Django eventually did adopt SQLAlchemy, including the Schema Evolution and the multiple DB branch. Also this puts into question the philosophy of the full-stack, and if you really want to be tied to S

Re: Validation Aware Models and django.forms on steroids

2006-09-05 Thread Brantley Harris
On 8/23/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > How To Be Sexy, Rule 1: The word "manipulator" has really got to go. > Thinger = "Manipulator" or "Form" # The thing that holds the fields Bah, I try and try, but I can't figure out how to seperate the manipulation process from the Thing

Re: Proposal: Forms and BoundForms

2006-09-13 Thread Brantley Harris
On 9/12/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Hence, with this new API, the above view code would be written like this: > > form = ContactForm() > if request.method == 'POST' and form.is_valid(**request.POST): > send_email_and_redirect() > return render_to_response

Re: Proposal: Forms and BoundForms

2006-09-14 Thread Brantley Harris
On 9/13/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 9/14/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote: > > > > On 14/09/06, Brantley Harris <[EMAIL PROTECTED]> wrote: > > > > For instance, using the given example: > > >m

Re: FormField.html2python is a static method. Why?

2006-10-23 Thread Brantley Harris
It shouldn't be. You're right. The problem is the FormFields and Manipulators are in a sort of limbo right now. And until we hear from the overworked core devs about it, not much can be done. On 10/20/06, Max Derkachev <[EMAIL PROTECTED]> wrote: > > FormField and its subclasses should define h

Re: Template engine too tightly tied to settings module.. (specifically TEMPLATE_DIRS)

2006-10-23 Thread Brantley Harris
It's been noted serveral times that the Template engine is too closely tied to the settings, which in turn is too closely tied to the core. No one has offered a well made and clearly defined solution as to how to really seperate it, to the best of my knowledge. This should be discussed. Aside: I

Re: Call for comment: Forms/manipulator replacement, take 1

2006-10-30 Thread Brantley Harris
On 10/26/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > I've attached the first draft implementation of the manipulator ... Yeay! Progress. I'm +1 for progress. I like the direction towards simplification and separation, but I'm not sure if the line is drawn at the correct place. Essentiall

Re: Have a look at django.newforms

2006-12-01 Thread Brantley Harris
Awesome. I approve. I'm warming to the whole "Widget" thing. Although I hate that name, as it's specifically nondescript, I can't think of another. Some comments: I'd like to see auto_id default to "id_%s" rather than False. Why not just give it as the default? I love clean_XXX(), and clean()

Re: Default representation of a Form

2006-12-01 Thread Brantley Harris
Maybe good practice, but not practical. I'd love to not have to use tables. But practical CSS just isn't there yet. Yes, tables aren't good for general layout, but they still have their uses, and forms are a prime example. On 11/30/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > I would say not

Re: Default representation of a Form

2006-12-01 Thread Brantley Harris
Bah. I wish all the browsers supported "display: table-cell", that would take care of all of this nonsense. On 12/1/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > Brantley Harris wrote: > > Maybe good practice, but not practical. I'd love to not have to u

Re: Have a look at django.newforms

2006-12-01 Thread Brantley Harris
One other thing: -- newforms/forms.py - line 40 -- def __init__(self, data=None, auto_id=False): # TODO: prefix stuff self.ignore_errors = data is None Change to: def __init__(self, data=None, auto_id=False): # TODO: prefix stuff self.ignore_errors = not bool(data) That way yo

Re: Have a look at django.newforms

2006-12-01 Thread Brantley Harris
Another (sorry, I'm pretty sure this is my last today). A label keyword would be great for specifying the label for the field. password2 = CharField(widget=PasswordInput, label="Password (again):") Would render: Password (again): --~--~-~--~~~---~--~~ You recei

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

2006-12-06 Thread Brantley Harris
Next on the list should be a Login form. Should be very simple. On 12/5/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 12/5/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > Adrian Holovaty wrote: > > > What other sorts of things can we make abstractions for, > > > given a Form? > > > > Fi

Re: proposal: get_or_none QuerySet method

2006-12-20 Thread Brantley Harris
On 12/18/06, Gary Wilson <[EMAIL PROTECTED]> wrote: What do you think about adding a get_or_none QuerySet method? +1 On 12/20/06, Joseph Perla <[EMAIL PROTECTED]> wrote: There should also be an update_or_create() function. +1 --~--~-~--~~~---~--~~ You recei

Distributed Applications and Database Data

2006-04-27 Thread Brantley Harris
I've started to impliment my proposal for schema implementation and realized that some database-data might need to be distributed along with updates in the actual application, but there is no mechanism for it. For instance, if an application requires some sort of seed-data, but the requirement it

Re: Schema evolution

2006-04-27 Thread Brantley Harris
The rollbacks are really only usefull (in my mind) for when you go forward on an app, and it turns out to break something, so you "rollback". I do think it is a bit of a fringe-case, and can be handled by proper database backing up. However, I don't see why we couldn't support it. Plus, I've fi

Re: ATTENTION: magic-removal being merged to trunk TODAY

2006-05-01 Thread Brantley Harris
May I be the first to say: YEAY! On 5/1/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Attention all users of the Django development version (a.k.a. trunk)! > > We are merging the magic-removal branch to trunk this evening, Monday, May 1. > > Do not "svn update" your Django code unless you're

Request method in urls.py

2013-04-13 Thread Brantley Harris
There's a line in the django URL Dispatcher documentation that is pretty weird: The URLconf doesn’t look at the request method. In other words, all request > methods – POST, GET, HEAD, etc. – will be routed to the same function for > the same URL. Well, why? Most modern web frameworks allow

Re: Request method in urls.py

2013-04-14 Thread Brantley Harris
On Sun, Apr 14, 2013 at 4:56 AM, Łukasz Langa wrote: > On 13 kwi 2013, at 23:48, Brantley Harris wrote: > > > It would be extremely easy to implement > > Such a statement suggests that the you didn't really think the problem > through. Few things are "extremely ea

Re: Request method in urls.py

2013-04-14 Thread Brantley Harris
On Sun, Apr 14, 2013 at 2:40 PM, Luke Plant wrote: > One reason for not doing this kind of despatch is that handling for > different HTTP methods often involves a lot of common code. The classic > form workflow would become longer, more complicated and/or less DRY if > it was implemented using tw

Re: Request method in urls.py

2013-04-15 Thread Brantley Harris
Alex, I see http methods as being very basic, a part of the URL itself. In other words, from the level of the web framework it's pointless to talk about the URL as anything but a pair of request method and path. Strangely, I'm not sure I agree with you that intelligent dispatch decisions shou

Re: Request method in urls.py

2013-04-15 Thread Brantley Harris
On Mon, Apr 15, 2013 at 6:32 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Tue, Apr 16, 2013 at 6:12 AM, Brantley Harris wrote: > >> Alex, I see http methods as being very basic, a part of the URL itself. >> In other words, from the level of the web

Django Migrations

2009-01-02 Thread Brantley Harris
Having not been content with the state of Django migrations systems, I've created one of my own: http://www.bitbucket.org/DeadWisdom/migratory/ The idea is a database migration system that: * Is simple. * Doesn't make you use sql. This is an orm, we shouldn't have to use sql. * Can b

Re: Django Migrations

2009-01-02 Thread Brantley Harris
2009 at 2:29 AM, Brantley Harris wrote: >> >> Having not been content with the state of Django migrations systems, >> I've created one of my own: >> >> http://www.bitbucket.org/DeadWisdom/migratory/ >> >> The idea is a database migration system that: &

Re: Django Migrations

2009-01-03 Thread Brantley Harris
On Sat, Jan 3, 2009 at 4:43 AM, Russell Keith-Magee wrote: > In the aftermath of DjangoCon [1], Simon Willison, Andrew Godwin and > myself started the django-migrations SIG [2], with the aim of getting > a migrations framework into the Django core that draws from the best > parts of our three res

Re: Django Migrations

2009-01-03 Thread Brantley Harris
On Sat, Jan 3, 2009 at 5:25 PM, Russell Keith-Magee wrote: > > On Sun, Jan 4, 2009 at 4:28 AM, Brantley Harris wrote: >> Ah yes, this is definitely a problem. See, I had to be able to import >> based on a string (database backend), and I was having problems doing >>

Re: New Python ORM

2007-07-11 Thread Brantley Harris
This really isn't meant to compete with Django, more with SQLAlchemy. So far it seems like it's main competing feature is handling multiple-databases easily and joining across them. Damien Gassart saw these posts on digg, made by zzzeek and niemeyer, the SQLAlchemy and Storm lead developers, res

Re: schema evolution [testers wanted]

2007-08-03 Thread Brantley Harris
Russell is being to harsh, I say great work. But I don't think he's necessarily incorrect. Basically, the trouble is that your solution doesn't really solve the bigger problems. Your philosophy seems to be, "Those problems are spiky edge cases", but I think the hope was they would be solved as

Re: schema evolution [testers wanted]

2007-08-08 Thread Brantley Harris
functions that share a namespace, rather than to allow arbitrary functions at any point in your transformation sequence. And testing in this case is simpler, I'd imagine as you don't have to define all sorts of test for all sorts of mutations. > ... So, if pre_christmas_2007.py exists, > .

Re: schema evolution (new and improved)

2007-08-09 Thread Brantley Harris
Er, could you re-factoritize your system into a stand-alone app? Then it could be added by anyone. That seems like win/win to me. On 8/9/07, Derek Anderson <[EMAIL PROTECTED]> wrote: > > Russell Keith-Magee wrote: > > > I thought you were proposing moving away form ordered sequences? Besides: >

Re: schema evolution [testers wanted]

2007-08-09 Thread Brantley Harris
On 8/9/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > * Every time I have written an API with a pre and post phase, I have > ended up needing a post-pre and pre-post, and post-post, and pre-pre, > and really-no-I-mean-it-pre Well since the user defines the pre and post phases, he can ap

Re: Django Instead of Rails

2007-08-10 Thread Brantley Harris
When the hell did "pragmatic" become a buzz-word? Oh god, I must be behind the times, that's so ilpragmatic of me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, se

Re: Taming management.py, the 1730-line behemoth

2007-08-15 Thread Brantley Harris
On 8/15/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > Let any (installed) app provide its own manage.py actions in a similar > way -- something like: +1. As I was reading Adrian's post, I was thinking the very same thing. --~--~-~--~~~---~--~~ You received t

Attention Oracle Developers

2007-09-14 Thread Brantley Harris
Please review ticket #5461, and the given patch. It refactors the creation and introspection modules of all the backends. I am not able to test on Oracle, so I need someone's help testing it. Thanks. --~--~-~--~~~---~--~~ You received this message because you ar