equal
deleted
inserted
replaced
1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
290 if 'all' in self.sources_mode: |
290 if 'all' in self.sources_mode: |
291 assert len(self.sources_mode) == 1 |
291 assert len(self.sources_mode) == 1 |
292 return True |
292 return True |
293 return source.uri in self.sources_mode |
293 return source.uri in self.sources_mode |
294 if self.quick_start: |
294 if self.quick_start: |
295 return False |
295 return source.uri == 'system' |
296 return (not source.disabled and ( |
296 return (not source.disabled and ( |
297 not self.enabled_sources or source.uri in self.enabled_sources)) |
297 not self.enabled_sources or source.uri in self.enabled_sources)) |
298 |
298 |
299 def write_sources_file(self, sourcescfg): |
299 def write_sources_file(self, sourcescfg): |
300 """serialize repository'sources configuration into a INI like file""" |
300 """serialize repository'sources configuration into a INI like file""" |