[Bug 4810] New: Using Python properties disables proxy notification
bugzilla-daemon at async.com.br
bugzilla-daemon at async.com.br
Wed Dec 28 20:05:18 BRST 2011
http://bugs.async.com.br/show_bug.cgi?id=4810
Bug #: 4810
Summary: Using Python properties disables proxy notification
Classification: Unclassified
Product: Kiwi
Version: SVN trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: (unset)
Component: Datatypes
AssignedTo: jdahlin at async.com.br
ReportedBy: klimkin at gmail.com
QAContact: kiwi at async.com.br
There is an issue with kiwi.model.Model class, if it's used together with
object.
In this case object.__setattr__ overrides Model.__setattr__ and proxies don't
get notified:
class C1(object, Model):
In this case Model.__setattr__ overrides object.__setattr__ and property
functions do not work:
class C2(Model, object):
The solution is to specify object as a base class for Model and patch
Model.__setattr__:
- self.__dict__[attr] = value
+ super(Model, self).__setattr__(attr, value)
The patch with test are attached.
--
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the Kiwi
mailing list