X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfa%2Futil%2Frow.py;h=7334fccdb2bf307525370eb558abecf8d5ff3a89;hp=f4db14147d880402b7f8556d4717aa70cc2eea04;hb=3d7237fa0b5f2b4a60cb97c7fb3b6aecfd94558a;hpb=7c1cf48e3a60344e3c381d1edac89d81659655f3 diff --git a/sfa/util/row.py b/sfa/util/row.py index f4db1414..7334fccd 100644 --- a/sfa/util/row.py +++ b/sfa/util/row.py @@ -25,7 +25,7 @@ class Row(dict): #mandatory_fields = self.db.fields(self.table_name, notnull = True, hasdef = False) #for field in mandatory_fields: # if not self.has_key(field) or self[field] is None: - # raise GeniInvalidArgument, field + " must be specified and cannot be unset in class %s"%self.__class__.__name__ + # raise SfaInvalidArgument, field + " must be specified and cannot be unset in class %s"%self.__class__.__name__ # Validate values before committing for key, value in self.iteritems(): @@ -52,6 +52,6 @@ class Row(dict): human = time.strftime(time_format, time.gmtime(timestamp)) if check_future and timestamp < time.time(): - raise GeniInvalidArgument, "'%s' not in the future" % human + raise SfaInvalidArgument, "'%s' not in the future" % human return human