[z3-five] objects, security,etc
kevin7kal
plone at kevinkal.com
Wed Jul 19 21:44:38 CEST 2006
Sorry, line two is what gives a security error.
kevin7kal wrote:
> Ok, I have written a sample product that illustrates what I am trying
> to accomplish and I have a sample python script for ttw testing that
> shows where my issues are.
> Attached is the product and here is some sample script
>
> in the zmi, create 'my Zclass object'
> then in a Script('Python') try this code
> MZ = context.Zclass2
> #print MZ.attribute1b.method1()
> print MZ.attribute1b
> print MZ.attribute1a
> return printed
>
> this is what is returned
>
> <class 'Products.sampleProduct.myClass.class1'>
> attribute 1a
>
> but if line 4 in uncommented, the security error is returned and I
> don't understand how to get around that.
>
> All help is appreciated and if the answer was simple, please excuse my
> ignorance :-)
>
>
>
>
>
More information about the z3-five
mailing list