Exemplo n.º 1
0
"""
================
images blueprint
================


"""

BP = blueprints.Blueprint('images', __name__,
                          static_folder='static',
                          template_folder='templates',
                          url_prefix='/images')


BP = breadcrumbs('Images')(BP)


dash = partial(basedash, agt='Images', wga=1)


@breadcrumb_button('images.register', 'Register Image')
@breadcrumbs('Manage')
@dash(st='Manage',
         spu='focus2/img/small_manage.png',
         bt='Manage Images',
         bpu='focus2/img/manage.png',
         wgl=1,
         p=True)
@BP.route('/')
def index():
Exemplo n.º 2
0
=============
instances blueprint
=============

Spawn
Manage

"""

BP = blueprints.Blueprint('instances', __name__,
                          static_folder='static',
                          template_folder='templates',
                          url_prefix='/instances')


BP = breadcrumbs('Instances')(BP)


@breadcrumbs('Manage')
@breadcrumb_button('instances.spawn', 'Spawn New Instance')
@dash(st='Manage',
         spu='focus2/img/small_manage.png',
         bt='Manage instances',
         bpu='focus2/img/manage.png',
         agt='Instances',
         wga=0,
         wgl=1,
         p=True,
         pw=1)
@BP.route('/')
def index():