Using repoze.bfg-1.0a1

I am working through the tutorial bfgwiki2 - up to adding authorization

When I attempt to edit a page and login as 'editor', 'editor'
I get the following error displayed
File '/Users/georgewr/repozeenv/lib/python2.5/site-packages/ Paste-1.7.2-py2.5.egg/paste/evalexception/', line 306 in respond
  app_iter = self.application(environ, detect_start_response)
File '/Users/georgewr/repozeenv/lib/python2.5/site-packages/', line 19 in __call__
  result = self.application(environ, save_status_and_headers)
File '/Users/georgewr/repozeenv/lib/python2.5/site-packages/ repoze.bfg-1.0a1-py2.5.egg/repoze/bfg/', line 126 in __call__
File '/Users/georgewr/repozeenv/lib/python2.5/site-packages/ zope.component-3.6.0-py2.5.egg/zope/component/', line 232 in queryMultiAdapter
  objects, interface, name, default)
File '/Users/georgewr/repozeenv/lib/python2.5/site-packages/ zope.interface-3.5.1-py2.5-macosx-10.3-i386.egg/zope/interface/', line 482 in queryMultiAdapter
  result = factory(*objects)
File '/Users/georgewr/repozeenv/lib/python2.5/site-packages/ repoze.bfg-1.0a1-py2.5.egg/repoze/bfg/', line 241 in __call__
  return has_permission(self.permission_name, context, request)
File '/Users/georgewr/repozeenv/lib/python2.5/site-packages/ repoze.bfg-1.0a1-py2.5.egg/repoze/bfg/', line 46 in has_permission
  principals = authn_policy.effective_principals(request)
File '/Users/georgewr/repozeenv/lib/python2.5/site-packages/ repoze.bfg-1.0a1-py2.5.egg/repoze/bfg/', line 33 in effective_principals
  groups = self.callback(userid)
TypeError: groupfinder() takes exactly 2 arguments (1 given)

Any help appreciated

On 24/06/2009, at 2:00 AM, wrote:

I remembered that the Data.fs file had been set up on an earlier
startup of the server. Since then there have been extensive changes.
So I deleted the Data.fs and started again.
This time the various views came up without problems.
Maybe a note to this effect should be included in the tutorial docs.
Somewhere near the end of this page:

Regards and thanks for your help

George Wright

Repoze-dev mailing list

Reply via email to