Hi
I have these function
def Propiedad(self,
Name):
"""Propiedad""" Obj = self Maestro = getattr(Obj, 'Maestro', None) Paso = 1 while Maestro is not None: Obj = self.restrictedTraverse(Maestro.contenido).__of__(self) Maestro = getattr(Obj, 'Maestro', None) Paso += 1 if Paso == 15: break if hasattr(Obj, Name): return getattr(Obj, Name) return getattr(self, Name) these code try to get the object Maestro, and
recursively search the for Maestro's until is not found
Width these code I try to use an object called
Maestro to make soft links
My problem is to acquire the real
context of self
If I add in my product
these function:
def __bobo_traverse__(self, Request,
Name):
return self.Propiedad(Name) ZMI show me the soft link object and not the real
self
Has anyone idea to help me, please?
Thanks
|
_______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )