[albatross-users] al-input type="image": internal bug/obscured traceback??
Cameron Blackwood
korg at darkqueen.org
Tue Jul 1 15:42:05 EST 2003
Halp...
Hi, Im playing with clickable images in 1.10pre1 and I try:
----------- vv -----------
<html>
<head><title>Oh crap</title></head>
<body>
<al-form method="post">
<al-input type="image" name="pos" src="http://10.0.0.254/cgi-bin/20/map_image" whitespace>
<al-input type="submit" name="submit" value="never!">
</al-form>
</body>
</html>
----------- ^^ -----------
which generates some thing like (neatened):
----------- vv -----------
<html>
<head><title>Oh crap</title></head>
<body>
<form method="post" action="/cgi-bin/20">
<input type="image" src="http://10.0.0.254/cgi-bin/20/map_image" name="pos">
<input type="submit" name="submit" value="never!">
<input type="hidden" name="__albform__" value="eJzLkl9YfuDO1a06y2cGbxZYUFlbyKgRylZcmpSbWVLI5M0QylyQX1zI7M1QqgcAnRIQMw==">
</form>
</body>
</html>
----------- ^^ -----------
but when I click on the image, I get:
----------- vv -----------
Template traceback (most recent call last):
Traceback (most recent call last):
File "/usr/lib/python2.1/site-packages/albatross/app.py", line 221, in run
self.merge_request(ctx)
File "/usr/lib/python2.1/site-packages/albatross/app.py", line 301, in merge_request
ctx.merge_request()
File "/usr/lib/python2.1/site-packages/albatross/context.py", line 279, in merge_request
text = self.request.field_value('__albform__')
File "/usr/lib/python2.1/site-packages/albatross/cgiapp.py", line 26, in field_value
if isinstance(field, list):
TypeError: isinstance() arg 2 must be a class or type
----------- ^^ -----------
Which doesnt look like it's in my code at all. :-/ (or if it is, how
to I get a real traceback or some more useful feedback?)
Infact clicking on the submit button also generates the above error.
Hmmm?
Its probably a problem in my actual code, but it's kinda hard to find
it with the above traceback (which makes it look like an albatross
internal problem). ??
cheese :),
cam
--
/ `Rev Dr' cam at darkqueen.org Roleplaying, virtual goth \
< http://darkqueen.org Poly, *nix, Python, C/C++, genetics, ATM >
\ [+61 3] 9809 1523[h] skeptic, Evil GM(tm). Sysadmin for hire /
---------- Random Quote ----------
TAILFINS!! ... click ...
More information about the Albatross-users
mailing list