Re: how to import variable from view to form

2009-05-15 Thread Yang ChengFu
Hi Urukay, Thanks a lot, it works! - *YÁNG ChéngF**u(* *Unix Administrator * *Gameloft** ***-- Global Network Services (GNS)** ** ***mailto:chengfu.y...@gameloft.com** **(** +86(10)8260-7820 Jabber:chengfu.y...@bei.gameloft.org urukay a écrit : > Don't know if i understand you right,

Re: how to import variable from view to form

2009-05-15 Thread urukay
; > def contact(request): > variable_from_views=get_list_from_ldap(user_input_variable) > form = ContactForm() > return render_to_response('contact_form.html', {'form': form}) > > > > > > --

Re: how to import variable from view to form

2009-05-15 Thread Yang ChengFu
Anybody can help me out! Thanks! --- Yang a écrit : > Hello, > > I'd like to import the variables from view to form, but after trying > several ways, I failed. > > For example: user01 inputs his username/password(apache > authentication) to login, then based on this username, function, > get_list_

how to import variable from view to form

2009-05-14 Thread Yang
Hello, I'd like to import the variables from view to form, but after trying several ways, I failed. For example: user01 inputs his username/password(apache authentication) to login, then based on this username, function, get_list_from_ldap, will get a relative list from LDAP. Different username