Changes between Version 4 and Version 5 of DeveloperGuidelines/Templates/CustomPages


Ignore:
Timestamp:
06/24/12 12:28:06 (9 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Templates/CustomPages

    v4 v5  
    4040import os
    4141from gluon import current
    42 from gluon.http import HTTP
    4342response = current.response
    4443path = os.path.join(current.request.folder, "private", "templates",
     
    4847   response.view = open(path, "rb")
    4948except IOError:
     49   from gluon.http import HTTP
    5050   raise HTTP("404", "Unable to open Custom View: %s" % path)
    5151}}}