Changeset 8357
- Timestamp:
- 17/06/12 15:36:43 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/HPFos/trunk/src/HPFos/view/view.py
r8355 r8357 40 40 41 41 def _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 42 48 if request.is_secure(): 43 return 'https://%s ' % (request.get_host())49 return 'https://%s/HPFos' % (request.get_host()) 44 50 else: 45 return 'http://%s' % (request.get_host()) 51 return 'http://%s/HPFos' % (request.get_host()) 52 53 54 46 55 47 56 def getHome(request):
Note: See TracChangeset
for help on using the changeset viewer.