Hello, i get a repetitive exception error since today.
TITLE: WebApp Error: <type 'exceptions.ValueError'>: String is not true/false: u''
Module mediacore.lib.decorators:182 in choose
<< return xhr(*args, **kwargs)
else:
return norm(*args, **kwargs)
_copy_func_attrs(f, choose)
return choose
>> return norm(*args, **kwargs)
Module mediacore.lib.decorators:86 in wrapped_f
<< raise HTTPMethodNotAllowed().exception
result = f(*args, **kwargs)
tmpl = template
>> result = f(*args, **kwargs)
Module mediacore.lib.decorators:359 in validate_wrapper
<< self.validate_func = super(validate_xhr, self).__call__(func)
def validate_wrapper(*args, **kwargs):
result = self.validate_func(*args, **kwargs)
if request.is_xhr:
if not isinstance(result, dict):
>> result = self.validate_func(*args, **kwargs)
Module mediacore.lib.decorators:234 in validate
<< kwargs.update(values)
# Call the decorated function
return self.func(*args, **kwargs)
except formencode.api.Invalid, inv:
# Unless the input was in valid. In which case...
>> return self.func(*args, **kwargs)
Module mediacore.controllers.media:2 in comment
Module mediacore.lib.decorators:575 in autocommit
<< """Automatically handle database transactions for decorated controller actions"""
try:
result = func(*args, **kwargs)
except HTTPException, e:
if 200 <= e.code < 400:
>> result = func(*args, **kwargs)
Module mediacore.controllers.media:2 in comment
Module mediacore.lib.decorators:544 in wrapper
<< """
def wrapper(func, *args, **kwargs):
result = func(*args, **kwargs)
for observer in event.observers:
result = observer(**result)
>> result = func(*args, **kwargs)
Module mediacore.controllers.media:299 in comment
<< c.body = filter_vulgarity(body)
require_review = asbool(app_globals.settings['req_comment_approval'])
if not require_review:
c.reviewed = True
>> require_review = asbool(app_globals.settings['req_comment_approval'])
Module paste.deploy.converters:12 in asbool
<< else:
raise ValueError(
"String is not true/false: %r" % obj)
return bool(obj)
>> "String is not true/false: %r" % obj)
ValueError: String is not true/false: u''
CGI Variables
CONTENT_LENGTH '-1'
CONTENT_TYPE 'application/x-www-form-urlencoded; charset=utf-8'
DOCUMENT_ROOT '/opt/nginx/mediacore/mediacore/public'
HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
HTTP_CONNECTION 'Keep-Alive'
HTTP_CONTENT_LENGTH '75'
HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded'
HTTP_HOST 'spoti.de'
HTTP_MAX_FORWARDS '10'
HTTP_REFERER 'http://spoti.de/media/bnpp-starbank-serious-game'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows NT 5.1; U; en) Opera 8.01'
HTTP_VIA '1.1 82.233.60.101'
PATH_INFO '/media/bnpp-starbank-serious-game/comment'
REMOTE_ADDR '82.233.60.101'
REMOTE_PORT '51440'
REQUEST_METHOD 'POST'
REQUEST_URI '/media/bnpp-starbank-serious-game/comment'
SERVER_NAME 'www.spoti.com'
SERVER_PORT '80'
SERVER_PROTOCOL 'HTTP/1.1'
WSGI Variables
application <mediacore.config.middleware.FastCGIScriptStripperMiddleware object at 0x25de590>
beaker.get_session <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x25d5c50>>
beaker.session {'_accessed_time': 1308822479.095391, '_creation_time': 1308822479.095391}
paste.cookies (<SimpleCookie: >, '')
paste.registry <paste.registry.Registry object at 0x401d210>
paste.throw_errors True
pylons.action_method <bound method MediaController.comment of <mediacore.controllers.media.MediaController object at 0x383fe10>>
pylons.controller <mediacore.controllers.media.MediaController object at 0x383fe10>
pylons.environ_config {'session': 'beaker.session', 'cache': 'beaker.cache'}
pylons.pylons <pylons.util.PylonsContext object at 0x383f110>
pylons.routes_dict {'action': u'comment', 'controller': u'media', 'slug': u'bnpp-starbank-serious-game'}
repoze.who.logger None
repoze.who.plugins {'form': <FriendlyFormPlugin 39673232>, 'main_identifier': <FriendlyFormPlugin 39673232>, 'authorization_md': <repoze.what.middleware.AuthorizationMetadata object at 0x25d5e10>, 'cookie': <AuthTktCookiePlugin 39673168>, 'sqlauth': <repoze.who.plugins.sa.SQLAlchemyAuthenticatorPlugin object at 0x25d5d10>, 'sql_user_md': <repoze.who.plugins.sa.SQLAlchemyUserMDPlugin object at 0x25d5dd0>}
routes.route <routes.route.Route object at 0x2459c10>
routes.url <routes.util.URLGenerator object at 0x36f6850>
toscawidgets.framework <tw.mods.pylonshf.PylonsHostFramework object at 0x25de510>
toscawidgets.javascript.require_once False
toscawidgets.prefix '/toscawidgets'
uwsgi.version '0.9.6.5'
webob._parsed_post_vars (MultiDict([('name', 'Xannon'), ('email', 'kbanks@oicw.org'), ('body', "Yo, that's what's up turhtuflly.")]), <FakeCGIBody at 0x36f6690 viewing MultiDict([('na....")])>)
webob._parsed_query_vars (GET([]), '')
webob.adhoc_attrs {'errors': 'ignore', 'language': 'en-us'}
wsgi process 'Multiprocess'
wsgi.file_wrapper <built-in function uwsgi_sendfile>
wsgiorg.routing_args (<routes.util.URLGenerator object at 0x36f6850>, {'action': u'comment', 'controller': u'media', 'slug': u'bnpp-starbank-serious-game'})