If you have a zope product you can do something like this indeed :
class MyContainer(Folder):
"""My Folderish Product"""
def mydoc_xls(self, REQUEST=None):
"""My new xls method"""
return "My new xls method"
def __getitem__(self, key):
"""Check for mydoc.xls, then return mydoc_xls"""
if key == 'mydoc.xls':
return self.mydoc_xls
return super(Folder, self).__getitem__(key)
Hi!
Hey, Tres, could you point us to a web example or a web page with more
information about that technique?
I'm very interested on it and the technique that was introduced
sometime ago about how to return a string as __bobo_traverse__ response
but the example was uncompleted (for me at least)
This kind of information was very useful for many of us but there are
no good tutorial or how-to
Thanks a lot!
--
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
--
Martijn Jacobs
Four Digits, Internet Solutions
a: Willemsplein 15-1 6811 KB Arnhem NL
kvk: 091621370000 | btw: 8161.22.234.B01
e-mail: martijn@fourdigits.nl | web: http://www.fourdigits.nl
tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117