Skip to content

Commit

Permalink
gluino works again
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Jul 11, 2013
1 parent bc501be commit 9101928
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 4 additions & 6 deletions gluino/__init__.py
Expand Up @@ -5,18 +5,14 @@
# Bottle, Flask, Pyramid, Tornado, and other web frameworks.

import traceback
import threading

current = threading.local()
current.T = lambda message,*a,**b: str(message)

from dal import *
from template import *
from html import *
from http import redirect
from validators import *
from sqlhtml import *
from cache import Cache
from globals import current

cache = Cache(None)

Expand All @@ -25,13 +21,15 @@ class wrapper(object):
response = None
redirect = None
http_handler = None
def __init__(self,view=None,dbs=[], debug = None, response = None):
def __init__(self,view=None,dbs=[], debug = None, response = None):
self.view = view
self.dbs = dbs
if not debug is None: self.debug = debug
if not response is None: self.response = response
def __call__(self,f):
def g(*a,**b):
from globals import current
current.T = lambda s,*a,**b: str(s)
g.__name__ = f.__name__
try:
r = f(*a,**b)
Expand Down
3 changes: 2 additions & 1 deletion gluino/sqlhtml.py
Expand Up @@ -37,7 +37,8 @@
import urllib
import re
import cStringIO
from gluino import current, redirect
from globals import current
from http import redirect
import inspect

try:
Expand Down

0 comments on commit 9101928

Please sign in to comment.