web/views/emailaddress.py
changeset 4045 f4a52abb6f4f
parent 4023 eae23c40627a
child 4252 6c4f109c2b03
--- a/web/views/emailaddress.py	Tue Dec 08 16:46:56 2009 +0100
+++ b/web/views/emailaddress.py	Tue Dec 08 16:50:36 2009 +0100
@@ -38,7 +38,7 @@
         else:
             pemaileid = None
         try:
-            emailof = 'use_email' in self._cw.schema and entity.reverse_use_email or ()
+            emailof = 'use_email' in self._cw.vreg.schema and entity.reverse_use_email or ()
             emailof = [e for e in emailof if not e.eid == pemaileid]
         except Unauthorized:
             emailof = []