Re: [dabo-users] Precision Value in Grid Column

Author: John Fabiani

Posted: 2012-05-15 at 12:59:24

On Tuesday, May 15, 2012 12:29:57 PM Ed Leafe wrote:

> On May 15, 2012, at 9:33 AM, RUSSELL Thomas wrote:

> > My problem is that the data precision is correct but the data seems to

> > be rounded in value instead of what the real value is.

> I just committed a fix. Grab the latest from SVN and let me know how it

> works for you.

>

>

> -- Ed Leafe

Pauls test still fails and it

does not work for me

Traceback (most recent call last):

File "esStudent.py", line 6753, in <module>

app.start()

File "/home/johnf/dabo/dabo/dApp.py", line 395, in start

self.setup()

File "/home/johnf/dabo/dabo/dApp.py", line 347, in setup

self.initUIApp()

File "/home/johnf/dabo/dabo/dApp.py", line 387, in initUIApp

self.uiApp.setup()

File "/home/johnf/dabo/dabo/ui/uiwx/uiApp.py", line 431, in setup

frm = self.dApp.MainForm = mfc()

File "/home/johnf/dabo/dabo/ui/uiwx/dForm.py", line 1062, in __init__

*args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dForm.py", line 49, in __init__

attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dFormMixin.py", line 77, in __init__

attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 201, in __init__

self._afterInit()

File "/home/johnf/dabo/dabo/ui/uiwx/dForm.py", line 76, in _afterInit

super(BaseForm, self)._afterInit()

File "/home/johnf/dabo/dabo/ui/uiwx/dFormMixin.py", line 131, in _afterInit

super(dFormMixin, self)._afterInit()

File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 339, in _afterInit

self.afterInit()

File "esStudent.py", line 3921, in afterInit

self.Sizer.append1x(MainPanel(self))

File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 304, in __init__

attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 245, in __init__

properties=properties, attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 35, in __init__

properties=properties, attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 201, in __init__

self._afterInit()

File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 339, in _afterInit

self.afterInit()

File "esStudent.py", line 3754, in afterInit

hs = MainPanelFrames(self)

File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 267, in __init__

attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 245, in __init__

properties=properties, attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 35, in __init__

properties=properties, attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 201, in __init__

self._afterInit()

File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 339, in _afterInit

self.afterInit()

File "esStudent.py", line 3721, in afterInit

pgf.appendPage(pgCls=LineItemPanel, caption="Accounting")

File "/home/johnf/dabo/dabo/ui/uiwx/dPageFrameMixin.py", line 178, in

appendPage

return self.insertPage(self.GetPageCount(), pgCls, caption, imgKey,

**kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPageFrameMixin.py", line 211, in

insertPage

pg = pgCls(self, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 267, in __init__

attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 245, in __init__

properties=properties, attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPanel.py", line 35, in __init__

properties=properties, attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 201, in __init__

self._afterInit()

File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 339, in _afterInit

self.afterInit()

File "esStudent.py", line 928, in afterInit

g = self.grid = InvoiceLineItemGrid(self, RegID="inv_Grid", SelectionMode

= 'Row', AlternateRowColoring = True, Editable = False)

File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 1900, in __init__

attProperties=attProperties, *args, **kwargs)

File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 201, in __init__

self._afterInit()

File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 1951, in _afterInit

super(dGrid, self)._afterInit()

File "/home/johnf/dabo/dabo/ui/uiwx/dPemMixin.py", line 339, in _afterInit

self.afterInit()

File "esStudent.py", line 877, in afterInit

Sortable=False, Searchable=False, Editable=True)

File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 487, in __init__

*args, **kwargs)

File "/home/johnf/dabo/dabo/dObject.py", line 101, in __init__

self.setProperties(properties)

File "/home/johnf/dabo/dabo/lib/propertyHelperMixin.py", line 217, in

setProperties

_setProps(propDict)

File "/home/johnf/dabo/dabo/lib/propertyHelperMixin.py", line 206, in

_setProps

setter(self, _propDict[prop])

File "/home/johnf/dabo/dabo/ui/uiwx/dGrid.py", line 1384, in _setPrecision

dabo.ui.callAfterInterval(50, self.Parent.refresh)

AttributeError: 'NoneType' object has no attribute 'refresh'

_______________________________________________

Post Messages to: Dabo-users@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Searchable Archives: http://leafe.com/archives/search/dabo-users

This message: http://leafe.com/archives/byMID/7269025.ORujOy00Pq@linux-12

©2012 John Fabiani