Ray Mosteller

Contact: http://qwiki.usc.edu/keckwiki/RayMosteller

See also: - Creole Wiki Markup Language - HelpOnCreoleSyntax in ver 1.7


My MoinMoin wiki webpages

http://qwiki.usc.edu/keckwiki/ - Keck Qwiki Wiki - using MoinMoin to teach medical students at the Keck School of Medicine of USC

PIBBS Faculty images

Please Note: The University of Southern California (USC) is NOT the same as UCLA. <:(


MoinMoin Help Pages

HelpOnImages - needs creating

HelpOnAttachments - needs creating

HelpOnAddLink - needs creating

HelpOnLinking - related to above (but not comprehensive)

HelpOnSubscribing - howto subscribe/unsubscribe to moinmoin webpages

HelpOnUserPreferences - includes succinct description about subscribing

HelpForUsers

HelpOnUserHandling


MoinMoin Source Code

http://hg.moinmo.in/ - on Mercurial repositories

Current stable release is 1.5.8


Interesting MoinMoin people - (if/when I need help)

see MoinCoreTeamGroup.


Please add your questions, answers or comments to the discussion below


I'm looking for help in using regex to subscribe to pages under preferences. I know how to use regex in a variety of programming languages but I don't know the MoinMoin rules for the subscribe function under preferences. I can't find any useful information on MoinMoin help or by searching the internet using Google. There should be a few simple rules and examples given with (or linked from) the preferences page. Nicht var?

I would be happy to contribute these to the community if I only knew how to do it!

For example, here are my 'subscribed pages' on a MoinMoin wiki:

_onwiki_:MainPage
_onwiki_:QuestionsAndAnswers/BiochemQuestions/EnergyMetabolism
_onwiki_:QuestionsAndAnswers/BiochemQuestions/LipidMetabolism
_onwiki_:QuestionsAndAnswers/BiochemQuestions/CholesterolMetabolism
_onwiki_:AllAnnouncements
_onwiki_:AllAssignments
_onwiki_:AllBlogs
_onwiki_:AllStudentHomepages
_onwiki_:AllFacultyHomepages
_onwiki_:QuestionsAndAnswers
_onwiki_:RayMosteller/MyMessages

How do I convert these to a regex for

  1. All pages on the wiki

    .*
  2. All pages under QuestionsAndAnswers?

    QuestionsAndAnswers/.*

More specific, these will subscribe you to all pages on the FARM or all pages on the FARM under QuestionsAndAnswers. If you want to subscribe only to onwiki pages, use:

_onwiki_:.*
_onwiki_:QuestionsAndAnswers/.*

A few simple examples should answer these questions.


Thank you, Nir, your examples are extremely helpful. I'm sure from your explanation that I can fix my immediate problem. However, I still think it is important to provide a general solution that can help all 'new' users who want to use regex to subscribe to MoinMoin wiki pages in their preferences. I don't think the current MoinMoin documentation provides this and I'm willing to help write this in a way that all 'new' users can understand. For example, at this point, I'm not sure what the abbreviation 'FARM' means. I think I understand the concept of a 'wiki farm'. All abbreviations in documentation need explanation (e.g. link to a page explaining). In addition, I still don't understand what the prefix '_onwiki_:' means. What does it tell the user? This is not intuitively obvious. I think a few words of explanation and a few examples (in Help) would greatly improve the understanding of howto use these very useful features of MoinMoin.

I also understand that I can experiment with subscribe / unsubscribe, but I think that this is an unnecessary (and painful) way to figure out the general rules by trial and error. Every user should not have to go through this exercise. A few simple rules and examples should greatly simplify the development cycle for all.

Again, I'm willing to attempt to write this documentation for the community if only I knew the general 'rules'. Does it exist anyplace in writing other than in the Python code? With greatest regards, RayMosteller


Sorry about FARM - I meant wiki farm. I wanted to emphasize that when you subscribe to a page without the wikiname prefix (FrontPage vs wikione:FrontPage), then you subscribe to both wikione:FrontPage and wikitwo:FrontPage.

About _onwiki_ - this the interwiki name of your wiki. If you check the wiki configuration file (e.g. wikiconfig.py) you will probably find the line interwikiname = '_onwiki_'.

I don't remember any docs for this and you are invited to write some. The related code is isSubscribedTo method in MoinMoin/user.py. There are no tests for this in 1.5; I don't know about 1.6 or 1.7. In 1.6, there are some examples on the bottom of UserPreferences.

The most important thing about regex is that your regex is enclosed within "^" and "$" - so if you write "foo.*" it becomes "^foo.*$" which matches any page that starts with foo. If you write "foo", it becomes "^foo$" which matches only "foo". The regex syntax is the Python regex syntax.

The docs should be task based: you should explain the most common task first and then more info for those that needs deeper understanding. I guess that the most common task is subscribing to all pages, then subscribing to all sub pages of some page. Other cases are usually better handled through the Subscribe/Unsubscribe link on each page.


I'm leaving town for the week and will have to work on this when I get back.


<!> Ray: there is no such thing as _onwiki_: this is the interwiki name of YOUR wiki, not some magic value in MoinMoin. If it is not clear, open your wiki wikiconfig.py and look for the value of interwikiname.


Thanks, Nir, I think I have fixed this in the HelpOnSubscribing page now. As you can see, I put a note on the page to admin that I feel the page is ready for distribution. I'm certainly willing to continue working on this or allow other users to improve. I used the name 'HelpOnSubscribing' because it seems to follow the syntax of other help pages. However, I think that other names would also be acceptable (HelpOnSubscribe, HowToSubscribe, etc.).


How do I find the Python code (user.py, wikiconfig.py, etc.) in a MoinMoin wiki in which I am a user but not an Admin. Specifically the wiki is http://keck.on-wiki.net.


I've moved the HelpOnSubscribing page to the MoinMaster wiki.

Unfortunately, the on-wiki.net wikimaster was not helpful. I was hoping to read the MoinMoin Python source code without downloading the complete tarball, etc. I assumed that the source would be available somewhere in a web-accessible form. That would be a nice thing to be able to browse the source for the current and previous versions.

You can browse the code here. Current release is 1.5.8

Tip: to get fast response about moin development, join the developers on #moin-dev channel in irc.freenode.net.

Thanks, I'm working on that but haven't figured out yet howto 'join' the irc channel. Sounds like fun, getting help with MoinMoin around-the-clock (24/7).


I tried to edit this line in HelpOnSubscribing in order to activate the acl (remove one # sign):

##acl MoinPagesEditorGroup:read,write,delete,revert All:read

but was told that I don't have Admin rights to do this. I assume that someone in the AdminGroup will do this at some point.

This is OK. Someone removed the line.


Why is Mind-Touch dot com blocked by MoinMoin? Can I unblock this on my own wiki: keck.on-wiki.net? I guess I could use a tinyurl, e.g. MindTouch Deki. http://mind-touch.com/

Thanks, Thomas. Try it without the hyphen. http://mindtouch dot com

Yes, it is listed on BadContent. Stuff there is usually added because it was seen in spammings. -- ThomasWaldmann 2008-08-09 19:01:06

Thanks. I forgot the term BadContent and looked under BadWords instead (perhaps these should be synonyms). It's too bad about MindTouch because they seem to be a legitimate company with a good product. Perhaps there was some early users that did some spamming or else the founder of MindTouch pissed off some of the MoinMoin creators(?). I'd give them a second chance but I'm hesitant to change the BadContent page on the moin master. I think someone higher up should do that.


My wiki admin recently upgraded to 1.7. This messed up all my named links. Thus, I created a solution for myself and published it here:

removed

Do you think I should add this as a help page on the moin master?

p.s. Is there an option for the wiki admin to enable an automatic update of syntax when upgrading versions of MoinMoin?

(!) There are migration scripts included with every moin release. One just has to read docs/CHANGES and docs/README.migration (there are also some additionals docs linked from our MoinMoinDownload page in case this is not enough). The syntax changes done from 1.5 to 1.6 are 99% handled by those scripts (and they need to be far more complex than using fulltext search and replace). Please point your wiki admin at them. -- ThomasWaldmann 2008-08-12 06:42:44


removed


In a previous version of Moin (pre 1.6 or 1.7), I was able to create a list of pages with a single line of wiki code (???). Each page simply needed to include a link at the bottom in order to be included in the list. Moin took care of the details. This seems to have disappeared with the introduction of the Creole markup syntax. Here's an example (http://keck.on-wiki.net/TeamProjects) where each team of students needed to only include the proper link. Is there a way to create the same type of automatic list generation with the Creole syntax?

Here's a student page with the link:

http://keck.on-wiki.net/IcmGroup12

I'm sorry I can't explain this better.

Thanks, I should have guessed this syntax. The owner of on-wiki.net (Jure Vrščaj) obviously didn't run the migration scripts when he moved and upgraded the wiki software. I looked for FullSearch under Help but couldn't find anything. Seems like it should be included in HelpOnLists. Maybe I'll take a stab at writing HelpOnAutomaticLists. What's the difference between FullSearch and FullSearchCached ?


CategoryHomepage

MoinMoin: RayMosteller (last edited 2010-06-30 22:41:11 by moodle)