print("Reading attributes for element " + str(as_element))
self.as_element = as_element
self.allowed_types = set()
self.attrs = None
self.associations_name = {}
self.associations_type = {}
self.associations_optional = {}
self.associations_delete = {}
self.dirty = None
self.destroy()
i = 0
while 1:
attr_name = "attr%i" % i
if attr_name not in self.associations_name:
return attr_name
else:
i += 1