[albatross-users] complete newbie al-for / template problem....

Gregory Bond gnb at itga.com.au
Fri Sep 13 15:31:58 EST 2002


I'm a complete newbie when it comes to albatross, but the following script is 
giving errors I don't understand.

s = '''
        <table>
          <al-for iter="f" expr = "flist">
            <tr>
              <al-for iter="f2" expr = "filenames(f)">
                <td><al-value expr="f2"></td>
              </al-for>
            </tr>
          </al-for>
        </table>
'''

import albatross
ctx = albatross.SimpleContext('.')
albatross.Template(ctx, '<magic>', s).to_html(ctx)
ctx.flush_content()

Traceback (most recent call last):
  File "t.py", line 15, in ?
    albatross.Template(ctx, '<magic>', s).to_html(ctx)
  File "/usr/local/lib/python2.1/site-packages/albatross/template.py", line 283, in __init__
    raise TemplateError('%s:%s: "%s"; unexpected "%s" end tag' \
albatross.template.TemplateError: <magic>:7: "/al-for"; unexpected "al-for" end tag

I've stared and stared at this, and compared it to the popview example, and 
I'm stumped.

Sign me confused....

Greg.






More information about the Albatross-users mailing list