~greg-hellings/web2py/html-py-fix

« back to all changes in this revision

Viewing changes to gluon/template.py

  • Committer: Massimo Di Pierro
  • Date: 2011-05-09 14:04:48 UTC
  • Revision ID: mdipierro@massimo-di-pierros-macbook-2.local-20110509140448-pt17orm82za5hr2v
http://code.google.com/p/web2py/issues/detail?id=261, thanks Howsec

Show diffs side-by-side

added added

removed removed

Lines of Context:
407
407
        Raise an error using itself as the filename and textual content.
408
408
        """
409
409
        raise restricted.RestrictedError(self.name, text or self.text, message)
410
 
        
 
410
 
411
411
    def _get_file_text(self, filename):
412
412
        """
413
413
        Attempt to open ``filename`` and retrieve its text.