# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1231930144 -3600 # Node ID b05a3667826540aa52bd1f0b6b0a156a6d7c1dd1 # Parent 8df3b190275b43eaa6f211c851f8ce388e5ea5fb 'as' becomes a keyword when with statement activated diff -r 8df3b190275b -r b05a36678265 web/views/baseviews.py --- a/web/views/baseviews.py Wed Jan 14 11:48:24 2009 +0100 +++ b/web/views/baseviews.py Wed Jan 14 11:49:04 2009 +0100 @@ -32,7 +32,6 @@ _ = unicode - class NullView(AnyRsetView): """default view when no result has been found""" id = 'null' @@ -765,8 +764,8 @@ for index in xrange(len(self.rset)): entity = self.complete_entity(index) if entity.e_schema not in rows_by_type: - rowdef_by_type[entity.e_schema] = [rs for rs, as in entity.e_schema.attribute_definitions() - if as.type != 'Bytes'] + rowdef_by_type[entity.e_schema] = [rs for rs, at in entity.e_schema.attribute_definitions() + if at != 'Bytes'] rows_by_type[entity.e_schema] = [[display_name(req, rschema.type) for rschema in rowdef_by_type[entity.e_schema]]] rows = rows_by_type[entity.e_schema]