TODO
- run the programs in a safer environment
- use Jail to chroot the execution
- use a virtual pc (plex86, user-mode-linux, bochs?)
- enforce other resource limits (mem, disk)
- distill parts of this plugin to a general Plugin.pm object
- automatic cache of the initialization
- do a better check of the args
- show if the needed program is installed
- write a doit script to use the defined programs as form actions
--
AndreaSterbini - 06 Sep 2003
Interetsing concept. Some feedback:
- On "Patch Store.pm to get rid of <verbatim> tags during beforeSaveHandler": Plugins should have access the the whole topic content in the save callback. It is confusing to authors to get only part of the text. A Plugin should be aware of the VERBATIM
- The TopicClassification is not set, e.g. this Plugin is not yet listed in the Plugins list. When you make it listed, add your Interwiki signature in in the Plugins topic.
- The EDITTABLE button will fail if the Programs Plugin gets intalled on a site where the EditTablePlugin is not installed.
- The Plugin Info section could be moved to the end. That way it is easier to see the vital info.
--
PeterThoeny - 06 Sep 2003
I have written the
doit script and updated the package.
Now you can use any tag as a form action, e.g.:
<form action="%SCRIPTURLPATH%/doit%SCRIPTSUFFIX%/%WEB%/%TOPIC%">
<input type="submit" value=" Get a fortune cookie! "/>
<input type="hidden" name="tag" value="FORTUNE" />
</form>
You set who has the rights of pressing the button writing a usual access rule:
- Set ALLOWTOPICFORTUNE = ...
- Set DENYTOPICFORTUNE = ...
PS
- I will remove the need of the patch to Store.pm (then it could be useful to define a TWiki::Func::removeVerbatim call)
--
AndreaSterbini - 06 Sep 2003
I tried installing this plugin, successfully applying the patch and using the modified Plugins.pm with the 19 JAN 2004 release beta. However, when I go to edit any topic, the script looses my authenticated username, so my signature in the edit page is blank, and upon saving, this error is displayed:
Topic save error
During save of file System.ProgramsPlugin an error was found by the version control system. Please notify your Theoretic administrator.
/usr/bin/ci -q -l -m'none' -t-none -w'' /var/twiki/user/System/ProgramsPlugin.txt 2>&1
ci: missing author for -w option
Go back in your browser and save your changes locally.
It
is saved, however, because I can go back to the topic in the view script and see the changes have been made. Yes, I have put the 'doit' script as a 'valid-user' script in httpd.conf.
I'm hoping to find a solution to this, since I'm wanting to use it to automatically generate a cache of the dynamic content using
PublishAddOn
--
AdamTheo - 09 Apr 2004
I changed the
ModificationPolicy of this extension from
ContactAuthorFirst to
PleaseFeelFreeToModify due to inactivity. Anyone please feel free to work on this extension.
--
PeterThoeny - 2012-12-03