jashaffner wrote: tried using /turnon (turnoff, etc) for the url but then it would redirect to basicpage instead of the plugin. Does it mean that I would have to duplicate the code perhaps from indigoreqhandler.py into functions in plugin's reqhandler.py?
I may not be following you, but if turnon is the name of your plugin, then you'd implement your functionality inside the
- Code: Select all
def index(self):
handler. If you wanted multiple functions, then you'd implement them in separate handlers. So, for instance, you could name your plugin "coolplugin" and define two handlers, "turnon" and "turnoff", then call them with:
/coolplugin/turnon
and
/coolplugin/turnoff
Does that answer your question?