<s> from datetime import datetime <EOL> from dynamodb_mapper . model import DynamoDBModel , utc_tz , ConnectionBorg <EOL> from helper import Helper <EOL> def set_region ( region_name ) : <EOL> try : <EOL> cbi = ConnectionBorg ( ) <EOL> cbi . set_region ( region_name ) <EOL> except Exception , e : <EOL> print "<STR_LIT>" <EOL> raise <EOL> return <EOL> class MinionInstance ( DynamoDBModel ) : <EOL> h = Helper ( ) <EOL> __table__ = h . get_minion_table_name ( ) <EOL> __hash_key__ = u"<STR_LIT>" <EOL> __schema__ = { <EOL> u"<STR_LIT>" : unicode , <EOL> u"<STR_LIT>" : datetime , <EOL> u"<STR_LIT>" : bool , <EOL> u"<STR_LIT>" : unicode , <EOL> u"<STR_LIT:status>" : unicode , <EOL> } <EOL> __defaults__ = { <EOL> u"<STR_LIT>" : lambda : datetime . now ( utc_tz ) , <EOL> u"<STR_LIT>" : False , <EOL> u"<STR_LIT>" : u'<STR_LIT>' , <EOL> u"<STR_LIT:status>" : u'<STR_LIT>' , <EOL> } <EOL> class MasterInstance ( DynamoDBModel ) : <EOL> h = Helper ( ) <EOL> __table__ = h . get_master_table_name ( ) <EOL> __hash_key__ = u"<STR_LIT>" <EOL> __schema__ = { <EOL> u"<STR_LIT>" : unicode , <EOL> u"<STR_LIT>" : datetime , <EOL> u"<STR_LIT:status>" : unicode , <EOL> u"<STR_LIT>" : unicode , <EOL> } <EOL> __defaults__ = { <EOL> u"<STR_LIT>" : lambda : datetime . now ( utc_tz ) , <EOL> u"<STR_LIT:status>" : u'<STR_LIT>' , <EOL> u"<STR_LIT>" : u'<STR_LIT>' , <EOL> } </s>
