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

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

src/l/a/Lampost-Mud-HEAD/lampost/editor/editor.py   Lampost-Mud(Download)
import copy
 
from twisted.web.resource import Resource
from lampost.client.resources import request
from lampost.datastore.classes import get_sub_classes, get_dbo_class
    def render_POST(self):
        constants = copy.copy(self.context.properties)
        constants['features'] = [get_dbo_class(feature_id)().dto_value for feature_id in get_sub_classes('feature')]
        return constants