@param root: An XML root element. @type root: L{Element} @param definitions: A definitions object. @type definitions: L{Definitions}
(self, root, definitions)
| 291 | """ |
| 292 | |
| 293 | def __init__(self, root, definitions): |
| 294 | """ |
| 295 | @param root: An XML root element. |
| 296 | @type root: L{Element} |
| 297 | @param definitions: A definitions object. |
| 298 | @type definitions: L{Definitions} |
| 299 | """ |
| 300 | WObject.__init__(self, root, definitions) |
| 301 | self.location = root.get('location') |
| 302 | self.ns = root.get('namespace') |
| 303 | self.imported = None |
| 304 | pmd = self.__metadata__.__print__ |
| 305 | pmd.wrappers['imported'] = repr |
| 306 | |
| 307 | def load(self, definitions): |
| 308 | """ Load the object by opening the URL """ |