fix bugs
[plcapi.git] / PLC / Parameter.py
index 6268fce..14a8b18 100644 (file)
@@ -19,7 +19,10 @@ class Parameter:
                  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
@@ -43,6 +46,14 @@ class Parameter:
         # 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