import platform if platform.system().lower() in [‘windows’]: EXTENSIONS = ['ext_json'] else: EXTENSIONS = [‘ext_daemon’, ‘ext_json'] class MyApp(CementApp): class Meta: extensions = EXTENSIONS
app.daemonize()? In a hook, or in your controller or somewhere else?
app.config.parse_file()somewhere else yeah? You need to call
app.config.get('section', 'value')and the value doesn't exist, I get a
configparser.NoOptionError, yet I cannot handle this exception since I'm not sure which module it's declared in. I tried searching for it in the cement source code but I couldn't find the module which declares the error. I would like to know how to catch this error or if I should just set all the default
app.configvalues before I parse a config file.
yourapp.whatever.controllers.LiteController… and then int he plugin’s
load()function you would
app.handler.register(AdvancedController, force=True)which forces it to register overtop of the
LiteController(of the same label)