Changes between Version 4 and Version 5 of DeveloperGuidelines/Templates/CustomPages
- Timestamp:
- 06/24/12 12:28:06 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Templates/CustomPages
v4 v5 40 40 import os 41 41 from gluon import current 42 from gluon.http import HTTP43 42 response = current.response 44 43 path = os.path.join(current.request.folder, "private", "templates", … … 48 47 response.view = open(path, "rb") 49 48 except IOError: 49 from gluon.http import HTTP 50 50 raise HTTP("404", "Unable to open Custom View: %s" % path) 51 51 }}}