コード例 #1
0
 def get_title(my):
     option = my.get_option('multi_publish')
     if option and my.parent_wdg:
         search_type = my.parent_wdg.search_type
         if my.get_option('search_type'):
             search_type = my.get_option('search_type')
         publish_link = PublishLinkWdg(search_type, -1,\
             icon=IconWdg.PUBLISH_MULTI,  config_base='multi_publish_pickup', text='Multi Publish')
         publish_link.set_iframe_width(70)
         return publish_link
     else:
         return super(PublishTableElement, my).get_title()
コード例 #2
0
 def get_display(my):
     
     sobject = my.get_current_sobject()
     if sobject:
         episode_code = sobject.get_value('episode_code')
         sobject = my.sobject_dict.get(episode_code)
         if not sobject:
             return ''
         publish_link = PublishLinkWdg(sobject.get_search_type(), \
             sobject.get_id(), config_base='publish_pickup')
         publish_link.set_iframe_width(70)
         return publish_link
     else:
         return ''