• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

I ran into the problem that I wanted to reuse much of the code in lib/TWiki/Form.pm but wanted to base the form on some text rather than something pulled from a topic (more specifically, I wanted to initialize the form with the syntax of EditTablePlugin).

In order to do so (without copying most of the code in TWiki::Form::new, I needed a way of passing the field definitions into the creator function.

The attached patch to lib/TWiki/Form.pm accomplishes this, without impacting the rest of the system. Could update the core code by this?

Before I update I shall let this stew for a while...

Looks reasonable. It's a minor refactoring, after all.


Adding POD update. -- TW

4.1.0 released


Summary More flexible Form creator
ReportedBy TWiki:Main.ThomasWeigert
Codebase 4.0.4
SVN Range TWiki-4.1, Tue, 19 Sep 2006, build 11536
AppliesTo Engine

Priority Normal
CurrentState Closed

Checkins 11579 11580
TargetRelease minor
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatformdef_patch Form.pm.formdef_patch r1 manage 1.6 K 2006-09-21 - 18:03 UnknownUser  
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r9 - 2007-01-16 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback