Get the set of I{all} domain names. @param history: A history of nodes checked to prevent circular hunting. @type history: [L{Properties},..] @return: A set of domain names. @rtype: list
(self, history=None)
| 384 | return keys |
| 385 | |
| 386 | def domains(self, history=None): |
| 387 | """ |
| 388 | Get the set of I{all} domain names. |
| 389 | @param history: A history of nodes checked to prevent |
| 390 | circular hunting. |
| 391 | @type history: [L{Properties},..] |
| 392 | @return: A set of domain names. |
| 393 | @rtype: list |
| 394 | """ |
| 395 | if history is None: |
| 396 | history = [] |
| 397 | history.append(self) |
| 398 | domains = set() |
| 399 | domains.add(self.domain) |
| 400 | for x in self.links: |
| 401 | if x in history: |
| 402 | continue |
| 403 | domains.update(x.domains(history)) |
| 404 | history.remove(self) |
| 405 | return domains |
| 406 | |
| 407 | def prime(self): |
| 408 | """ |