Tags:
create new tag
view all tags

Important TWiki::Func improvements

Please note that I'm not faulting anyone here for problems with Dakar's version of TWiki::Func!

Current function Better function Reason
readFile readWorkFile Function is intended to be used only in a plugin's work area
saveFile saveWorkFile Function is intended to be used only in a plugin's work area
missing deleteWorkFile Can't manage plugin-specific work area without it
missing getUsersWebname Reflect configuration variable, allows separate webs for users and the rest of Main
missing getSystemWebname Reflects configuration variable name, allows separation of TWiki toics and system configuration
missing expandConstantVariables These are values set in configure, which is why they're constants
missing readTopicMeta Shouldn't have to get the text if only meta is wanted. Allows meta to move out of the topic
missing getTopicPreferenceValue  
missing setTopicPreferenceValue Obvious. Not in yet.
missing getListOfUsers  
missing getListOfGroups  
missing lookupUser  
missing getACLs  
missing setACLs  
missing isAdmin  
missing isInGroup  

-- Contributors: MeredithLesly

Discussion

CDot wrote the bulk of the missing functions. I wrote a few of them. Not all of them may be implemented ideally, but using the API will allow plugins to continue to work whatever the implementation turns out to be.

-- MeredithLesly - 25 May 2006

SetTopicPreferenceValue; what does it do? Write a preference value into the topic? What about setWebPreferenceValue? Or is that a setTopicPreferenceValue on !WebPreferences? Is that a deliberate or accidental semantic?

-- CrawfordCurrie - 26 May 2006

Writes it in as meta data, not into the topic text

-- MeredithLesly - 26 May 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-05-26 - MeredithLesly
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.