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