def on_define(tmr): definition = grab_instance(DefineEvent, tmr).definition.filler define = fr.kblookup('DefineEvent')[0] base = define.base.filler if definition.at_least(Location): global current_location definition.longitude = base.longitude definition.latitude = base.latitude definition.stay = base.stay current_location = definition # need to remove because we already remember this location under a different concept fr.forget(define.base.filler) if definition.at_least(Activity): global current_activity definition.location = base.location current_activity = definition fr.store(definition) fr.forget(define) DefineEvent.definition.filler_class = Concept #DefineEvent.base.filler_class = Concept refresh()