def onMenuChanged(self, item):
    obj = item[-1]
    items = {
          'Update': dreamclass.format_date(obj['updated_on']),
          'Description': str(obj['comment'])
          }

    filename = obj['name']
    if os.path.exists(filename):
      items['Local'] = dreamclass.format_date(os.path.getmtime(filename))

    self.DescriptionToText(items)         
    def buildlist(self):

        list = []

        png = boxwrapper.Icon("channellist_list")

        try:
            api = boxwrapper.SendRequestAuth('ChannellistAvailable').GetList()
        except Exception as e:
            self.ErrorException(e)
            return

        for x in api:
            #print x['content_updated']
            list.append([
                str(x['cid']),
                MultiContentEntryText(
                    pos=(60, 0), size=(320, 25), font=0, text=str(x['name'])),
                MultiContentEntryText(
                    pos=(60, 22),
                    size=(320, 17),
                    font=1,
                    text=str(
                        x.get('users_name', '') + ' - ' +
                        dreamclass.format_date(x.get('content_updated', 0)))),
                MultiContentEntryPixmapAlphaTest(
                    pos=(5, 0), size=(50, 40), png=png), x
            ])

        return list
 def buildlist_ext(self, api):
   
   list = []
   
   file_outdated = boxwrapper.Icon("file_outdated")
   file_not_found = boxwrapper.Icon("file_not_found")
   png = boxwrapper.Icon("files")    
   
   for x in api:
     
     icon = png
     filename = x['name']
     if not os.path.exists(filename):
       icon = file_not_found
     else:
       pass
       #if os.path.getmtime(filename) < x['updated_on']:
       #  icon = file_outdated 
     
     list.append([
           str(x['fid']),
           MultiContentEntryText(pos=(60, 0), size=(320, 25), font=0, text=str(x['name'])),
           MultiContentEntryText(pos=(60, 22), size=(320, 17), font=1, text=dreamclass.format_date(x['updated_on'])),
           MultiContentEntryPixmapAlphaTest(pos=(5, 0), size=(50, 40), png = icon),
           x
   ])
     
   return list      
  def onMenuChanged(self, item):
    obj = item[-1]
    items = {
          'Update': dreamclass.format_date(obj.get('content_updated')),
          'Orbitals': str(obj.get('orbitals')),
          'Comment': str(obj.get('comment')),
          }

    self.DescriptionToText(items)