Guest User

Untitled

a guest
Jul 22nd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def isFactoryContained(obj):
  2. """Are we inside the portal_factory?
  3. """
  4. pobj = aq_parent(aq_inner(obj))
  5. return hasattr(pobj, 'meta_type') and pobj.meta_type == 'TempFolder'
Add Comment
Please, Sign In to add comment