def get_pep0_page(commit=True):
 pep0_content = convert_pep0()
 (pep0_page, _) = Page.objects.get_or_create(path='dev/peps/')
 (pep0000_page, _) = Page.objects.get_or_create(path='dev/peps/pep-0000/')
 for page in [pep0_page, pep0000_page]:
  page.content = pep0_content
  page.content_markup_type = 'html'
  page.title = 'PEP 0 -- Index of Python Enhancement Proposals (PEPs)'
  page.template_name = PEP_TEMPLATE
  if commit:
   page.save()
 return (pep0_page, pep0000_page)

def get_pep0_page ( commit = True ) : pep0_content = convert_pep0 ( ) ( pep0_page , _ ) = Page . objects . get_or_create ( path = 'dev/peps/' ) ( pep0000_page , _ ) = Page . objects . get_or_create ( path = 'dev/peps/pep-0000/' ) for page in [ pep0_page , pep0000_page ] : page . content = pep0_content page . content_markup_type = 'html' page . title = 'PEP 0 -- Index of Python Enhancement Proposals (PEPs)' page . template_name = PEP_TEMPLATE if commit : page . save ( ) return ( pep0_page , pep0000_page )
using convert_pep0 above .