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

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

src/l/a/Lampost-Mud-HEAD/lampost/mud/action.py   Lampost-Mud(Download)
from collections import defaultdict
from lampost.context.resource import m_requires, register
from lampost.gameops.action import make_action, ActionError, convert_verbs
from lampost.util.lmutil import StateError
 
    def dec_wrapper(func):
        action = make_action(func, msg_class=msg_class, **kwargs)
        for verb in convert_verbs(verbs):
            if verb in _mud_actions:
                error("Adding mud action for {}".format(verb))
    def dec_wrapper(func):
        imm_actions.add(func)
        func.imm_level = imm_level
        return make_action(func, verbs, msg_class, **kwargs)
    return dec_wrapper

src/l/a/Lampost-Mud-HEAD/lampost/comm/channel.py   Lampost-Mud(Download)
from lampost.client.services import ClientService
from lampost.gameops.action import make_action
from lampost.context.resource import m_requires, provides
from lampost.util.lmutil import timestamp
 
    def __init__(self, verb):
        make_action(self, verb)
        self.id = verb
        self.display = "{}_display".format(verb)
        channel_service.known_channels.append(self.id)