Page MenuHome

__init__.py
No OneTemporary

__init__.py

from pillar.extension import PillarExtension
from .modules import blueprint
class AttractExtension(PillarExtension):
@property
def name(self):
return 'Attract'
def flask_config(self):
"""Returns extension-specific defaults for the Flask configuration.
Use this to set sensible default values for configuration settings
introduced by the extension.
:rtype: dict
"""
# Just so that it registers the management commands.
from . import cli
return {}
def eve_settings(self):
"""Returns extensions to the Eve settings.
Currently only the DOMAIN key is used to insert new resources into
Eve's configuration.
:rtype: dict
"""
return {
'DOMAIN': {
'tasks': {
'schema': {
'name': {
'type': 'string',
},
}
}
}
}
def blueprints(self):
"""Returns the list of top-level blueprints for the extension.
These blueprints will be mounted at the url prefix given to
app.load_extension().
:rtype: list of flask.Blueprint objects.
"""
return [blueprint]

File Metadata

Mime Type
text/x-python
Expires
Sat, Dec 5, 7:22 PM (1 d, 23 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0f/f4/052e29c7f0c635ecd66879e14ffc

Event Timeline