Table Of Contents

Previous topic

auth — Authentication

Next topic

doclist — Doclist Module

This Page

webnotes — Webnotes Module

Global Attributes

webnotes.version
‘v170’
webnotes.conn
The database connection webnotes.db.Database setup by auth
webnotes.form
The cgi.FieldStorage() object (Dictionary representing the formdata from the URL)
webnotes.session

Global session dictionary.

  • session[‘user’] - Current user
  • session[‘data’] - Returns a dictionary of the session cache
webnotes.is_testing
Flag to identify if system is in Testing Mode
webnotes.add_cookies
Dictionary of additional cookies appended by custom code
webnotes.response

The JSON response object. Default is:

{'message':'', 'exc':''}
webnotes.debug_log
List of exceptions to be shown in the Error Console
webnotes.message_log
List of messages to be shown to the user in a popup box at the end of the request

Global Functions

webnotes.errprint(msg)
Append to the debug log
webnotes.msgprint(msg)
Append to the message_log