Subject: [Zope-dev] Strange error message: "function attributes not accessible in restricted mode"
Joseph Schlesinger
jschlesinger@imeme.net
Sat, 22 Dec 2001 22:18:53 -0800
I get the same error message using the win32 binaries of Zope 2.4.3, and a
ZPysGreSQLDA to connect with a cygwin version of postgres.
> Message: 13
> From: "Joachim Werner" <joe@iuveno-net.de>
> To: <zope-dev@zope.org>
> Cc: "Stephan Richter" <srichter@iuveno-net.de>
> Date: Wed, 19 Dec 2001 23:57:50 +0100
> Organization: iuveno AG
> Subject: [Zope-dev] Strange error message: "function attributes not
accessible in restricted mode"
>
> Hi!
>
> I have two Zope 2.5 b2 installations on two seemingly identical machines,
> both with PostgreSQL, ZPsyCopDA, and DBObjects. In the DBObjects demo, I
am
> getting THIS (see below) on one of the machines (the one with the slightly
> older installation).
>
> Very strange for me. What the hell is "restricted mode"? Something new in
> the RestrictedPython environment? And what could explain the fact that it
> happens on one machine, but not on the other?
>
> Joachim
>
>
> Zope Error
> Zope has encountered an error while publishing this resource.
>
> Error Type: RuntimeError
> Error Value: function attributes not accessible in restricted mode
>
>
>
> --------------------------------------------------------------------------
--
> ----
>
> Troubleshooting Suggestions
>
> The URL may be incorrect.
> The parameters passed to this resource may be incorrect.
> A resource that this resource relies on may be encountering an error.
> For more detailed information about the error, please refer to the HTML
> source for this page.
>
> If the error persists please contact the site maintainer. Thank you for
your
> patience.
>
>
>
>
> Traceback (innermost last):
> File
/home/ftp/root/kue-projekt/dev_8280/lib/python/ZPublisher/Publish.py,
> line 158, in publish_module
> File
/home/ftp/root/kue-projekt/dev_8280/lib/python/ZPublisher/Publish.py,
> line 119, in publish
> File /home/ftp/root/kue-projekt/dev_8280/lib/python/Zope/__init__.py,
line
> 158, in zpublisher_exception_hook
> (Object: test)
> File
/home/ftp/root/kue-projekt/dev_8280/lib/python/ZPublisher/Publish.py,
> line 103, in publish
> File
/home/ftp/root/kue-projekt/dev_8280/lib/python/ZPublisher/mapply.py,
> line 88, in mapply
> (Object: manage_addForm)
> File
/home/ftp/root/kue-projekt/dev_8280/lib/python/ZPublisher/Publish.py,
> line 44, in call_object
> (Object: manage_addForm)
> File /home/ftp/root/kue-projekt/dev_8280/lib/python/App/special_dtml.py,
> line 61, in __call__
> (Object: manage_addForm)
> File
>
/home/ftp/root/kue-projekt/dev_8280/lib/python/DocumentTemplate/DT_String.py
> , line 473, in __call__
> (Object: manage_addForm)
> File
> /home/ftp/root/kue-projekt/dev_8280/lib/python/DocumentTemplate/DT_In.py,
> line 620, in renderwob
> (Object:
> getSubObjectClass(subObjectMetaType).dbTable.getAllAttributes())
> File
>
/home/ftp/root/kue-projekt/dev_8280/lib/python/DocumentTemplate/DT_Util.py,
> line 159, in eval
> (Object:
> getSubObjectClass(subObjectMetaType).dbTable.getAllAttributes())
> (Info: getSubObjectClass)
> File <string>, line 0, in ?
> RuntimeError: (see above)
>
>
>
>
>
>
> --__--__--
>
> Message: 14
> Date: Thu, 20 Dec 2001 12:39:26 +0900
> From: Joseph Wayne Norton <norton@alum.mit.edu>
> To: "Matthew T. Kromer" <matt@zope.com>
> Cc: <zope-dev@zope.org>
> Subject: Re: [Zope-dev] Re: Zope 2.4 crashes -- possible fix identified,
other solutions also suggested
> Reply-To: norton@alum.mit.edu
>
>
> Matt -
>
> If possible, I would prefer to use a source Python 2.1.2 release with
> a source zope 2.4.4 ? bugfix release (or create my own from the 2.4
> cvs branch) once the fixes are complete. We do not want to put a 2.5
> release in production at this time.
>
> Thanks for the update.
>
> regards,
>
> - j
>
> At Wed, 19 Dec 2001 09:25:08 -0500,
> Matthew T. Kromer wrote:
> >
> > The ExtensionClass.h patch has NOT been merged into the branches and
trunk
> > yet pending further review.
> >
>
> just my 2 cents, but we have been using this in production for about 1
> week or more without any troubles.
>
>
>
> --__--__--
>
> Message: 15
> Date: Thu, 20 Dec 2001 08:37:03 -0500
> Subject: Re: [Zope-dev] Re: Zope 2.4 crashes -- possible fix identified,
other solutions also suggested
> Cc: <zope-dev@zope.org>
> To: norton@alum.mit.edu
> From: "Matthew T. Kromer" <matt@zope.com>
>
> Well, if you want to grab what is probably going to turn in to Python
> 2.1.2 from CVS, you can get the release21-maint branch from
> :pserver:anonymous@cvs.python.sourceforge.net:/cvsroot/python package
> python.
>
> This already has the important change to ceval.c in it; but I'm not sure
> that the rest of the changes for the 2.1.2 release have been finalized.
>
> I think Anthony Baxter is going to try to put a beta / release candidate
> of 2.1.2 up real soon now, but I can't speak for him :)
>
>
> On Wednesday, December 19, 2001, at 10:39 PM, Joseph Wayne Norton wrote:
>
> >
> > Matt -
> >
> > If possible, I would prefer to use a source Python 2.1.2 release with
> > a source zope 2.4.4 ? bugfix release (or create my own from the 2.4
> > cvs branch) once the fixes are complete. We do not want to put a 2.5
> > release in production at this time.
> >
> > Thanks for the update.
> >
> > regards,
> >
> > - j
> >
> > At Wed, 19 Dec 2001 09:25:08 -0500,
> > Matthew T. Kromer wrote:
> >>
> >> The ExtensionClass.h patch has NOT been merged into the branches and
> >> trunk
> >> yet pending further review.
> >>
> >
> > just my 2 cents, but we have been using this in production for about 1
> > week or more without any troubles.
> >
>
>
>
>
> --__--__--
>
> _______________________________________________
> Zope-Dev maillist - Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
>
> (To receive general Zope announcements, see:
> http://lists.zope.org/mailman/listinfo/zope-announce
>
> For non-developer, user-level issues,
> zope@zope.org, http://lists.zope.org/mailman/listinfo/zope )
>
> End of Zope-Dev Digest
>