def do_organization_info(ava):
 if (ava is None):
  return None
 org = md.Organization()
 for (dkey, (ckey, klass)) in ORG_ATTR_TRANSL.items():
  if (ckey not in ava):
   continue
  if isinstance(ava[ckey], basestring):
   setattr(org, dkey, [_localized_name(ava[ckey], klass)])
  elif isinstance(ava[ckey], list):
   setattr(org, dkey, [_localized_name(n, klass) for n in ava[ckey]])
  else:
   setattr(org, dkey, [_localized_name(ava[ckey], klass)])
 return org

def do_organization_info ( ava ) : if ( ava is None ) : return None org = md . Organization ( ) for ( dkey , ( ckey , klass ) ) in ORG_ATTR_TRANSL . items ( ) : if ( ckey not in ava ) : continue if isinstance ( ava [ ckey ] , basestring ) : setattr ( org , dkey , [ _localized_name ( ava [ ckey ] , klass ) ] ) elif isinstance ( ava [ ckey ] , list ) : setattr ( org , dkey , [ _localized_name ( n , klass ) for n in ava [ ckey ] ] ) else : setattr ( org , dkey , [ _localized_name ( ava [ ckey ] , klass ) ] ) return org
description of an organization in the configuration is a dictionary of keys and values .