Re: HttpServer as a Windows Service

2005-12-18 Thread Ian Holsman
doesn't Apache HTTP 2.0 run as a service on windows? On 12/19/05, David Pratt <[EMAIL PROTECTED]> wrote: > > I was doing a bit of searching today to see what I could dig up to > improve how the development server operates on Windows. I found this > which is pretty close to what I want to do. It c

Proposal: Extending Django DB syntax

2005-12-18 Thread Russell Keith-Magee
Hi all, I have a few suggestions that I think could increase the the capabilities and expressiveness of Django DB query syntax. The modifications are aimed at increasing usage of Django DB syntax (in preference to embedded raw SQL), and increasing the range of SQL queries that can be expressed in

Strange error in magic-removal manipulator unit test

2005-12-18 Thread Adrian Holovaty
I added some really basic manipulator unit tests in the magic-removal branch, but one of them fails due to a *very* strange error. Somehow, the _() global translation function is getting reassigned to a dictionary. See the test output below. The same code (from the unit tests) works fine in the i

HttpServer as a Windows Service

2005-12-18 Thread David Pratt
I was doing a bit of searching today to see what I could dig up to improve how the development server operates on Windows. I found this which is pretty close to what I want to do. It comes from Turbo Gears. Is there any interest from anyone else to help me implement the light development serv

Re: idea for magic removal - delegate all DB-IO to the manager?

2005-12-18 Thread hugo
>The problem is, I'm not sure what it would mean in the case where the >object is "enlisted" in a unit of work. Basically, it would be a method >with very odd semantics in the vast majority of cases ( ie running in a >webserver in Django). Agreed, that might be complicated to explain. So better j

Re: idea for magic removal - delegate all DB-IO to the manager?

2005-12-18 Thread Robert Wittams
hugo wrote: >>This way, individual items would no longer need to have a .save method. >>They would always be saved by the unit of work. > > > I think I still would keep the object .save() method - just to make the > simple case still as simple as the current code is - the programmer > shouldn't

Re: idea for magic removal - delegate all DB-IO to the manager?

2005-12-18 Thread hugo
>So in the usual case, this would get done implicitly by some middleware, >ie there would be a request scoped unit of work that would be used by >managers unless told otherwise, and it would call save() if the request >works, or it would discard it on an exception. Yes, that sounds good to me. >

Re: Django Admin Error/Bug

2005-12-18 Thread Adrian Holovaty
On 12/18/05, Burhan <[EMAIL PROTECTED]> wrote: > My project is called : containers > My app is called : admin I suspect the problem is your app's name is "admin". Try renaming that, and let us know whether the problem is fixed. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | ch

Running the small server in another thread

2005-12-18 Thread David Pratt
HI. I was wondering if anyone has advice on setting up the small web server to run in its own thread - something to see that it stays alive as well. Regards, David

Re: idea for magic removal - delegate all DB-IO to the manager?

2005-12-18 Thread Robert Wittams
hugo wrote: > Hi, > > how about delegating _all_ DB-IO to the manager with magic removal? > Currently all class-based selects are handled by the manager, while > object-based selects and updates/inserts are handled by the objects > themselves. > > How about internally delegating updates and obje

idea for magic removal - delegate all DB-IO to the manager?

2005-12-18 Thread hugo
Hi, how about delegating _all_ DB-IO to the manager with magic removal? Currently all class-based selects are handled by the manager, while object-based selects and updates/inserts are handled by the objects themselves. How about internally delegating updates and object-based selects to the mana

Django Admin Error/Bug

2005-12-18 Thread Burhan
Hello: I ran into this strange problem with Django. I'm using the latest development branch from SVN (because I have to edit the default regular expression for the admin urls, which I was told in #django is only available in the development release). I am running django with mod_python and Ap