Since r5609 (the revamping of the seek() algorithm), I'm encountering 
this error in my app (traceback is printed running against trunk, r5615 
though):

Traceback (most recent call last):
   File "/home/pmcnett/dabo/dabo/ui/uiwx/dMenuItem.py", line 57, in 
__onWxHit
     self.raiseEvent(dEvents.Hit, evt)
   File "/home/pmcnett/dabo-full/trunk/dabo/ui/uiwx/dPemMixin.py", line 
959, in raiseEvent
     super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, 
**kwargs)
   File "/home/pmcnett/dabo-full/trunk/dabo/lib/eventMixin.py", line 93, 
in raiseEvent
     bindingFunction(event)
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/ui/MenReports.py",
 
line 52, in openForm
     frm = evt.EventObject.Tag(mainForm)
   File "/home/pmcnett/dabo-full/trunk/dabo/ui/uiwx/dDialog.py", line 
43, in __init__
     self._addControls()
   File "/home/pmcnett/py/datanav_additions/FrmReportBase.py", line 24, 
in _addControls
     self.super()
   File "/home/pmcnett/dabo/dabo/lib/autosuper/autosuper.py", line 176, 
in __call__
     return method(*p, **kw)
   File "/home/pmcnett/dabo-full/trunk/dabo/ui/uiwx/dDialog.py", line 
113, in _addControls
     self.addControls()
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/ui/FrmReportCutsheet.py",
 
line 27, in addControls
     self.super()
   File "/home/pmcnett/dabo/dabo/lib/autosuper/autosuper.py", line 176, 
in __call__
     return method(*p, **kw)
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/ui/FrmReportProductionOrderBase.py",
 
line 34, in addControls
     self.panBrowsePick_order.Value = self.initial_po_value
   File "/home/pmcnett/py/datanav_additions/PanBrowsePick.py", line 214, 
in _setValue
     stringValue = self.txtEntry._getDisplayValue(val)
   File "/home/pmcnett/py/datanav_additions/TxtLookup.py", line 123, in 
_getDisplayValue
     return self.DisplayFormat % 
lookup.getDataSet(rowStart=lookup.RowNumber, rows=1)[0]
   File "/home/pmcnett/dabo-full/trunk/dabo/biz/dBizobj.py", line 1631, 
in getDataSet
     ret = self._CurrentCursor.getDataSet(flds, rowStart, rows, 
returnInternals=returnInternals)
   File "/home/pmcnett/dabo-full/trunk/dabo/db/dCursorMixin.py", line 
1120, in getDataSet
     tmprec.update({k: self.getFieldVal(k, row)})
   File "/home/pmcnett/dabo-full/trunk/dabo/db/dCursorMixin.py", line 
858, in getFieldVal
     ret = vf["func"]()
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/biz/orders.py",
 
line 391, in getSquareFeetString
     sf = self.getSquareFeet()
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/biz/orders.py",
 
line 387, in getSquareFeet
     sf += bizOpenings.getFieldVal("total_square_feet", row)
   File "/home/pmcnett/dabo-full/trunk/dabo/biz/dBizobj.py", line 1516, 
in getFieldVal
     ret = cursor.getFieldVal(fld, row, 
_rowChangeCallback=changeRowNumCallback)
   File "/home/pmcnett/dabo-full/trunk/dabo/db/dCursorMixin.py", line 
858, in getFieldVal
     ret = vf["func"]()
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/biz/openings.py",
 
line 977, in getTotalSquareFeet
     return self.getSquareFeet() * self.Record.qty
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/biz/openings.py",
 
line 960, in getSquareFeet
     ret = self.getFramedSizeSF()
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/biz/openings.py",
 
line 1052, in getFramedSizeSF
     w,h = self.getFramedSize()
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/biz/openings.py",
 
line 1075, in getFramedSize
     w = self.Record.net_width + getFaces("w") + 
self.Record.net_width_closing_tolerance
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/biz/openings.py",
 
line 1070, in getFaces
     fd = self.getFrameDataForId(frame_id)
   File 
"/home/pmcnett/py/sbs/shutter_studio/trunk/clients/shutter_studio/biz/openings.py",
 
line 302, in getFrameDataForId
     if bizFrames.seek(frame_id, fld="id", runRequery=False) < 0:
   File "/home/pmcnett/dabo-full/trunk/dabo/biz/dBizobj.py", line 1265, 
in seek
     ret = self._CurrentCursor.seek(val, fld, caseSensitive, near)
   File "/home/pmcnett/dabo-full/trunk/dabo/db/dCursorMixin.py", line 
1866, in seek
     searchList = [first.lower() for first, second in sortList]
AttributeError: 'NoneType' object has no attribute 'lower'


The table in question has a None value in a string field.

Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to