intTypePromotion=1

Web to py enterprise web framework - p 15

Chia sẻ: Yukogaru Yukogaru | Ngày: | Loại File: PDF | Số trang:10

0
54
lượt xem
3
download

Web to py enterprise web framework - p 15

Mô tả tài liệu
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

EXECUTION ENVIRONMENT 125 models and controllers are designed to be executed in a prepared environment that has been prepopulated with web2py global objects (request, response, session, cache and T) and helper functions. This is necessary because Python is a statically (lexically) scoped language, whereas the web2py environment is created dynamically. web2py provides the exec environment function to allow you to access models and controllers directly. exec environment creates a web2py execution environment, loads the file into it and then returns a Storage object containing the environment. The Storage object also serves as a namespacing mechanism. Any Python file designed to be executed...

Chủ đề:
Lưu

Nội dung Text: Web to py enterprise web framework - p 15

ADSENSE
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2