Matt writes:
 > I have an external method like the following
 > 
 > def make_an_element(self,REQUEST):
 >     new_elem = self.createElement(REQUEST.new_elem_name)
Use:
       new_elem = self.createElement(REQUEST.new_elem_name).__of__(self)
 >     new_elem.setAttribute('hello','there')
 >     self.appendChild(new_elem)
 > 
 > I call this on an XMLdocument root node and get the following error at
 > the setAttribute stage :
 > 
 >                    Error Type: AttributeError
 >                    Error Value: aq_base



Dieter

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

Reply via email to