create new tag
, view all tags

ProgramsPluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on ProgramsPlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

ProgramsPlugin Dev forum


  • 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.:

<input type="submit" value=" Get a fortune cookie! "/>
<input type="hidden" name="tag" value="FORTUNE" />

You set who has the rights of pressing the button writing a usual access rule:



  • 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

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2012-12-03 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.