[Zope-PTK] Input/output error w/ Portal News Items
ralf.herold@charite.de
ralf.herold@charite.de
Wed, 9 Aug 2000 14:34:33 +0200
Hello,
to answer my own question: the problem was related to debugging messages
printed. This does not work when not logged in at a terminal to which the
messages can be written. Writing only occurs in case of anonymous usage, as
observed. For remedy, comment out as follows:
lib/python/Products/PTKBase/Toolbox.py (from PTK 0.71)
[...]
for action in actions:
if not action.has_key('permissions') or not
action['permissions']:
# This action requires no permissions
filtered_actions[action['category']].append(action)
continue
for permission in action['permissions']:
if user.has_permission(permission, obj):
filtered_actions[action['category']].append(action)
break
# else:
# print "Action discarded:", action
Greetings from Berlin,
-- Ralf Herold mailto:ralf.herold@charite.de
----
The error was:
Error Type: IOError
Error Value: [Errno 5] Input/output error
<!--
Traceback (innermost last):
[snip]
File /opt/zope22/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval
(Object: getPortal().getToolbox(REQUEST)(this(),REQUEST))
(Info: this)
File <string>, line 0, in ?
File /opt/zope/lib/python/Products/PTKBase/Toolbox.py, line 38, in
__call__
IOError: (see above)
-->