fix local import in __init__.py

This commit is contained in:
ilvalle
2016-05-27 14:42:22 +02:00
parent cbd8c63b26
commit 8d213a5b87
+11 -11
View File
@@ -29,20 +29,20 @@ except ImportError:
"You can also download a complete copy from http://www.web2py.com." "You can also download a complete copy from http://www.web2py.com."
) )
from globals import current from .globals import current
from html import * from .html import *
from validators import * from .validators import *
from http import redirect, HTTP from .http import redirect, HTTP
from dal import DAL, Field from .dal import DAL, Field
from sqlhtml import SQLFORM, SQLTABLE from .sqlhtml import SQLFORM, SQLTABLE
from compileapp import LOAD from .compileapp import LOAD
# Dummy code to enable code completion in IDE's. # Dummy code to enable code completion in IDE's.
if 0: if 0:
from globals import Request, Response, Session from .globals import Request, Response, Session
from cache import Cache from .cache import Cache
from languages import translator from .languages import translator
from tools import Auth, Crud, Mail, Service, PluginManager from .tools import Auth, Crud, Mail, Service, PluginManager
# API objects # API objects
request = Request() request = Request()