<s> from webtools . management . base import Command <EOL> from webtools . database import Base <EOL> class ShellCommand ( Command ) : <EOL> """<STR_LIT>""" <EOL> def take_action ( self , options ) : <EOL> if not options . settings : <EOL> raise RuntimeError ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> from webtools . application import Application <EOL> app = Application ( self . cmdapp . conf ) <EOL> imported_objects = { '<STR_LIT>' : app } <EOL> import code <EOL> try : <EOL> import readline <EOL> except ImportError : <EOL> pass <EOL> else : <EOL> import rlcompleter <EOL> readline . set_completer ( rlcompleter . Completer ( imported_objects ) . complete ) <EOL> readline . parse_and_bind ( "<STR_LIT>" ) <EOL> code . interact ( local = imported_objects ) </s>
