From fpiat at klabs.be Fri May 1 06:19:19 2009 From: fpiat at klabs.be (Frank Lin PIAT) Date: Fri, 01 May 2009 12:19:19 +0200 Subject: [Moin-user] User hompages & Page titles In-Reply-To: <1234547515.13980.25.camel@server.firma.waldmann-edv.de> References: <95da30590902130701q6f7bd5ccy52e90198d9780bb6@mail.gmail.com> <1234547515.13980.25.camel@server.firma.waldmann-edv.de> Message-ID: <1241173159.28392.116.camel@solid.paris.klabs.be> On Fri, 2009-02-13 at 18:51 +0100, Thomas Waldmann wrote: > > 1. MoinMoin assumes that every user will want to have a homepage > > at /UserName. I want user homepages to live at /People/UserName > > instead. [..] > What you can do to keep your wiki namespace clean from user homepages, > is to use user_homewiki = u'InterWikiNameOfOtherWiki', moin will then > link to that wiki and put user homepages there. That at least works for > the automatically generated links as on RecentChanges or info action, > maybe even with SIG (try). > > It won't work if someone just mentions JoeDoe, of course. I am interested in that feature. I have made some tests, with two overlapping wikis (like wiki.debian.org and wiki.debian.org/User) my farmconfig.py looks like: wikis = [ ("user-wiki", r"[^/]*/User.*"), ("main-wiki", r".*"), ] But there's a problem with such overlap: Most user won't notice that it's two different wikis. Typically, if a user wants to link to a main wiki page from their own wiki page, they are very likely to write [[SamplePage]] instead of [[DebianWiki:SamplePage]]. The first link would point to wiki.debian.org/User/SamplePage (instead of wiki.debian.org/SamplePage). Do you have a hint for such overlapping problem? Franklin From fpiat at klabs.be Fri May 1 07:10:21 2009 From: fpiat at klabs.be (Frank Lin PIAT) Date: Fri, 01 May 2009 13:10:21 +0200 Subject: [Moin-user] Error message for Macro input errors. Message-ID: <1241176221.28392.121.camel@solid.paris.klabs.be> Hello, I am writing a macro which needs some arguments. I wonder if it is possible to detect if the page is being previewed? I would display error message in preview mode, but silently ignore errors when the page is viewed by a regular user? Thanks, Franklin From tw-public at gmx.de Fri May 1 10:40:13 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Fri, 01 May 2009 16:40:13 +0200 Subject: [Moin-user] Error message for Macro input errors. In-Reply-To: <1241176221.28392.121.camel@solid.paris.klabs.be> References: <1241176221.28392.121.camel@solid.paris.klabs.be> Message-ID: <1241188813.21767.5.camel@x300> > I am writing a macro which needs some arguments. I wonder if it is > possible to detect if the page is being previewed? > I would display error message in preview mode, but silently ignore > errors when the page is viewed by a regular user? Interesting idea, but after thinking about it, I don't think one really wants that. An error should show as long as until it is fixed. Otherwise some not carefully looking (or not previewing at all) editor will introduce errors and noone will see and fix them. From tw-public at gmx.de Fri May 1 10:49:56 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Fri, 01 May 2009 16:49:56 +0200 Subject: [Moin-user] User hompages & Page titles In-Reply-To: <1241173159.28392.116.camel@solid.paris.klabs.be> References: <95da30590902130701q6f7bd5ccy52e90198d9780bb6@mail.gmail.com> <1234547515.13980.25.camel@server.firma.waldmann-edv.de> <1241173159.28392.116.camel@solid.paris.klabs.be> Message-ID: <1241189396.21767.7.camel@x300> > > > 1. MoinMoin assumes that every user will want to have a homepage > > > at /UserName. I want user homepages to live at /People/UserName > > > instead. > [..] > > What you can do to keep your wiki namespace clean from user homepages, > > is to use user_homewiki = u'InterWikiNameOfOtherWiki', moin will then > > link to that wiki and put user homepages there. That at least works for > > the automatically generated links as on RecentChanges or info action, > > maybe even with SIG (try). > > > > It won't work if someone just mentions JoeDoe, of course. > > I am interested in that feature. I have made some tests, with two > overlapping wikis (like wiki.debian.org and wiki.debian.org/User) > > my farmconfig.py looks like: > wikis = [ > ("user-wiki", r"[^/]*/User.*"), > ("main-wiki", r".*"), > ] You do not need that user-wiki. > But there's a problem with such overlap: Most user won't notice that > it's two different wikis. If you just do not do a user-wiki, it will be same wiki. :) From fpiat at klabs.be Fri May 1 11:03:00 2009 From: fpiat at klabs.be (Frank Lin PIAT) Date: Fri, 01 May 2009 17:03:00 +0200 Subject: [Moin-user] Error message for Macro input errors. In-Reply-To: <1241188813.21767.5.camel@x300> References: <1241176221.28392.121.camel@solid.paris.klabs.be> <1241188813.21767.5.camel@x300> Message-ID: <1241190180.28392.182.camel@solid.paris.klabs.be> On Fri, 2009-05-01 at 16:40 +0200, Thomas Waldmann wrote: > > I am writing a macro which needs some arguments. I wonder if it is > > possible to detect if the page is being previewed? > > I would display error message in preview mode, but silently ignore > > errors when the page is viewed by a regular user? > > Interesting idea, but after thinking about it, I don't think one really > wants that. An error should show as long as until it is fixed. Otherwise > some not carefully looking (or not previewing at all) editor will > introduce errors and noone will see and fix them. That would have been useful, for the situation where the macro can degrade properly (i.e ignore the value and/or provide a reasonable default). For example, my macro builds a sidebar with some standard user information in Debian http://wiki-debian-net.klabs.be/User/JohnDoe source is: http://wiki-debian-net.klabs.be/-plugin/macro/DebianPortfolio.py The macro accepts a lot of optional parameters. Actually I have implemented a built-in help, that can be displayed with: <> see the bottom of http://wiki-debian-net.klabs.be/DebianPortfolioMacro So for example: * All fields are optional. Still I would print the help when all the fields are empty. * The email is important, but not compulsory. * I might want to add some other important fields later... And warn the user when he/she edits the page, but not visitors. Regards, Franklin From fpiat at klabs.be Fri May 1 11:18:12 2009 From: fpiat at klabs.be (Frank Lin PIAT) Date: Fri, 01 May 2009 17:18:12 +0200 Subject: [Moin-user] User hompages & Page titles In-Reply-To: <1241189396.21767.7.camel@x300> References: <95da30590902130701q6f7bd5ccy52e90198d9780bb6@mail.gmail.com> <1234547515.13980.25.camel@server.firma.waldmann-edv.de> <1241173159.28392.116.camel@solid.paris.klabs.be> <1241189396.21767.7.camel@x300> Message-ID: <1241191092.28392.190.camel@solid.paris.klabs.be> On Fri, 2009-05-01 at 16:49 +0200, Thomas Waldmann wrote: > > > > 1. MoinMoin assumes that every user will want to have a homepage > > > > at /UserName. I want user homepages to live at /People/UserName > > > > instead. > > [..] > > > What you can do to keep your wiki namespace clean from user homepages, > > > is to use user_homewiki = u'InterWikiNameOfOtherWiki', moin will then > > > link to that wiki and put user homepages there. That at least works for > > > the automatically generated links as on RecentChanges or info action, > > > maybe even with SIG (try). > > > > > > > I am interested in that feature. I have made some tests, with two > > overlapping wikis (like wiki.debian.org and wiki.debian.org/User) > > > > my farmconfig.py looks like: > > wikis = [ > > ("user-wiki", r"[^/]*/User.*"), > > ("main-wiki", r".*"), > > ] > > You do not need that user-wiki. [..] > If you just do not do a user-wiki, it will be same wiki. :) I messed up ;) (Initially, I wanted to serve the wiki homepages as another wiki, for license and performance reasons... then I changed my mind but I didn't reverted the farmwiki.py... weird idea). Thanks, Franklin From mike.freeman.3832 at gmail.com Mon May 4 09:36:17 2009 From: mike.freeman.3832 at gmail.com (Michael Freeman) Date: Mon, 4 May 2009 08:36:17 -0500 Subject: [Moin-user] Please help me get AutoAdmin working correctly. Message-ID: I have added "from MoinMoin.security.autoadmin import SecurityPolicy" to wikiconfig.py, cleared the cache and restarted Apache2 I have created page "QF/R190-1/2009/AdminGroup" with the line " * user" in it. However, when user tries to create the subpage "QF/R190-1/2009/4", using template "CustomerComplaint-Template", she cannot, and the error message is "You can't change ACLs on this page since you have no admin rights on it!" However, user can create a blank page at "QF/R190-1/2009/4". CustomerComplain-Template starts with "#acl ME,user:read,write,revert,admin,delete All:read,write." By default, only members of the TrustedGroup are allowed "write" access. This template therefore has to set "All:read,write" to give users who aren't in the TrustedGroup the ability to update the page. I think I've followed the directions at http://moinmo.in/HelpOnAutoAdmin . But it's not working, so presumably I haven't. What have I missed? Or misunderstood? TIA, Mike -- Michael J. Freeman Reserve, LA From mike.freeman.3832 at gmail.com Mon May 4 09:46:12 2009 From: mike.freeman.3832 at gmail.com (Michael Freeman) Date: Mon, 4 May 2009 08:46:12 -0500 Subject: [Moin-user] Internet Explorer doesn't save sub-page links correctly in GUI editor. Message-ID: What I want to achieve is for a user to be able to create a subpage using the GUI editor. Using Firefox (3.0.10), the user can use the "link" button in the GUI editor to add a link to "/subpage", and then save the changes. Under Internet Explorer (7.0.5730.11), the user can create the "/subpage" link, but when she saves the changes, the link becomes "subpage". It loses the "/" that makes it a subpage. This is bad because the subpage really needs to be under the parent page, to avoid name conflicts. Unfortunately, the user is on a thin client, so she is stuck with whatever browser the head office decides on and installs. Is there anyway to fix this on the moinmoin side? Or is it a problem endemic to IE? -- Michael J. Freeman Reserve, LA From jdd at dodin.org Tue May 5 12:45:55 2009 From: jdd at dodin.org (jdd for http://tldp.org) Date: Tue, 05 May 2009 18:45:55 +0200 Subject: [Moin-user] docbook and static questions Message-ID: <4A006D43.1030400@dodin.org> Hello, We, at the Linux documentation project, like pretty much MoinMoin wiki. We have however some problems. * All our traditional toolchain is based on docbook. The export to docbook macro don't fit all our needs and we are mostly writers, not programmers, so help on fixing this macro would be nice (I wrote to the macro author two ours ago :-). see also http://wiki.tldp.org/Exporting_to_docbook * We have a number of mirrors all around the world, and we plan to have a static wiki version mirrored together with the html one (see tldp.org for our mirrorred site our wiki is at wiki.tldp.org) We are working on this, but may be some of you could help us a little or a lot :-) thanks jdd -- jdd for the Linux Documentation Project http://wiki.tldp.org http://www.dodin.net http://www.facebook.com/profile.php?id=1412160445 From szybalski at gmail.com Tue May 5 14:13:18 2009 From: szybalski at gmail.com (Lukasz Szybalski) Date: Tue, 5 May 2009 13:13:18 -0500 Subject: [Moin-user] wget moinmoin page with attachments Message-ID: <804e5c70905051113k24c9e2f3s193699e5faf30ce2@mail.gmail.com> Hello, I've created an extensive page, with many attachments (pdf, xls, txt, etc) I would like to download this page using wget so I have a backup copy of it in an easy readable form, with all the attachments. I cannot get it to work. wget -r -l 2 -p http://example.com/mypage The main page gets downloaded but not the attachments. Is there a special way I should be using wget to get the files? Do you have a command that works? Thanks, Lucas From dcramer at motive.com Tue May 5 15:24:37 2009 From: dcramer at motive.com (David Cramer) Date: Tue, 5 May 2009 14:24:37 -0500 Subject: [Moin-user] wget moinmoin page with attachments In-Reply-To: <804e5c70905051113k24c9e2f3s193699e5faf30ce2@mail.gmail.com> References: <804e5c70905051113k24c9e2f3s193699e5faf30ce2@mail.gmail.com> Message-ID: MoinMoin blocks spiders from getting images. You can change the user agent: wget -U 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5' -r -l 2 -p http://example.com/mypage Also, see this bug for more information: http://moinmo.in/MoinMoinBugs/SpidersCanOnlyViewPages David > -----Original Message----- > From: Lukasz Szybalski [mailto:szybalski at gmail.com] > Sent: Tuesday, May 05, 2009 1:13 PM > To: Moin > Subject: [Moin-user] wget moinmoin page with attachments > > Hello, > I've created an extensive page, with many attachments (pdf, > xls, txt, etc) > > I would like to download this page using wget so I have a > backup copy of it in an easy readable form, with all the attachments. > > I cannot get it to work. > > wget -r -l 2 -p http://example.com/mypage > > The main page gets downloaded but not the attachments. > Is there a special way I should be using wget to get the files? > > Do you have a command that works? > > Thanks, > Lucas > > -------------------------------------------------------------- > ---------------- > The NEW KODAK i700 Series Scanners deliver under ANY > circumstances! Your production scanning environment may not > be a perfect world - but thanks to Kodak, there's a perfect > scanner to get the job done! With the NEW KODAK i700 Series > Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > From szybalski at gmail.com Tue May 5 15:29:54 2009 From: szybalski at gmail.com (Lukasz Szybalski) Date: Tue, 5 May 2009 14:29:54 -0500 Subject: [Moin-user] wget moinmoin page with attachments In-Reply-To: References: <804e5c70905051113k24c9e2f3s193699e5faf30ce2@mail.gmail.com> Message-ID: <804e5c70905051229i59ef115by6417d602932b161@mail.gmail.com> On Tue, May 5, 2009 at 2:24 PM, David Cramer wrote: > MoinMoin blocks spiders from getting images. You can change the user > agent: > > wget -U 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) > Gecko/2008120122 Firefox/3.0.5' -r -l 2 -p http://example.com/mypage That does not work: HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: `xxxxxx/mywiki/xxxxx' [ <=> ] 245,564 955K/s in 0.3s 2009-05-05 14:28:02 (955 KB/s) - `xxxxxxxx/mywiki/xxxxxxx' saved [245564] FINISHED --2009-05-05 14:28:02-- Downloaded: 1 files, 240K in 0.3s (955 KB/s) It did not download any pdf, xls, csv, txt files on the wiki page. Thanks, Lucas > > Also, see this bug for more information: > > http://moinmo.in/MoinMoinBugs/SpidersCanOnlyViewPages > > David > >> -----Original Message----- >> From: Lukasz Szybalski [mailto:szybalski at gmail.com] >> Sent: Tuesday, May 05, 2009 1:13 PM >> To: Moin >> Subject: [Moin-user] wget moinmoin page with attachments >> >> Hello, >> I've created an extensive page, with many attachments (pdf, >> xls, txt, etc) >> >> I would like to download this page using wget so I have a >> backup copy of it in an easy readable form, with all the attachments. >> >> I cannot get it to work. >> >> ?wget -r -l 2 -p http://example.com/mypage >> >> The main page gets downloaded but not the attachments. >> Is there a special way I should be using wget to get the files? >> >> Do you have a command that works? >> >> Thanks, >> Lucas >> >> -------------------------------------------------------------- >> ---------------- >> The NEW KODAK i700 Series Scanners deliver under ANY >> circumstances! Your production scanning environment may not >> be a perfect world - but thanks to Kodak, there's a perfect >> scanner to get the job done! With the NEW KODAK i700 Series >> Scanner you'll get full speed at 300 dpi even with all image >> processing features enabled. http://p.sf.net/sfu/kodak-com >> _______________________________________________ >> Moin-user mailing list >> Moin-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/moin-user >> > -- How to create python package? http://lucasmanual.com/mywiki/PythonPaste DataHub - create a package that gets, parses, loads, visualizes data http://lucasmanual.com/mywiki/DataHub From mike.freeman.3832 at gmail.com Tue May 5 21:33:34 2009 From: mike.freeman.3832 at gmail.com (Michael Freeman) Date: Tue, 5 May 2009 20:33:34 -0500 Subject: [Moin-user] Please help me get AutoAdmin working correctly. Message-ID: I have added "from MoinMoin.security.autoadmin import SecurityPolicy" to wikiconfig.py, cleared the cache and restarted Apache2 I have created page "QF/R190-1/2009/AdminGroup" with the line " * user" in it. However, when user tries to create the subpage "QF/R190-1/2009/4", using template "CustomerComplaint-Template", she cannot, and the error message is "You can't change ACLs on this page since you have no admin rights on it!" However, user can create a blank page at "QF/R190-1/2009/4". CustomerComplaint-Template starts with "#acl ME,user:read,write,revert,admin,delete All:read,write." By default, only members of the TrustedGroup are allowed "write" access. This template therefore has to set "All:read,write" to give users who aren't in the TrustedGroup the ability to update the page. I think I've followed the directions at http://moinmo.in/HelpOnAutoAdmin . But it's not working, so presumably I haven't. What have I missed? Or misunderstood? TIA, Mike -- Michael J. Freeman Reserve, LA From rb.proj at gmail.com Wed May 6 04:54:18 2009 From: rb.proj at gmail.com (R.Bauer) Date: Wed, 06 May 2009 10:54:18 +0200 Subject: [Moin-user] wget moinmoin page with attachments In-Reply-To: <804e5c70905051229i59ef115by6417d602932b161@mail.gmail.com> References: <804e5c70905051113k24c9e2f3s193699e5faf30ce2@mail.gmail.com> <804e5c70905051229i59ef115by6417d602932b161@mail.gmail.com> Message-ID: Lukasz Szybalski schrieb: > On Tue, May 5, 2009 at 2:24 PM, David Cramer wrote: >> MoinMoin blocks spiders from getting images. You can change the user >> agent: >> >> wget -U 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) >> Gecko/2008120122 Firefox/3.0.5' -r -l 2 -p http://example.com/mypage > > > That does not work: > > HTTP request sent, awaiting response... 200 OK > Length: unspecified [text/html] > Saving to: `xxxxxx/mywiki/xxxxx' > > [ <=> ] 245,564 955K/s in 0.3s > > 2009-05-05 14:28:02 (955 KB/s) - `xxxxxxxx/mywiki/xxxxxxx' saved [245564] > > FINISHED --2009-05-05 14:28:02-- > Downloaded: 1 files, 240K in 0.3s (955 KB/s) > > > It did not download any pdf, xls, csv, txt files on the wiki page. > > Thanks, > Lucas > Is your wiki public? Does it require a user name for authentication? Do you have to specify recursive for wget that it follows links? There are some alternatives: * If you want only a copy of one/few pages with all attachments you may be interested in using the action package pages. That package could be installed into you desktop wiki. * Use "Save" of your browser. cheers Reimar > > >> Also, see this bug for more information: >> >> http://moinmo.in/MoinMoinBugs/SpidersCanOnlyViewPages >> >> David >> >>> -----Original Message----- >>> From: Lukasz Szybalski [mailto:szybalski at gmail.com] >>> Sent: Tuesday, May 05, 2009 1:13 PM >>> To: Moin >>> Subject: [Moin-user] wget moinmoin page with attachments >>> >>> Hello, >>> I've created an extensive page, with many attachments (pdf, >>> xls, txt, etc) >>> >>> I would like to download this page using wget so I have a >>> backup copy of it in an easy readable form, with all the attachments. >>> >>> I cannot get it to work. >>> >>> wget -r -l 2 -p http://example.com/mypage >>> >>> The main page gets downloaded but not the attachments. >>> Is there a special way I should be using wget to get the files? >>> >>> Do you have a command that works? >>> >>> Thanks, >>> Lucas >>> >>> -------------------------------------------------------------- >>> ---------------- >>> The NEW KODAK i700 Series Scanners deliver under ANY >>> circumstances! Your production scanning environment may not >>> be a perfect world - but thanks to Kodak, there's a perfect >>> scanner to get the job done! With the NEW KODAK i700 Series >>> Scanner you'll get full speed at 300 dpi even with all image >>> processing features enabled. http://p.sf.net/sfu/kodak-com >>> _______________________________________________ >>> Moin-user mailing list >>> Moin-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/moin-user >>> > > > From tw at waldmann-edv.de Wed May 6 07:55:21 2009 From: tw at waldmann-edv.de (Thomas Waldmann) Date: Wed, 06 May 2009 13:55:21 +0200 Subject: [Moin-user] wget moinmoin page with attachments In-Reply-To: References: <804e5c70905051113k24c9e2f3s193699e5faf30ce2@mail.gmail.com> Message-ID: <1241610921.25697.26.camel@server.firma.waldmann-edv.de> > wget -U 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) > Gecko/2008120122 Firefox/3.0.5' -r -l 2 -p http://example.com/mypage wget -U xxx ... (just if you'ld like to type less :) From fpiat at klabs.be Sun May 10 08:26:11 2009 From: fpiat at klabs.be (Frank Lin PIAT) Date: Sun, 10 May 2009 14:26:11 +0200 Subject: [Moin-user] Rotating event-log file Message-ID: <1241958371.20284.391.camel@solid.paris.klabs.be> Hello, I have written a script to rotate the event-log, preserving the previous period's log entries. Therefore, the statistics are never empty after log rotation. It can also be used to rotate the edit-log every 3 months. FYI, I have stressed it. It can "lose" 1 log line if you have more that 20 hits per seconds. (ie. about 70000 hits per hour !) Comments are welcome. [I know, it's NTRWTSTP: Not the right way to solve the problem. But I want a solution for moin 1.7, not a patch for 1.9] Franklin #!/bin/sh # # rotate-and-keep.sh - Rotate a log file, keeping the last period. # This script is useful when you want to rotate a file # periodically, but you want the "current" log file to always # contain two periods. (sometime needed for statistics) # Copyright 2009 Franklin Piat # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . version=0.1 # LIMITATION # # Unique lines only # Use this script on logfiles that don't produce duplicate line # (i.e Each line MUST contain date and time, at least) # # Disk Space # The partition must have free space to make a copy of the last logfile # # ,--[ KNOWN BUG / DISCLAIMER ]------------------------------------------. # | | # | The traditional way to rotate a log file is to move it. Which is | # | guaranteed to be atomic and immediate. | # | | # | ** THIS SCRIPT ISN'T ATOMIC AND ISN'T IMMEDIATE ** | # | You may lose some new lines, appended while the rotation occurs. | # | (because it has to copy and manipulate the log file. Typically if | # | you have more than 10 lines of log per seconds... that is > 100000 | # | page hit per day!) | # `----------------------------------------------------------------------' LOGFILE=event-log ARCHIVE=event-log.$(date +%F_%T) TMPFILE=event-log.tmp LASTLINE=lastline set -e pivotline=0 if [ -s "$LASTLINE" -a -s "$LOGFILE" ]; then pivotline=$(grep -s -n -F -f $LASTLINE $LOGFILE | tail -n 1 | cut -d ":" -f 1) #DEBUG: printf "Rotate line #$pivotline: " >&2 ; cat "$LASTLINE" > &2 fi if [ "$pivotline" -gt 1 ] ; then pivotline=$(( $pivotline + 1 )) mv "$LOGFILE" "$TMPFILE" if sed -n $pivotline,\$p "$TMPFILE" > "$ARCHIVE" ; then cp "$ARCHIVE" "$TMPFILE" ## TEST: for test purpose, you can insert a sleep here to ## simulate the copy of large log file. #sleep 1 # Try to catch new lines (that occured during the "cp" above) if [ -s "$LOGFILE" ]; then cat "$LOGFILE" 2>/dev/null | tee -a "$ARCHIVE" >> "$TMPFILE" fi mv "$TMPFILE" "$LOGFILE" tail -n 1 "$ARCHIVE" > "$LASTLINE" else #Restore the logfile in case of error (especially disk-space!) echo "LOG ROTATION ABORTED: probably insufficient disk-space." >&2 mv "$TMPFILE" "$LOGFILE" exit 1 fi else if [ -s "$LOGFILE" ]; then cp "$LOGFILE" "$ARCHIVE" tail -n 1 "$ARCHIVE" > "$LASTLINE" else cp /dev/null "$LASTLINE" fi fi # # To test/stress this script you can generate a fake log using # while true; do date +%s.%N | tee -a event-log >> log; sleep 0.01 ; done From cmcamerino at gmail.com Sun May 10 12:41:09 2009 From: cmcamerino at gmail.com (Carlo Camerino) Date: Mon, 11 May 2009 00:41:09 +0800 Subject: [Moin-user] MoinMoin Wiki Highlighting Message-ID: <37cc2c090905100941m8b23eaod4ad3c76840a4ceb@mail.gmail.com> Hi, Is there anyway that I can highlight wiki code the same way as gmail does when using rich formatting. or the same way as any email client that can highlight code? Thanks Carlo From rb.proj at gmail.com Tue May 12 02:53:28 2009 From: rb.proj at gmail.com (R.Bauer) Date: Tue, 12 May 2009 08:53:28 +0200 Subject: [Moin-user] MoinMoin Wiki Highlighting In-Reply-To: <37cc2c090905100941m8b23eaod4ad3c76840a4ceb@mail.gmail.com> References: <37cc2c090905100941m8b23eaod4ad3c76840a4ceb@mail.gmail.com> Message-ID: Carlo Camerino schrieb: > Hi, > > Is there anyway that I can highlight wiki code the same way as gmail > does when using rich formatting. > or the same way as any email client that can highlight code? > > > Thanks > > Carlo The pygments highlight parser does. see parser market. The highlight parser becomes also implemented into 1.9 cheers Reimar From raphael.marvie at lifl.fr Tue May 12 08:01:28 2009 From: raphael.marvie at lifl.fr (Raphael MARVIE) Date: Tue, 12 May 2009 14:01:28 +0200 Subject: [Moin-user] Testing a macro Message-ID: <4A096518.5070808@lifl.fr> Dear all, I am in the process of writing macros in order to extends MoinMoin and avoids the addition of an external server for one of my applications. I am trying as much as I can to use Test Driven Development when writing code, but I have not find information regarding the testing of macros. I am especially interested in the mocking of the first parameter of macro. Does such support exist? Am I supposed to use the _test_template.py from the MoinMoin sources? But then, what is the difference between the request and the macro objects? If it does not exists, could you provide me hints at how such a base test case class should behave in order for me to have an attempt at providing it? For the moment, I do not think of an alternative to the use of the twill framework in order to (a) deploy the macro to a wiki and (b) send HTTP requests in order to test the macro behavior. But, this approach cost more than "unit tests" in terms of setup and execution. Thanks a lot. Regards, r.m. -- Raphael Marvie, PhD http://www.lifl.fr/~marvie/ Ma?tre de Conf?rences / Associate Professor @ LIFL -- USTL Directeur du Master Informatique Professionnel sp?cialit? IAGL Head of Master's in Software Engineering +33 3 20 33 59 51 From cmcamerino at gmail.com Tue May 12 11:55:09 2009 From: cmcamerino at gmail.com (Carlo Camerino) Date: Tue, 12 May 2009 23:55:09 +0800 Subject: [Moin-user] Copy And Paste HTML Content Into GUI Mode Message-ID: <37cc2c090905120855u2b39369fn89c55186b6821a0e@mail.gmail.com> Hi, one of the things I would like to do in moin is to copy and paste html script coming from a web page. For example when I open this web page https://glassfish.dev.java.net/downloads/v2.1-b60e.html I copy its contents via the web browser and then paste into my personal wiki server. The problem is I get different kinds of errors from moin afterwards. I am able to see the preview perfectly as it is in the text editor However, when I try to press the preview button or submit, that's where the errors start. In gmail, you can paste this and still retain the formatting. of the text based how you copied it. In twiki I can also do this and see the page exactly as it is. Is there any special macro for this? in moin i get the following error. process_inline: Don't support glassfish_install_dir element If you want to report a bug, please save this page and attach it to your bug report. * Show debugging information * Report bug * Visit MoinMoin wiki From eclig at gmx.net Thu May 14 08:39:35 2009 From: eclig at gmx.net (Emilio Lopes) Date: Thu, 14 May 2009 12:39:35 +0000 (UTC) Subject: [Moin-user] =?utf-8?q?Problem_with_mod=5Fwsgi?= Message-ID: I'm the admin of a MoiMoin-Wiki (currently 1.8) in our company's intranet. We had the problem that small images as attachments (file size, not picture size) did not appear at all. Also, apparently unrelated, drawings did not work either: there was some error message in the java console that it was "expecting a string in line 1" or something like that. I thought it was a problem with apache and tried turning off the options EnableMMAP and EnableSendfile (known to cause such symptoms) to no effect. A small pure html test page showed that apache has no trouble serving small files. It was clearly a MoinMoin problem, but astounding no other MoinUsers are noting it! It turned out it is indeed a bug in mod_wsgi: http://code.google.com/p/modwsgi/issues/detail?id=132 Upgrading to version 2.5 (from 2.3) solved the problem. I'm writing this here for the benefit of other MoinUsers having the same problem. Maybe one could document it somewhere in the MoinMoinWiki; I couldn't find an appropriate page for this. Em?lio From tw-public at gmx.de Thu May 14 10:27:00 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Thu, 14 May 2009 16:27:00 +0200 Subject: [Moin-user] Problem with mod_wsgi In-Reply-To: References: Message-ID: <1242311220.10938.6.camel@server.firma.waldmann-edv.de> > It was clearly a MoinMoin problem, but astounding no other MoinUsers > are noting it! No, it was clearly a mod_wsgi problem. :) If you run moin with the standalone wikiserver.py it does not happen. > It turned out it is indeed a bug in mod_wsgi: > > http://code.google.com/p/modwsgi/issues/detail?id=132 > > Upgrading to version 2.5 (from 2.3) solved the problem. I had also some trouble with mod_wsgi 2.3 (debian lenny version), solved it by upgrading to 2.4 (from debian unstable or testing - installs without problems as it has no dependencies requiring other packages that are not already in stable/lenny) and I also filed a bug in Debian because of that. > I'm writing this here for the benefit of other MoinUsers having the same > problem. Maybe one could document it somewhere in the MoinMoinWiki; I > couldn't find an appropriate page for this. You could file a bug and solve / close it yourself. :) From rick.vanderveer at gmail.com Thu May 14 11:15:28 2009 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Thu, 14 May 2009 10:15:28 -0500 Subject: [Moin-user] Problem with mod_wsgi In-Reply-To: <1242311220.10938.6.camel@server.firma.waldmann-edv.de> References: <1242311220.10938.6.camel@server.firma.waldmann-edv.de> Message-ID: <5c39e1ca0905140815s421d2e5wff5727d419874680@mail.gmail.com> On Thu, May 14, 2009 at 9:27 AM, Thomas Waldmann wrote: > No, it was clearly a mod_wsgi problem. :) > If you run moin with the standalone wikiserver.py it does not happen. > >> ? It turned out it is indeed a bug in mod_wsgi: >> >> ? ? http://code.google.com/p/modwsgi/issues/detail?id=132 >> >> Upgrading to version 2.5 (from 2.3) solved the problem. hehe, no matter who's problem it is, I appreciate that that Emilio spoke up and said something!! :-) Every once in a rare while I noticed a random graphic wouldn't load up (usually refreshing made it show up), but instead of blaming moinmoin, I assumed it was because I'm hosting our Intranet wiki on a Windows box instead of a proper linux box. :-) Strangely, I never thought to blame moinmoin because it's merely compositing text pieces together (and in viewing the page source, the link to the graphic was clearly there, so I knew it wasn't moin). I assumed it was an interaction between windows-apache-python. Of course, the latest mod_wsgi for windows requires python 2.6 and apache 2.2 (I'm still at apache 2.0 and python 2.5), which means I got an afternoon of upgrading, careful testing, and rolling out ahead of me! heh. -Rick From cmcamerino at gmail.com Sun May 17 01:25:31 2009 From: cmcamerino at gmail.com (Carlo Camerino) Date: Sun, 17 May 2009 13:25:31 +0800 Subject: [Moin-user] Gmail As SMTP Server On Desktop Wiki Message-ID: <37cc2c090905162225l627abe4fy32d5482a98d9d8b4@mail.gmail.com> Hi, I would like to be able to use gmail as my smtp server. Problem is moin keeps hanging up whenever I try to use it. mail_from = u'carlo.camerino at gmail.com' mail_login = u'username password' mail_smarthost = u'smtp.gmail.com:465' here is how itry to configure it. Moin does not throw an error but just hangs for a long time when i try to do this? What is the best way to configure moin for gmail? Thanks From cmcamerino at gmail.com Sun May 17 02:10:01 2009 From: cmcamerino at gmail.com (Carlo Camerino) Date: Sun, 17 May 2009 14:10:01 +0800 Subject: [Moin-user] Gmail As SMTP Server On Desktop Wiki In-Reply-To: <37cc2c090905162225l627abe4fy32d5482a98d9d8b4@mail.gmail.com> References: <37cc2c090905162225l627abe4fy32d5482a98d9d8b4@mail.gmail.com> Message-ID: <37cc2c090905162310j595161b0wa5656d3d34f84e05@mail.gmail.com> actually, how do I make moin use ssl / tls encryption which is required by gmail? On Sun, May 17, 2009 at 1:25 PM, Carlo Camerino wrote: > Hi, > > I would like to be able to use gmail as my smtp server. > Problem is moin keeps hanging up whenever I try to use it. > > mail_from = u'carlo.camerino at gmail.com' > mail_login = u'username password' > mail_smarthost = u'smtp.gmail.com:465' > > here is how itry to configure it. > > Moin does not throw an error but just hangs for a long time when i try > to do this? > > What is the best way to configure moin for gmail? > > Thanks > From waqas805 at hotmail.com Tue May 19 04:01:07 2009 From: waqas805 at hotmail.com (waqas ahmad) Date: Tue, 19 May 2009 10:01:07 +0200 Subject: [Moin-user] Open New Window Message-ID: Hi, I am using moinmoin 182. How can open new window by clicking on a link?. e.g: I have one link in a document www.google.com , when i click on this link then it should open this link in new window(Not in the same window). Thanks in advance, Best Regards, Waqas _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From rb.proj at gmail.com Tue May 19 04:30:01 2009 From: rb.proj at gmail.com (R.Bauer) Date: Tue, 19 May 2009 10:30:01 +0200 Subject: [Moin-user] Open New Window In-Reply-To: References: Message-ID: waqas ahmad schrieb: > Hi, > > I am using moinmoin 182. How can open new window by clicking on a link?. > > e.g: > > I have one link in a document www.google.com , when i click on this link then it should open this link in new window(Not in the same window). > > > > Thanks in advance, > middle mouse click shouldn't it not be the decision of the user? cheers Reimar From rick.vanderveer at gmail.com Tue May 19 13:50:43 2009 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Tue, 19 May 2009 12:50:43 -0500 Subject: [Moin-user] Open New Window In-Reply-To: References: Message-ID: <5c39e1ca0905191050s38106565o6e7ebcf3b6645f09@mail.gmail.com> Waqas, The page you want is: http://moinmo.in/HelpOnLinking Specifically, [[SomePage|some Page description|target="_blank"]] -Rick On Tue, May 19, 2009 at 3:30 AM, R.Bauer wrote: > waqas ahmad schrieb: >> Hi, >> >> I am using moinmoin 182. How can open new window by clicking on a link?. >> >> e.g: >> >> I have one link in a document www.google.com , when i click on this link then it should open this link in new window(Not in the same window). >> >> >> >> Thanks in advance, >> > > middle mouse click > > shouldn't it not be the decision of the user? > > cheers > Reimar > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > From gnarlodious at gmail.com Wed May 20 20:23:26 2009 From: gnarlodious at gmail.com (Gnarlodious) Date: Wed, 20 May 2009 18:23:26 -0600 Subject: [Moin-user] Updating formatting on many pages Message-ID: <2e24105e0905201723of3c5641r99f864694d6ea03a@mail.gmail.com> I am updating my server and suddenly finding [[BR]] was changed to <
>. Is there a script that will change all these in the shell? I refuse to do them all by hand, and prefer not to write my own script. If such a script is on the http://moinmo.in/ website, it must be well hidden. -- Gnarlie From rick.vanderveer at gmail.com Wed May 20 23:03:53 2009 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Wed, 20 May 2009 22:03:53 -0500 Subject: [Moin-user] Updating formatting on many pages In-Reply-To: <2e24105e0905201723of3c5641r99f864694d6ea03a@mail.gmail.com> References: <2e24105e0905201723of3c5641r99f864694d6ea03a@mail.gmail.com> Message-ID: <5c39e1ca0905202003r778cc1cdn159ba9c336cae86@mail.gmail.com> Gnarlie, It sounds like to upgrading from 1.5 to . Basically, you need to read the CHANGES file backwards from the point you're upgrading from to current. Yes, there are indeed scripts that will help you convert all those tags and more. In addition, I've written a series of upgrade help files that covers the highlights of what you need to perform with each upgrade, starting here: http://moinmo.in/RickVanderveer/UpgradingFromMoin15ToMoin16 -Rick On Wed, May 20, 2009 at 7:23 PM, Gnarlodious wrote: > I am updating my server and suddenly finding [[BR]] was changed to > <
>. Is there a script that will change all these in the shell? I > refuse to do them all by hand, and prefer not to write my own script. > > If such a script is on the http://moinmo.in/ website, it must be well hidden. > > -- Gnarlie > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > From waqas805 at hotmail.com Thu May 21 07:46:49 2009 From: waqas805 at hotmail.com (waqas ahmad) Date: Thu, 21 May 2009 13:46:49 +0200 Subject: [Moin-user] alt text for links Message-ID: Hi, First of all thanks for last question in which i asked that how can i open a link in new window. Link in new window is working fine now. I want to ask now that how can i provide "Alt Text" to a link. I have one category [[CategoryKnowHowAdmin|Administration]]. I want to give "alt text" to this link. when user will point this category with mouse cursor, then it show some explanation text that what type of document he should enter in this category. i know attachments has this facility (alt text). {{attachment:image.png|alt text}} but how can i give "alt text" to links, i dont know. i have also looked this page(HelpOnLinking)but didn't find the way to give alt text to link. Thanks for help. Regards, Waqas _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From hp.news at gmx.de Thu May 21 11:23:39 2009 From: hp.news at gmx.de (Hape Schaal) Date: Thu, 21 May 2009 17:23:39 +0200 Subject: [Moin-user] Announcement: OpenDocument export for MoinMoin 1.7 and 1.8 Message-ID: <200905211723.39469.hp.news@gmx.de> Hi, a new version of the OpenDocument formatter is available, tested with MoinMoin 1.7 and 1.8: http://moinmo.in/FormatterMarket The previous versions for MoinMoin 1.5 and 1.6 are still available there. The formatter is called MoinMoin2ODF and exports a MoinMoin wiki page to an OpenDocument-Text (.odt) file. OpenDocument is the standard file format of OpenOffice and KOffice. Many other applications can read this file format. Of course you can use OpenOffice to convert your wiki pages to other file formats like MS Word. Or polish your wiki pages in OpenOffice and create good looking PDF files! Changes of this version: - Works with the Include Macro You can download the formatter at: http://moinmo.in/FormatterMarket Be sure to read the right section in INSTALL.txt before installing: There's help for automated install (Windows/Linux), manual install (in case you installed the MoinMoin packages of your linux distribution) and manual install for your MoinMoin Desktop edition. For feedback you can use: http://moinmo.in/FormatterMarket/MoinMoin2ODF Best regards, Hans-Peter From waqas805 at hotmail.com Thu May 21 12:54:18 2009 From: waqas805 at hotmail.com (waqas ahmad) Date: Thu, 21 May 2009 18:54:18 +0200 Subject: [Moin-user] alt text for links In-Reply-To: <20090521125837.GA18400@wmid.amu.edu.pl.edu> References: <20090521125837.GA18400@wmid.amu.edu.pl.edu> Message-ID: Hi, Thanks for help. i was looking for this feature which you told. Thankyou and have a nice day, Cheers, Waqas > Date: Thu, 21 May 2009 14:58:37 +0200 > From: moindev at sheep.art.pl > To: waqas805 at hotmail.com; moin-user at lists.sourceforge.net > Subject: Re: [Moin-user] alt text for links > > Thu, May 21, 2009 at 01:46:49PM +0200: > > > > Hi, > > > > First of all thanks for last question in which i asked that how can i open a link in new window. Link in new window is working fine now. > > > > I want to ask now that how can i provide "Alt Text" to a link. I have one category [[CategoryKnowHowAdmin|Administration]]. I want to give "alt text" to this link. when user will point this category with mouse cursor, then it show some explanation text that what type of document he should enter in this category. > > > > i know attachments has this facility (alt text). > > > > {{attachment:image.png|alt text}} > > > > but how can i give "alt text" to links, i dont know. i have also looked this page(HelpOnLinking)but didn't find the way to give alt text to link. > > > > Thanks for help. > > Alt (from "alternate") is text that is displayed when an image cannot be > displayed. Obviously text (including links) doesn't need or have such > a thing. > > Maybe you mean the "title" of the link? I think you should be able to > specify it like this: [[some link|some text|title="some title"]] > > -- > Radomir Dopieralski, http://sheep.art.pl _________________________________________________________________ More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From carsarejunk at gmail.com Thu May 21 15:02:44 2009 From: carsarejunk at gmail.com (Flagrant Disregard) Date: Thu, 21 May 2009 15:02:44 -0400 Subject: [Moin-user] error when using moin command line utility Message-ID: <20090521190244.GA22725@support1.intertruss.com> Greetings, I have just setup our own MoinMoin instance for our office I and think it is wonderful! Yesterday, I upgraded from 1.8.2 to 1.8.3, and in reading the upgrade instructions, came to the point where I was required to run moin ... maint cleancache Upon doing so, I received this error: 2009-05-21 14:55:27,666 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module! Traceback (most recent call last): File "/usr/bin/moin", line 6, in ? run() File "/usr/lib/python2.3/site-packages/MoinMoin/script/moin.py", line 15, in run MoinScript().run(showtime=0) File "/usr/lib/python2.3/site-packages/MoinMoin/script/__init__.py", line 138, in run self.mainloop() File "/usr/lib/python2.3/site-packages/MoinMoin/script/__init__.py", line 242, in mainloop plugin_class = wikiutil.importBuiltinPlugin('script.%s' % cmd_module, cmd_name, 'PluginScript') File "/usr/lib/python2.3/site-packages/MoinMoin/wikiutil.py", line 1133, in importBuiltinPlugin if not name in builtinPlugins(kind): File "/usr/lib/python2.3/site-packages/MoinMoin/wikiutil.py", line 1172, in builtinPlugins return pysupport.importName(modulename, "modules") File "/usr/lib/python2.3/site-packages/MoinMoin/util/pysupport.py", line 81, in importName module = __import__(modulename, globals(), {}, [name]) ValueError: Empty module name Not only does 'maint cleancache' produce this error, but any command given to the moin utility. I have called upon the great Google, but he has not answered in relevance. Perhaps someone here may be able to shed some light on my path. System information: CentOS 4.7 Python 2.3.4 MoinMoin 1.8.3 Note: MoinMoin is installed within an Ensim ( ancient proprietary hosting control panel ) chroot environment. MoinMoin has been running via Apache and mod_fcgid, however this is the first time I have attempted to use the command line utility. Many "Thank You"s -- Clearly, Flagrant Disregard From carsarejunk at gmail.com Thu May 21 15:52:52 2009 From: carsarejunk at gmail.com (Flagrant Disregard) Date: Thu, 21 May 2009 15:52:52 -0400 Subject: [Moin-user] error when using moin command line utility In-Reply-To: <2e24105e0905211239m179cdc0cv74d626e0ab94add4@mail.gmail.com> References: <20090521190244.GA22725@support1.intertruss.com> <2e24105e0905211239m179cdc0cv74d626e0ab94add4@mail.gmail.com> Message-ID: <20090521195252.GC22725@support1.intertruss.com> On 5/21/09, Flagrant Disregard wrote: > > 2009-05-21 14:55:27,666 WARNING MoinMoin.log:139 using logging configuration > read from built-in fallback in MoinMoin.log module! > Traceback (most recent call last): > File "/usr/bin/moin", line 6, in ? run() > File "/usr/lib/python2.3/site-packages/MoinMoin/script/moin.py", line 15, in run > MoinScript().run(showtime=0) > File "/usr/lib/python2.3/site-packages/MoinMoin/script/__init__.py", line 138, in run > self.mainloop() > File "/usr/lib/python2.3/site-packages/MoinMoin/script/__init__.py", line 242, in mainloop > plugin_class = wikiutil.importBuiltinPlugin('script.%s' % cmd_module, > cmd_name, 'PluginScript') > File "/usr/lib/python2.3/site-packages/MoinMoin/wikiutil.py", line 1133, in importBuiltinPlugin > if not name in builtinPlugins(kind): > File "/usr/lib/python2.3/site-packages/MoinMoin/wikiutil.py", line 1172, in builtinPlugins > return pysupport.importName(modulename, "modules") > File "/usr/lib/python2.3/site-packages/MoinMoin/util/pysupport.py", line 81, in importName > module = __import__(modulename, globals(), {}, [name]) > ValueError: Empty module name > > Not only does 'maint cleancache' produce this error, but any command given > to the moin utility. > In case it's relevant, I thought I would note that I've just reverted back to 1.8.2 and am still seeing the same results. -- Clearly, Flagrant Disregard From fpiat at klabs.be Fri May 22 10:15:49 2009 From: fpiat at klabs.be (Frank Lin PIAT) Date: Fri, 22 May 2009 16:15:49 +0200 Subject: [Moin-user] error when using moin command line utility In-Reply-To: <20090521190244.GA22725@support1.intertruss.com> References: <20090521190244.GA22725@support1.intertruss.com> Message-ID: <1243001749.5553.109.camel@solid.paris.klabs.be> Hello, On Thu, 2009-05-21 at 15:02 -0400, Flagrant Disregard wrote: > Greetings, > > I have just setup our own MoinMoin instance for our office > I and think it is wonderful! > > Yesterday, I upgraded from 1.8.2 to 1.8.3, and in reading the > upgrade instructions, came to the point where I was required to > run > > moin ... maint cleancache I dumb guess.... the three dots shouldn't be typed literally, but they should be replaced with some options, like --config-dir=/etc/moin/ and others. Just run "moin" to have the list of options. Regards, Franklin From fpiat at klabs.be Fri May 22 10:19:34 2009 From: fpiat at klabs.be (Frank Lin PIAT) Date: Fri, 22 May 2009 16:19:34 +0200 Subject: [Moin-user] Announcement: OpenDocument export for MoinMoin 1.7 and 1.8 In-Reply-To: <200905211723.39469.hp.news@gmx.de> References: <200905211723.39469.hp.news@gmx.de> Message-ID: <1243001974.5553.114.camel@solid.paris.klabs.be> Hello, On Thu, 2009-05-21 at 17:23 +0200, Hape Schaal wrote: > > a new version of the OpenDocument formatter is available, tested > with MoinMoin 1.7 and 1.8: Even though I don't need that feature *at the moment*, it seems to be a very useful feature. Thanks you. Franklin From carsarejunk at gmail.com Fri May 22 10:27:20 2009 From: carsarejunk at gmail.com (Flagrant Disregard) Date: Fri, 22 May 2009 10:27:20 -0400 Subject: [Moin-user] error when using moin command line utility In-Reply-To: <1243001749.5553.109.camel@solid.paris.klabs.be> References: <20090521190244.GA22725@support1.intertruss.com> <1243001749.5553.109.camel@solid.paris.klabs.be> Message-ID: <20090522142720.GG22725@support1.intertruss.com> Yowza, On 22May2009 04:15PM (+0200), Frank Lin PIAT wrote: > I dumb guess.... the three dots shouldn't be typed literally, > Just run "moin" to have the list of options > Oops. Like that after shave commercial in the 80s where the man receives a vigorous slap in the face and exclaims "Thanks, I needed that!" I thank you for pointing out the obvious. -- Clearly, Flagrant Disregard From gnarlodious at gmail.com Fri May 22 10:34:05 2009 From: gnarlodious at gmail.com (Gnarlodious) Date: Fri, 22 May 2009 08:34:05 -0600 Subject: [Moin-user] error when using moin command line utility In-Reply-To: <20090521190244.GA22725@support1.intertruss.com> References: <20090521190244.GA22725@support1.intertruss.com> Message-ID: <2e24105e0905220734w4fbed5e5i5612ba312ba1b83e@mail.gmail.com> I am sorry, once again all my replies go to the OP and not the list. I have complained about this before, and no one seemed to understand. Is there a way to configure this list to reply to the list address rather than the OP? -- Gnarlie From br.renatosilva at gmail.com Fri May 22 15:54:29 2009 From: br.renatosilva at gmail.com (Renato Silva) Date: Fri, 22 May 2009 16:54:29 -0300 Subject: [Moin-user] Theme translations Message-ID: <33f1a9530905221254x2ca380bcxc4d1c49698194187@mail.gmail.com> Hi. I'm writing a theme and I need to print a string which doesn't exist in default po files. Thomas Waldmann told me to look at MoinMoin/i18n/__init__.py to learn how to add new translations. I didn't understand it very well, but I wrote the following code, and it's not working. Instead of adding theme translations to the translation system (*.MoinMoin.po + *.mytheme.po), it is replacing it completely (only *.mytheme.po is being used). What's wrong with the following code? def __init__(self, request): ThemeBase.__init__(self, request) self.load_personal_translations() def load_personal_translations(self): """Load personal translations to be used by this theme""" request = self.request po_dir = os.path.join('i18n', 'themes', self.name) encoding = 'utf-8' for lang_file in glob.glob(po_filename(request, i18n_dir=po_dir, language='*', domain=self.name)): language, domain, ext = os.path.basename(lang_file).split('.') t = Translation(language, domain) f = file(lang_file) t.load_po(f) f.close() t.loadLanguage(request, trans_dir=po_dir) personal_translation = {} for key, text in t.raw.items(): personal_translation[key] = text if not translations.has_key(language): translations[language] = t else: append = translations[language].raw.update append(t.raw) -------------- next part -------------- An HTML attachment was scrubbed... URL: From rb.proj at gmail.com Mon May 25 03:45:24 2009 From: rb.proj at gmail.com (R.Bauer) Date: Mon, 25 May 2009 09:45:24 +0200 Subject: [Moin-user] Updating formatting on many pages In-Reply-To: <2e24105e0905201723of3c5641r99f864694d6ea03a@mail.gmail.com> References: <2e24105e0905201723of3c5641r99f864694d6ea03a@mail.gmail.com> Message-ID: Gnarlodious schrieb: > I am updating my server and suddenly finding [[BR]] was changed to > <
>. Is there a script that will change all these in the shell? I > refuse to do them all by hand, and prefer not to write my own script. > > If such a script is on the http://moinmo.in/ website, it must be well hidden. > > -- Gnarlie > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://www.creativitycat.com Hi Gnarlie please look into the docs dir. It is since 1.5.3 included into the moin command. cheers Reimar moin-1.8/docs > more README_FIRST MoinMoin Documentation Overview =============================== docs/INSTALL.html: generic instructions about installing MoinMoin docs/UPDATE.html: generic instructions about updating MoinMoin docs/CHANGES: if you are upgrading from an older moin version, please completely read all changes that happened after the Version you were using until now (in order)- otherwise you might miss some important upgrading and configuration hints. Starting with 1.5.3, update installation hints are marked with HINT. They assume you are upgrading from the last release version before (e.g. from 1.5.2 to 1.5.3). docs/README.migration: migration procedure for your data_dir (read this file to know how to upgrade your DATA). You MUST read UPDATE.html and CHANGES also for important infos about general update procedure and config changes. From rb.proj at gmail.com Mon May 25 03:47:20 2009 From: rb.proj at gmail.com (R.Bauer) Date: Mon, 25 May 2009 09:47:20 +0200 Subject: [Moin-user] error when using moin command line utility In-Reply-To: <2e24105e0905220734w4fbed5e5i5612ba312ba1b83e@mail.gmail.com> References: <20090521190244.GA22725@support1.intertruss.com> <2e24105e0905220734w4fbed5e5i5612ba312ba1b83e@mail.gmail.com> Message-ID: Gnarlodious schrieb: > I am sorry, once again all my replies go to the OP and not the list. I > have complained about this before, and no one seemed to understand. > > Is there a way to configure this list to reply to the list address > rather than the OP? Hi Gnarlie I do use the newsgroup from gmane.comp.web.wiki.moin.general there it works. cheers Reimar From rick.vanderveer at gmail.com Tue May 26 16:46:45 2009 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Tue, 26 May 2009 15:46:45 -0500 Subject: [Moin-user] =?windows-1252?q?Question_about_=91plugin=5Fdir=92_fr?= =?windows-1252?q?om_HelpOnConfiguration?= Message-ID: <5c39e1ca0905261346l2eb4fc7nd48b2dc1fcf50b2e@mail.gmail.com> The plugin_dir variable piques my interest. How is this used exactly? Is it primarily for my collection of third-party macros? Or do I need to move all macros (including moinmoin's built-in ones) into this? I assume this is to keep the built-in ones cleanly separated from third party ones. Also, once I define this in my farmconfig.py file, is it safe to delete the empty plugin dirs from all the other farmed wiki's? -Rick From philpace2007 at googlemail.com Wed May 27 05:59:13 2009 From: philpace2007 at googlemail.com (Phillip Pace) Date: Wed, 27 May 2009 19:59:13 +1000 Subject: [Moin-user] pages directory problem Message-ID: <36a866700905270259x484ebb7do324469aa33de4933@mail.gmail.com> Hey guys/gals, I have a problem which I can't seem to figure out. I've created a wiki farm which is working and accessing them through my site like so: www.website.com/wiki/user1/ www.website.com/wiki/user2/ However when I look at the stored data files in the /data/user/pages/ directory for each instance it stores the pages prefixed with the user-name like so: /data/user1/pages/user1(2f)homepage When it usually simply stores it like: /data/user1/pages/homepage Any ideas?... who knows this is probably how it should work. From tw-public at gmx.de Wed May 27 07:36:20 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Wed, 27 May 2009 13:36:20 +0200 Subject: [Moin-user] pages directory problem In-Reply-To: <36a866700905270259x484ebb7do324469aa33de4933@mail.gmail.com> References: <36a866700905270259x484ebb7do324469aa33de4933@mail.gmail.com> Message-ID: <1243424180.20117.7.camel@server.firma.waldmann-edv.de> On Wed, 2009-05-27 at 19:59 +1000, Phillip Pace wrote: > Hey guys/gals, > > I have a problem which I can't seem to figure out. > > I've created a wiki farm which is working and accessing them through > my site like so: > > www.website.com/wiki/user1/ > www.website.com/wiki/user2/ You are doing path-based wiki farming, this is a bit more tricky than host-based (wiki1.website.com, wiki2.website.com). > However when I look at the stored data files in the /data/user/pages/ > directory for each instance it stores the pages prefixed with the > user-name like so: > > /data/user1/pages/user1(2f)homepage This is a misconfiguration issue. Moin does not know that user1 is part of the script name (it thinks it is part of the path). > Any ideas?... who knows this is probably how it should work. See there: http://master18.moinmo.in/HelpOnInstalling/ApacheOnLinux Search for script_name there. From fpiat at klabs.be Wed May 27 16:47:17 2009 From: fpiat at klabs.be (Frank Lin PIAT) Date: Wed, 27 May 2009 22:47:17 +0200 Subject: [Moin-user] =?utf-8?q?Question_about_=E2=80=98plugin=5Fdir?= =?utf-8?q?=E2=80=99_from_HelpOnConfiguration?= In-Reply-To: <5c39e1ca0905261346l2eb4fc7nd48b2dc1fcf50b2e@mail.gmail.com> References: <5c39e1ca0905261346l2eb4fc7nd48b2dc1fcf50b2e@mail.gmail.com> Message-ID: <1243457237.8952.2387.camel@solid.paris.klabs.be> On Tue, 2009-05-26 at 15:46 -0500, Rick Vanderveer wrote: > The plugin_dir variable piques my interest. How is this used exactly? > Is it primarily for my collection of third-party macros? Yes > Or do I need to move all macros (including moinmoin's built-in ones) into this? No > I assume this is to keep the built-in ones cleanly separated from > third party ones. Yes, it also allows to have different macro in different wikis. > Also, once I define this in my farmconfig.py file, is it safe to > delete the empty plugin dirs from all the other farmed wiki's? I did some successful test, sharing the plugin_dir. make sure all wikis runs as the same user. (And make sure you don't delete the shared plugin dir;) Franklin -- A Happy moinmoin user From rb.proj at gmail.com Thu May 28 04:39:11 2009 From: rb.proj at gmail.com (R.Bauer) Date: Thu, 28 May 2009 10:39:11 +0200 Subject: [Moin-user] =?iso-8859-1?q?Question_about_=27plugin=5Fdir=27_from?= =?iso-8859-1?q?_HelpOnConfiguration?= In-Reply-To: <1243457237.8952.2387.camel@solid.paris.klabs.be> References: <5c39e1ca0905261346l2eb4fc7nd48b2dc1fcf50b2e@mail.gmail.com> <1243457237.8952.2387.camel@solid.paris.klabs.be> Message-ID: Frank Lin PIAT schrieb: > On Tue, 2009-05-26 at 15:46 -0500, Rick Vanderveer wrote: >> The plugin_dir variable piques my interest. How is this used exactly? plugin_dirs = ['/some/where/extensions/data/plugin'] e.g. for arnica http://moinmo.in/ReimarBauer/HelpOnArnica > >> Is it primarily for my collection of third-party macros? > > Yes s/macros/plugins/ cheers Reimar > >> Or do I need to move all macros (including moinmoin's built-in ones) into this? > > No > >> I assume this is to keep the built-in ones cleanly separated from >> third party ones. > > Yes, it also allows to have different macro in different wikis. > >> Also, once I define this in my farmconfig.py file, is it safe to >> delete the empty plugin dirs from all the other farmed wiki's? > > I did some successful test, sharing the plugin_dir. make sure all wikis > runs as the same user. (And make sure you don't delete the shared plugin > dir;) > > Franklin > > -- > A Happy moinmoin user > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com From ndbecker2 at gmail.com Thu May 28 13:33:37 2009 From: ndbecker2 at gmail.com (Neal Becker) Date: Thu, 28 May 2009 13:33:37 -0400 Subject: [Moin-user] 1.8.3 trouble Message-ID: I'm just trying 1.8.3 on fedora 10 linux. I have installed mathtran plugin (if that matters). Problem 1: If I use konqueror to edit, then save, I get: Please use the interactive user interface to use action edit! I can't seem to reliably edit and save. From ndbecker2 at gmail.com Fri May 29 08:10:39 2009 From: ndbecker2 at gmail.com (Neal Becker) Date: Fri, 29 May 2009 08:10:39 -0400 Subject: [Moin-user] 1.8.3 trouble References: Message-ID: Neal Becker wrote: > I'm just trying 1.8.3 on fedora 10 linux. > > I have installed mathtran plugin (if that matters). > > Problem 1: > If I use konqueror to edit, then save, I get: > Please use the interactive user interface to use action edit! > > I can't seem to reliably edit and save. > > This problem occurred with wsgi, but using cgi I'm not seeing this problem. From tw-public at gmx.de Fri May 29 11:10:25 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Fri, 29 May 2009 17:10:25 +0200 Subject: [Moin-user] 1.8.3 trouble In-Reply-To: References: Message-ID: <1243609825.9551.76.camel@server.firma.waldmann-edv.de> > > I'm just trying 1.8.3 on fedora 10 linux. > > > > I have installed mathtran plugin (if that matters). Shouldn't matter I think. > > Problem 1: > > If I use konqueror to edit, then save, I get: > > Please use the interactive user interface to use action edit! It tells that if you don't post the ticket back (the ticket is a form field with some specific content you get when invoking the editor). It assumes that you are not a human user with a browser then. > This problem occurred with wsgi, but using cgi I'm not seeing this problem. That is strange. It shouldn't make a difference between wsgi and cgi. Except maybe if the mod_wsgi module you use is broken (like the one in debian lenny, people had editing problems there depending on the length of the POST - upgrading to a non-broken mod_wsgi fixed it). From rick.vanderveer at gmail.com Fri May 29 14:56:00 2009 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Fri, 29 May 2009 13:56:00 -0500 Subject: [Moin-user] =?windows-1252?q?Question_about_=91plugin=5Fdir=92_fr?= =?windows-1252?q?om_HelpOnConfiguration?= In-Reply-To: <1243457237.8952.2387.camel@solid.paris.klabs.be> References: <5c39e1ca0905261346l2eb4fc7nd48b2dc1fcf50b2e@mail.gmail.com> <1243457237.8952.2387.camel@solid.paris.klabs.be> Message-ID: <5c39e1ca0905291156p2c329fd0mb1fa2916833fcff8@mail.gmail.com> Thanks all for your replies. I'm enabled plugin_dir in my farmconfig, which has allowed me to clean up some of the individual wiki's, which is excellent! Thanks again! -Rick On Wed, May 27, 2009 at 3:47 PM, Frank Lin PIAT wrote: > On Tue, 2009-05-26 at 15:46 -0500, Rick Vanderveer wrote: >> The plugin_dir variable piques my interest. ?How is this used exactly? > >> Is it primarily for my collection of third-party macros? > > Yes > >> Or do I need to move all macros (including moinmoin's built-in ones) into this? > > No > >> I assume this is to keep the built-in ones cleanly separated from >> third party ones. > > Yes, it also allows to have different macro in different wikis. > >> Also, once I define this in my farmconfig.py file, is it safe to >> delete the empty plugin dirs from all the other farmed wiki's? > > I did some successful test, sharing the plugin_dir. make sure all wikis > runs as the same user. (And make sure you don't delete the shared plugin > dir;) > > Franklin > > -- > A Happy moinmoin user > > From ndbecker2 at gmail.com Fri May 29 14:58:58 2009 From: ndbecker2 at gmail.com (Neal Becker) Date: Fri, 29 May 2009 14:58:58 -0400 Subject: [Moin-user] 1.8.3 trouble References: <1243609825.9551.76.camel@server.firma.waldmann-edv.de> Message-ID: Thomas Waldmann wrote: >> > I'm just trying 1.8.3 on fedora 10 linux. >> > >> > I have installed mathtran plugin (if that matters). > > Shouldn't matter I think. > >> > Problem 1: >> > If I use konqueror to edit, then save, I get: >> > Please use the interactive user interface to use action edit! > > It tells that if you don't post the ticket back (the ticket is a form > field with some specific content you get when invoking the editor). > > It assumes that you are not a human user with a browser then. > >> This problem occurred with wsgi, but using cgi I'm not seeing this >> problem. > > That is strange. It shouldn't make a difference between wsgi and cgi. > > Except maybe if the mod_wsgi module you use is broken (like the one in > debian lenny, people had editing problems there depending on the length > of the POST - upgrading to a non-broken mod_wsgi fixed it). > Updating to mod_wsgi 2.5 seems to have fixed it (need some more testing) From gnarlodious at gmail.com Fri May 29 17:21:47 2009 From: gnarlodious at gmail.com (Gnarlodious) Date: Fri, 29 May 2009 15:21:47 -0600 Subject: [Moin-user] Upgrade error: cannot import name wiki Message-ID: <2e24105e0905291421s3eb9527apc1ddb206df80435@mail.gmail.com> After upgrading, a macro called EventCalendar.py does not work, I get error "cannot import name wiki". http://moinmo.in/MacroMarket/EventCalendar I see the script has not been updated for 3 years. Does anyone know a fast way to solve this, or does the entire script need to be redone? It looks like some module is no longer available. You can see the error in realtime here: http://EliAshbyHealingArts.com/Events Sorry, my Python is not that far advanced. -- Gnarlie From rick.vanderveer at gmail.com Fri May 29 17:52:47 2009 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Fri, 29 May 2009 16:52:47 -0500 Subject: [Moin-user] Upgrade error: cannot import name wiki In-Reply-To: <2e24105e0905291421s3eb9527apc1ddb206df80435@mail.gmail.com> References: <2e24105e0905291421s3eb9527apc1ddb206df80435@mail.gmail.com> Message-ID: <5c39e1ca0905291452q2aa86157s65174aa241e81382@mail.gmail.com> Hey Gnarlie, >From what I gather, the EventCalendar never quite survived the transition from 1.5 to 1.6. There were a series of small hack-updates, which you can find on MacroMarket, but in my experience is that it never worked reliably the same since. Often when you hit a page with EventCalendar, you'll get an error, but refresh and it displays properly. Completely random that way. It's a shame, too, because it was a great macro for displaying a calendar of events at a glance. -Rick On Fri, May 29, 2009 at 4:21 PM, Gnarlodious wrote: > After upgrading, a macro called EventCalendar.py does not work, I get > error "cannot import name wiki". > http://moinmo.in/MacroMarket/EventCalendar > > I see the script has not been updated for 3 years. Does anyone know a > fast way to solve this, or does the entire script need to be redone? > It looks like some module is no longer available. You can see the > error in realtime here: > http://EliAshbyHealingArts.com/Events > > Sorry, my Python is not that far advanced. > > -- Gnarlie > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > From gnarlodious at gmail.com Fri May 29 18:27:16 2009 From: gnarlodious at gmail.com (Gnarlodious) Date: Fri, 29 May 2009 16:27:16 -0600 Subject: [Moin-user] Upgrade error: cannot import name wiki In-Reply-To: <5c39e1ca0905291452q2aa86157s65174aa241e81382@mail.gmail.com> References: <2e24105e0905291421s3eb9527apc1ddb206df80435@mail.gmail.com> <5c39e1ca0905291452q2aa86157s65174aa241e81382@mail.gmail.com> Message-ID: <2e24105e0905291527o337de737j7b1c383b86542a79@mail.gmail.com> On 5/29/09, Rick Vanderveer wrote: > it was a great macro for displaying a calendar of events Yeah, my people are hollering for a calendar. I wonder if there is an iCal plugin, or Google Calendar displayed inside an iframe? -- Gnarlie From tw-public at gmx.de Sat May 30 10:00:43 2009 From: tw-public at gmx.de (Thomas Waldmann) Date: Sat, 30 May 2009 16:00:43 +0200 Subject: [Moin-user] Upgrade error: cannot import name wiki In-Reply-To: <2e24105e0905291421s3eb9527apc1ddb206df80435@mail.gmail.com> References: <2e24105e0905291421s3eb9527apc1ddb206df80435@mail.gmail.com> Message-ID: <1243692043.20173.2.camel@x300> On Fri, 2009-05-29 at 15:21 -0600, Gnarlodious wrote: > After upgrading, a macro called EventCalendar.py does not work, I get > error "cannot import name wiki". The parsers are named differently since quite a while. "parser.wiki" is "parser.text_moin_wiki" now. If you search the current code for "text_moin_wiki", you will see how it is used.