def asString(cls, ipaddress):
        """For ipaddress=[10, 123, 45, 67] return "10.123.45.67"."""
        if isinstance(ipaddress, basestring):
            return ipaddress
        if isinstance(ipaddress, (int, long)):
            ipaddress = cls.asList(ipaddress)
        return ".".join(map(str, ipaddress))