I'm wondering if anyone could offer me advice on debugging or fixing this
code snippet.

In the code below, get_ether returns a Scapy ethernet object.  This is an
html template.   I have other templates working on this same
project/environment which is web.py .34

I've been getting a lot of these errors:

TypeError: emit() takes exactly 2 arguments (3 given)

They're extremely difficult to debug, as they do not point to any particular
place in the template.  I've tried deleting sections of code and
reintroducing them, but I have not been able to narrow down the problem more
specifically than this section.

Thanks,

Caden

$def with (modified_list)
$# This is where the packet info is formatted for display
<table>
    <caption>Modified</caption>
    $for p in modified_list:
        <tr><td>
        $ temp = p.get_ether()
        <table><tr>
        $while temp is not None:
            <td>
            <table>
            $if temp.fields is not None:
                $ fields = temp.fields
                $for key in fields.keys():
                    $if isinstance(fields[key], list) or
isinstance(fields[key], dict) or isinstance(fields[key], tuple) or
isinstance(fields[key], types.NoneType):
                        $pass
                    $else:
                        <tr><td>$key</td><td>$str(fields[key])</td></tr>
            $if temp.payload is not None and len(temp.payload) > 0:
                $temp = temp.payload
            $else:
                $temp = None
            </table>
            </td>
        </tr></table>
        </td></tr>
</table>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to