'as' becomes a keyword when with statement activated
authorsylvain.thenault@logilab.fr
Wed, 14 Jan 2009 11:49:04 +0100
changeset 400 b05a36678265
parent 399 8df3b190275b
child 401 bc55a104d636
'as' becomes a keyword when with statement activated
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]