Web to py enterprise web framework - p 11

MORE ON ADMIN 85 [EDIT] You have used the [EDIT] page already in this chapter. Here we want to point out a few more functionalities of the [EDIT] page. • If you click on any file name, you can see the content of the file with syntax highlighting. • If you click on edit, you can edit the file via a web interface. • If you click on delete, you can delete the file (permanently). • If you click on test, web2py will run tests. Tests are written by the developer using Python doctests, and each function should have its own tests. • View. | MORE ON ADMIN 85 EDIT You have used the EDIT page already in this chapter. Here we want to point out a few more functionalities of the EDIT page. If you click on any file name you can see the content of the file with syntax highlighting. If you click on edit you can edit the file via a web interface. If you click on delete you can delete the file permanently . If you click on test WEB2py will run tests. Tests are written by the developer using Python doctests and each function should have its own tests. View files have an htmledit link that allows editing the view using a web-based WYSIWYG editor. You can add language files scan the app to discover all strings and edit string translations via the web interface. If the static files are organized in folders and subfolders the folder hierarchy can be toggled by clicking on a folder name. The image below shows the output of the test page for the welcome application. A 0 0 test welcome j - _Lj hitp acfmin detaulE te5t welcome 1 - Google admm Testing application welcome Testing controller appadrniiipy . done. Function cva _in_globalenv no doctests Function insert no doctests Function get_table no doctests Function download no doctests Function indec no doctests Function get_database no doctests Function state no doctests Function select no doctests Function get query no doctests Function csv no doctests The image below show the languages tab for the welcome application. 86 OVERVIEW The image below shows how to edit a language file in this case the it Italian language for the welcome application. MORE ON ADMIN 87 shell If you click on the shell link under the controllers tab in EDIT WEB2py will open a web based Python shell and will execute the models for the current application. This allows you to interactively talk to your application. crontab Also under the controllers tab in EDIT there is a crontab link. By clicking on this link you will be able to edit the WEB2py crontab file. This follows the same .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
157    94    1    26-06-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.