#NEWLINE# def initialize_backend( self ) : #NEWLINE# #INDENT# simpledbconn = simpledb . SimpleDB ( str ( self . aws_access_key_id ) , str ( self . aws_secret_access_key ) ) #NEWLINE# domain_name = self . domain #NEWLINE# if ( not simpledbconn . has_domain ( domain_name ) ) : #NEWLINE# #INDENT# simpledbconn . create_domain ( domain_name ) #NEWLINE# #UNINDENT# simpledbconn . encoder = FieldEncoder ( InfrastructureNode . fields ) #NEWLINE# domain = simpledb . Domain ( domain_name , simpledbconn ) #NEWLINE# domain . model = InfrastructureNode #NEWLINE# class SimpleDBMeta ( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# SimpleDBMeta . connection = self #NEWLINE# SimpleDBMeta . domain = domain #NEWLINE# InfrastructureNode . Meta = SimpleDBMeta