Revision 18d750b9

b/lib/objects.py
878 878
    ]
879 879

  
880 880

  
881
class ConfdRequest(ConfigObject):
882
  """Object holding a confd request.
883

  
884
  @ivar protocol: confd protocol version
885
  @ivar type: confd query type
886
  @ivar query: query request
887
  @ivar rsalt: requested reply salt
888

  
889
  """
890
  __slots__ = [
891
    "protocol",
892
    "type",
893
    "query",
894
    "rsalt",
895
    ]
896

  
897

  
898
class ConfdReply(ConfigObject):
899
  """Object holding a confd reply.
900

  
901
  @ivar protocol: confd protocol version
902
  @ivar status: reply status code (ok, error)
903
  @ivar answer: confd query reply
904
  @ivar serial: configuration serial number
905

  
906
  """
907
  __slots__ = [
908
    "protocol",
909
    "status",
910
    "answer",
911
    "serial",
912
    ]
913

  
914

  
881 915
class SerializableConfigParser(ConfigParser.SafeConfigParser):
882 916
  """Simple wrapper over ConfigParse that allows serialization.
883 917

  

Also available in: Unified diff