framework Package¶
framework Package¶
Demo sequencer web application framework
-
class
galaxy.webapps.demo_sequencer.framework.DemoWebAPITransaction(environ, app, webapp)[source]¶ Bases:
galaxy.webapps.demo_sequencer.framework.DemoWebTransaction
-
class
galaxy.webapps.demo_sequencer.framework.DemoWebTransaction(environ, app, webapp)[source]¶ Bases:
galaxy.web.framework.base.DefaultWebTransactionEncapsulates web transaction specific state for the Demo application (specifically the user’s “cookie”)
-
fill_template(filename, **kwargs)[source]¶ Fill in a template, putting any keyword arguments on the context.
-
fill_template_string(template_string, context=None, **kwargs)[source]¶ Fill in a template, putting any keyword arguments on the context.
Convenience method for getting a session cookie
-
get_message()[source]¶ Convenience method for getting the ‘message’ element of the template context.
Convenience method for setting a session cookie
-
set_message(message, type=None)[source]¶ Convenience method for setting the ‘message’ and ‘message_type’ element of the template context.
-
show_error_message(message, refresh_frames=[], use_panels=False, active_view='')[source]¶ Convenience method for displaying an error message. See show_message.
-
show_form(form, header=None, template='form.mako', use_panels=False, active_view='')[source]¶ Convenience method for displaying a simple page with a single HTML form.
-
show_message(message, type='info', refresh_frames=[], cont=None, use_panels=False, active_view='')[source]¶ Convenience method for displaying a simple page with a single message.
- type: one of “error”, “warning”, “info”, or “done”; determines the
- type of dialog box and icon displayed with the message
- refresh_frames: names of frames in the interface that should be
- refreshed when the message is displayed
-
show_ok_message(message, refresh_frames=[], use_panels=False, active_view='')[source]¶ Convenience method for displaying an ok message. See show_message.
-
show_warn_message(message, refresh_frames=[], use_panels=False, active_view='')[source]¶ Convenience method for displaying an warn message. See show_message.
-
template_context¶ Property that replaces itself with a calculated value the first time it is used.
-
-
class
galaxy.webapps.demo_sequencer.framework.DemoWebUITransaction(environ, app, webapp, session_cookie)[source]¶ Bases:
galaxy.webapps.demo_sequencer.framework.DemoWebTransaction