Widget Specifications: The Tasks widget gives the admin, a list of pending tasks which require his immediate attention on the dashboard. The tasks particularly include those of 'Held Messages' (pending for moderation) and 'Subscription Requests'. A Task is added to the To - Do List for admin automatically, whenever a message sent by an user to a list is held for moderation or whenever a user makes a request for a subscription (through list-join).
That Being said, I ve made a prototype for The widget 'model' which adds a 'task' entry for the admin, whenever a new message is queued for moderation or a subscription request is made (through list-join). The model can then further be iterated to create views for postorius to generate list of all tasks to be displayed on the dashboard. Approach : The 'Tasks' model and the REST API used to query the model are implemented in the core <https://code.launchpad.net/~bhavesh-goyal093/mailman/Tasks-Core>. Methods such as create and delete are implemented in the mailmanclient <https://code.launchpad.net/~bhavesh-goyal093/mailman.client/Tasks-REST> for communicating with core's REST API. The Corresponding class for Tasks model is created in postorius <https://code.launchpad.net/~bhavesh-goyal093/postorius/Tasks-postorius> models to expose its 'objects' attribute to be used latter, for generating views for a complete list of tasks on the dashboard. Moderation tasks are added though the 'hold' chain for incoming messages and the membership command 'join' is used to make an entry for a subscription task. The Complete Prototype discussed is given in the links: https://code.launchpad.net/~bhavesh-goyal093/mailman/Tasks-Core https://code.launchpad.net/~bhavesh-goyal093/mailman.client/Tasks-REST https://code.launchpad.net/~bhavesh-goyal093/postorius/Tasks-postorius -- Regards, Bhavesh Goyal, Computer Science Engineering, IIIT Hyderabad _______________________________________________ Mailman-Developers mailing list Mailman-Developers@python.org https://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://wiki.list.org/x/QIA9