lad1337 / XDM-main-plugin-repo

The official main Plugin Repository
19 stars 11 forks source link

Need help with plugins #11

Closed Nonobis closed 10 years ago

Nonobis commented 10 years ago

Hi lad1337,

Could you help me with my first plugin ? I don't understand why it's not working.

For now, i am only trying to make 'Test Connection' working.

i have this error, but i can't find why it's not working ...Could you help me ?

Error during _testConnection of TokyoToshokan(Default) Error: _testConnection() takes exactly 2 arguments (1 given)

Traceback (most recent call last): File "/volume1/@appstore/xdm/share/XDM/xdm/web/ajax.py", line 73, in pluginCall status, data, msg = p_function(*fn_args) TypeError: _testConnection() takes exactly 2 arguments (1 given)

Traceback: Traceback (most recent call last): File "/volume1/@appstore/xdm/share/XDM/xdm/web/ajax.py", line 73, in pluginCall status, data, msg = p_function(*fn_args) TypeError: _testConnection() takes exactly 2 arguments (1 given)

My Repo : https://github.com/Nonobis/XDM-Nonobis-Plugins-repo

Torf commented 10 years ago

Hi, I can help you ;) You miss the _testConnection.args = ["argname"]

Come at https://gitter.im/Torf/XDM-French-Touch, it would be easier to speak about it :p

(En plus on peut se parler en Français, je vois que t'es en France sur ton profil ^^)

edit: my mistake, it's your arg name that is bad, put the name that is in the config ("size_min").