"""Module manifest — see core/modules/model.py and APPS_PLATFORM §4.""" from core.modules.model import ConfigField, DeviceApp, Limit, Module, Mount, Perm MODULE = Module( key='signage', kind='app', name='Digital signage', description='Menus and promotions on TVs: playlists of menu boards, pictures, videos and texts (phase 5, steps 5.4a-5.6c).', permissions=( Perm('signage.manage', 'Edit signage content', roles=('owner', 'store_manager', 'staff_manager')), ), limits=( Limit('devices', 'Number of signage screens', free=0, licensed_default=1), ), routers=( Mount('routers.signage', '/api/signage'), ), device_app=DeviceApp(login_modes=('none',), scope=(), config=( # What it plays and how the TV hangs (5.4a); the editor builds for the screen's shape ConfigField('playlist', 'ref', default=None, choices_from='signage_playlists'), ConfigField('orientation', 'enum', default='landscape', choices=('landscape', 'portrait')), ConfigField('rotation', 'int', default=0, choices=(0, 90, 180, 270)), )), )