web/views/baseviews.py
changeset 400 b05a36678265
parent 371 4e849b424aaa
child 431 18b4dd650ef8
--- 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]