10 Jan
2001
10 Jan
'01
6:11 p.m.
Shane Hathaway wrote:
There's a (much) simpler way:
class MyClass(Acquisition.Explicit): your_attribute = Acquisition.Acquired
# index_html isn't index_html = None
"Acquired" is a special object that the acquisition module looks for.
Just noticed you can do this also: class MyClass: # note lack of base class ;-) your_attribute = Acquisition.Acquired ...got the idea from Traversable.py Now if I could just figure out how to make non-SimpleItem classes aware of security (see my other recent post :-S) cheers, Chris