On Mon, 2008-07-07 at 13:34 -0400, Benji York wrote:
> On Mon, Jul 7, 2008 at 1:28 PM, Tim Cook <[EMAIL PROTECTED]> wrote:
> >
> > Okay, the problem is defined but it really isn't a solution for me.
> > It seems that Zope has defined 'description' as a keyword not allowed in
> > schema definitions.
> 
> That's rather odd.  Can you construct a small example (say, a
> stand-alone .py file) that demonstrates the problem?

Okay.  But before I do that.  Is my approach to initializing an instance
correct or is the problem the way I handled the keywords?

class Activity(Locatable):
    """
    A single activity within an instruction.
    """
    
    implements(IActivity)
    
    def __init__(self,descr,tim,atid,nodeid,**kw):
        self.descript=descr
        self.timing=tim
        self.actionArchetypeId=atid
        self.__name__=nodeid
        for n,v in kw.items():
            setattr(self,n,v)
 

Thanks,
Tim


Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to