]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
call this "_proxies" since it's not really a public consumption attribute
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Aug 2012 21:55:21 +0000 (17:55 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Aug 2012 21:55:21 +0000 (17:55 -0400)
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql/expression.py

index 8b46dc2507fc81b93fd8ccfd71b097c477e3e2e5..367b6e0b21c2ce001455a80a2f279900be57e1a0 100644 (file)
@@ -912,7 +912,7 @@ class Column(SchemaItem, expression.ColumnClause):
 
         # check if this Column is proxying another column
         if '_proxies' in kwargs:
-            self.proxies = kwargs.pop('_proxies')
+            self._proxies = kwargs.pop('_proxies')
         # otherwise, add DDL-related events
         elif isinstance(self.type, sqltypes.SchemaType):
             self.type._set_parent_with_dispatch(self)
index 6b184d1ca5f0521aa8082f439bd0e017996d4ddb..0e8a46b600f2edc80de8dca3c5e5d5d5f80b047c 100644 (file)
@@ -2258,13 +2258,13 @@ class ColumnElement(ClauseElement, ColumnOperators):
     @util.memoized_property
     def base_columns(self):
         return util.column_set(c for c in self.proxy_set
-                                     if not hasattr(c, 'proxies'))
+                                     if not hasattr(c, '_proxies'))
 
     @util.memoized_property
     def proxy_set(self):
         s = util.column_set([self])
-        if hasattr(self, 'proxies'):
-            for c in self.proxies:
+        if hasattr(self, '_proxies'):
+            for c in self._proxies:
                 s.update(c.proxy_set)
         return s
 
@@ -2296,7 +2296,7 @@ class ColumnElement(ClauseElement, ColumnOperators):
                             selectable,
                             type_=getattr(self,
                           'type', None))
-        co.proxies = [self]
+        co._proxies = [self]
         if selectable._is_clone_of is not None:
             co._is_clone_of = \
                 selectable._is_clone_of.columns.get(key)
@@ -4230,7 +4230,7 @@ class Label(ColumnElement):
         self._element = element
         self._type = type_
         self.quote = element.quote
-        self.proxies = [element]
+        self._proxies = [element]
 
     @util.memoized_property
     def type(self):
@@ -4272,7 +4272,7 @@ class Label(ColumnElement):
     def _make_proxy(self, selectable, name=None, **kw):
         e = self.element._make_proxy(selectable,
                                 name=name if name else self.name)
-        e.proxies.append(self)
+        e._proxies.append(self)
         return e
 
 class ColumnClause(Immutable, ColumnElement):
@@ -4432,7 +4432,7 @@ class ColumnClause(Immutable, ColumnElement):
                     type_=self.type,
                     is_literal=is_literal
                 )
-        c.proxies = [self]
+        c._proxies = [self]
         if selectable._is_clone_of is not None:
             c._is_clone_of = \
                 selectable._is_clone_of.columns.get(c.name)
@@ -4943,13 +4943,13 @@ class CompoundSelect(SelectBase):
                     name=cols[0]._label if self.use_labels else None,
                     key=cols[0]._key_label if self.use_labels else None)
 
-            # hand-construct the "proxies" collection to include all
+            # hand-construct the "_proxies" collection to include all
             # derived columns place a 'weight' annotation corresponding
             # to how low in the list of select()s the column occurs, so
             # that the corresponding_column() operation can resolve
             # conflicts
 
-            proxy.proxies = [c._annotate({'weight': i + 1}) for (i,
+            proxy._proxies = [c._annotate({'weight': i + 1}) for (i,
                              c) in enumerate(cols)]
 
     def _refresh_for_new_column(self, column):