Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
de-plenk question and exclamation marks
  • Loading branch information
jef-n committed Mar 7, 2016
1 parent c51025a commit c2c326c
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/oracle/connector.py
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/oracle/info_model.py
Expand Up @@ -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':
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/oracle/plugin.py
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/r_null.py
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/r_reclass.py
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/ext/v_distance.py
Expand Up @@ -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']:
Expand Down
Expand Up @@ -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()]
Expand Down
Expand Up @@ -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")
Expand Down
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -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?");

}

Expand Down
2 changes: 1 addition & 1 deletion src/providers/spatialite/qgsspatialiteprovider.cpp
Expand Up @@ -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 );
Expand Down
10 changes: 5 additions & 5 deletions src/providers/virtual/qgsvirtuallayerprovider.cpp
Expand Up @@ -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;
}
}
Expand All @@ -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 ) ) );
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit c2c326c

Please sign in to comment.