#NEWLINE# def import_command( self ) : #NEWLINE# #INDENT# 'Constructs the PostgreSQL db import command' #NEWLINE# command = 'psql -d {databasename} -f - --username={adminuser}' #NEWLINE# if self . database_host : #NEWLINE# #INDENT# command = ( '%s --host={host}' % command ) #NEWLINE# #UNINDENT# if self . database_port : #NEWLINE# #INDENT# command = ( '%s --port={port}' % command ) #NEWLINE# #UNINDENT# if settings . POSTGRESQL_RESTORE_SINGLE_TRANSACTION : #NEWLINE# #INDENT# command += ' --single-transaction ' #NEWLINE# #UNINDENT# return ( '%s <' % command )