[Twisted-Python] NAPTR and some dns.py import issue
Andy Leszczynski
leszczynscy at yahoo.com
Fri Dec 8 21:05:53 EST 2006
Hi,
There was a recent discussion: FWIW - I have a patch to dns.py with NAPTR implemented but it is a very hackish solution: I mean it serves very specific application and works fine and basis are there.
I also faced the issue with the twisted/names/dns.py - specifically with "from twisted.python import components". Since I did not want to overwrite the twisted/names/dns.py, I just took it, renamed and applied NAPTR patch, saved in my app directory and import it now under new name. Surprisingly it did want to import so in order to fix the problem I had to replace "from twisted.python import components" with "from zope.interface import interface" and
change:
class IRecord(components.Interface):
class IEncodable(components.Interface):
to:
class IRecord(interface.Interface):
class IEncodable(interface.Interface):
respectively.
This is what I have - I would be interested in Twisted supporting NAPTR - let me know if I can participate.
--
Best regards,
alf
When all you have is XML, every problem looks like a markup :-).
More information about the Twisted-Python
mailing list