(self)
Execute this generator regarding its current configuration.
Execute this generator regarding its current configuration.
Execute this generator regarding its current configuration .
def execute(self):
        """ Execute this generator regarding its current configuration.
        """
        if self.direct:
            if self.file_type == 'pdf':
                raise IOError(u"Direct output mode is not available for PDF "
                               "export")
            else:
                print self.render().encode(self.encoding)
        else:
            self.write()
            self.log(u"Generated file: %s" % self.destination_file)
def execute ( self ) : if self . direct : if self . file_type == 'pdf' : raise IOError ( u"Direct output mode is not available for PDF " "export" ) else : print self . render ( ) . encode ( self . encoding ) else : self . write ( ) self . log ( u"Generated file: %s" % self . destination_file )