[source configuration] silent lgc 0.60 deprecation warning
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 28 Aug 2013 12:14:20 +0200
changeset 9292 4b3e657d17ab
parent 9291 4894bb92558a
child 9293 723e2c586ea3
[source configuration] silent lgc 0.60 deprecation warning
__pkginfo__.py
server/sources/__init__.py
--- a/__pkginfo__.py	Tue Oct 15 14:02:22 2013 +0200
+++ b/__pkginfo__.py	Wed Aug 28 12:14:20 2013 +0200
@@ -40,7 +40,7 @@
 ]
 
 __depends__ = {
-    'logilab-common': '>= 0.59.0',
+    'logilab-common': '>= 0.60.0',
     'logilab-mtconverter': '>= 0.8.0',
     'rql': '>= 0.31.2',
     'yams': '>= 0.37.0',
--- a/server/sources/__init__.py	Tue Oct 15 14:02:22 2013 +0200
+++ b/server/sources/__init__.py	Wed Aug 28 12:14:20 2013 +0200
@@ -183,7 +183,7 @@
             elif value is not None:
                 # type check
                 try:
-                    value = configuration.convert(value, optdict, optname)
+                    value = configuration._validate(value, optdict, optname)
                 except Exception as ex:
                     msg = unicode(ex) # XXX internationalization
                     raise ValidationError(eid, {role_name('config', 'subject'): msg})