Commit 516fefb4 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_gadget_interface_validator] Do not check the constructor attribute

parent ecc0a879
...@@ -276,7 +276,8 @@ ...@@ -276,7 +276,8 @@
item; item;
for (item in gadget.constructor.prototype) { for (item in gadget.constructor.prototype) {
if (gadget.constructor.prototype.hasOwnProperty(item)) { if (gadget.constructor.prototype.hasOwnProperty(item)) {
if (!(/__/).test(item)) { if (!(/__/).test(item) && (item !== 'constructor') &&
(typeof gadget[item] === "function")) {
declared_method_dict[item] = gadget[item]; declared_method_dict[item] = gadget[item];
} }
} }
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>968.15711.48104.9642</string> </value> <value> <string>968.19656.34499.5171</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1529078407.64</float> <float>1529315086.55</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment