Hi,

Installing Zine trunk on a fresh system you inevitably run into something
not installed in the system. Having the basic building blocks absent
(Werkzeug, Jinja2, SQLAlchemy) prevents you from running Zine and even from
starting it, these you notice right away. Then, however, you start enabling
plug-ins and the running Zine just blows up in your face. If you, for
example, enable the Pygments plug-in and and the pygments library is not
installed, you get the SetupError exception (with a traceback):

SetupError: The pygments plugin requires the pygments library to be
installed.

If you enable the RST Parser plugin, it doen't even do the "try: import ...
except ImportError: ..." magic and if the docutils package is not present on
your system, you get an ImportError traceback.

Needless to say, both tracebacks show up regardless of which url is
requested, effectively blocking the administrator from disabling the
offending plugins (considering that he may not have the opportunity to
install the required modules/libraries and would wish to disable the plugin
instead).

I propose to add better SetupError exception handling so that it would show
some sort of an error message on the admin site, but would allow the
administrator and other users to view the site as if the plugin, whose
dependencies are not satisfied, was not enabled in the first place. Once
upon a time there was a sandboxing option in the plugin control tab of the
admin interface which did approximately the same thing. I cannot seem to
find it nowadays.

Regards,
  Artem

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to