def _make_proxy(self, selectable, name=None, attach=True, name_is_truncatable=False, **kw): co = ColumnClause(self.name, self.type) co._proxies = [self] if selectable._is_clone_of is not None: co._is_clone_of = \ selectable._is_clone_of.columns.get(co.key) if attach: selectable._columns[co.key] = co return co
def _make_proxy( self, selectable, name=None, attach=True, name_is_truncatable=False, **kw ): if self.name == self.function.name: name = selectable.name else: name = self.name co = ColumnClause(name, self.type) co.key = self.name co._proxies = [self] if selectable._is_clone_of is not None: co._is_clone_of = selectable._is_clone_of.columns.get(co.key) co.table = selectable co.named_with_table = False if attach: selectable._columns[co.key] = co return co