@@ -403,18 +403,18 @@ def getValidQgisUniqueFields(self, onlyOne=False):
403
403
for idx in indexes :
404
404
if idx .isUnique and len (idx .columns ) == 1 :
405
405
fld = idx .fields ()[idx .columns [0 ]]
406
- if (fld .dataType == u"NUMBER" and
407
- not fld .modifier and
408
- fld .notNull and
409
- fld not in ret ):
406
+ if (fld .dataType == u"NUMBER"
407
+ and not fld .modifier
408
+ and fld .notNull
409
+ and fld not in ret ):
410
410
ret .append (fld )
411
411
412
412
# and finally append the other suitable fields
413
413
for fld in self .fields ():
414
- if (fld .dataType == u"NUMBER" and
415
- not fld .modifier and
416
- fld .notNull and
417
- fld not in ret ):
414
+ if (fld .dataType == u"NUMBER"
415
+ and not fld .modifier
416
+ and fld .notNull
417
+ and fld not in ret ):
418
418
ret .append (fld )
419
419
420
420
if onlyOne :
@@ -514,15 +514,15 @@ def __init__(self, row, table):
514
514
515
515
# find out whether fields are part of primary key
516
516
for con in self .table ().constraints ():
517
- if (con .type == ORTableConstraint .TypePrimaryKey and
518
- self .name == con .column ):
517
+ if (con .type == ORTableConstraint .TypePrimaryKey
518
+ and self .name == con .column ):
519
519
self .primaryKey = True
520
520
break
521
521
522
522
def type2String (self ):
523
- if (u"TIMESTAMP" in self .dataType or
524
- self .dataType in [u"DATE" , u"SDO_GEOMETRY" ,
525
- u"BINARY_FLOAT" , u"BINARY_DOUBLE" ]):
523
+ if (u"TIMESTAMP" in self .dataType
524
+ or self .dataType in [u"DATE" , u"SDO_GEOMETRY" ,
525
+ u"BINARY_FLOAT" , u"BINARY_DOUBLE" ]):
526
526
return u"{}" .format (self .dataType )
527
527
if self .charMaxLen in [None , - 1 ]:
528
528
return u"{}" .format (self .dataType )
0 commit comments