Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/e/r/erp5-HEAD/product/ERP5Type/patches/Restricted.py   erp5(Download)
from Acquisition import aq_acquire
from AccessControl import getSecurityManager
from AccessControl.ZopeGuards import (safe_builtins, _marker, Unauthorized,
    aq_validate, guard, guarded_getattr, guarded_iter, SafeIter, NullIter,
    ContainerAssertions, GuardedDictType, _dict_white_list)
def guarded_enumerate(seq, start=0):
    return NullIter(enumerate(guarded_iter(seq), start=start))
safe_builtins['enumerate'] = guarded_enumerate
 
def get_set_pop(s, name):

src/e/r/erp5-HEAD/product/ERP5Type/Core/Folder.py   erp5(Download)
from collections import deque
from AccessControl import ClassSecurityInfo, getSecurityManager
from AccessControl.ZopeGuards import NullIter
from Acquisition import aq_base, aq_parent, aq_inner
from OFS.ObjectManager import ObjectManager
        return ()
      result = self._tree.iteritems(*args, **kw)
    return NullIter(((x, y.__of__(self)) for x, y in result))
 
  def hasObject(self, id):