better dummy import for Eclipse support, thanks Anthony
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 1.99.7 (2012-04-05 18:51:12) dev
|
Version 1.99.7 (2012-04-05 19:06:57) dev
|
||||||
|
|||||||
@@ -25,11 +25,23 @@ 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
|
||||||
|
|
||||||
|
# API objects
|
||||||
request = Request()
|
request = Request()
|
||||||
response = Response()
|
response = Response()
|
||||||
session = Session()
|
session = Session()
|
||||||
cache = Cache(request)
|
cache = Cache(request)
|
||||||
T = translator(request)
|
T = translator(request)
|
||||||
|
|
||||||
|
# Objects commonly defined in application model files
|
||||||
|
# (names are conventions only -- not part of API)
|
||||||
|
db = DAL()
|
||||||
|
auth = Auth(db)
|
||||||
|
crud = Crud(db)
|
||||||
|
mail = Mail()
|
||||||
|
service = Service()
|
||||||
|
plugins = PluginManager()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user