<s> import binascii <EOL> import os <EOL> import subprocess <EOL> from six import moves <EOL> from pyramid . scaffolds import PyramidTemplate <EOL> class NefertariStarterTemplate ( PyramidTemplate ) : <EOL> _template_dir = '<STR_LIT>' <EOL> summary = '<STR_LIT>' <EOL> def pre ( self , command , output_dir , vars ) : <EOL> dbengine_choices = { '<STR_LIT:1>' : '<STR_LIT>' , '<STR_LIT:2>' : '<STR_LIT>' } <EOL> vars [ '<STR_LIT>' ] = dbengine_choices [ moves . input ( """<STR_LIT>""" ) or '<STR_LIT:1>' ] <EOL> if vars [ '<STR_LIT>' ] == '<STR_LIT>' : <EOL> raise ValueError ( """<STR_LIT>""" ) <EOL> def post ( self , command , output_dir , vars ) : <EOL> os . chdir ( str ( output_dir ) ) <EOL> subprocess . call ( '<STR_LIT>' , shell = True ) <EOL> subprocess . call ( '<STR_LIT>' . format ( vars [ '<STR_LIT>' ] ) , <EOL> shell = True ) <EOL> msg = """<STR_LIT>""" <EOL> self . out ( msg ) </s>
