[Zope3-Users] ComponentLookupError

2009-05-17 Thread Tim Cook
I'm getting this traceback:
==
serving on http://127.0.0.1:8080
2009-05-17 11:56:42,332 ERROR [SiteError] http://localhost:8080
Traceback (most recent call last):
  File
"/home/tim/.buildout/eggs/zope.publisher-3.7.0-py2.5.egg/zope/publisher/publish.py",
 line 127, in publish
publication.beforeTraversal(request)
  File
"/home/tim/.buildout/eggs/zope.app.publication-3.5.3-py2.5.egg/zope/app/publication/zopepublication.py",
 line 85, in beforeTraversal
principal = auth.authenticate(request)
  File
"/home/tim/.buildout/eggs/zope.principalregistry-3.7.0-py2.5.egg/zope/principalregistry/principalregistry.py",
 line 58, in authenticate
if p.validate(password):
  File
"/home/tim/.buildout/eggs/zope.principalregistry-3.7.0-py2.5.egg/zope/principalregistry/principalregistry.py",
 line 190, in validate
pwManager = self.__getPasswordManager()
  File
"/home/tim/.buildout/eggs/zope.principalregistry-3.7.0-py2.5.egg/zope/principalregistry/principalregistry.py",
 line 184, in __getPasswordManager
return getUtility(IPasswordManager, self.__pwManagerName)
  File
"/home/tim/.buildout/eggs/zope.component-3.6.0-py2.5.egg/zope/component/_api.py",
 line 171, in getUtility
raise ComponentLookupError(interface, name)
ComponentLookupError: (, u'SHA1')


Though everything seems "to me" to be okay.  This was originally a
grokproject based application and uses grok 1.0a3 but I have been
incrementally/painfully changing the versions of components to get it to
run with ZODB3.9.0b1  

The server starts but when I try to access http://localhost:8080 I get
the above error.

The principal in site.zcml looks like this:

  


Any ideas where to start on this?

Thanks,
Tim








-- 
Timothy Cook, MSc
Health Informatics Research & Development Services
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook 
Skype ID == timothy.cook 
**
*You may get my Public GPG key from  popular keyservers or   *
*from this link http://timothywayne.cook.googlepages.com/home*
**


signature.asc
Description: This is a digitally signed message part
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Executing code a server startup

2009-05-17 Thread Simon Elbaz
Hi,
I am trying to execute some code at zope3 server startup. Zope3 posts hint
using a  IProcessStartingEvent subscriber in configure.zcml.

Here is an extract of configure.zcml:



and the handler definition:

def onStartup(event):
   print 'hello'

The problem is that the function is not called at server startup. But when a
call to notify(zope.app.appsetup.interfaces.ProcessStarting()) is made
later  in the code (after the server starts), it prints 'hello'.

It looks like that the subscriber is registered after the server notifies
the event.

Thanks for your help
Simon
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Executing code a server startup

2009-05-17 Thread Andreas Jung
On 18.05.09 00:42, Simon Elbaz wrote:
> Hi,
> I am trying to execute some code at zope3 server startup. Zope3 posts
> hint using a  IProcessStartingEvent subscriber in configure.zcml.
>
> Here is an extract of configure.zcml:
>
>handler="cdcadama.authentication.onStartup"
>   for="zope.app.appsetup.interfaces.IProcessStartingEvent"
> />
>
> and the handler definition:
>
> def onStartup(event):
>print 'hello'
>
> The problem is that the function is not called at server startup. But
> when a call to notify(zope.app.appsetup.interfaces.ProcessStarting())
> is made later  in the code (after the server starts), it prints 'hello'.
>
Isn't there a DatabaseOpened event?

-aj

begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:i...@zopyx.com
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users