common/mixins.py
branchstable
changeset 3830 3b6bbb3a3c3e
parent 3583 385d013c7adb
child 3890 d7a270f50f54
child 3926 0585694c1896
--- a/common/mixins.py	Thu Nov 12 13:53:26 2009 +0100
+++ b/common/mixins.py	Thu Nov 12 17:15:07 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