Get the default (unqualified namespace). This is the expns of the first node (looking up the tree) that has it set. @return: The namespace of a node when not qualified. @rtype: (I{prefix}, I{name})
(self)
| 293 | return self.resolvePrefix(self.prefix) |
| 294 | |
| 295 | def defaultNamespace(self): |
| 296 | """ |
| 297 | Get the default (unqualified namespace). |
| 298 | This is the expns of the first node (looking up the tree) |
| 299 | that has it set. |
| 300 | @return: The namespace of a node when not qualified. |
| 301 | @rtype: (I{prefix}, I{name}) |
| 302 | """ |
| 303 | p = self |
| 304 | while p is not None: |
| 305 | if p.expns is not None: |
| 306 | return (None, p.expns) |
| 307 | else: |
| 308 | p = p.parent |
| 309 | return Namespace.default |
| 310 | |
| 311 | def append(self, objects): |
| 312 | """ |
no outgoing calls
no test coverage detected