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

All Samples(25)  |  Call(0)  |  Derive(14)  |  Import(11)

src/l/a/Lampost-Mud-HEAD/lampost/model/article.py   Lampost-Mud(Download)
from lampost.datastore.auto import TemplateField
from lampost.gameops.script import Scriptable
from lampost.model.item import BaseItem, target_keys
from lampost.gameops.action import ActionError
from lampost.datastore.dbo import RootDBO, DBOField, DBOTField
class ArticleReset(RootDBO):
    class_id = 'article_reset'
    article_id = DBOField(None, 'article', True)
    reset_count = DBOField(1)
    reset_max = DBOField(1)
 
 
class ArticleLoad(RootDBO):

src/l/a/Lampost-Mud-HEAD/lampost/gameops/template.py   Lampost-Mud(Download)
from lampost.datastore.classes import set_dbo_class, get_dbo_class
from lampost.context.resource import m_requires
from lampost.datastore.auto import TemplateField
from lampost.datastore.dbo import DBOField, RootDBO, RootDBOMeta
 
class Template(RootDBO):
    dbo_rev = DBOField(0)
 
    def create_instance(self, owner=None):
        instance = self.instance_cls()
class TemplateInstance(RootDBO):
    __metaclass__ = TemplateMeta
 
    @classmethod
    def load_ref(cls, dbo_repr, owner=None):

src/l/a/Lampost-Mud-HEAD/lampost/env/room.py   Lampost-Mud(Download)
from lampost.comm.broadcast import Broadcast
from lampost.context.resource import m_requires
from lampost.datastore.dbo import RootDBO, DBOField, DBOTField
from lampost.env.movement import Direction
from lampost.gameops.script import Scriptable
class Exit(RootDBO):
    class_id = 'exit'
 
    target_class = None
    direction = DBOField(None, 'direction')

src/l/a/Lampost-Mud-HEAD/lampost/model/player.py   Lampost-Mud(Download)
from lampost.context.resource import m_requires
from lampost.datastore.dbo import RootDBO, DBOField
 
m_requires('log', 'dispatcher', __name__)
 
 
class Player(RootDBO):

src/l/a/Lampost-Mud-HEAD/lampost/client/user.py   Lampost-Mud(Download)
import time
 
from lampost.context.resource import provides, m_requires
from lampost.datastore.dbo import RootDBO, DBOField
from lampost.model.player import Player
class User(RootDBO):
    dbo_key_type = "user"
    dbo_set_key = "users"
    dbo_indexes = "user_name", "email"
 

src/l/a/Lampost-Mud-HEAD/lampost/model/race.py   Lampost-Mud(Download)
from lampost.datastore.dbo import RootDBO, DBOField
 
base_attr_value = 5
 
 
class PlayerRace(RootDBO):

src/l/a/Lampost-Mud-HEAD/lampost/gameops/script.py   Lampost-Mud(Download)
import os
 
from lampost.context.resource import m_requires, inject, provides
from lampost.datastore.dbo import RootDBO, DBOField
from lampost.gameops.action import item_action
class Script(RootDBO):
    dbo_key_type = 'script'
    dbo_parent_type = 'area'
 
    dbo_rev = DBOField(0)
class Scriptable(RootDBO):
    scripts = DBOField([], 'script')
    script_vars = DBOField({})
 
    def on_loaded(self):

src/l/a/Lampost-Mud-HEAD/lampost/gameops/config.py   Lampost-Mud(Download)
from lampost.context.resource import provides, m_requires
from lampost.datastore.dbo import RootDBO, DBOField
from lampost.util.lmutil import javascript_safe
 
m_requires('log', 'datastore', 'dispatcher', __name__)
class Config(RootDBO):
    dbo_key_type = "config"
 
    title = DBOField('Lampost (New Install)')
    description = DBOField('A fresh install of Lampost Mud')

src/l/a/Lampost-Mud-HEAD/lampost/mud/socials.py   Lampost-Mud(Download)
from lampost.comm.broadcast import BroadcastMap
from lampost.context.resource import m_requires
from lampost.datastore.dbo import RootDBO, DBOField
from lampost.mud.action import mud_action
 
class Social(RootDBO):
    dbo_key_type = 'social'
    dbo_set_key = 'socials'
 
    b_map = DBOField({})

src/l/a/Lampost-Mud-HEAD/lampost/env/movement.py   Lampost-Mud(Download)
from lampost.datastore.dbo import RootDBO, DBOField
 
 
class Direction(RootDBO):
    class_id = 'direction'

  1 | 2  Next