add write support for rset to avoid some crash
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 17 Aug 2009 20:02:07 +0200
changeset 2888 5492bafa4f17
parent 2887 1282dc6525c5
child 2889 5b42222d3b88
add write support for rset to avoid some crash
appobject.py
--- a/appobject.py	Mon Aug 17 19:21:45 2009 +0200
+++ b/appobject.py	Mon Aug 17 20:02:07 2009 +0200
@@ -322,10 +322,13 @@
     def req(self):
         return self._cw
 
-    @property
+    @deprecated('[3.5] use self.cw_rset')
+    def get_rset(self):
+        return self.cw_rset
     @deprecated('[3.5] use self.cw_rset')
-    def rset(self):
-        return self.cw_rset
+    def set_rset(self, rset):
+        self.cw_rset = rset
+    rset = property(get_rset, set_rset)
 
     @property
     @deprecated('[3.5] use self.cw_row')