Skip to content
Permalink
Browse files

de-plenk question and exclamation marks

  • Loading branch information
jef-n committed Mar 7, 2016
1 parent c51025a commit c2c326c42e55154564621a2a28eac69ebc46f707
@@ -190,7 +190,7 @@ def hasSpatialSupport(self):
return self.has_spatial

def hasRasterSupport(self):
"""No raster support for the moment !"""
"""No raster support for the moment!"""
# return self.has_raster
return False

@@ -650,7 +650,7 @@ def spatialInfo(self):
"DBManagerPlugin",
(u'<warning> Metadata extent is different from'
u'real extent. You should <a href="action:extent'
u'/update">update it</a> !'))))
u'/update">update it</a>!'))))

# is there an entry in geometry_columns?
if self.table.geomType.lower() == 'geometry':
@@ -336,7 +336,7 @@ def runAction(self, action):

msg = QApplication.translate(
"DBManagerPlugin",
"Do you want to {} index {} ?".format(
"Do you want to {} index {}?".format(
index_action, index_name))
QApplication.restoreOverrideCursor()
try:
@@ -33,7 +33,7 @@ def checkParameterValuesBeforeExecuting(alg):
if alg.getParameterValue(u'setnull') or alg.getParameterValue(u'null'):
return None

return alg.tr("You need to set at least 'setnull' or 'null' parameters for this algorithm !")
return alg.tr("You need to set at least 'setnull' or 'null' parameters for this algorithm!")


def processInputs(alg):
@@ -29,7 +29,7 @@
def checkParameterValuesBeforeExecuting(alg):
""" Verify if we have the right parameters """
if alg.getParameterValue(u'rules') and alg.getParameterValue(u'txtrules'):
return alg.tr("You need to set either a rules file or write directly the rules !")
return alg.tr("You need to set either a rules file or write directly the rules!")

return None

@@ -39,7 +39,7 @@ def checkParameterValuesBeforeExecuting(alg):
# Verifiy that we have the good number of columns
column = alg.getParameterValue(u'column')
if ((column is None or len(column) == 0) and upload) or (len(column.split(",")) != len(upload.split(","))):
return alg.tr(u"The number of columns and the number of upload parameters should be equal !")
return alg.tr(u"The number of columns and the number of upload parameters should be equal!")

# Verify from_type and to_type values
for geom in [u'from', u'to']:
@@ -228,7 +228,7 @@ def get_xml_description_from_application_name(our_app, criteria=None):
real_criteria = criteria

if len(our_app) == 0:
raise Exception("App name is empty !")
raise Exception("App name is empty!")

# get parameters
param_keys = [param_key for param_key in app_instance.GetParametersKeys()]
@@ -236,7 +236,7 @@ def get_command_line(self, the_list, the_dict):
result.extend(["otbcli_%s" % each for each in itemz[1]])

if len(result[0]) == 7:
raise Exception("App name is empty !")
raise Exception("App name is empty!")

result.extend(itemz[2])
result.append("-testenv")
@@ -94,7 +94,7 @@ def test(self):
self.assertTrue(ut_command_validation != "")

if ut_command.split(" ")[0] in black_list:
raise Exception("Blacklisted test !")
raise Exception("Blacklisted test!")

args = shlex.split(ut_command)
failed = False
@@ -615,7 +615,7 @@ const QImage& QgsWMSLegendNode::getLegendGraphic() const
connect( mFetcher.data(), SIGNAL( error( const QString& ) ), this, SLOT( getLegendGraphicErrored( const QString& ) ) );
connect( mFetcher.data(), SIGNAL( progress( qint64, qint64 ) ), this, SLOT( getLegendGraphicProgress( qint64, qint64 ) ) );
mFetcher->start();
} // else QgsDebugMsg("XXX No legend supported ?");
} // else QgsDebugMsg("XXX No legend supported?");

}

@@ -4041,7 +4041,7 @@ bool QgsSpatiaLiteProvider::changeGeometryValues( const QgsGeometryMap &geometry
toCommit = true;

sql =
QString( "UPDATE %1 SET %2=GeomFromWKB(?, %3) WHERE ROWID = ?" )
QString( "UPDATE %1 SET %2=GeomFromWKB(?, %3) WHERE ROWID=?" )
.arg( quotedIdentifier( mTableName ),
quotedIdentifier( mGeometryColumn ) )
.arg( mSrid );
@@ -151,7 +151,7 @@ bool QgsVirtualLayerProvider::openIt()
Sqlite::Query q( mSqlite.get(), "SELECT name FROM sqlite_master WHERE name='_meta'" );
if ( q.step() != SQLITE_ROW )
{
PROVIDER_ERROR( "No metadata tables !" );
PROVIDER_ERROR( "No metadata tables!" );
return false;
}
}
@@ -164,7 +164,7 @@ bool QgsVirtualLayerProvider::openIt()
version = q.columnInt( 0 );
if ( version != VIRTUAL_LAYER_VERSION )
{
PROVIDER_ERROR( "Wrong virtual layer version !" );
PROVIDER_ERROR( "Wrong virtual layer version!" );
return false;
}
mDefinition = QgsVirtualLayerDefinition::fromUrl( QUrl( q.columnText( 1 ) ) );
@@ -324,7 +324,7 @@ bool QgsVirtualLayerProvider::createIt()

if ( c.name().isEmpty() )
{
PROVIDER_ERROR( QString( "Result column #%1 has no name !" ).arg( i + 1 ) );
PROVIDER_ERROR( QString( "Result column #%1 has no name!" ).arg( i + 1 ) );
return false;
}

@@ -390,14 +390,14 @@ bool QgsVirtualLayerProvider::createIt()
}
if ( !found )
{
PROVIDER_ERROR( "Cannot find the specified geometry field !" );
PROVIDER_ERROR( "Cannot find the specified geometry field!" );
return false;
}
}

if ( !mDefinition.geometryField().isEmpty() && !mDefinition.hasDefinedGeometry() )
{
PROVIDER_ERROR( "Can't deduce the geometry type of the geometry field !" );
PROVIDER_ERROR( "Can't deduce the geometry type of the geometry field!" );
return false;
}
}

0 comments on commit c2c326c

Please sign in to comment.
You can’t perform that action at this time.