Calling a python method directly from menuitem
I would like to run some python code immediately when a user clicks a menu item. Old action-related documention mentions execute as a possible action type:
"Execute: The execution of a method on the server side"
...but there seems to be no other documentation or examples. Has anyone succeeded in doing something similar?