Yes I do. E.g. this one:
def countriesSelectBox():
print "<select id=\"country\">"
print "<option value=\"\"></option>"
i1=0; numberOfContinents = len(continents)
while (i1<numberOfContinents):
print "<optgroup label=\"" + continents[i1][0] + "\">"
i2=0; countries = continents[i1][1]; numberOfCountries =
len(countries)
while (i2<numberOfCountries):
print "<option value=\"" + countries[i2][1] + "\">" +
countries[i2][0] +"</option>"
i2+=1
print "</optgroup>"
i1+=1
print "</select>"
selectCountry = countriesSelectBox()
I know I need to read som more manuals, but how could I possibly amend
it?
On Oct 19, 11:18 pm, "Aaron Swartz" <[EMAIL PROTECTED]> wrote:
> Are you using a function that prints its output instead of returning it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---