def _upload_media_queue(srv, obj):
 global UPLOAD_QUEUE
 if (srv[0] not in UPLOAD_PATHS):
  return
 for i in UPLOAD_PATHS[srv[0]]:
  path = getattr(obj, i)
  if (not path):
   continue
  UPLOAD_QUEUE.append({'srv': srv, 'id': obj.id, 'field': i})
 return

def _upload_media_queue ( srv , obj ) : global UPLOAD_QUEUE if ( srv [ 0 ] not in UPLOAD_PATHS ) : return for i in UPLOAD_PATHS [ srv [ 0 ] ] : path = getattr ( obj , i ) if ( not path ) : continue UPLOAD_QUEUE . append ( { 'srv' : srv , 'id' : obj . id , 'field' : i } ) return
add media uploads to queue .