You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.2 KiB

  1. :mod:`webnotes` --- Webnotes Module
  2. ===================================
  3. .. module:: webnotes
  4. :synopsis: Global objects that are used to generate the HTTP response
  5. Global Attributes
  6. -----------------
  7. .. data:: version
  8. 'v170'
  9. .. data:: conn
  10. The database connection :class:`webnotes.db.Database` setup by :mod:`auth`
  11. .. data:: form
  12. The cgi.FieldStorage() object (Dictionary representing the formdata from the URL)
  13. .. data:: session
  14. Global session dictionary.
  15. * session['user'] - Current user
  16. * session['data'] - Returns a dictionary of the session cache
  17. .. data:: is_testing
  18. Flag to identify if system is in :term:`Testing Mode`
  19. .. data:: add_cookies
  20. Dictionary of additional cookies appended by custom code
  21. .. data:: response
  22. The JSON response object. Default is::
  23. {'message':'', 'exc':''}
  24. .. data:: debug_log
  25. List of exceptions to be shown in the :term:`Error Console`
  26. .. data:: message_log
  27. List of messages to be shown to the user in a popup box at the end of the request
  28. Global Functions
  29. ----------------
  30. .. function:: errprint(msg)
  31. Append to the :data:`debug log`
  32. .. function:: msgprint(msg)
  33. Append to the :data:`message_log`