cubicweb/server/sources/native.py
branch3.25
changeset 12153 0ff0aff4413d
parent 12152 f34d18d0603f
child 12156 0d1d22a3a48b
--- a/cubicweb/server/sources/native.py	Wed Apr 12 16:07:25 2017 +0200
+++ b/cubicweb/server/sources/native.py	Wed Apr 12 16:10:57 2017 +0200
@@ -355,6 +355,12 @@
                     "the 'sources' file, not in the database")
             raise ValidationError(source_entity.eid, {role_name('config', 'subject'): msg})
 
+    def check_urls(self, source_entity):
+        if source_entity.url:
+            msg = _("Configuration of the system source goes to "
+                    "the 'sources' file, not in the database")
+            raise ValidationError(source_entity.eid, {role_name('config', 'subject'): msg})
+
     def add_authentifier(self, authentifier):
         self.authentifiers.append(authentifier)
         authentifier.source = self