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

All Samples(12)  |  Call(0)  |  Derive(9)  |  Import(3)

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 DatasetView(DictViewMixin, TreeView):
 
    __type__ = TrieTree
 
 

src/f/l/flask_introspect-0.0.1/test/test_blueprint.py   flask_introspect(Download)
from flask import Flask, request
from flask.views import MethodView
from flask.ext.introspect import blueprint as rest, TreeView, ObjectViewMixin, DictViewMixin
from unittest import TestCase
 
class OView(ObjectViewMixin, TreeView):
    __type__ = O
    '''
    view class methods will always recieve suitable item
    and can incapsulate web related functionality (including permissions)

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):
        class TopView(SortedNamesObjectViewMixin, TreeView):
            '''
              `__type__ defines what subitem type should be rendered with this view
            '''
            __type__ = O
        class OView(SortedNamesObjectViewMixin, TreeView):
            __type__ = O
            __cell__ = odict((('a', 'The a'),))
            __recursive__ = True
 
        class OView(SortedNamesObjectViewMixin, TreeView):
            __type__ = O
            __cell__ = odict((('a', 'The a'),))
            __recursive__ = True
 
        class OView(SortedNamesObjectViewMixin, TreeView):
            __type__ = O
            __cell__ = odict((('a', 'The a'),))
            __recursive__ = True