Did I find the right examples for you? yes no

All Samples(41)  |  Call(36)  |  Derive(1)  |  Import(4)

src/e/l/eliot-0.3.0/eliot/_message.py   eliot(Download)
 
# Import at end to deal with circular imports:
from ._action import currentAction, Action
 
# The default Action to use as a context for messages, if no other Action is the
# context. This ensures all messages have a unique identity, as specified by
# task_uuid/task_level/action_counter.
_defaultAction = Action(None, unicode(uuid4()), "/", "eliot:default")

src/e/l/eliot-0.3.0/eliot/__init__.py   eliot(Download)
# Expose the public API:
from ._message import Message
from ._action import startAction, startTask, Action
from ._output import ILogger, Logger, MemoryLogger
from ._validation import Field, MessageType, ActionType

src/e/l/eliot-0.3.0/eliot/tests/test_action.py   eliot(Download)
    twisted = None
 
from .._action import (
    Action, _ExecutionContext, currentAction, startTask, startAction,
    )
        """
        logger = MemoryLogger()
        action = Action(logger, "unique", "/", "sys:thename")
        action._start({"key": "value"})
        assertContainsFields(self, logger.messages[0],
                self.append(serializer)
        logger = Logger()
        action = Action(logger, "unique", "/", "sys:thename", serializers)
        action._start({"key": "value"})
        self.assertIs(logger[0], serializers.start)
        """
        logger = MemoryLogger()
        action = Action(logger, "unique", "/", "sys:thename")
        logger2 = MemoryLogger()
        child = action.child(logger2, "newsystem:newname")
        """
        logger = MemoryLogger()
        action = Action(logger, "unique", "/", "sys:thename")
        child1 = action.child(logger, "newsystem:newname")
        child2 = action.child(logger, "newsystem:newname")

src/e/l/eliot-0.3.0/eliot/tests/test_message.py   eliot(Download)
from .._message import Message, _defaultAction
from .._output import MemoryLogger
from .._action import Action, startAction
 
 
        """
        logger = MemoryLogger()
        action = Action(logger, "unique", "/", "sys:thename")
        msg = Message.new(key=2)
        msg.write(logger, action)
        dictionary written to the logger.
        """
        action = Action(MemoryLogger(), "unique", "/", "sys:thename")
        logger = MemoryLogger()
        msg = Message.new(key=2)