portal_web.views package¶
Subpackages¶
- portal_web.views.api package
- portal_web.views.forms package
- Subpackages
- Submodules
- portal_web.views.forms.base module
- portal_web.views.forms.login_web_user module
- portal_web.views.forms.register_web_user module
- Module contents
- portal_web.views.widgets package
Submodules¶
portal_web.views.base module¶
portal_web.views.debug module¶
- class portal_web.views.debug.DebugViews(context, request)[source]¶
Bases:
ViewBase
- check_tryton(request)[source]¶
This view should display some useful information about Tryton and the database backend.
Is the PostGresDB running? Are there any databases present? Shall we recreate them now?
createdb -h 127.0.0.1 -p 5432 -U postgres -O postgres -w -E UTF-8 c3s env/bin/trytond -d c3s -c etc/trytond.conf –all env/bin/python -m doctest -v etc/scenario_master_data.txt
returns a dictionary of values to render with the template