# HG changeset patch # User Sylvain Thénault # Date 1251385292 -7200 # Node ID e4dc22040f5fd941efe17483d2f081c8cb981f9c # Parent 7d5a4d27d05255f89a58f11639cfad17cf4cf416 [multi-sources] move [dont_]cross_relations to AbstractSource diff -r 7d5a4d27d052 -r e4dc22040f5f server/msplanner.py --- a/server/msplanner.py Thu Aug 27 16:59:19 2009 +0200 +++ b/server/msplanner.py Thu Aug 27 17:01:32 2009 +0200 @@ -97,9 +97,6 @@ # str() Constant.value to ensure generated table name won't be unicode Constant._ms_table_key = lambda x: str(x.value) -AbstractSource.dont_cross_relations = () -AbstractSource.cross_relations = () - def need_source_access_relation(vargraph): if not vargraph: return False diff -r 7d5a4d27d052 -r e4dc22040f5f server/sources/__init__.py --- a/server/sources/__init__.py Thu Aug 27 16:59:19 2009 +0200 +++ b/server/sources/__init__.py Thu Aug 27 17:01:32 2009 +0200 @@ -80,6 +80,11 @@ # a reference to the instance'schema (may differs from the source'schema) schema = None + # multi-sources planning control + dont_cross_relations = () + cross_relations = () + + def __init__(self, repo, appschema, source_config, *args, **kwargs): self.repo = repo self.uri = source_config['uri']