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

Module restricted

source code

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

Classes [hide private]
  RestrictedError
class used to wrap an exception that occurs in the restricted environment below.
Functions [hide private]
 
restricted(code, environment={}, layer='Unkown')
runs code in evrionment and returns the output.
source code
Function Details [hide private]

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

source code 

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