# # Collective Knowledge (generate AE table) # # See CK LICENSE.txt for licensing details # See CK COPYRIGHT.txt for copyright details # # Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net # cfg={} # Will be updated by CK (meta description of this module) work={} # Will be updated by CK (temporal data) ck=None # Will be updated by CK (initialized CK kernel) # Local settings ############################################################################## # Initialize module def init(i): """ Input: {} Output: { return - return code = 0, if successful > 0, if error (error) - error text if return > 0 } """ return {'return':0} ############################################################################## # generate table with AE members per year def generate(i): """ Input: { (output_txt_file) - if !='', generate text file for a given conference (conf_id) - record names for this conf } Output: { return - return code = 0, if successful > 0, if error (error) - error text if return > 0 } """ import copy s='' tags_desc=i.get('tags_desc','') otf=i.get('output_text_file','') conf_id=i.get('conf_id','') tt='' s+='
Name: | Organization: | ' x='' y='style="background-color:#efefef"' highlight1=False for q in tags_desc: if highlight1: x1=x highlight1=False else: x1=y highlight1=True tg=q['id'] name=q['name'] s+=''+name+' | ' s+='
'+n+' | '+o+' | ' highlight1=False for q in tags_desc: if highlight1: x1=x highlight1=False else: x1=y highlight1=True tg=q['id'] name=q['name'] sx='' if tg in t: sx='*' s+=''+sx+' | ' s+='