parameters: (xls_file, user, id_string=None)
docstring: Creates or updates a DataDictionary with supplied xls_file,
          user and optional id_string - if updating
docstring_summary: Creates or updates a DataDictionary with supplied xls_file,
          user and optional id_string - if updating
docstring_tokens: Creates or updates a DataDictionary with supplied xls_file user and optional id_string - if updating
function: def publish_xls_form(xls_file, user, id_string=None):
      """ Creates or updates a DataDictionary with supplied xls_file,
          user and optional id_string - if updating
      """
      # get or create DataDictionary based on user and id string
      if id_string:
          dd = DataDictionary.objects.get(
              user=user, id_string=id_string)
          dd.xls = xls_file
          dd.save()
          return dd
      else:
          return DataDictionary.objects.create(
              user=user,
              xls=xls_file
          )
function_tokens: def publish_xls_form ( xls_file , user , id_string = None ) : # get or create DataDictionary based on user and id string if id_string : dd = DataDictionary . objects . get ( user = user , id_string = id_string ) dd . xls = xls_file dd . save ( ) return dd else : return DataDictionary . objects . create ( user = user , xls = xls_file )