[Zope] XMLDcoument setAttribute error

Dieter Maurer dieter@handshake.de
Sun, 12 Nov 2000 23:47:16 +0100 (CET)


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