allfro/canari — pull request #22 by cmlh (2014-01-23 08:02:48+00:00)
Title: Fix "TypeError: __init__() takes at least 5 arguments (4 given)"

A small amendment of http://www.canariproject.com/4-3-transform-development-quick-start/ to reduce the time that the reader allocates to the uptake of "*Transform Development Quick-Start*"

Operating System is Mac OSX.

Working Directory is "mypackage/src"

```
$canari debug-transform mypackage.transforms.helloworld Phil
Traceback (most recent call last):
File
"/Library/Python/2.6/site-packages/canari-1.0-py2.6.egg/canari/commands/debug_transform.py",
line 92, in run
) if get_transform_version(m.dotransform) == 2 else m.dotransform(
TypeError: __init__() takes at least 5 arguments (4 given)

$ sudo easy_install sploitego
Password:
Searching for sploitego
[SNIP]
Finished processing dependencies for sploitego

$ canari debug-transform mypackage.transforms.helloworld
Phil
%50
D:This was pointless!
%100
`- MaltegoTransformResponseMessage:
`- Entities:
[SNIP]
```
**I have not tested these changes against a reStructuredText markup renderer aside from GitHub (which doesn't markup *.. warning::* correctly)**