common/mixins.py
changeset 3890 d7a270f50f54
parent 3589 a5432f99f2d9
parent 3830 3b6bbb3a3c3e
child 3998 94cc7cad3d2d
--- a/common/mixins.py	Sun Nov 08 21:53:18 2009 +0100
+++ b/common/mixins.py	Fri Nov 20 19:35:54 2009 +0100
@@ -180,7 +180,9 @@
         For instance, the Person class might want to return a `companyname`
         key.
         """
-        return set(rs.type for rs, _ in cls.e_schema.attribute_definitions())
+        return set(rschema.type
+                   for rschema, attrtype in cls.e_schema.attribute_definitions()
+                   if attrtype.type not in ('Password', 'Bytes'))
 
     def as_email_context(self):
         """returns the dictionary as used by the sendmail controller to