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

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)

src/e/r/erp5-HEAD/product/CMFActivity/Activity/SQLBase.py   erp5(Download)
from zLOG import LOG, TRACE, INFO, WARNING, ERROR, PANIC
from ZODB.POSException import ConflictError
from Products.CMFActivity.ActivityTool import (
  Message, MESSAGE_NOT_EXECUTED, MESSAGE_EXECUTED)
from Products.CMFActivity.ActiveObject import INVOKE_ERROR_STATE

src/e/r/erp5-HEAD/product/CMFActivity/Activity/SQLQueue.py   erp5(Download)
##############################################################################
 
from Products.CMFActivity.ActivityTool import Message, registerActivity
from ZODB.POSException import ConflictError
from SQLBase import SQLBase, sort_message_key

src/e/r/erp5-HEAD/product/CMFActivity/Activity/SQLDict.py   erp5(Download)
##############################################################################
 
from Products.CMFActivity.ActivityTool import Message, registerActivity
import sys
#from time import time

src/e/r/erp5-HEAD/product/CMFActivity/tests/testCMFActivity.py   erp5(Download)
from DateTime import DateTime
import cPickle as pickle
from Products.CMFActivity.ActivityTool import Message
import gc
import random
        method_id = 'dummy_activity'
        path = '/'.join(self.getPhysicalPath())
        message = Message(self, None, {}, method_id, (), {})
        pickled_message = pickle.dumps(message)
        self.SQLDict_writeMessageList(
        method_id = 'dummy_activity'
        path = '/'.join(self.getPhysicalPath())
        message = Message(self, None, {}, method_id, (), {})
        pickled_message = pickle.dumps(message)
        self.SQLDict_writeMessageList(
        method_id = 'dummy_activity'
        path = '/'.join(self.getPhysicalPath())
        message = Message(self, None, {}, method_id, (), {})
        pickled_message = pickle.dumps(message)
        self.SQLDict_writeMessageList(
        method_id = 'dummy_activity'
        path = '/'.join(self.getPhysicalPath())
        message = Message(self, None, {}, method_id, (), {})
        pickled_message = pickle.dumps(message)
        self.SQLDict_writeMessageList(

src/e/r/erp5-HEAD/product/ERP5Type/tests/ERP5TypeTestCase.py   erp5(Download)
    ZopeTestCase._print("RNG seed for priorities of activities is %r\n" % seed)
    rng = random.Random(seed)
    from Products.CMFActivity.ActivityTool import Message
    Message__init__ = Message.__init__
    def __init__(self, url, oid, active_process, active_process_uid,