In a message dated 7/26/2009 6:35:18 P.M. Eastern Daylight Time,  
[email protected] writes:

On Jul  24, 2009, at 12:48 PM, [email protected] wrote:

> ??? I don't  understand why we pass "hours" to the getBizobj function  
> -- the  the bizobj file located in the biz directory is called  
>  HoursBizobj.py. I get same error when I change "hours" to  
>  "HoursBizobj" though. How can self.Form.getBizobj find the  
>  HoursBizobj.py code based on the parameter "hours" ???


Because it is searching for objects that the form already knows   
about; it's not trying to import them from any file. Earlier in the   
process you added an instance of the HoursBizobj to the form; the form  
stores references to its bizobjs using the  bizobj DataSource as the  
key; in this case, the DataSource is  'hours'.
Aha!



> ??? biz = self.Form.getBizobj("hours")
>  AttributeError: 'NoneType' object has no attribute 'getBizobj'

That's an odd error: it says that the dropdown cannot resolve the   
'Form' property. Are you sure that this code is in the dropdown's   
afterInit(), and not in the form's afterInit()?



That's it! I had it in the form's method. 
 
Works now. On to the next bit.
 
Thanks Ed.
 
Jonathan
**************An Excellent Credit Score is 750. See Yours in Just 2 Easy 
Steps! 
(http://pr.atwola.com/promoclk/100126575x1221823322x1201398723/aol?redir=http://www.freecreditreport.com/pm/default.aspx?sc=668072&hmpgID=62&bcd=Jul
yExcfooterNO62)


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
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/[email protected]

Reply via email to