RE: Subject: [Zope-dev] Strange error message: "function attributes not accessible in restricted mode"

2001-12-23 Thread Joseph Schlesinger

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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "Stephan Richter" <[EMAIL PROTECTED]>
> 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 , line 0, in ?
> RuntimeError: (see above)
>
>
>
>
>
>
> --__--__--
>
> Message: 14
> Date: Thu, 20 Dec 2001 12:39:26 +0900
> From: Joseph Wayne Norton <[EMAIL PROTECTED]>
> To: "Matthew T. Kromer" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Subject: Re: [Zope-dev] Re: Zope 2.4 crashes -- possible fix identified,
other solutions also suggested
> Reply-To: [EMAIL PROTECTED]
>
>
> 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: <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> From: "Matthew T. Kromer" <[EMAIL PROTECTED]>
>
> 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:[EMAIL PROTECTED]:/cvsroo

[Zope-dev] Strange error message: "function attributes not accessible in restricted mode"

2001-12-19 Thread Joachim Werner

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 , line 0, in ?
RuntimeError: (see above)





___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )