def isProxyOrReference(obj): if proxyBase(obj) is not aq_base(obj): return 1 if isinstance(obj, PathReference): return 1 return 0