RE: Security and Acquisition?!
Anyone know what those attributes are?
Heres a good trick: add this method to your class to see which attributes it is asked for, but doesnt implement. def __getattr__(self,id,reg={}): if not reg.has_key(id): print `id` reg[id]=id raise AttributeError(id)
But these are very specific classes that exist for no longer than the duration of serving a single page request, and it'd just be nice to know that they're not going to acquire and fluff they shouldn't...
An alternative approach: apply tighter security to the method that constructs these objects, and leave the objects themselves completely open.
Toby Dickenson wrote:
An alternative approach: apply tighter security to the method that constructs these objects, and leave the objects themselves completely open.
Well, yeah, that'd be fine, if it worked! ;-) The whole problem is that objects have to be acquiring to work _with_ the security system. So, unless you mix in Acquisition.Implicit or go through the pain already discussed to make Acquisition.Explicit work, you can't have an accessible/usable-yet-non-acquiring object :-( If anyone does find a way, please let me and the list know... cheers, Chris
participants (2)
-
Chris Withers -
Toby Dickenson