def publish(self, value):
        """
        Accepts: list of tuples in the format (ip, port)
        Returns: unicode
        """
        if not isinstance(value, list):
            raise ValueError(value)
        slaves = ['%s:%d' % x for x in value]
        return unicode(", ".join(slaves))
def publish ( self , value ) : if not isinstance ( value , list ) : raise ValueError ( value ) slaves = [ '%s:%d' % x for x in value ] return unicode ( ", " . join ( slaves ) )
Accepts: list of tuples in the format (ip, port)
        Returns: unicode