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

All Samples(15)  |  Call(11)  |  Derive(1)  |  Import(3)

src/f/l/flask_introspect-0.0.1/test/test_base_view.py   flask_introspect(Download)
from pprint import pprint
 
from flask.ext.introspect import TreeView, Tree, DictViewMixin, ObjectViewMixin, NOTEXIST
 
class O(object):
           type(s) of dict items must correlate with top classes __type__ attr
        '''
        tree = Tree({'root':O(a='root header value for `a` key',
                              sub=O1(),
                              sub2=O(subsub={'a':'b'}),
                return self.obj.get(key, None)
 
        tree = Tree({'root':O(a='root header value for `a` key',
                              sub=O1(),
                              sub2=O(subsub={'a':'Dict `a` header'}),
        and others prepared for xhr extending
        '''
        tree = Tree({'root':O(a='root header value for `a` key',
                              sub=O1(),
                              sub2=O(subsub={'a':'Dict `a` header'}),
                                                )),
                    )}
        tree = Tree(obj, OView, leaf_classes=SubView, sep='.')
        '''
        Separator `TreeView.__sep__` can be different for each level

src/s/w/swarm-crawler-0.0.1/swarm_crawler/serve/treemap.py   swarm-crawler(Download)
 
from flask import url_for, g, Response, request, current_app, render_template
from flask.ext.introspect import Tree, TreeView, TreeRootView, \
    ObjectViewMixin, DictViewMixin
 
class EmbeddedAssetsTree(Tree):
 
    @cached_property
    def popupsets(self):
        return list(self.aggregate_typestree_list((self.root_class, ),

src/f/l/flask_introspect-0.0.1/flask_introspect/rest.py   flask_introspect(Download)
 
from werkzeug.utils import cached_property
from flask.ext.introspect import Tree, TreeRootView, NOTEXIST