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 _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
- Re: [Zope-dev] Acquisition wishlist :-) Martijn Pieters
- [Zope-dev] ComputedAttribute Chris Withers
- [Zope-dev] Re: ComputedAttribute Martijn Pieters
- Re: [Zope-dev] Developers Reference Chris Withers
- Re: [Zope-dev] Re: ComputedAttribute Chris Withers
- Re: [Zope-dev] Re: ComputedAttribute Martijn Pieters
- Re: [Zope-dev] Re: ComputedAttri... Chris Withers
- Re: [Zope-dev] Re: ComputedAttri... Martijn Pieters
- Re: [Zope-dev] Acquisition wishlist :-) Shane Hathaway
- Re: [Zope-dev] Acquisition wishlist :-) Chris Withers
- Re: [Zope-dev] Acquisition wishlist :-) Chris Withers
- Re: [Zope-dev] Acquisition wishlist :-) Dieter Maurer
- Re: [Zope-dev] Acquisition wishlist :-) Chris Withers
- Re: [Zope-dev] Acquisition wishlist :-) Martijn Pieters
- Re: [Zope-dev] Acquisition wishlist :-) Dieter Maurer
- Re: [Zope-dev] Acquisition wishlist :-) Martijn Pieters
- Re: [Zope-dev] Acquisition wishlist :-) Dieter Maurer
- Re: [Zope-dev] index_html = None is bad... Chris Withers
- Re: [Zope-dev] Acquisition wishlist :-) Martijn Pieters
- Re: [Zope-dev] Acquisition wishlist :-) Dieter Maurer