[Zope-Perl] constant item trapped by operation mask at ..., while editing perl-scripts
Andreas Mueller
anmu@mm-lab.uni-tuebingen.de
Mon, 27 May 2002 12:59:27 +0200
hello !
as mentioned from someone else on the list, I still have problems
editing perl-script withinin zope.
my system:
linux-2.2
zope-2.5.1 [source build]
perl-5.6.1
pyperl-1.0.1
Python-2.1.3
what I do:
- restart zope
- use the menue to add 'script (perl)':
id: perltest
title: perltest
arguments: self
code:
----------------------------------------------------
my $context = shift;
my @res;
for ($context->objectValues(['Folder'])){
push(@res, join(": ",$_->getId(), $_));
}
join("\n", @res, "done");
-----------------------------------------------------
- use the 'add'-button to add the script.
- test the script by calling
http://...../perltest
output: [<Folder instance at 89e1150>, <Folder instance at 89e1030>, <Folder instance at 89e10a8>]
[that seems to work]
- but then, when I try to edit the script, and I do not change anything at all, just push the
'edit'-button, I get the following error messages:
-----------------------------------------------------------------------------------------------------
Zope Error
Zope has encountered an error while publishing
this resource.
Error Type: PerlError
Error Value: constant item trapped by
operation mask at (eval 4) line 1.
.....
Traceback (innermost last):
File /opt/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 150, in publish_module
File /opt/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 114, in publish
File /opt/Zope-2.5.1/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
(Object: perltest)
File /opt/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 98, in publish
File /opt/Zope-2.5.1/lib/python/ZPublisher/mapply.py, line 88, in mapply
(Object: manage_edit)
File /opt/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 39, in call_object
(Object: manage_edit)
File /opt/Zope-2.5.1/lib/python/Products/PerlMethod/__init__.py, line 96, in manage_edit
(Object: perltest)
File /opt/Zope-2.5.1/lib/python/Products/PerlMethod/__init__.py, line 155, in recompile
(Object: perltest)
PerlError: (see above)
----------------------------------------------------------------------------------------------------
what's happening here, and how can I solve this problem ?
greetings and thanx for help,
Andreas
--
*********************************************************
* Andreas Mueller *
* *
* Multi-Media-Labor || Uni-Tuebingen *
* phone: +49 7071-2978567 or +49 7071-2977821 *
*********************************************************