X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FNodeTypes.py;h=3ae75a649e4382e9eec106b879cf1ea9da98606c;hb=2d763c5797f31cc782ae63901b1dd3e48ba41173;hp=eb8eb99bafd0e4763a0c6c8559d7eeedf085a20c;hpb=a8f3f895eae7f5f9870380720d1cda979d553915;p=plcapi.git diff --git a/PLC/NodeTypes.py b/PLC/NodeTypes.py index eb8eb99..3ae75a6 100644 --- a/PLC/NodeTypes.py +++ b/PLC/NodeTypes.py @@ -1,8 +1,6 @@ # # Functions for interacting with the node_types table in the database # -# $Id$ -# $URL$ # from PLC.Faults import * @@ -25,12 +23,12 @@ class NodeType(Row): def validate_node_type(self, name): # Make sure name is not blank if not len(name): - raise PLCInvalidArgument, "Node type must be specified" + raise PLCInvalidArgument("Node type must be specified") # Make sure node type does not alredy exist conflicts = NodeTypes(self.api, [name]) if conflicts: - raise PLCInvalidArgument, "Node type name already in use" + raise PLCInvalidArgument("Node type name already in use") return name