Re: [Zope] Python product - inherittance

2000-10-25 Thread Ender

Petr Knapek wrote:
> 
> Hi Zopists,
> I have a problem with inherittance of my publishable python classes.
> I created in python
> 
> classA and classB(classA)
> 
> classA has functionA and classB has functionB. In __init__.py of my
> product I register only classB.
> 
> My problem is that it is not possible to call functionA of an instance
> of classB. There is 'Error Type: AttributeError'. Does anybody know
> where the problem is? I use Zope 2.1.6


its probably a security error.

you need to either enable subobject access or explicitly register the
method as part of the products permissions.

something like this
allow_access_to_unprotected_subobjects=1

this is not the recommended way to it as you'll open up the entire
product to access.
buts it useful to identify if its a security issue.

kapil



> Thanks, Petr
> --
> Petr Knápek
> NEXTRA Czech Republic, s.r.o., Hlinky 114, 603 00 Brno, Czech Republic
> e-mail: [EMAIL PROTECTED]
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

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




Re: [Zope] Python product - inherittance

2000-10-25 Thread Andy McKay

Attribute error means it can find some value. Without some more information
it is impossible to say.

- Original Message -
From: "Petr Knapek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 1:02 PM
Subject: [Zope] Python product - inherittance


> Hi Zopists,
> I have a problem with inherittance of my publishable python classes.
> I created in python
>
> classA and classB(classA)
>
> classA has functionA and classB has functionB. In __init__.py of my
> product I register only classB.
>
> My problem is that it is not possible to call functionA of an instance
> of classB. There is 'Error Type: AttributeError'. Does anybody know
> where the problem is? I use Zope 2.1.6
>
> Thanks, Petr
> --
> Petr Knápek
> NEXTRA Czech Republic, s.r.o., Hlinky 114, 603 00 Brno, Czech Republic
> e-mail: [EMAIL PROTECTED]
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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