Re: oodb philosophics ;) was: Re: [Zope-dev] Experiments with ORMapping

2001-05-11 Thread Cees de Groot
I don't see a lot of advantages in inflicting behavior onto objects through a containment hierarchy. But then, I didn't read the original paper so please prove me wrong. -- Cees de Groot http://www.cdegroot.com <[EMAIL PROTECTED]> GnuPG 1024D/E0989E8B 0016 F

Re: [Zope-dev] Experiments with ORMapping

2001-05-11 Thread Cees de Groot
Phillip J. Eby <[EMAIL PROTECTED]> said: >For example, if I am an ISP, and I want to implement an >"active" flag on an "account" object, I would like changing it to >automatically go out and add or remove routing entries and password entries >on my servers when I update the record through my Zo

Re: oodb philosophics ;) was: Re: [Zope-dev] Experiments with ORMapping

2001-05-11 Thread Cees de Groot
Joachim Werner <[EMAIL PROTECTED]> said: >[...]. E.g. how would >you handle objects beloning to more than one container? In SQL this is easy >(Just have a table that matches key pairs from the container table and the >item table). And I don't know any good way of implementing "many-to-many" >relat

Re: oodb philosophics ;) was: Re: [Zope-dev] Experiments with

2001-05-11 Thread Cees de Groot
[EMAIL PROTECTED] said: > The only problem with this is that lambdas are not safe for TTW > scripting 8^(. I think that TTW scripting and heavy duty application development are very incompatible with each other, so that's not a problem :-) -- Cees de Groot

Re: oodb philosophics ;) was: Re: [Zope-dev] Experiments with

2001-05-11 Thread Cees de Groot
David Brown <[EMAIL PROTECTED]> said: >But isn't Python a decent query language? Isn't it nice to be able to have >all of the facilities of Python at your disposal when manipulating data, >rather than hoping that whatever database you are using doesn't have a >brain-damaged implementation of S

Re: oodb philosophics ;) was: Re: [Zope-dev] Experiments with ORMapping

2001-05-10 Thread Cees de Groot
Shane Hathaway <[EMAIL PROTECTED]> said: >That's one reason ZODB is so nice. You can write an application without >writing a formal schema. > One of the reasons I am seriously considering to migrate our production database from PostgreSQL to ZODB. I am about to implement our product database, and

[Zope-dev] ZIdle, anyone?

2000-12-01 Thread Cees de Groot
and len(self.dbnode.objectMap()) > 0 except: return 0 def main(): from zidle import App DbBrowser(App) if __name__ == "__main__": main() 4. README Hit "dbbrowser.DbBrowser(App)" in the IDLE console and have fun. -- C

Re: [Zope-dev] Re: [Geeks] Re: Interface Meta Data proposal

2000-11-28 Thread Cees de Groot
but I'm talking without too much thinking here, I think support for assertions in Python should be based on generic support for metaprogramming - there's more than DBC that could benefit from that (aspect-oriented programming, etcetera). -- Cees de Groot http://www.cdegroot.co

Re: [Zope-dev] Re: [Geeks] Interface Meta Data proposal

2000-11-28 Thread Cees de Groot
The usual answer of an OO guru here is that if statements are considered harmful, and that if statements that check object types are considered very harmful. The modern variant is "these are strong refactoring smells". -- Cees de Groot http://www.cdegroot.com <[E