#
# Functions for interacting with the node_types table in the database
#
-# $Id$
-# $URL$
#
from PLC.Faults import *
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