Re: [Zope3-Users] Grant problem

2007-01-08 Thread Stephan Richter
On Tuesday 19 December 2006 17:15, Jonas Jarutis wrote:
 I get this error the i try to enter grant screen from ZMI:
 Does anyone know what is the problem?

No, I cannot reproduce this problem. You might have to tell us more about your 
authentication utility setup.

 Traceback (most recent call last):

   Module zope.app.form.browser.source, line 198, in __call__
      value = self._value()
   Module zope.app.form.browser.source, line 163, in _value
      if token is not None:UnboundLocalError: local variable 'token'
 referenced before assignment

I have checked the code, and yes it is possible that token could not be 
defined, so this is sort of a bug. However, I do not understand how this case 
could happen in this particular situation.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Grant problem

2006-12-19 Thread Jonas Jarutis

Hello,

I get this error the i try to enter grant screen from ZMI:
Does anyone know what is the problem?



Traceback (most recent call last):

 Module zope.publisher.publish, line 133, in publish
result = publication.callObject(request, obj)
 Module zope.app.publication.zopepublication, line 161, in callObject
return mapply(ob, request.getPositionalArguments(), request)
 Module zope.publisher.publish, line 108, in mapply
return debug_call(obj, args)
__traceback_info__: security proxied
zope.app.pagetemplate.simpleviewclass.SimpleViewClass from
/usr/local/src/Zope3/src/zope/app/securitypolicy/browser/granting.pt
instance at 0xb49d112c
 Module zope.publisher.publish, line 114, in debug_call
return obj(*args)
 Module zope.app.pagetemplate.simpleviewclass, line 44, in __call__
return self.index(*args, **kw)
 Module zope.app.pagetemplate.viewpagetemplatefile, line 83, in __call__
return self.im_func(im_self, *args, **kw)
 Module zope.app.pagetemplate.viewpagetemplatefile, line 51, in __call__
sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
 Module zope.pagetemplate.pagetemplate, line 115, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations)()
 Module zope.tal.talinterpreter, line 271, in __call__
self.interpret(self.program)
 Module zope.tal.talinterpreter, line 346, in interpret
handlers[opcode](self, args)
 Module zope.tal.talinterpreter, line 891, in do_useMacro
self.interpret(macro)
 Module zope.tal.talinterpreter, line 346, in interpret
handlers[opcode](self, args)
 Module zope.tal.talinterpreter, line 536, in do_optTag_tal
self.do_optTag(stuff)
 Module zope.tal.talinterpreter, line 521, in do_optTag
return self.no_tag(start, program)
 Module zope.tal.talinterpreter, line 516, in no_tag
self.interpret(program)
 Module zope.tal.talinterpreter, line 346, in interpret
handlers[opcode](self, args)
 Module zope.tal.talinterpreter, line 861, in do_defineMacro
self.interpret(macro)
 Module zope.tal.talinterpreter, line 346, in interpret
handlers[opcode](self, args)
 Module zope.tal.talinterpreter, line 957, in do_defineSlot
self.interpret(block)
 Module zope.tal.talinterpreter, line 346, in interpret
handlers[opcode](self, args)
 Module zope.tal.talinterpreter, line 949, in do_defineSlot
self.interpret(slot)
 Module zope.tal.talinterpreter, line 346, in interpret
handlers[opcode](self, args)
 Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
structure = self.engine.evaluateStructure(expr)
 Module zope.tales.tales, line 696, in evaluate
return expression(self)
/usr/local/src/Zope3/src/zope/app/securitypolicy/browser/granting.pt
Line 14, Column 4
Expression: PathExpr standard:u'view/principal_widget'
   - Names:
  {'args': (),
   'context': zope.app.folder.folder.Folder object at 0xb4ba8e6c,
   'default': object object at 0xb7da1560,
   'loop': {},
   'nothing': None,
   'options': {},
   'repeat': {},
   'request': zope.publisher.browser.BrowserRequest instance
URL=http://212.59.24.114:9673/@@grant.html,
   'template':
zope.app.pagetemplate.viewpagetemplatefile.ViewPageTemplateFile
object at 0xb61a968c,
   'view': zope.app.pagetemplate.simpleviewclass.SimpleViewClass
from /usr/local/src/Zope3/src/zope/app/securitypolicy/browser/granting.pt
object at 0xb49d112c,
   'views':
zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at
0xb49d1fcc}
 Module zope.tales.expressions, line 217, in __call__
return self._eval(econtext)
 Module zope.tales.expressions, line 211, in _eval
return ob()
 Module zope.app.form.browser.source, line 198, in __call__
value = self._value()
 Module zope.app.form.browser.source, line 163, in _value
if token is not None:UnboundLocalError: local variable 'token'
referenced before assignment
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Grant problem

2006-12-19 Thread Christian Theune
Hi,

Jonas Jarutis wrote:
 Hello,
 
 I get this error the i try to enter grant screen from ZMI:
 Does anyone know what is the problem?
 
 
 
 Traceback (most recent call last):
 [...] 
   Module zope.app.form.browser.source, line 163, in _value
  if token is not None:UnboundLocalError: local variable 'token'
 referenced before assignment

Is this a standard instance?

For one I consider it a bug in zope.app.form.browser.source in line 163,
but that only affects the reporting.

Your personal issue is something more complex. It looks a bit like some
registrations aren't set up in your server.

I'm guessing: either you're not loading some ZCML that is there by
default, or your PAU is somewhat confused.

Can you try with the same Zope software to create a new Zope instance
and check whether you can enter the grant screen there?

If you can, please try to find out the differences between this instance
and the one that fails.

Oh, and which Zope version is this?

Christian

-- 
gocept gmbh  co. kg - forsterstraße 29 - 06112 halle/saale - germany
www.gocept.com - [EMAIL PROTECTED] - phone +49 345 122 9889 7 -
fax +49 345 122 9889 1 - zope and plone consulting and development




signature.asc
Description: OpenPGP digital signature
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users