<s> '''<STR_LIT>''' <EOL> from codalab . bundles . named_bundle import NamedBundle <EOL> from codalab . common import State <EOL> from codalab . objects . metadata_spec import MetadataSpec <EOL> class UploadedBundle ( NamedBundle ) : <EOL> METADATA_SPECS = list ( NamedBundle . METADATA_SPECS ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' ) ) <EOL> METADATA_SPECS . append ( MetadataSpec ( '<STR_LIT>' , basestring , '<STR_LIT>' ) ) <EOL> @ classmethod <EOL> def construct ( cls , metadata , owner_id , uuid = None ) : <EOL> row = { <EOL> '<STR_LIT>' : cls . BUNDLE_TYPE , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT:state>' : State . READY , <EOL> '<STR_LIT>' : metadata , <EOL> '<STR_LIT>' : [ ] , <EOL> '<STR_LIT>' : owner_id <EOL> } <EOL> if uuid : <EOL> row [ '<STR_LIT>' ] = uuid <EOL> return super ( UploadedBundle , cls ) . construct ( row ) <EOL> def run ( self , bundle_store , parent_dict ) : <EOL> assert ( False ) , '<STR_LIT>' % ( self . __class__ . __name__ , ) </s>
