[Zope] Python product - inherittance

Ender kthangavelu@earthlink.net
Wed, 25 Oct 2000 10:23:40 -0700


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: knapek@nextra.cz
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )