I was going through the Portlet Documentation, trying to learn how to create portlets. I understand that there needs to be an interface class for the portlet we want to create, but what I have a confusion over is which file should we create the interface class in.
The documentation mentioned above, asks us to create it in the
interfaces.py file within the package root, but the example code given in the documentation has the same interface class written in two files:
recent.py(the file that contains all the other classes required for creating the portlet i.e
I also checked out other codebases over at Collective that use portlets (qi.portlet.TagClouds & collective.portletalias). Most of them don't use an
interfaces.py file and have directly written the interface class in the python file with the rest of the portlet classes.
So is an
interfaces.py file not needed at all for creating portlets?