[albatross-users] revisiting checkboxes..

Gregory Bond gnb at itga.com.au
Thu Jun 26 09:53:24 EST 2003


This is one of the things albatross does really well.

In your template, something like this:
 <al-for iter="e" expr="list_of_values()">
  <al-input type="checkbox" name="ignorelist" valueexpr="e.value()" list>
 </al-for>

Then in your page_process function, you can do
    for l in ctx.locals.ignorelist:
	# use the selected value l

I.e. the value of each selected checkbox is made available in the ctx.locals 
variable which is a vector with the same name=<> as the checkbox.

Greg.





More information about the Albatross-users mailing list