parameters: (self)
docstring: Execute this generator regarding its current configuration.
docstring_summary: Execute this generator regarding its current configuration.
docstring_tokens: Execute this generator regarding its current configuration .
function: 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)
function_tokens: 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 )