tailieunhanh - Web to py enterprise web framework - p 13

REQUEST 105 Helpers 1 2 3 4 5 6 7 XML, URL, BEAUTIFY A, B, BODY, BR, CENTER, CODE, DIV, EM, EMBED, FIELDSET, FORM, H1, H3, H3, H4, H5, H6, HEAD, HR, HTML, IFRAME, IMG, INPUT, LABEL, LI, LINK, OL, UL, MENU, META, OBJECT, ON, OPTION, P, PRE, SCRIPT, SELECT, SPAN, STYLE, TABLE, TD, TAG, TBODY, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, XHTML Validators 1 2 3 4 5 IS_ALPHANUMERIC, IS_DATE, IS_DATETIME, IS_EMAIL, IS_EXPR, IS_FLOAT_IN_RANGE, IS_IMAGE, IS_INT_IN_RANGE, IS_IN_SET, IS_IPV4, IS_LENGTH, IS_LOWER, IS_MATCH, IS_NULL_OR, IS_NOT_EMPTY, IS_TIME, IS_URL, IS_UPLOAD_FILENAME, IS_LIST_OF, IS_UPPER, IS_STRONG, CLEANUP, CRYPT, IS_IN_DB, IS_NOT_IN_DB Database 1 DAL, Field For backward compatibility SQLDB=DAL and SQLField=Field. We encourage you to use the. | REQUEST 105 1 2 3 4 5 6 7 1 2 3 4 5 1 1 1 1 Helpers XML URL BEAUTIFY A B BODY BR CENTER CODE DIV EM EMBED FIELDSET FORM H1 H3 H3 H4 H5 H6 HEAD HR HTML IFRAME IMG INPUT LABEL LI LINK OL UL MENU META OBJECT ON OPTION P PRE SCRIPT SELECT SPAN STYLE TABLE TD TAG TBODY TEXTAREA TFOOT TH THEAD TITLE TR TT XHTML Validators IS_ALPHANUMERIC IS_DATE IS_DATETIME IS_EMAIL IS_EXPR IS_FLOAT_IN_RANGE IS_IMAGE IS_INT_IN_RANGE IS_IN_SET IS_IPV4 IS_LENGTH IS_LOWER IS_MATCH IS_NULL_OR IS_NOT_EMPTY IS_TIME IS_URL IS_UPLOAD_FILENAME IS_LIST_OF IS_UPPER IS_STRONG CLEANUP CRYPT IS_IN_DB IS_NOT_IN_DB Database DAL Field For backward compatibility sqldb dal and SQLField Field. We encourage you to use the new syntax dal and Field instead of the old syntax. Other objects and modules are defined in the libraries but they are not automatically imported since they are not used as often. The core API entities in the web2py execution environment are request response session cache URL HTTP redirect and T and are discussed below. A few objects and functions including Auth Crud and Service are defined in gluon and they need to be imported is necessary from import Auth Crud Service request The request object is an instance of the ubiquitous web2py class that is called which extends the Python dict class. It is basically a dictionary but the item values can also be accessed as attributes is the same as request vars Unlike a dictionary if an attribute or key does not exist it does not raise an exception. Instead it returns None. 106 THE CORE request has the following items attributes some of which are also an instance of the Storage class a object containing the cookies passed with the HTTP request. It acts like a dictionary of cookies. Each cookie is a Morsel object. a Storage object containing the environment variables passed to the controller including HTTP header variables from the HTTP .

TỪ KHÓA LIÊN QUAN