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