Commits

Alessandro Molina  committed 66abd6d

Make smallpress work with TG 2.2 upcoming release

  • Participants
  • Parent commits 26994e7

Comments (0)

Files changed (1)

File smallpress/__init__.py

 
         return app
 
+    if not app_config.use_toscawidgets:
+        app_config.use_toscawidgets = True
+
+    if getattr(app_config, 'prefer_toscawidgets2', False):
+        raise Exception("Smallpress can't work with prefer_toscawidgets2 option, please change it to use_toscatiwdgets2 = True")
+
     app_config.register_hook('before_config', init_whoosh)
     return dict(appid='smallpress', global_helpers=False)