Changeset 8357 for mauRepo/HPFos


Ignore:
Timestamp:
17/06/12 15:36:43 (7 years ago)
Author:
mnagni
Message:

Temporarily hardcoded "HPFos" for the host URL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/HPFos/trunk/src/HPFos/view/view.py

    r8355 r8357  
    4040 
    4141def _buildHostURL(request): 
     42    ''' 
     43        Cannot hardcode "HPFos" in the URL. This has to be fixed later 
     44    '''     
     45    if 'localhost' in request.get_host(): 
     46        return 'http://%s' % (request.get_host()) 
     47     
    4248    if request.is_secure(): 
    43         return 'https://%s' % (request.get_host()) 
     49        return 'https://%s/HPFos' % (request.get_host()) 
    4450    else: 
    45         return 'http://%s' % (request.get_host()) 
     51        return 'http://%s/HPFos' % (request.get_host()) 
     52 
     53 
     54 
    4655 
    4756def getHome(request): 
Note: See TracChangeset for help on using the changeset viewer.