On Tue, Dec 30, 2008 at 3:42 PM, Norman Khine <nor...@khine.net> wrote: > Hi, > I have an updated version at http://paste.lisp.org/display/72843 > Thanks for the advice, the code is much smaller and leaner than the first > attempt.
The level2-4 code could all be consolidated into a loop: for levelName in 'level2 level3 level4'.split(): level = context.get_form_value(levelName) if level is None: break title = '%s: %s' % (title, level) Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor