def modified_pelican_run(self):
 context = self.settings.copy()
 context['filenames'] = {}
 context['localsiteurl'] = self.settings['SITEURL']
 generators = [cls(context=context, settings=self.settings, path=self.path, theme=self.theme, output_path=self.output_path) for cls in self.get_generator_classes()]
 for p in generators:
  if hasattr(p, 'generate_context'):
   p.generate_context()
 writer = self.get_writer()
 for p in generators:
  if hasattr(p, 'generate_output'):
   p.generate_output(writer)
 next((g for g in generators if isinstance(g, ArticlesGenerator)))
 next((g for g in generators if isinstance(g, PagesGenerator)))
 return context

def modified_pelican_run ( self ) : context = self . settings . copy ( ) context [ 'filenames' ] = { } context [ 'localsiteurl' ] = self . settings [ 'SITEURL' ] generators = [ cls ( context = context , settings = self . settings , path = self . path , theme = self . theme , output_path = self . output_path ) for cls in self . get_generator_classes ( ) ] for p in generators : if hasattr ( p , 'generate_context' ) : p . generate_context ( ) writer = self . get_writer ( ) for p in generators : if hasattr ( p , 'generate_output' ) : p . generate_output ( writer ) next ( ( g for g in generators if isinstance ( g , ArticlesGenerator ) ) ) next ( ( g for g in generators if isinstance ( g , PagesGenerator ) ) ) return context
runs the generators and returns the context object modified from the pelican objects run methods .