def gera_cpf(request): cpf = None if request.method=="POST": cpf = gera_cpfs.gera_cpf() return render_to_response("gera_cpf.html", {'cpf':cpf}, context_instance = RequestContext(request))
def gera_lista_cpf(len_lista_cpf='3'): return [gera_cpfs.gera_cpf() for i in range(int(len_lista_cpf))]