de-plenk question and exclamation marks

This commit is contained in:
Juergen E. Fischer 2016-03-07 15:09:10 +01:00
parent c51025a715
commit c2c326c42e
12 changed files with 16 additions and 16 deletions

View File

@ -190,7 +190,7 @@ class OracleDBConnector(DBConnector):
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

View File

@ -650,7 +650,7 @@ class ORVectorTableInfo(ORTableInfo, VectorTableInfo):
"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':

View File

@ -336,7 +336,7 @@ class ORTable(Table):
msg = QApplication.translate(
"DBManagerPlugin",
"Do you want to {} index {} ?".format(
"Do you want to {} index {}?".format(
index_action, index_name))
QApplication.restoreOverrideCursor()
try:

View File

@ -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):

View File

@ -29,7 +29,7 @@ __revision__ = '$Format:%H$'
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

View File

@ -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']:

View File

@ -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()]

View File

@ -236,7 +236,7 @@ class MakefileParser(object):
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")

View File

@ -94,7 +94,7 @@ def ut_generator(test_name, a_tuple):
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

View File

@ -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?");
}

View File

@ -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 );

View File

@ -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;
}
}