Re: [webmin-devel] questions about module configuration
"Jamie Cameron" <[email protected]> Sun, 13 Apr 2014 15:59:51 -0700 (PDT)
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12/Apr/2014 12:34 marty leisner <[email protected]> wrote .. > 1) can "webmin accounts" be involved in the module configuration. > i.e. can "some accounts" which can run the module be selected to "edit" the > configuration. > Can this be on an "option by option" basis? Yes, you can control on a per-user per-module basis. In the Webmin Users module you can click on a user and then on a module name (to bring up the detailed access control page), and at the top there will be a setting to determine if the Module Config page is available or not. > 2) Are there hooks to having a "parser" when free-form text is submitted > (i.e. if you want a "number" between 10 and 100, something which "confirms" > the text field is a number and within bounds (i.e. after a submittal, a way > to run a parser function) Yes - you can create a config_info.pl file in your module, which defines functions to show and validate a config field define in config.info. See the standard "mysql" module for an example. > 3) Is there a way to hook a function after the module editor is "completed" > so "something knows" > editing has taken place (before the actions on the module are run?) > > Any examples which accomplish this (possibly in alternate ways) would be > appreciated. > > I'm thinking of having the "editor" as a webmin action so I can control it. I'm not quite sure what you mean here, sorry. - Jamie ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees - Forwarded by the Webmin development list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel