equal
deleted
inserted
replaced
348 else: |
348 else: |
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 """check configuration of source entity""" |
353 if source_entity.config: |
354 if source_entity.host_config: |
354 msg = _("Configuration of the system source goes to " |
355 msg = _('the system source has its configuration ' |
355 "the 'sources' file, not in the database") |
356 'stored on the file-system') |
|
357 raise ValidationError(source_entity.eid, {role_name('config', 'subject'): msg}) |
356 raise ValidationError(source_entity.eid, {role_name('config', 'subject'): msg}) |
358 |
357 |
359 def add_authentifier(self, authentifier): |
358 def add_authentifier(self, authentifier): |
360 self.authentifiers.append(authentifier) |
359 self.authentifiers.append(authentifier) |
361 authentifier.source = self |
360 authentifier.source = self |