[Zope] Caveat emptor: Re: [Zope] problem installing login manager

MANUEL JOSE AMADOR BRIZ amadorm@usm.edu.ec
Fri, 03 Nov 2000 14:35:27 -0500 (ECT)


Once you get DynPersist, if you\'re using the latest version of LoginManager you 
will still get an error about the plugins. (something about registerhelp 
contexthelp don\'t remember)

Quick fix:
cd into lib/python/Products/PlugIns
edit the file __init__.py
at line 7 there is a function called initialize(context):
before context.registerHelp(), insert a line with the same indentation
that says return

so it will be like this
.
.
.
def initialize(context):
    return                                            <- this is your craft
    context.registerHelp()

.
.
.
.


because it seems that registerHelp cannot find some required files.  Well, this 
is a hack, not even a solution, but what do you prefer, no plugins or no help 
in your working plugins?

I seize the oppportunity to ask someone knowledgeable with this ZPatterns and 
Plugins and LoginManager stuff.  I can\'t understand it.  I\'ve perused all 
the \"documentation\" in its wiki, to no avail.  Thanks in advance.


Quoting Henny van der Linde <info@inline-info.nl>:

> Hi,
> 
> I just installed Zope 2.2.2 and tried to install the latest version of
> Login
> Manager.
> 
> It failed:
> 
> LoginManager Import Traceback
> Traceback (innermost last):
>   File \"C:\\Program Files\\WebSite22\\lib\\python\\OFS\\Application.py\", line
> 397,
> in import_products
>     product=__import__(pname, global_dict, global_dict, silly)
>   File \"C:\\Program
> Files\\WebSite22\\lib\\python\\Products\\LoginManager\\__init__.py\", line 1,
> in ?
>     import LoginManager, LoginMethods, UserSources
>   File \"C:\\Program
> Files\\WebSite22\\lib\\python\\Products\\LoginManager\\LoginManager.py\", line
> 8,
> in ?
>     from Products.ZPatterns.Specialists import Specialist
>   File \"C:\\Program
> Files\\WebSite22\\lib\\python\\Products\\ZPatterns\\__init__.py\", line 1, in
> ?
>     import Rack, Specialists, Customizers, AttributeProviders,
> SheetProviders
>   File \"C:\\Program
> Files\\WebSite22\\lib\\python\\Products\\ZPatterns\\Rack.py\",
> line 9, in ?
>     from DataSkins import DataSkin
>   File \"C:\\Program
> Files\\WebSite22\\lib\\python\\Products\\ZPatterns\\DataSkins.py\", line 1, in
> ?
>     from DynPersist import DynPersist
> ImportError: No module named DynPersist
> 
> What \'s happening?
> 
> Thanks
> 
> 
> Henny van der Linde
> 

----------------------------------------------------------
   Universidad Federico Santa Maria - Campus Guayaquil
	      Enviado por:  www.usm.edu.ec