コード例 #1
0
 def __init__(self, key, alias=None, chained=False):
     super(LoadEagerFromAliasOption, self).__init__(key)
     if alias is not None:
         if not isinstance(alias, str):
             m, alias, is_aliased_class = mapperutil._entity_info(alias)
     self.alias = alias
     self.chained = chained
コード例 #2
0
ファイル: strategies.py プロジェクト: denny820909/builder
 def __init__(self, key, alias=None, chained=False):
     super(LoadEagerFromAliasOption, self).__init__(key)
     if alias is not None:
         if not isinstance(alias, basestring):
             m, alias, is_aliased_class = mapperutil._entity_info(alias)
     self.alias = alias
     self.chained = chained
コード例 #3
0
 def __init__(self, key, alias=None):
     super(LoadEagerFromAliasOption, self).__init__(key)
     if alias:
         if not isinstance(alias, basestring):
             m, alias, is_aliased_class = mapperutil._entity_info(alias)
     self.alias = alias