original_docstring:  Determine where to go next after creating a new household 
docstring: Determine where to go next after creating a new household
docstring_tokens: Determine where to go next after creating a new household
code: def household_create_next(r):
          """ Determine where to go next after creating a new household """
  
          post_vars = r.post_vars
          next_vars = S3Method._remove_filters(r.get_vars)
          next_vars.pop("w", None)
  
          follow_up = "followup" in post_vars and post_vars["followup"]
  
          if r.function == "area":
              if follow_up:
                  return URL(f="household",
                             args=["[id]", "person"],
                             vars=next_vars,
                             )
              else:
                  return r.url(method="",
                               component="household",
                               vars=next_vars,
                               )
          else:
              if follow_up:
                  return r.url(id="[id]",
                               component="person",
                               method="",
                               vars=next_vars,
                               )
              else:
                  return r.url(method="summary",
                               id="",
                               vars=next_vars,
                               )
code_tokens: def household_create_next ( r ) : post_vars = r . post_vars next_vars = S3Method . _remove_filters ( r . get_vars ) next_vars . pop ( "w" , None ) follow_up = "followup" in post_vars and post_vars [ "followup" ] if r . function == "area" : if follow_up : return URL ( f = "household" , args = [ "[id]" , "person" ] , vars = next_vars , ) else : return r . url ( method = "" , component = "household" , vars = next_vars , ) else : if follow_up : return r . url ( id = "[id]" , component = "person" , method = "" , vars = next_vars , ) else : return r . url ( method = "summary" , id = "" , vars = next_vars , )
short_docstring: Determine where to go next after creating a new household
short_docstring_tokens: Determine where to go next after creating a new household
comment: """ Determine where to go next after creating a new household """