Changeset 100 in main


Ignore:
Timestamp:
07/19/10 09:06:31 (11 years ago)
Author:
pjoulaud
Message:

Fix a bug about user and log_in_person

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/views.py

    r93 r100  
    6565def display_global_page(request_dict): 
    6666    """ Get a request and return a dictionnary with elements common to all pages """ 
    67     log_in_person="pjoulaud" 
     67#    log_in_person="pjoulaud" 
    6868    context_dict = {'log_in_person' : request_dict.user} 
    6969    query_dict = {} 
     
    603603    request.session.update(request_dict) 
    604604    context_dict.update(var_dict) 
    605     log_in_person="pjoulaud" 
     605#    log_in_person="pjoulaud" 
    606606    context_dict.update({'log_in_person' : log_in_person}) 
    607607    if request.method == 'GET': 
     
    629629                creation_form_instance = get_creation_form(cls, request.POST) 
    630630                if creation_form_instance.is_valid(): 
    631                     user = models.User.objects.get(username=context_dict['log_in_person']) 
     631                    user = request.user 
    632632                    controller_cls = get_controller(type_name) 
    633633                    controller = PLMObjectController.create_from_form(creation_form_instance, user) 
Note: See TracChangeset for help on using the changeset viewer.