cubicweb/hooks/syncsources.py
branch3.25
changeset 12153 0ff0aff4413d
parent 12152 f34d18d0603f
child 12156 0d1d22a3a48b
--- a/cubicweb/hooks/syncsources.py	Wed Apr 12 16:07:25 2017 +0200
+++ b/cubicweb/hooks/syncsources.py	Wed Apr 12 16:10:57 2017 +0200
@@ -51,6 +51,7 @@
             raise validation_error(self.entity, {('type', 'subject'): msg})
 
         source = self.get_source(self.entity)
+        source.check_urls(self.entity)
         source.check_config(self.entity)
 
 
@@ -76,5 +77,7 @@
                 raise validation_error(self.entity, {('name', 'subject'): msg})
 
         source = self.get_source(self.entity)
+        if 'url' in self.entity.cw_edited:
+            source.check_urls(self.entity)
         if 'config' in self.entity.cw_edited:
             source.check_config(self.entity)