# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id$
-# $URL$
-#
from types import *
from PLC.Faults import *
min = None, max = None,
optional = None,
ro = False,
- nullok = False):
+ nullok = False,
+ primary_key = False,
+ indexed = False,
+ joined=False):
# Basic type of the parameter. Must be a builtin type
# that can be marshalled by XML-RPC.
self.type = typeval
# Whether the DB field can be NULL.
self.nullok = nullok
+ self.primary_key = primary_key
+
+ # Whether the DB field is indexed
+ self.indexed = indexed
+
+ # Whether the DB field lives in another table
+ self.joined = joined
+
def type(self):
return self.type