I need to do this: "PARENTS[0].objectValues('Foo Object')" in python. OK, another one. I think I know the answer, bur calrification is nice :) If in a ZClass I am subclassing from ObjectManager, how would I subclass that in python? Close to a release of a new toy ... :) -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
Bill Anderson wrote:
I need to do this: "PARENTS[0].objectValues('Foo Object')" in python.
Got this one figured out ... the word 'DUH' comes to mind. ;) Just getting excited 'cuz I'm close to getting a new Banner product out!
OK, another one. I think I know the answer, bur calrification is nice :) If in a ZClass I am subclassing from ObjectManager, how would I subclass that in python?
Close to a release of a new toy ... :)
This one can wait, I guess. Release early and all ... announcement post due momentarily :) -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
----- Original Message ----- From: "Bill Anderson" <bill.anderson@libc.org> To: "Zope-Dev" <zope-dev@zope.org> Sent: Friday, February 18, 2000 7:47 PM Subject: [Zope-dev] Quick request! :)
I need to do this: "PARENTS[0].objectValues('Foo Object')" in python.
Wouldn't this just be: self.objectValues('Foo Object') ?
OK, another one. I think I know the answer, bur calrification is nice :) If in a ZClass I am subclassing from ObjectManager, how would I subclass that in python?
Not sure on this one. It's probably just class YourClass(ObjectManager), but I'm not sure where you import that from. (You might take a look in lib/python/OFS for hints).
Close to a release of a new toy ... :)
Toys are good :) Kevin
Kevin Dangoor wrote:
----- Original Message ----- From: "Bill Anderson" <bill.anderson@libc.org> To: "Zope-Dev" <zope-dev@zope.org> Sent: Friday, February 18, 2000 7:47 PM Subject: [Zope-dev] Quick request! :)
I need to do this: "PARENTS[0].objectValues('Foo Object')" in python.
Wouldn't this just be:
self.objectValues('Foo Object')
Yup. :) Took a short change of view to realize it, of course.
OK, another one. I think I know the answer, bur calrification is nice :) If in a ZClass I am subclassing from ObjectManager, how would I subclass that in python?
Not sure on this one. It's probably just class YourClass(ObjectManager), but I'm not sure where you import that from. (You might take a look in lib/python/OFS for hints).
Thanks, I'll look there.
Close to a release of a new toy ... :)
Toys are good :)
<dtml-voice macho_man> Ohhhh yeah! </dtml-voice> -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
participants (2)
-
Bill Anderson -
Kevin Dangoor