Package web2py :: Package gluon :: Module restricted
[hide private]
[frames] | no frames]

Module restricted

source code

This file is part of web2py Web Framework (Copyrighted, 2007-2010). Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>. License: GPL v2

Classes [hide private]
  TicketStorage
defines the ticket object and the default values of its members (None)
  RestrictedError
class used to wrap an exception that occurs in the restricted environment below.
Functions [hide private]
 
restricted(code, environment={}, layer='Unknown')
runs code in environment and returns the output.
source code
Function Details [hide private]

restricted(code, environment={}, layer='Unknown')

source code 

runs code in environment and returns the output. if an exception occurs in code it raises a RestrictedError containing the traceback. layer is passed to RestrictedError to identify where the error occurred.