Univention Bugzilla – Bug 39318
Add interface for adding simple plugins for computers
Last modified: 2018-02-02 23:14:43 CET
A plugin interface is required for executing actions on a number of computers of a computerroom. Each plugin should be able to 1) define a name for an additional, dynamically loaded entry in the "more" menu 1a) the name for that entry has to be localized via the plugin 2) define a backend function that is called if the menu entry is selected in the frontend 2a) a list of the selected computers is passed to the backend 2b) the plugin should be able to get full access to the information of the computerroom backend module process (iTALC connections, IP addresses, ...)
ucs-school-umc-computerroom (6.0.4-1): r63781 | Bug #39318: add interface for computerroom plugins
code review: ok for now; is there a reason that the plugin is called for each selected computer separately? I thought it would be more efficient, if a list of selected computers is passed to the plugin. code change is also merged in UCS@school 4.1 Added changelog entries in …/appcenter.test/…/ucsschool_20151111/README_UPDATE_* REOPEN: the button text is always in english
(In reply to Sönke Schwardt-Krummrich from comment #2) > code review: ok for now; is there a reason that the plugin is called for > each selected computer separately? I thought it would be more efficient, if > a list of selected computers is passed to the plugin. We do this for all actions. From HTTP/API point of view this is (more) correct behavior and a HTTP request is fast. > code change is also merged in UCS@school 4.1 > > Added changelog entries in > …/appcenter.test/…/ucsschool_20151111/README_UPDATE_* Thank you! > REOPEN: the button text is always in english This was a bug in the plugin itself as the translation was installed into usr/share/univention-management-console/i18n/de/ instead of usr/share/locale/de/LC_MESSAGES/.
(In reply to Florian Best from comment #3) > (In reply to Sönke Schwardt-Krummrich from comment #2) > > code review: ok for now; is there a reason that the plugin is called for > > each selected computer separately? I thought it would be more efficient, if > > a list of selected computers is passed to the plugin. > We do this for all actions. From HTTP/API point of view this is (more) > correct behavior and a HTTP request is fast. Yes, but if a backend module needs all selected computers as one list, it gets complicated. Since there is currently no need for it, I'm okay with the current status. > > REOPEN: the button text is always in english > This was a bug in the plugin itself as the translation was installed into > usr/share/univention-management-console/i18n/de/ instead of > usr/share/locale/de/LC_MESSAGES/. → Verified
UCS@school 4.0 R2 v3 has been released. If this error occurs again, please use "Clone This Bug".