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
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
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
[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
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
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
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
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
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