def parse_assigned_metadata_initial(csvfile):
 with open(csvfile, 'rb') as f:
  for record in csv.reader(f):
   module = record[0]
   if (record[12] == 'core'):
    supported_by = 'core'
   elif (record[12] == 'curated'):
    supported_by = 'committer'
   elif (record[12] == 'community'):
    supported_by = 'community'
   else:
    print ('Module %s has no supported_by field.  Using community' % record[0])
    supported_by = 'community'
    supported_by = DEFAULT_METADATA['supported_by']
   status = []
   if record[6]:
    status.append('stableinterface')
   if record[7]:
    status.append('deprecated')
   if (not status):
    status.extend(DEFAULT_METADATA['status'])
   (yield (module, {'version': DEFAULT_METADATA['version'], 'supported_by': supported_by, 'status': status}))

def parse_assigned_metadata_initial ( csvfile ) : with open ( csvfile , 'rb' ) as f : for record in csv . reader ( f ) : module = record [ 0 ] if ( record [ 12 ] == 'core' ) : supported_by = 'core' elif ( record [ 12 ] == 'curated' ) : supported_by = 'committer' elif ( record [ 12 ] == 'community' ) : supported_by = 'community' else : print ( 'Module %s has no supported_by field.  Using community' % record [ 0 ] ) supported_by = 'community' supported_by = DEFAULT_METADATA [ 'supported_by' ] status = [ ] if record [ 6 ] : status . append ( 'stableinterface' ) if record [ 7 ] : status . append ( 'deprecated' ) if ( not status ) : status . extend ( DEFAULT_METADATA [ 'status' ] ) ( yield ( module , { 'version' : DEFAULT_METADATA [ 'version' ] , 'supported_by' : supported_by , 'status' : status } ) )
fields: :0: module name :1: core :2: extras :3: category :4: supported/sla :5: committer :6: stable :7: deprecated :8: notes :9: team notes :10: notes 2 :11: final supported_by field .