[Zope3-checkins] CVS: Products3/NewsSite - register.py:1.3

Tres Seaver tseaver@zope.com
Thu, 27 Mar 2003 10:12:40 -0500


Update of /cvs-repository/Products3/NewsSite
In directory cvs.zope.org:/tmp/cvs-serv26328

Modified Files:
	register.py 
Log Message:


  - Add tests for member data adapter, and fix a bug.


=== Products3/NewsSite/register.py 1.2 => 1.3 ===
--- Products3/NewsSite/register.py:1.2	Wed Mar 26 15:46:29 2003
+++ Products3/NewsSite/register.py	Thu Mar 27 10:12:09 2003
@@ -76,6 +76,13 @@
 
         self._mapping = mbrdata
 
+    def _changed( self ):
+
+        # Is this a new annotation?
+        if self._annotations is not None:
+            self._annotations[ MDkey ] = self._mapping
+            self._annotations = None
+
     login = property(lambda self: self.context.getLogin())
 
     def _getPassword(self):