Ejemplo n.º 1
0
 def __str__(self):
     s = ""
     for (key, value) in self._config.items():
         if s:
             s += '\n'
         s += '%s=%s' % (key, value)
     return u2b(s) if PY2 else s
Ejemplo n.º 2
0
 def __str__(self):
     s = ""
     for (key, value) in self._config.items():
         if s:
             s += '\n'
         s += '%s=%s' % (key, value)
     return u2b(s) if PY2 else s
Ejemplo n.º 3
0
 def __str__(self):
     s = ""
     for (key, value) in self._config.items():
         if s:
             s += "\n"
         s += "%s=%s" % (key, value)
     return u2b(s) if PY2 else s
Ejemplo n.º 4
0
    def __str__(self):
        ret = 'rule'
        if self.family:
            ret += ' family="%s"' % self.family
        if self.source:
            ret += " %s" % self.source
        if self.destination:
            ret += " %s" % self.destination
        if self.element:
            ret += " %s" % self.element
        if self.log:
            ret += " %s" % self.log
        if self.audit:
            ret += " %s" % self.audit
        if self.action:
            ret += " %s" % self.action

        return (functions.u2b(ret)) if functions.PY2 else ret
Ejemplo n.º 5
0
    def __str__(self):
        ret = 'rule'
        if self.family:
            ret += ' family="%s"' % self.family
        if self.source:
            ret += " %s" % self.source
        if self.destination:
            ret += " %s" % self.destination
        if self.element:
            ret += " %s" % self.element
        if self.log:
            ret += " %s" % self.log
        if self.audit:
            ret += " %s" % self.audit
        if self.action:
            ret += " %s" % self.action

        return (functions.u2b(ret)) if functions.PY2 else ret