Re: What is the Right Way to handle DECIMAL fields?

2006-09-08 Thread jorjun
Andrew Durdin wrote: The problem with the latter is that the decimal module is only > in 2.4, and django is targeting 2.3 as the minimum support version of > Python. My background is in over ten years of business application development (order processing and ERP), and I have been moving over to D

Re: RDBMS vs ODBMS

2006-09-08 Thread GinTon
Zopdb is not based on the ODMG 3 specification but I have found a free ODBMS based on the ODMG 3 specification althought it only has programming interfaces for C++ and Java, but we would ask to authors an interface for python. http://www.eyedb.org/ It is very powerful, mature, safe, stable. I was

Re: RDBMS vs ODBMS

2006-09-08 Thread Ian Holsman
On 08/09/2006, at 8:03 PM, GinTon wrote: > > Zopdb is not based on the ODMG 3 specification but I have found a free > ODBMS based on the ODMG 3 specification althought it only has > programming interfaces for C++ and Java, but we would ask to > authors an > interface for python. > http://www.e

Custom default managers interfere with delete operations

2006-09-08 Thread Ned Batchelder
I don't know whether this is a bug in the ORM, or a misunderstanding on my part about how to use custom managers. In our model, we have a Story class, with a boolean 'deleted' attribute. We defined a custom default manager to return all of the stories that are not deleted, so that most of the

Re: Custom default managers interfere with delete operations

2006-09-08 Thread Russell Keith-Magee
On 9/8/06, Ned Batchelder <[EMAIL PROTECTED]> wrote: The docs for custom managers say: "it's generally a good idea for thefirst Manager to be relatively unfiltered".  But it seems that anyfiltering in the default manager will interfere with cascading deletes. Having a filtered manager will cause s

manytomany and multiple selects

2006-09-08 Thread LizzyLiz
In my model a user can be linked to many accounts - to display this I've got a multiple select on a manytomany field, I pass the user and the list of all possible accounts to the template: {% for account in accounts %} {{account.name}} {% endfor %} This displays the account nam

Re: yes/no option for BooleanField

2006-09-08 Thread Adrian Holovaty
On 9/8/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > After noticing the new NullBooleanField, I am thinking it would be nice > to have the same sort of yes/no dropdown option for BooleanField > (without the "unknown" choice of course). What do you think? Hey Gary, NullBooleanField has been in Dj

Re: RDBMS vs ODBMS

2006-09-08 Thread GinTon
Ian Holsman wrote: > On 08/09/2006, at 8:03 PM, GinTon wrote: > > > > > Zopdb is not based on the ODMG 3 specification but I have found a free > > ODBMS based on the ODMG 3 specification althought it only has > > programming interfaces for C++ and Java, but we would ask to > > authors an > > inter

Re: yes/no option for BooleanField

2006-09-08 Thread Gary Wilson
Adrian Holovaty wrote: > I'm -0 on having BooleanFields use a drop down in the admin interface. > Radio buttons are so much more usable, if you only have two choices. > If anything, we should change NullBooleanFields to use radio buttons. That would be fine too. --~--~-~--~~

Re: RDBMS vs ODBMS

2006-09-08 Thread [EMAIL PROTECTED]
If it has C++ bindings then maybe SIP could help - http://www.riverbankcomputing.co.uk/sip/ PyQT4 bindings made with SIP are realy nice :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Re: Custom default managers interfere with delete operations

2006-09-08 Thread Ned Batchelder
Russell Keith-Magee wrote: On 9/8/06, Ned Batchelder <[EMAIL PROTECTED]> wrote: The docs for custom managers say: "it's generally a good idea for the first Manager to be relatively unfiltered".  But it seems that any filtering in the default manager will interfere with cascading deletes.

Example on bitmap charts

2006-09-08 Thread Andy Robinson
Hi all, I have just added a Wiki page under the Cookbook section showing how to create dynamic charts using ReportLab's graphics library. It seems not many people know about our chart library, which has been serving financial charts in big firms for years. In any event the Django integration is

Re: RDBMS vs ODBMS

2006-09-08 Thread GinTon
[EMAIL PROTECTED] wrote: > If it has C++ bindings then maybe SIP could help - > http://www.riverbankcomputing.co.uk/sip/ > > PyQT4 bindings made with SIP are realy nice :) These are the conclusions of several Python wrappers that shows that SIP generates the fastest wrappers: * Manual wrapping i

Re: Custom default managers interfere with delete operations

2006-09-08 Thread Russell Keith-Magee
On 9/9/06, Ned Batchelder <[EMAIL PROTECTED] > wrote: I'm not familiar with the internals of this code, but here's a naive conception: since the default objects manager is made automatically by the ORM, couldn't it still be available internally for use in this case?  Whatever filtering

Re: manytomany and multiple selects

2006-09-08 Thread Russell Keith-Magee
On 9/8/06, LizzyLiz <[EMAIL PROTECTED] > wrote: I would like to show which of these accounts are already linked to theuser but I'm not sure how to do it - something like: account.id }}"  {% if account.id inuser.accounts %}selected="True"{% endif %}>{{ account.name}}You won't be able to use