Did I find the right examples for you? yes no

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/admin_order.py   Products.PloneGetPaid(Download)
    def iterRecords( self ):
        wf_log = interfaces.IOrderWorkflowLog( self.__parent__.context._object )
        return iter( wf_log )
 
    def render( self ):

src/p/r/Products.PloneGetPaid-0.10.5/Products/PloneGetPaid/browser/order.py   Products.PloneGetPaid(Download)
                           'finance_state': order.finance_state,
                           'fulfillment_state': order.fulfillment_state,
                           'log': tuple(igpc.IOrderWorkflowLog( order ))})
        return orders
 

src/g/e/getpaid.core-0.9.2/src/getpaid/core/order.py   getpaid.core(Download)
        data['change_kind'] = _(u'Fulfillment')
 
    audit_log = interfaces.IOrderWorkflowLog( event.object )
    audit_log.add( OrderWorkflowRecord( **data ) )
 

src/g/e/getpaid.core-0.9.2/src/getpaid/core/tests/test_order.py   getpaid.core(Download)
from getpaid.core.tests import base
from getpaid.core import order
from getpaid.core.interfaces import IOrderManager, IOrderWorkflowLog, IOrder, workflow_states
 
from zope.app.testing import placelesssetup, ztapi
        order1.finance_workflow.fireTransition('create')
 
        olog = IOrderWorkflowLog( order1 )
        history = list( iter( olog ) )
        self.assertEqual( len( history ), 1 )

src/g/e/getpaid.core-0.9.2/src/getpaid/core/tests/base.py   getpaid.core(Download)
from zope import interface
 
from getpaid.core.interfaces import IOrder, IOrderManager, IOrderWorkflowLog
from getpaid.core import order, cart, item as line_item
from getpaid.core.workflow import store, order as oworkflow

src/g/e/getpaid.pxpay-0.5/src/getpaid/pxpay/tests/utils.py   getpaid.pxpay(Download)
 
from zope.component import getMultiAdapter, getUtility
from getpaid.core.interfaces import IOrderManager, IShoppingCartUtility, \
     IOrderWorkflowLog
from getpaid.core.order import Order
def print_order_workflow_log(order):
    olog = IOrderWorkflowLog(order)
    for record in list(iter(olog)):
        print record.previous_state, ' --> ', record.new_state