Ravi Gohil (OpenERP) has proposed merging
lp:~openerp-dev/openobject-client/6.0-opw-580557-rgo into
lp:openobject-client/6.0.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-opw-580557-rgo/+merge/130352
Hello,
>From GTK-Client, when entered value above 2147483647 for integer/float fields,
>value reverted back to 2147483647. This is due to the limited value supported
>by sys.maxint, this fix removed this restriction.
Kindly review the fix.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-client/6.0-opw-580557-rgo/+merge/130352
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-client/6.0-opw-580557-rgo.
=== modified file 'bin/widget/view/form_gtk/spinbutton.py'
--- bin/widget/view/form_gtk/spinbutton.py 2011-10-24 16:20:03 +0000
+++ bin/widget/view/form_gtk/spinbutton.py 2012-10-18 13:34:57 +0000
@@ -29,7 +29,7 @@
def __init__(self, window, parent, model, attrs={}):
interface.widget_interface.__init__(self, window, parent, model, attrs)
- adj = gtk.Adjustment(0.0, -sys.maxint, sys.maxint, 1.0, 5.0)
+ adj = gtk.Adjustment(0.0, -2**100, 2**100, 1.0, 5.0)
self.widget = gtk.SpinButton(adj, 1.0, digits=int( attrs.get('digits',(14,2))[1] ) )
self.widget.set_activates_default(True)
self.widget.connect('populate-popup', self._menu_open)
=== modified file 'bin/widget/view/form_gtk/spinint.py'
--- bin/widget/view/form_gtk/spinint.py 2011-10-24 16:22:58 +0000
+++ bin/widget/view/form_gtk/spinint.py 2012-10-18 13:34:57 +0000
@@ -30,7 +30,7 @@
def __init__(self, window, parent, model, attrs={}):
interface.widget_interface.__init__(self, window, parent, model, attrs)
- adj = gtk.Adjustment(0.0, -sys.maxint, sys.maxint, 1.0, 5.0)
+ adj = gtk.Adjustment(0.0, -2**100, 2**100, 1.0, 5.0)
self.widget = gtk.SpinButton(adj, 1, digits=0)
self.widget.set_width_chars(5)
self.widget.set_activates_default(True)
=== modified file 'bin/widget_search/spinbutton.py'
--- bin/widget_search/spinbutton.py 2011-08-18 11:01:28 +0000
+++ bin/widget_search/spinbutton.py 2012-10-18 13:34:57 +0000
@@ -32,7 +32,7 @@
self.widget = gtk.HBox(spacing=3)
- adj1 = gtk.Adjustment(0.0, -sys.maxint, sys.maxint, 1.0, 5.0)
+ adj1 = gtk.Adjustment(0.0, -2**100, 2**100, 1.0, 5.0)
self.spin1 = gtk.SpinButton(adj1, 1.0, digits=int(attrs.get('digits', (14, 2))[1]))
self.spin1.set_activates_default(True)
self.spin1.connect('input', self.format_input)
@@ -41,7 +41,7 @@
self.widget.pack_start(gtk.Label('-'), expand=False, fill=False)
- adj2 = gtk.Adjustment(0.0, -sys.maxint, sys.maxint, 1.0, 5.0)
+ adj2 = gtk.Adjustment(0.0, -2**100, 2**100, 1.0, 5.0)
self.spin2 = gtk.SpinButton(adj2, 1.0, digits=int(attrs.get('digits', (14, 2))[1]))
self.spin2.set_activates_default(True)
self.spin2.connect('input', self.format_input)
=== modified file 'bin/widget_search/spinint.py'
--- bin/widget_search/spinint.py 2011-08-18 11:01:28 +0000
+++ bin/widget_search/spinint.py 2012-10-18 13:34:57 +0000
@@ -35,7 +35,7 @@
self.widget = gtk.HBox(spacing=3)
- adj1 = gtk.Adjustment(0.0, 0.0, sys.maxint, 1.0, 5.0)
+ adj1 = gtk.Adjustment(0.0, 0.0, 2**100, 1.0, 5.0)
self.spin1 = gtk.SpinButton(adj1, 1, digits=0)
self.spin1.set_activates_default(True)
self.spin1.connect('input', self.format_input)
@@ -44,7 +44,7 @@
self.widget.pack_start(gtk.Label('-'), expand=False, fill=False)
- adj2 = gtk.Adjustment(0.0, 0.0, sys.maxint, 1.0, 5.0)
+ adj2 = gtk.Adjustment(0.0, 0.0, 2**100, 1.0, 5.0)
self.spin2 = gtk.SpinButton(adj2, 1, digits=0)
self.spin2.set_activates_default(True)
self.spin2.connect('input', self.format_input)
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp