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

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

src/l/a/Lampost-Mud-HEAD/lampost/env/instance.py   Lampost-Mud(Download)
from lampost.context.resource import m_requires
from lampost.datastore.dbo import DBOField
from lampost.env.feature import Feature
from lampost.gameops.action import convert_verbs, item_action
from lampost.gameops.display import EXIT_DISPLAY
    def glance(self, source, **_):
        if self.direction:
            source.display_line('Exit: {0}  {1}'.format(self.direction.desc, self.dest_room.title), EXIT_DISPLAY)
        else:
            source.display_line(self.title, EXIT_DISPLAY)

src/l/a/Lampost-Mud-HEAD/lampost/mud/inventory.py   Lampost-Mud(Download)
from lampost.datastore.dbo import DBOField
 
from lampost.gameops.display import EXIT_DISPLAY
from lampost.model.item import BaseItem
from lampost.mud.action import mud_action
def inven(source, **_):
    if source.inven:
        source.display_line("You are carrying:")
        for article in source.inven:
            source.display_line("  {}".format(article.short_desc()), EXIT_DISPLAY)