cubicweb/server/sources/native.py
branch3.25
changeset 12153 0ff0aff4413d
parent 12152 f34d18d0603f
child 12156 0d1d22a3a48b
equal deleted inserted replaced
12152:f34d18d0603f 12153:0ff0aff4413d
   349             self.eid_generator = DefaultEidGenerator(self)
   349             self.eid_generator = DefaultEidGenerator(self)
   350         self.create_eid = self.eid_generator.create_eid
   350         self.create_eid = self.eid_generator.create_eid
   351 
   351 
   352     def check_config(self, source_entity):
   352     def check_config(self, source_entity):
   353         if source_entity.config:
   353         if source_entity.config:
       
   354             msg = _("Configuration of the system source goes to "
       
   355                     "the 'sources' file, not in the database")
       
   356             raise ValidationError(source_entity.eid, {role_name('config', 'subject'): msg})
       
   357 
       
   358     def check_urls(self, source_entity):
       
   359         if source_entity.url:
   354             msg = _("Configuration of the system source goes to "
   360             msg = _("Configuration of the system source goes to "
   355                     "the 'sources' file, not in the database")
   361                     "the 'sources' file, not in the database")
   356             raise ValidationError(source_entity.eid, {role_name('config', 'subject'): msg})
   362             raise ValidationError(source_entity.eid, {role_name('config', 'subject'): msg})
   357 
   363 
   358     def add_authentifier(self, authentifier):
   364     def add_authentifier(self, authentifier):