Skip to content
Permalink
Browse files

revert the SIP deleteStyleFromDatabase signature

  • Loading branch information
jgrocha committed Jan 31, 2017
1 parent e649280 commit 738fbd455b3ad34ed1fbc93f4a58488907b0229e
Showing with 3 additions and 5 deletions.
  1. +1 −1 python/core/qgsvectorlayer.sip
  2. +2 −4 tests/src/python/test_provider_postgres.py
@@ -687,7 +687,7 @@ class QgsVectorLayer : QgsMapLayer, QgsExpressionContextGenerator
/**
* Will delete the named style corresponding to style id provided from the database
*/
virtual bool deleteStyleFromDatabase( const QString& styleId, QString &msgError );
virtual bool deleteStyleFromDatabase( const QString& styleId, QString &msgError /Out/ );

/**
* Load a named style from file/local db/datasource db
@@ -686,13 +686,11 @@ def testStyle(self):
self.assertTrue(qml.startswith('<!DOCTYPE qgis'), qml)
self.assertEqual(errmsg, "")

errmsg = ''
res = vl.deleteStyleFromDatabase("100", errmsg)
res, errmsg = vl.deleteStyleFromDatabase("100")
self.assertTrue(res)
self.assertEqual(errmsg, "")

errmsg = ''
res = vl.deleteStyleFromDatabase("1", errmsg)
res, errmsg = vl.deleteStyleFromDatabase("1")
self.assertTrue(res)
self.assertEqual(errmsg, "")

0 comments on commit 738fbd4

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