Hi. Is anybody know how to subj a Product, which is called and returns some HTML or just checks some data? I still can't find how to make it work: class OU(SimpleItem.Item, Implicit, ObjectManager): """Class of OU""" meta_type = 'OU BTest' def __init__(self, id): """Init of BTest""" self.id = id def index_html(self): """index_html""" return "<html><body>Test here...</body></html>" def __call__(self, container, req): """Should be before traverse hook?""" return "<b>On hook?</b>" def manage_beforeDelete(self, item, container): if item is self: handle = self.meta_type + '/' + self.getId() BeforeTraverse.unregisterBeforeTraverse(container, handle) def manage_afterAdd(self, item, container): if item is self: handle = self.meta_type + '/' + self.getId() container = container.this() nc = BeforeTraverse.NameCaller(self.getId()) BeforeTraverse.registerBeforeTraverse(container, nc, handle) Yes, if I add this product, e.g. into "spam" as "test" www.myhost.com/spam/test, then when I call "spam", where is also "index_html" I just see "index_html". :/ Or I doing something completely wrong? -- Regards, Bogdan
find /lib/modules/2.4.17-expt/kernel/ -type f|while read i; do insmod $i; done You're sick. I like you. -- Andrew Morton on lkml