def onInit( self ):
		log( "> DialogVideoInfo.onInit()" )
		title = self.info['title']
		image = self.info['image']
		updated = self.info['updated']
		content = self.info['content']
		author = self.info['author']

		self.getControl( 4 ).setLabel( title )
		self.getControl( 5 ).setText( content )
		self.getControl( 6 ).setImage( image )
		self.getControl( 21 ).setLabel( updated )
		self.getControl( 23 ).setLabel( author )
		log( "< DialogVideoInfo.onInit()" )
Example #2
0
    def onInit(self):
        log("> DialogVideoInfo.onInit()")
        title = self.info['title']
        image = self.info['image']
        updated = self.info['updated']
        content = self.info['content']
        author = self.info['author']

        self.getControl(4).setLabel(title)
        self.getControl(5).setText(content)
        self.getControl(6).setImage(image)
        self.getControl(21).setLabel(updated)
        self.getControl(23).setLabel(author)
        log("< DialogVideoInfo.onInit()")
	def show_item(self):
		log("> show_item()")
		ok = False

		try:
			continuation = self.args.continuation
			# load items file and get reqd item using google_id
			item = loadFileObj(ITEMS_FILENAME % continuation)[self.args.google_id]

			# download image if not exist (may not have been fetched when item list made as per settings)
			item['image'] = get_thumbnail(item['image'])

			# show item
			DialogVideoInfo(DialogVideoInfo.XML_FILENAME,HOME_DIR, "Default", False ).ask(item)
			ok = True
		except:
			handleException(self.__class__.__name__)

		log("< show_item()  ok=%s" % ok)
		return ok
Example #4
0
    def show_item(self):
        log("> show_item()")
        ok = False

        try:
            continuation = self.args.continuation
            # load items file and get reqd item using google_id
            item = loadFileObj(ITEMS_FILENAME %
                               continuation)[self.args.google_id]

            # download image if not exist (may not have been fetched when item list made as per settings)
            item['image'] = get_thumbnail(item['image'])

            # show item
            DialogVideoInfo(DialogVideoInfo.XML_FILENAME, HOME_DIR, "Default",
                            False).ask(item)
            ok = True
        except:
            handleException(self.__class__.__name__)

        log("< show_item()  ok=%s" % ok)
        return ok
	def __init__(self, *args, **kwargs ):
		self.__dict__.update( kwargs )
		log( "_Info() self.__dict__=%s" % self.__dict__ )
Example #6
0
 def __init__(self, *args, **kwargs):
     self.__dict__.update(kwargs)
     log("_Info() self.__dict__=%s" % self.__dict__)