plugins = PluginManager

should be

plugins = PluginManager()

On Nov 5, 12:02 pm, Johann Spies <[email protected]> wrote:
> from gluon.tools import PluginManager
> plugins = PluginManager
> plugins.wiki.theme = 'cupertino'
>
> results in
>
> Traceback (most recent call last):
>   File "/Users/js/Programmeer/zenex/web2py/gluon/restricted.py", line
> 188, in restricted
>     exec ccode in environment
>   File "/Users/js/Programmeer/zenex/web2py/applications/zenex2/models/db.py",
> line 106, in <module>
>     plugins.wiki.theme = 'cupertino'
> AttributeError: type object 'PluginManager' has no attribute 'wiki'
>
> According to the book one should  be able to do that.  A mistake in the book?
>
> Regards
> Johann
>
> --
>  May grace and peace be yours in abundance through the full knowledge
> of God and of Jesus our Lord!  His divine power has given us
> everything we need for life and godliness through the full knowledge
> of the one who called us by his own glory and excellence.
>                                                     2 Pet. 1:2b,3a

Reply via email to