Example #1
0
 def __repr__(self):
     attr_list = ["%s=%s" % (attr, getattr(self, attr))
                  for attr in ('eventqid', 'source', 'target', 'deviceid',
                               'netboxid', 'subid', 'time', 'eventtypeid',
                               'state', 'value', 'severity')
                  if getattr(self, attr)]
     attr_list = ", ".join(attr_list)
     return "<Event %s / %s>" % (attr_list, UserDict.__repr__(self))
Example #2
0
 def __repr__(self):
     attr_list = [
         "%s=%s" % (attr, getattr(self, attr))
         for attr in ('eventqid', 'source', 'target', 'deviceid',
                      'netboxid', 'subid', 'time', 'eventtypeid', 'state',
                      'value', 'severity') if getattr(self, attr)
     ]
     attr_list = ", ".join(attr_list)
     return "<Event %s / %s>" % (attr_list, UserDict.__repr__(self))
Example #3
0
 def __repr__(self):
     '''
     if the card is hidden, return "A card"
     otherwise return the true representation of the card
     '''
     if self.hidden:
         return "A Card"
     else:
         return UserDict.__repr__(self)
Example #4
0
 def __repr__(self):
     self.__populate()
     return UserDict.__repr__( self )
Example #5
0
 def __str__(self):
     return UserDict.__repr__(self)
Example #6
0
 def __repr__(self):
     self.__populate()
     return UserDict.__repr__( self )
Example #7
0
 def DisplayAll(self):
     return "%s[%s]" % (self.sName, UserDict.__repr__(self))
Example #8
0
 def get(self):
     '''
     Show the card even if the visibility is set to hidden
     '''
     return UserDict.__repr__(self)
Example #9
0
 def full_repr(self):
     return UserDict.__repr__(self)
Example #10
0
 def full_repr(self):
     return UserDict.__repr__(self)
Example #11
0
	def __repr__(self):
		if self:
			return UserDict.__repr__(self)
		else:
			return repr(self.getValue())