-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear all,
I have the following issue, with this code: base.kid - ----8<----- <head py:match="item.tag == 'head'"> <?python title=item.find('title') if title is not None: item.remove(title) title = title.text ?> <title> Kieser Training Customer Portal <span py:strip="" py:if="title"> - ${title}</span> </title> <link rel="shortcut icon" href="kieser-icon.png" /> <link rel="stylesheet" href="base.css" title="Base styles" type="text/css" /> <script type="text/javascript" src="js/MochiKit/MochiKit.js" /> <script type="text/javascript"> var loading = new Image(); loading.src = "loading.gif"; </script> <div py:for="node in item" py:replace="node" /> </head> - ------8<------ if I compile this and open my page in the web browser I get the following error: File "/usr/local/lib/python2.6/dist-packages/kieser/stat/web/base.py", line 67, in _match_func title=item.find('title') AttributeError: 'Element' object has no attribute 'find' As far as I can tell the code that has been generated is faulty. You cannot use .find on the list that has been generated. Did anyone else have this problem? Thanks, Steve - -- The Hackerspace in Luxembourg! syn2cat Hackerspace.lu A.S.B.L. 11, rue du Cimetière | L-8018 Strassen http://www.hackerspace.lu xmpp:steveclem...@jabber.hackerspaces.org mailto:st...@hackerspace.lu .lu: +352 20 333 55 65 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwASFoACgkQPSE8bmHRmNVH2ACaA3u+5zmQYSD2/6kf4sciuNJx 0cEAoLBNrdHC2XhwpN3rdctRJzmrC3Pj =znR5 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ _______________________________________________ kid-template-discuss mailing list kid-template-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kid-template-discuss