Contents
RecommendPage
PURPOSE
This macro is used to recommend a page to another wiki user.
VERSION HISTORY
Action |
Author |
Designed for MoinMoin Release... |
|
1.9 |
|||
1.8.2 |
|||
1.7 |
|||
1.6 |
|||
1.5.1 |
|||
1.3.4 |
CALLING SEQUENCE
http://localhost:8080/WikiName?action=RecommendPage
Example
http://localhost:8080/WikiName?action=RecommendPage
WikiName A WikiName is a word that uses capitalized words. WikiName''''''s automagically become hyperlinks to the WikiName's page. What exactly is an uppercase or lowercase letter is deter ... -- ReimarBauer 2005-04-19 17:55:39
PROCEDURE
You get an input mask to enter the username of the one where you like to send the recommendation. This is then stored on a page named WikiName/RecommendedPage as an wiki itemlist with the link and the first five lines in plain text. At the end your user SIG is written. A new entry is always written on top of the page.
The person is informed by an email notification about the changes
If you don't enter a name the recommendation is done to your name.
The macro ShortText of MacroMarket is used to show the text of the recommendation if the wiki user is allowed to read the text by given acls.
Please remove the version number from the filename.
MODIFICATION HISTORY
@copyright: 2005 by Reimar Bauer (R.Bauer@fz-juelich.de) @license: GNU GPL, see COPYING for details. Version: 1.3.4-1 2005-04-19 : Version 1.3.4-2 acl line on top of recommendation is set for a valid user/RecommendedPage to WikiName:admin,read,write,delete All:read,write otherwise for All:read,write If the page user/RecommendedPage already exist acl right given on that page are used. output changed similiar to the search output. 2005-04-21 : Version 1.3.4-3 output changed into calling ShortText() e.g. * ["RulesForUnzip"] [[ShortText(RulesForUnzip)]] ... -- ReimarBauer [[DateTime(2005-05-02T19:58:37Z)]] it is also checked by now if acls are enabled in the config 2005-09-02 : Version 1.3.5-4 from SubscribeTo by Raphael Bossek learned to add an subscription for the email notification for a user before the new recommendation is written to the file. This means the user gots informed by an email if mail is enabled to the wiki. 2005-09-05 : Version 1.3.5-5 isSubscribedTo from user replaced because it could not destinguish between subpage and page. My implementation does not understand regular expressions at the moment so this gives by using regular expressions one extraline in the config. 2005-09-07 : Version 1.3.5-6 text box changed to a selection menu for the user names (sorted by name) 2005-09-08 : Version 1.3.5-7 bug fix: spaces in html are different in browsers in some browser no selction did not give the user name The space I used in the OPTION entry seems to make the problem 2005-10-31 : Version 1.3.5-8 multiple selection added no acl rights are set on a new recomendation page acls on an existing recommendation page are not overwritten by this change non admin users could use this function too. code changed by a version request to be useable with 1.5.0 too 2006-02-03 : Version 1.5.1-9 1.3 compatible code removed bug with wrong counted bad user fixed 2009-04-01 : Version 1.8.2-12 Extended for groups by Anita Ludermann
Discussion
Would it be possible to send a recommendation to a group, i.e. to UsersGroup or AdminGroup? -- CarstenLemmen 2008-09-08 07:53:30 Yes - get the groups.
Yes, now it is with the new version 1.8.2-12 -- AnitaLudermann 2009-04-03 10:47:39
I am not able to use this macro with moin193. i dont know what i am doing wrong. I putted this macro D:\Program Files\Moin\TestWiki\data\plugin\action. When i call this RecommendPage action then getting following error. Have someone any idea.
here is complete Traceback TraceBack.html
please use http://hg.moinmo.in/moin/extensions/file/tip/data/plugin/action/RecommendPage.py
- I have no idea why you get an indenting error in the 1.8 version
I don't think that it is because of moin-193. I suppose that i am missing something.
-- Tinku 2010-10-29 08:46:18
Thankyou this new mentioned version (http://hg.moinmo.in/moin/extensions/file/tip/data/plugin/action/RecommendPage.py ) is working with moin193.
-- Tinku 2010-10-29 09:51:30