On Apr 6, 2008, at 11:20 PM, johnf wrote:
> prodcostDescript is a virtualfield.
> self.VirtualFields={'prodcostDescript':self.costtype}
Are you setting the property like that, or are you passing it as a
keyword argument in the bizobj's constructor?
> def costtype(self):
> try:
> if self.Form.agprodcotypeBizobj.getFieldVal('ntrackby') == 0:
> #weight
> return('Kg')
> else:
> return('Seed Cnt')
> except:
> return('')
>
>
> Dabo Error Log: Sun Apr 6 21:13:30 2008: Field 'prodcostDescript'
> does not
> exist in the DataStructure
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/
> _core.py",
> line 14345, in <lambda>
> lambda event: event.callable(*event.args, **event.kw) )
> File "/home/johnf/downloads/dabo/dabo/ui/uiwx/dPemMixin.py", line
> 436, in
> _bindDelayed
> mthd = eval(mthdString)
> File "<string>", line 0
>
> ^
> SyntaxError: unexpected EOF while parsing
This is very odd: the _bindDelayed() method should only ever be
called for any keyword event bindings; i.e., keyword args such as
OnHit=somemethod or OnGotFocus=someothermethod. The code only looks
for kwargs that start with 'On', so I don't understand how
'VirtualFields' would have ever made it into that list. Please show me
the code that creates the bizobj in question.
-- Ed Leafe
_______________________________________________
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]