Hi there,

Im having problems using Python script to create a ZClass instance from
a ZClass that's inside of another ZClass.  I have this addMyObject
Python script as constructor script for "Scriptable Type Information"
type object (CMF):

        ## Script (Python) "addMyObject"
        ##bind container=container
        ##bind context=context
        ##bind namespace=
        ##bind script=script
        ##bind subpath=traverse_subpath
        ##parameters=folder, id
        ##title=
        ##
        
folder.Control_Panel.Products.MyProducts.MyObjects.MyObject_add(id)

        # folder.manage_addProduct('MyProduct')... doesn't work either

        item = getattr(folder, id)

        return item

MyObjects is a ZClass that contains MyObject.  The error I get is:

        Zope error
        Error type AttributeError 
        Error value MyObjects

There should be some explanation somewhere how to access resources
inside of Control_Panel, but I fail to find it.  Creating objects is
very confusing and difficult at times...

Bye,
-- 
Bjorn Stabell <[EMAIL PROTECTED]>

_______________________________________________
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 )

Reply via email to