Lines Matching refs:odata
337 for odata in odatalist:
338 create_object_instance(inst, form, odata)
348 for odata in odatalist[1:]:
349 create_object_instance(inst, form, odata)
367 def create_object(form, odata): argument
368 obj = _create_object(form, odata)
369 if odata.Callback:
375 def create_object_instance(inst, form, odata): argument
376 obj = _create_object(form, odata)
377 if odata.Callback:
378 cbfunc = eval('inst.'+odata.Callback)
379 obj.set_call_back(cbfunc, odata.Argument)
380 if odata.Name:
381 exec 'inst.' + odata.Name + ' = obj\n'
385 def _create_object(form, odata): argument
386 crfunc = _select_crfunc(form, odata.Class)
387 obj = crfunc(odata.Type, odata.Box[0], odata.Box[1], odata.Box[2], \
388 odata.Box[3], odata.Label)
389 if not odata.Class in (FL.BEGIN_GROUP, FL.END_GROUP):
390 obj.boxtype = odata.Boxtype
391 obj.col1 = odata.Colors[0]
392 obj.col2 = odata.Colors[1]
393 obj.align = odata.Alignment
394 obj.lstyle = odata.Style
395 obj.lsize = odata.Size
396 obj.lcol = odata.Lcol