<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html;charset=ISO-8859-15">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<pre>Hi guys,
I was getting a weird error that I couldn't find any resources on via the
internet, so I thought I'd mention it here and its solution. You know,
help the community and all. ;)
Here's the error in its entirety; It appears after submitting a form:
Template traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python2.2/site-packages/albatross/app.py", line 142, in run
self.load_session(ctx)
File "/usr/lib/python2.2/site-packages/albatross/app.py", line 204, in load_session
ctx.load_session()
File "/usr/lib/python2.2/site-packages/albatross/context.py", line 537, in load_session
text = base64.decodestring(text)
File "/usr/src/build/87651-i386/install/usr/lib/python2.2/base64.py", line 44, in decodestring
return binascii.a2b_base64(s)
TypeError: a2b_base64() argument 1 must be string or read-only character buffer, not list
---
The problem is that you have nested forms, a la:
<al-form ...>
...
<al-form ...>
...
</al-form>
</al-form>
This took me longer than a few seconds to figure out because I had the inner form
stored in a macro, so to me it looked like this:
<al form>
...
<al-macro>
</al-form>
Hope this helps,
Gabriel Cooper.
</pre>
</body>
</html>