userIsStaff ZPT error on login
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KARL3 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Upon attempting to log in (both as admin and affiliate), I get the following error message:
URL: http://
Module paste.evalexcep
<< try:
Module repoze.
<<
def __call__(self, environ, start_response):
result = self.applicatio
if self.key in environ:
del environ[self.key]>> result = self.applicatio
Module karl.timeit:40 in __call__
<<
# Generate the response. If text/html, print elapsed
resp = req.get_
if resp.content_type == "text/html":
Module webob:1325 in get_response
<< else:
return self.ResponseClass(
Module webob:1293 in call_application
<< captured[:] = [status, headers, exc_info]
if (not captured
or output):>> app_iter = application(
Module repoze.errorlog:85 in __call__
<< environ[
>> return self.applicatio
Module repoze.tm:19 in __call__
<< return start_response(
try:
except:
Module paste.registry:350 in __call__
<<
try:
except Exception, e:
# Regardless of if the content is an iterable, generator, list
>> app_iter = self.applicatio
Module repoze.
<<
wrapper = StartResponseWr
if self.challenge_
Module tw.core.
<<
def __call__(self, environ, start_response):
return self.wsgi_
def wsgi_app(self, environ, start_response):>> return self.wsgi_
Module tw.core.
<< else:
Module webob:1325 in get_response
<< else:
return self.ResponseClass(
Module webob:1293 in call_application
<< captured[:] = [status, headers, exc_info]
if (not captured
or output):>> app_iter = application(
Module tw.core.
<< def _injector(environ, start_response):
req = Request(environ)
resp = req.get_
if 'html' in content_type:>> resp = req.get_
Module webob:1325 in get_response
<< else:
return self.ResponseClass(
Module webob:1293 in call_application
<< captured[:] = [status, headers, exc_info]
if (not captured
or output):>> app_iter = application(
Module repoze.
<< # cookie hasn't been tampered with
# no browser id cookie or cookie value was tampered with
>> return self.app(environ, start_response)
Module repoze.
<<
if response is None:>> (context, request), IView, name=view_name)
Module zope.component.
<< def queryMultiAdapt
return self.adapters.
def getMultiAdapter
Module zope.interface.
<< return default
result = factory(*objects)
if result is None:
Module karl.views.
<< )
def get_my_
# sorted by title
principals = effective_
Module repoze.
<< renderer = renderer_
result = renderer(**kw)
return response_
Module repoze.
<<
def __call__(self, **kw):
return self.template(**kw)
ZPTTemplate
Module chameleon.
<<
def __call__(self, **kwargs):
return self.render(
def write(self, body):>> return self.render(
Module chameleon.
<< def render(self, **kwargs):
return super(TemplateFile, self).render(
def mtime(self):>> return super(TemplateFile, self).render(
Module chameleon.
<< def render(self, **kwargs):
return self.render_
def render_macro(self, macro, global_scope=False, parameters={}):>> return self.render_
(<PageTemplateFile /home/will/
Module chameleon.
<< __traceback_info__ = (self,)
if config.DEBUG_MODE is False:
try:>> return __template_
Module chameleon.
Module chameleon.
<< def render(**kwargs):
return Macro(render)>> return self.render(name, parameters=kwargs)
Module chameleon.
<< template = self.cook_check(
return self.render_
def render_
(<PageTemplateFile /home/will/
Module chameleon.
<< __traceback_info__ = (self,)
if config.DEBUG_MODE is False:
try:>> return __template_
Module ?:369 in render
Module chameleon.
<< except AttributeError, e:
try:
except (KeyError, TypeError, AttributeError):
Module karl.views.api:77 in __getitem__
<<
def has_staff_acl(self, context):
return getattr(context, 'security_state', 'inherits') == 'public'
@property>> return getattr(context, 'security_state', 'inherits') == 'public'
ValueError: ZPT attempted to fetch userIsStaff
Make sure you svn up everything. I believe I have everything checked in already. In particular, make sure src/karl/ karl/views/ api.py has a subversion revision number (svn info api.py) of 1519.
If so and you still have problems, remove the pyc file (rm api.pyc) and restart.
Assigned back to you, re-assign to me if you are still having trouble.