Skip to content

Instantly share code, notes, and snippets.

@amix
Created December 16, 2015 02:21
Show Gist options
  • Save amix/48afac3fa6070128fe24 to your computer and use it in GitHub Desktop.
Save amix/48afac3fa6070128fe24 to your computer and use it in GitHub Desktop.
Generating the HTML form for querying bitmapist
from bitmapist import cohort
html_form = cohort.render_html_form(
action_url='/_Cohort',
selections1=[ ('Are Active', 'user:active'), ],
selections2=[ ('Task completed', 'task:complete'), ]
)
print html_form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment