My goal is it to write a plugin, that automates the print composition. The idea is that you choose the scale and the paper size and based on that a map with legend, north arrow and block title is produced. The legend should only show the active layers. The finished map should not be automatically saved. Instead the print composer window should open so that the user can change things manually afterwards. I read the PyGIS cookbook and the PyGIS Programmer's Guide however there wasn't much information about the automation of the print composer.
What I want to know is, if it is generally possible to write a plugin that does this stuff? If it is possible, where do I find more information about automating and programming the print composer? Or does anyone know a tool that does something similar so I don't have to write my own tool?