Hi... please us repoze.bfg 1.0a2 (that's what the tutorial you're working from 
is based on).

- C

On 6/24/09 3:48 PM, George Wright wrote:
> Gidday
> Using repoze.bfg-1.0a1
>
> I am working through the tutorial bfgwiki2 - up to adding authorization
> http://docs.repoze.org/bfg/tutorials/bfgwiki2/authorization.html
>
> When I attempt to edit a page and login as 'editor', 'editor'
> I get the following error displayed
> URL: http://127.0.0.1:6543/1 File
> '/Users/georgewr/repozeenv/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/evalexception/middleware.py',
> line 306 in respond app_iter = self.application(environ,
> detect_start_response) File
> '/Users/georgewr/repozeenv/lib/python2.5/site-packages/repoze.tm-0.9-py2.5.egg/repoze/tm/__init__.py',
> 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/router.py',
> line 126 in __call__ name=view_name) File
> '/Users/georgewr/repozeenv/lib/python2.5/site-packages/zope.component-3.6.0-py2.5.egg/zope/component/registry.py',
> 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/adapter.py',
> 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/security.py',
> 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/security.py',
> 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/authentication.py',
> line 33 in effective_principals groups = self.callback(userid)
> TypeError: groupfinder() takes exactly 2 arguments (1 given)
>
> Any help appreciated
> Regards
> George
>
> On 24/06/2009, at 2:00 AM, repoze-dev-requ...@lists.repoze.org
> <mailto:repoze-dev-requ...@lists.repoze.org> wrote:
>
>> Eureka!
>> 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:
>> http://docs.repoze.org/bfg/tutorials/bfgwiki/definingviews.html
>>
>> Regards and thanks for your help
>> George
>
> George Wright
> georg...@bigpond.net.au <mailto:georg...@bigpond.net.au>
> http://mywebsite.bigpond.net.au/georgewr/
> http://www.labyrinth.net.au/~gwright
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev

_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to