Merge branch 'master' of github.com:web2py/web2py
This commit is contained in:
+1
-1
@@ -640,7 +640,7 @@ def run_controller_in(controller, function, environment):
|
|||||||
ccode = getcfs(layer, filename, lambda: compile2(code, layer))
|
ccode = getcfs(layer, filename, lambda: compile2(code, layer))
|
||||||
|
|
||||||
restricted(ccode, environment, layer=filename)
|
restricted(ccode, environment, layer=filename)
|
||||||
response = current.response
|
response = environment["response"]
|
||||||
vars = response._vars
|
vars = response._vars
|
||||||
if response.postprocessing:
|
if response.postprocessing:
|
||||||
vars = reduce(lambda vars, p: p(vars), response.postprocessing, vars)
|
vars = reduce(lambda vars, p: p(vars), response.postprocessing, vars)
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import random
|
|||||||
import inspect
|
import inspect
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import re
|
import re
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
@@ -299,6 +300,7 @@ def initialize_urandom():
|
|||||||
try:
|
try:
|
||||||
os.urandom(1)
|
os.urandom(1)
|
||||||
have_urandom = True
|
have_urandom = True
|
||||||
|
if sys.platform != 'win32':
|
||||||
try:
|
try:
|
||||||
# try to add process-specific entropy
|
# try to add process-specific entropy
|
||||||
frandom = open('/dev/urandom', 'wb')
|
frandom = open('/dev/urandom', 'wb')
|
||||||
|
|||||||
Reference in New Issue
Block a user