Multiple database support

2008-05-20 Thread koenb
For those interested in multiple database support, I have started working on it again, and posted my work-in-progress to ticket #4747. I started from trunk and added things from the multidb branch little by little, since so much has changed in that area since then. There is still a lot more that

Re: Rethinking silent failures in templates

2008-05-20 Thread Jacob Kaplan-Moss
On Sat, May 17, 2008 at 11:30 PM, James Bennett <[EMAIL PROTECTED]> wrote: > The impression I get is that a lot of people rely on silent *variable* > failure, but very few rely on silent *tag* failure. In fact, most > real-world custom template tags I've seen are wired up to raise errors > quite l

Re: Composite Primary Keys

2008-05-20 Thread Jacob Kaplan-Moss
On Thu, May 8, 2008 at 7:57 PM, David Cramer <[EMAIL PROTECTED]> wrote: > I swear I saw something about work being done on this. Has anyone > begun? If not I'll gladly throw up a patch to get it into trunk. Please do. If you make sure it solves all three problems I outlined in #373 (http://code.d

Re: PostgreSQL 8.3 and casting

2008-05-20 Thread Justin Bronn
> I see that the Oracle backend already includes > OracleQueryconvert_values which does conversion into the backend based > on the the passed value and the field type. > > Perhaps we need to add that for PostgreSQL now?  It's pretty onerous > to do the casting at the app level. > The `convert_val

Re: Multiple database support

2008-05-20 Thread Nicola Larosa (tekNico)
koenb wrote: > For those interested in multiple database support, I have started > working on it again, and posted my work-in-progress to ticket #4747. > ... > Anyway, if anyone is interested in helping, please let me know! I am going to need this in a month or so. Actions speak louder than words

Re: Many to Many Inline Editing

2008-05-20 Thread JReynolds
On May 19, 9:06 am, "Yuri Baburov" <[EMAIL PROTECTED]> wrote: > Hi, something like this?http://www.djangosnippets.org/snippets/747/ > > Hi  Mon, May 19, 2008 at 8:53 PM, JReynolds <[EMAIL PROTECTED]> wrote: > > > > > > > I posted this on django-users before and didn't get much response, so > > a

Re: Multiple database support

2008-05-20 Thread koenb
Ah, missed that one. Anyway, I only did the easy parts (that is, getting data in and out of existing databases). Thanks for the pointer, I'll try to keep an eye on that. Koen On 20 mei, 16:56, "Nicola Larosa (tekNico)" <[EMAIL PROTECTED]> wrote: > koenb wrote: > > For those interested in multipl

Re: Multiple database support

2008-05-20 Thread Casper Jensen
On Tue, May 20, 2008 at 4:56 PM, Nicola Larosa (tekNico) <[EMAIL PROTECTED]> wrote: > It would be nice to coordinate each one's efforts, to avoid wasting > time. Ben, Daryl, any news? Currently, I have not worked on the project, since the proposal, because of job and university commitments. I plan

Re: Multiple database support

2008-05-20 Thread Daryl Spitzer
I've unfortunately been too busy to make time to work on this since PyCon. The last thing I've done (after writing some code on the flight home) is to send a patch to Ben Ford. Not long after that Ben created a Mercurial repository (with my patch) and a Trac project. You'll want to contact him.

Django vs. Oracle application

2008-05-20 Thread Arif Chowdhury
Hello Friends, I am newbe here and for Django as well. I wanna upgreade my previous applications that are built on php/oracle into dgango. could you please anybody guide me the real life gui application development steps by dgango/oracle. Thanks in advance. Arif Chowdhury Developer --~--~-

Re: PostgreSQL 8.3 and casting

2008-05-20 Thread J Meier
On May 20, 9:01 am, Justin Bronn <[EMAIL PROTECTED]> wrote: > I'm with Malcolm on not supporting this feature of > automatically casting to string because the database is doing the > "right thing" here. [1] It's certainly the right thing to do in general. I'd like to mention one use of the impl

Re: Django vs. Oracle application

2008-05-20 Thread Collin Grady
Arif Chowdhury said the following: > I am newbe here and for Django as well. I wanna upgreade my previous > applications that are built on php/oracle into dgango. could you > please anybody guide me the real life gui application development > steps by dgango/oracle. This question would fit bette

Re: Multiple database support

2008-05-20 Thread Nicola Larosa (tekNico)
Daryl Spitzer wrote: > If I don't, I see if I can at least make enough time to write up the API > I came up with at PyCon. Please do, that would be great. -- Nicola Larosa - http://www.teknico.net/ --~--~-~--~~~---~--~~ You received this message because you are s

Re: Rethinking silent failures in templates

2008-05-20 Thread graham_king
Making {{ myval }} fail loudy would break the admin app. Setting TEMPLATE_STRING_IF_INVALID to anything other than '' also breaks it. Here's an example: http://code.djangoproject.com/ticket/5532 This ticket has all the details: http://code.djangoproject.com/ticket/3579 Will this be fixed in

Re: Many to Many Inline Editing

2008-05-20 Thread Yuri Baburov
i'm sorry, probable i put similar, but not right link. maybe this one? http://marinho.webdoisonline.com/blog/p/153/ as far as i understand, google search didn't work for you. that's a pity. and seems we've got all components done for web2.0 django admin already, but unfortunately nobody has time

Re: Many to Many Inline Editing

2008-05-20 Thread Honza Král
Hi, it is very easy to do that with newforms-admin, see http://www.djangosnippets.org/snippets/765/ how this can be done for generic relations, it would be very similar for many-to-many On Tue, May 20, 2008 at 10:32 PM, Yuri Baburov <[EMAIL PROTECTED]> wrote: > > i'm sorry, probable i put simil

Re: Rethinking silent failures in templates

2008-05-20 Thread Yuri Baburov
I can add newer patch if anyone interested. On Wed, May 21, 2008 at 2:54 AM, graham_king <[EMAIL PROTECTED]> wrote: > > Making {{ myval }} fail loudy would break the admin app. Setting > TEMPLATE_STRING_IF_INVALID to anything other than '' also breaks it. > > Here's an example: http://code.djan

using oldforms.SelectMultipleField on a custom field nets a proper select list, but I am only ever given the last value selected from the form

2008-05-20 Thread multigl
Ostensibly, I'm using an app very similar to the django tagging app, and the admin field used to be a text input that would do the connecting magic for you, but unfortunately we have too many users that find that complicated so I'm trying to turn it into a select box. If I define the function get

newforms-admin FormSet API

2008-05-20 Thread Brian Rosner
Hello all, The newforms-admin branch is getting close to finalizing the formset API. However, to do so we would like to run it by the developer community for ideas. I have posted a diff [1] of documentation showing the API. The diff shows the API without a leading underscore on the factor

Re: Multi-Table Inheritance and fixtures

2008-05-20 Thread Ziling Zhao
My fix was to simply set the parent's primary key attribute inside of th child's data, which worked for all cases with the exception of when the parent's primary key had the same name as the child's primary key. Upon the loading of a model like that, i get the error "column name is not unique." I

Re: Hayat�m�z� kolayla�t�racak icatlar

2008-05-20 Thread SALEM ALI
thank you can you write in english iam in libya Tatyana Sveatna <[EMAIL PROTECTED]> wrote: Hayatýmýzý kolaylaþtýracak icatlarMay 8, 2008 sdc Tarafýndan | Teknoloji Kategorisine eklendi Teknoloji o kadar ilerledi ki. Bir robotun Keman çalmasý normal olmaya baþladÃ

document based database

2008-05-20 Thread bedros
are you guys aware of any document based database open source implementation in Python such as strokeDB for Ruby http://strokedb.com/ Thanks in advance -Bedros --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: Multi-Table Inheritance and fixtures

2008-05-20 Thread Ziling Zhao
In addition, it seems like my patch works for sqlite and mysql, but will fail under postgres. On Tue, May 20, 2008 at 3:09 PM, Ziling Zhao <[EMAIL PROTECTED]> wrote: > My fix was to simply set the parent's primary key attribute inside of th > child's data, which worked for all cases with the exce

Re: document based database

2008-05-20 Thread Collin Grady
bedros said the following: > are you guys aware of any document based database open source > implementation in Python such as strokeDB for Ruby This question does not belong on this list - this list is for the discussion of the development of django itself, not for other questions. -- Collin G

Re: document based database

2008-05-20 Thread Daryl Spitzer
Perhaps bedros meant to ask if anyone is working on support in Django for any "document based" databases. strokeDB looks (to my untrained eye) similar to CouchDB. You'll find plenty to read if you do a search for "couchdb django". -- Daryl On Tue, May 20, 2008 at 4:06 PM, Collin Grady <[EMAIL

Re: using oldforms.SelectMultipleField on a custom field nets a proper select list, but I am only ever given the last value selected from the form

2008-05-20 Thread multigl
solved this myself overriding the get_manipulator_new_data method to use getlist on newdata instead of get. On May 20, 2:01 pm, multigl <[EMAIL PROTECTED]> wrote: > Ostensibly, I'm using an app very similar to the django tagging app, > and the admin field used to be a text input that would do the

Re: Rethinking silent failures in templates

2008-05-20 Thread Curtis
Has anyone considered using Python's 'warnings' module? It seems like it might be the perfect fit for this problem. For example, if the appropriate warn() calls were added to the templating system, by default, problems would be sent to sys.stderr. By setting up a warnings filter in (for e.g. in