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

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

src/e/r/erp5-HEAD/product/ERP5/mixin/timer_service.py   erp5(Download)
import warnings
from AccessControl import ClassSecurityInfo
from Products.CMFActivity.ActivityTool import ActivityTool
from Products.ERP5Type import Permissions
try:

src/e/r/erp5-HEAD/product/ERP5Type/tests/testCopySupport.py   erp5(Download)
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
#from AccessControl.SecurityManagement import newSecurityManager
from Products.CMFActivity.ActivityTool import ActivityTool
from Products.CMFActivity.Errors import ActivityPendingError
 

src/e/r/erp5-HEAD/product/ERP5Type/tests/ProcessingNodeTestCase.py   erp5(Download)
def patchActivityTool():
  """Redefine several methods of ActivityTool for unit tests
  """
  from Products.CMFActivity.ActivityTool import ActivityTool
  def patch(function):
      activity_tool = self.portal.portal_activities
    except AttributeError:
      from Products.CMFActivity.ActivityTool import ActivityTool
      activity_tool = ActivityTool().__of__(self.app)
    currentNode = activity_tool.getCurrentNode()