From Christian.Molecki at stala.bwl.de Tue Aug 1 02:50:28 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Tue, 1 Aug 2017 06:50:28 +0000 Subject: [moin-user] How to rename pages and subpages? In-Reply-To: <4198067.TvaymrWUTI@desktop> References: <4198067.TvaymrWUTI@desktop> Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DE57F7@BWLSM15.ZD.BWL.NET> Hello Volker every page has its full path as directory name in your instance pages directory. So if you rename foo -> foo1 you technically rename the directory from foo -> foo1 If you want to rename one page and also the subpages in one step, the pages must be stored also hierarchical on the filesystem. The easiest way is to rename the folders on the filesystem. /path/to/foo -> /path/to/foo1 /path/to/foo-bar -> /path/to/foo1-bar /path/to/foo-baz -> /path/to/foo1-baz Hope this was helpful. Best Regards Christian -----Urspr?ngliche Nachricht----- Von: moin-user [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im Auftrag von Volker Wysk Gesendet: Montag, 31. Juli 2017 18:26 An: moin-user at python.org Betreff: [moin-user] How to rename pages and subpages? Hello! Let's look at this: I have some page named "foo" and subpages "foo/bar" and "foo/baz". Now, how to rename "foo" to "foo1", such that the path component "foo" in the subpages changes as well? I want them to be "foo1/bar" and "foo1/ baz", but they stay at "foo/bar" and "foo/baz". Bye Volker _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user From post at volker-wysk.de Tue Aug 1 03:30:01 2017 From: post at volker-wysk.de (Volker Wysk) Date: Tue, 01 Aug 2017 09:30:01 +0200 Subject: [moin-user] How to rename pages and subpages? In-Reply-To: <205F109FB2535542BD9DB0753EFF6D3326DE57F7@BWLSM15.ZD.BWL.NET> References: <4198067.TvaymrWUTI@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE57F7@BWLSM15.ZD.BWL.NET> Message-ID: <1789342.rOxCmAzrdO@desktop> Am Dienstag, 1. August 2017, 06:50:28 CEST schrieb Molecki, Christian (STL): > every page has its full path as directory name in your instance pages > directory. So if you rename foo -> foo1 you technically rename the > directory from foo -> foo1. If you want to rename one page and also the > subpages in one step, the pages must be stored also hierarchical on the > filesystem. I don't quite get what you're saying in the last sentence. The pages are all in the moin/data/pages directory, aren't they? They aren't ordered hierarchically in the filesystem. The path separator "/" is mapped to "(2f)". Thnx Volker From Christian.Molecki at stala.bwl.de Tue Aug 1 08:54:51 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Tue, 1 Aug 2017 12:54:51 +0000 Subject: [moin-user] How to rename pages and subpages? References: <4198067.TvaymrWUTI@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE57F7@BWLSM15.ZD.BWL.NET> <1789342.rOxCmAzrdO@desktop> Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DE5C82@BWLSM15.ZD.BWL.NET> Von: Molecki, Christian (STL) Gesendet: Dienstag, 1. August 2017 09:41 An: 'Volker Wysk' Betreff: AW: AW: [moin-user] How to rename pages and subpages? Hello Volker, > I don't quite get what you're saying in the last sentence. The pages are all >in the moin/data/pages directory, aren't they? That's correct. >They aren't ordered >hierarchically in the filesystem. The path separator "/" is mapped to "(2f)". That's also correct. If you want to rename the subpages by renaming the motherpage, they should be ordered hierarchically (but they aren't). Sorry bad English. Best Regards Christian Mit freundlichen Gr??en Christian Molecki -------------------------------------------- Referat 14: Systemtechnik und Datenmanagement OE 143: Systemtechnik, Gro?rechner, Internettechnik, Datenmanagement -----Urspr?ngliche Nachricht----- Von: Volker Wysk [mailto:post at volker-wysk.de] Gesendet: Dienstag, 1. August 2017 09:30 An: moin-user at python.org Cc: Molecki, Christian (STL) Betreff: Re: AW: [moin-user] How to rename pages and subpages? Am Dienstag, 1. August 2017, 06:50:28 CEST schrieb Molecki, Christian (STL): > every page has its full path as directory name in your instance pages > directory. So if you rename foo -> foo1 you technically rename the > directory from foo -> foo1. If you want to rename one page and also the > subpages in one step, the pages must be stored also hierarchical on the > filesystem. I don't quite get what you're saying in the last sentence. The pages are all in the moin/data/pages directory, aren't they? They aren't ordered hierarchically in the filesystem. The path separator "/" is mapped to "(2f)". Thnx Volker From post at volker-wysk.de Tue Aug 1 09:28:28 2017 From: post at volker-wysk.de (Volker Wysk) Date: Tue, 01 Aug 2017 15:28:28 +0200 Subject: [moin-user] How to rename pages and subpages? In-Reply-To: <205F109FB2535542BD9DB0753EFF6D3326DE5C82@BWLSM15.ZD.BWL.NET> References: <4198067.TvaymrWUTI@desktop> <1789342.rOxCmAzrdO@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE5C82@BWLSM15.ZD.BWL.NET> Message-ID: <4306443.qoNNyUN0rS@desktop> Hello Christian! Am Dienstag, 1. August 2017, 12:54:51 CEST schrieb Molecki, Christian (STL): > > I don't quite get what you're saying in the last sentence. The pages are > > all> > >in the moin/data/pages directory, aren't they? > > That's correct. > > >They aren't ordered > >hierarchically in the filesystem. The path separator "/" is mapped to > >"(2f)". > That's also correct. > If you want to rename the subpages by renaming the motherpage, they should > be ordered hierarchically (but they aren't). Off list, I've asked you, if links referring to a page are updated when the page is renamed. You wrote No, they aren't. They will point to a non-existent page. I assume that this also applies to the RenamePage command of the package installer. The way I want to use MoinMoin, I expect that I want to rename pages frequently. My enthusiasm of MoinMoin is fading... I wonder if I could write a program for renaming pages, which directly manipulated the MoinMoin (file system) database. Would this be safe, if you stopped Apache before, and restarted it afterwards? What about Xapian? Anything else? Bye V.W. From Christian.Molecki at stala.bwl.de Tue Aug 1 09:40:52 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Tue, 1 Aug 2017 13:40:52 +0000 Subject: [moin-user] How to rename pages and subpages? In-Reply-To: <4306443.qoNNyUN0rS@desktop> References: <4198067.TvaymrWUTI@desktop> <1789342.rOxCmAzrdO@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE5C82@BWLSM15.ZD.BWL.NET> <4306443.qoNNyUN0rS@desktop> Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DE5CD2@BWLSM15.ZD.BWL.NET> Hello Volker, you can manipulate the moinmoin database by using a script or application. I already did something similar with a bash-script and sed. I recommend you to shut down the Apache, so the working user, cannot edit any pages out of the cache. Mit freundlichen Gr??en Christian Molecki -------------------------------------------- Referat 14: Systemtechnik und Datenmanagement OE 143: Systemtechnik, Gro?rechner, Internettechnik, Datenmanagement -----Urspr?ngliche Nachricht----- Von: moin-user [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im Auftrag von Volker Wysk Gesendet: Dienstag, 1. August 2017 15:28 An: moin-user at python.org Betreff: Re: [moin-user] How to rename pages and subpages? Hello Christian! Am Dienstag, 1. August 2017, 12:54:51 CEST schrieb Molecki, Christian (STL): > > I don't quite get what you're saying in the last sentence. The pages are > > all> > >in the moin/data/pages directory, aren't they? > > That's correct. > > >They aren't ordered > >hierarchically in the filesystem. The path separator "/" is mapped to > >"(2f)". > That's also correct. > If you want to rename the subpages by renaming the motherpage, they should > be ordered hierarchically (but they aren't). Off list, I've asked you, if links referring to a page are updated when the page is renamed. You wrote No, they aren't. They will point to a non-existent page. I assume that this also applies to the RenamePage command of the package installer. The way I want to use MoinMoin, I expect that I want to rename pages frequently. My enthusiasm of MoinMoin is fading... I wonder if I could write a program for renaming pages, which directly manipulated the MoinMoin (file system) database. Would this be safe, if you stopped Apache before, and restarted it afterwards? What about Xapian? Anything else? Bye V.W. _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user From crosseyedpenguin at yahoo.com Tue Aug 1 10:40:34 2017 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Tue, 1 Aug 2017 14:40:34 +0000 (UTC) Subject: [moin-user] How to rename pages and subpages? In-Reply-To: <205F109FB2535542BD9DB0753EFF6D3326DE5CD2@BWLSM15.ZD.BWL.NET> References: <4198067.TvaymrWUTI@desktop> <1789342.rOxCmAzrdO@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE5C82@BWLSM15.ZD.BWL.NET> <4306443.qoNNyUN0rS@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE5CD2@BWLSM15.ZD.BWL.NET> Message-ID: <747322942.3991167.1501598434673@mail.yahoo.com> When you rename a page, there is a checkbox at the top of the rename dialog labeled "Rename all / subpages too?" If you check that, subpages will be renamed. However, the links in the mother page will not be updated. There is an option you can add to the wikiconfig.py file: ? ? show_rename_redirect = True that will add a second checkbox to the rename dialog labeled "Create redirect for renamed page(s)?". (I could not find that documented anywhere other than MoinMoin/config/multiconfig.py) If you check both boxes on the rename dialog, then subpages will be renamed and in the place of the old subpage a revised page will be created redirecting to the new page. The mother page will also have a redirect from the old page to the new page. If you try to rename back to a previously used page name you will get an error message. Roger Haase On Tuesday, August 1, 2017 6:42 AM, "Molecki, Christian (STL)" wrote: Hello Volker, you can manipulate the moinmoin database by using a script or application. I already did something similar with a bash-script and sed. I recommend you to shut down the Apache, so the working user, cannot edit any pages out of the cache. Mit freundlichen Gr??en Christian Molecki -------------------------------------------- Referat 14: Systemtechnik und Datenmanagement OE 143: Systemtechnik, Gro?rechner, Internettechnik, Datenmanagement -----Urspr?ngliche Nachricht----- Von: moin-user [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im Auftrag von Volker Wysk Gesendet: Dienstag, 1. August 2017 15:28 An: moin-user at python.org Betreff: Re: [moin-user] How to rename pages and subpages? Hello Christian! Am Dienstag, 1. August 2017, 12:54:51 CEST schrieb Molecki, Christian (STL): > > I don't quite get what you're saying in the last sentence. The pages are > > all> > >in the moin/data/pages directory, aren't they? > > That's correct. > > >They aren't ordered > >hierarchically in the filesystem. The path separator "/" is mapped to > >"(2f)". > That's also correct. > If you want to rename the subpages by renaming the motherpage, they should > be ordered hierarchically (but they aren't). Off list, I've asked you, if links referring to a page are updated when the page is renamed. You wrote No, they aren't. They will point to a non-existent page. I assume that this also applies to the RenamePage command of the package installer. The way I want to use MoinMoin, I expect that I want to rename pages frequently. My enthusiasm of MoinMoin is fading... I wonder if I could write a program for renaming pages, which directly manipulated the MoinMoin (file system) database. Would this be safe, if you stopped Apache before, and restarted it afterwards? What about Xapian? Anything else? Bye V.W. _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From post at volker-wysk.de Tue Aug 1 12:38:03 2017 From: post at volker-wysk.de (Volker Wysk) Date: Tue, 01 Aug 2017 18:38:03 +0200 Subject: [moin-user] How to rename pages and subpages? In-Reply-To: <205F109FB2535542BD9DB0753EFF6D3326DE5CD2@BWLSM15.ZD.BWL.NET> References: <4198067.TvaymrWUTI@desktop> <4306443.qoNNyUN0rS@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE5CD2@BWLSM15.ZD.BWL.NET> Message-ID: <2485874.bLMlpO4Oi6@desktop> Am Dienstag, 1. August 2017, 13:40:52 CEST schrieb Molecki, Christian (STL): > Hello Volker, > > you can manipulate the moinmoin database by using a script or application. > I already did something similar with a bash-script and sed. > > I recommend you to shut down the Apache, so the working user, cannot edit > any pages out of the cache. You don't use Xapian, do you? I think, a reindex run will be necessary when you change the pages database manually. I'm wondering how "official" the file system interface to the moinmoin database is. Is it supposed to work when the changes are made by some program different from the MoinMoin server? Of course the server must be shut down first. Or is it a case of "it just works"? - for the time being... Volker From post at volker-wysk.de Tue Aug 1 13:30:21 2017 From: post at volker-wysk.de (Volker Wysk) Date: Tue, 01 Aug 2017 19:30:21 +0200 Subject: [moin-user] Fwd: Re: How to rename pages and subpages? Message-ID: <11404445.lxeS40Tv3m@desktop> Hi I've accidentally sent this mail to Roger Hase directly, instead of the list. Here it is: Betreff: Re: [moin-user] How to rename pages and subpages? Datum: Dienstag, 1. August 2017, 18:27:16 CEST Von: Volker Wysk An: Roger Haase Am Dienstag, 1. August 2017, 14:40:34 CEST schrieb Roger Haase: > When you rename a page, there is a checkbox at the top of the rename dialog > labeled "Rename all / subpages too?" If you check that, subpages will be > renamed. Oh, good. I missed that. > However, the links in the mother page will not be updated. > There is an option you can add to the wikiconfig.py file: > show_rename_redirect = True > > that will add a second checkbox to the rename dialog labeled "Create > redirect for renamed page(s)?". (I could not find that documented anywhere > other than MoinMoin/config/multiconfig.py) There is a one line documentation on it in HelpOnConfiguration... > If you check both boxes on the > rename dialog, then subpages will be renamed and in the place of the old > subpage a revised page will be created redirecting to the new page. The > mother page will also have a redirect from the old page to the new page. This isn't optimal, but better than nothing... > If > you try to rename back to a previously used page name you will get an error > message. Except when you first delete the redirection page. Cheers Volker From Christian.Molecki at stala.bwl.de Wed Aug 2 02:32:56 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Wed, 2 Aug 2017 06:32:56 +0000 Subject: [moin-user] How to rename pages and subpages? In-Reply-To: <2485874.bLMlpO4Oi6@desktop> References: <4198067.TvaymrWUTI@desktop> <4306443.qoNNyUN0rS@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE5CD2@BWLSM15.ZD.BWL.NET> <2485874.bLMlpO4Oi6@desktop> Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DE5F5C@BWLSM15.ZD.BWL.NET> Hello Volker, >You don't use Xapian, do you? I think, a reindex run will be necessary when >you change the pages database manually. we don't use Xapian. So I can't help you with that. Christian -----Urspr?ngliche Nachricht----- Von: Volker Wysk [mailto:post at volker-wysk.de] Gesendet: Dienstag, 1. August 2017 18:38 An: Molecki, Christian (STL); moin-user at python.org Betreff: Re: AW: [moin-user] How to rename pages and subpages? Am Dienstag, 1. August 2017, 13:40:52 CEST schrieb Molecki, Christian (STL): > Hello Volker, > > you can manipulate the moinmoin database by using a script or application. > I already did something similar with a bash-script and sed. > > I recommend you to shut down the Apache, so the working user, cannot edit > any pages out of the cache. You don't use Xapian, do you? I think, a reindex run will be necessary when you change the pages database manually. I'm wondering how "official" the file system interface to the moinmoin database is. Is it supposed to work when the changes are made by some program different from the MoinMoin server? Of course the server must be shut down first. Or is it a case of "it just works"? - for the time being... Volker From post at volker-wysk.de Wed Aug 2 07:36:33 2017 From: post at volker-wysk.de (Volker Wysk) Date: Wed, 02 Aug 2017 13:36:33 +0200 Subject: [moin-user] How to rename pages and subpages? In-Reply-To: <205F109FB2535542BD9DB0753EFF6D3326DE5F5C@BWLSM15.ZD.BWL.NET> References: <4198067.TvaymrWUTI@desktop> <2485874.bLMlpO4Oi6@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE5F5C@BWLSM15.ZD.BWL.NET> Message-ID: <3367247.DKNFS3r57E@desktop> Am Mittwoch, 2. August 2017, 06:32:56 CEST schrieb Molecki, Christian (STL): > >You don't use Xapian, do you? I think, a reindex run will be necessary > >when you change the pages database manually. > > we don't use Xapian. > So I can't help you with that. This was meant as an example of how things can (possibly) go wrong, if you just manipulate the database on disk, circumventing the MoinMoin server. Bye Volker From post at volker-wysk.de Wed Aug 2 13:33:37 2017 From: post at volker-wysk.de (Volker Wysk) Date: Wed, 02 Aug 2017 19:33:37 +0200 Subject: [moin-user] Some feedback on find&replace in the editors Message-ID: <6264861.Ccm5HahUAX@desktop> Hi! A little more feedback. - I'm missing a find&replace command in the text mode editor. It is available in the GUI editor, but you can't work on the underlying wiki text with that. - In the GUI editor, there is a find/replace feature. It's window is very small and can't be resized. The labels on the two buttons get cropped. I'm wondering if it would be possible to launch an external (non-web) text editor from a web page, and edit pages with that... Bye Volker From lists at sumpfralle.de Wed Aug 2 18:53:10 2017 From: lists at sumpfralle.de (Lars Kruse) Date: Thu, 3 Aug 2017 00:53:10 +0200 Subject: [moin-user] Some feedback on find&replace in the editors In-Reply-To: <6264861.Ccm5HahUAX@desktop> References: <6264861.Ccm5HahUAX@desktop> Message-ID: <20170803005310.02fd4399@erker.lan> Hello Volker, Am Wed, 02 Aug 2017 19:33:37 +0200 schrieb Volker Wysk : > - I'm missing a find&replace command in the text mode editor. It is available > in the GUI editor, but you can't work on the underlying wiki text with that. Personally I would expect this to be a feature of a web browser (at least for simple text fields). > [..] > I'm wondering if it would be possible to launch an external (non-web) text > editor from a web page, and edit pages with that... "It's all text"[1] is probably a popular choice for firefox users that prefer vim. I guess, many other add-ons for various flavours are available. Cheers, Lars [1] https://addons.mozilla.org/en-US/firefox/addon/its-all-text/ From post at volker-wysk.de Thu Aug 3 01:17:29 2017 From: post at volker-wysk.de (Volker Wysk) Date: Thu, 03 Aug 2017 07:17:29 +0200 Subject: [moin-user] Some feedback on find&replace in the editors In-Reply-To: <20170803005310.02fd4399@erker.lan> References: <6264861.Ccm5HahUAX@desktop> <20170803005310.02fd4399@erker.lan> Message-ID: <1825882.xJv939H5da@desktop> Am Donnerstag, 3. August 2017, 00:53:10 CEST schrieb Lars Kruse: > > [..] > > I'm wondering if it would be possible to launch an external (non-web) > > text > > editor from a web page, and edit pages with that... > > "It's all text"[1] is probably a popular choice for firefox users that > prefer vim. I guess, many other add-ons for various flavours are available. That's what I've had in mind (however I prefer emacs). I've installed it, and it works fine. Thanks for the hint! Cheers Volker From post at volker-wysk.de Thu Aug 3 14:19:13 2017 From: post at volker-wysk.de (Volker Wysk) Date: Thu, 03 Aug 2017 20:19:13 +0200 Subject: [moin-user] Opening attached PDF documents from the browser Message-ID: <4408186.ZPUD7SGLi7@desktop> Hi! I have some PDF documents stored as attachments of MoinMoin pages. I can download them and open them. However, it would be more convenient if the MM server could just hand the file over to the browser. The browser would typically know what to do with it, and hand it over to a PDF viewer. For this to work, the server would have to serve the attachment with an URL that made the it visible to the browser. Something like "http://example.com/ wiki/Some/Page/attachments/doc.pdf". This applies to other types of documents as well. You could even store some manual, which consists of many pages, as a MM attachment. If you have relative links within, the URL of a linked page would be a correct URL again. Bye Volker From Christian.Molecki at stala.bwl.de Fri Aug 4 03:25:54 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Fri, 4 Aug 2017 07:25:54 +0000 Subject: [moin-user] Opening attached PDF documents from the browser In-Reply-To: <4408186.ZPUD7SGLi7@desktop> References: <4408186.ZPUD7SGLi7@desktop> Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DE6AC7@BWLSM15.ZD.BWL.NET> Hello Volker, if you call your file in a certain page with [[attachment:nameof.pdf]] the pdf should open in MoinMoin. But this doesn't work with all file-types. Mit freundlichen Gr??en Christian Molecki -------------------------------------------- Referat 14: Systemtechnik und Datenmanagement OE 143: Systemtechnik, Gro?rechner, Internettechnik, Datenmanagement -----Urspr?ngliche Nachricht----- Von: moin-user [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im Auftrag von Volker Wysk Gesendet: Donnerstag, 3. August 2017 20:19 An: moin-user at python.org Betreff: [moin-user] Opening attached PDF documents from the browser Hi! I have some PDF documents stored as attachments of MoinMoin pages. I can download them and open them. However, it would be more convenient if the MM server could just hand the file over to the browser. The browser would typically know what to do with it, and hand it over to a PDF viewer. For this to work, the server would have to serve the attachment with an URL that made the it visible to the browser. Something like "http://example.com/ wiki/Some/Page/attachments/doc.pdf". This applies to other types of documents as well. You could even store some manual, which consists of many pages, as a MM attachment. If you have relative links within, the URL of a linked page would be a correct URL again. Bye Volker _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user From post at volker-wysk.de Sat Aug 5 07:54:30 2017 From: post at volker-wysk.de (Volker Wysk) Date: Sat, 05 Aug 2017 13:54:30 +0200 Subject: [moin-user] Opening attached PDF documents from the browser In-Reply-To: <205F109FB2535542BD9DB0753EFF6D3326DE6AC7@BWLSM15.ZD.BWL.NET> References: <4408186.ZPUD7SGLi7@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE6AC7@BWLSM15.ZD.BWL.NET> Message-ID: <2451763.0FN6jln2V4@desktop> Am Freitag, 4. August 2017, 07:25:54 CEST schrieb Molecki, Christian (STL): > if you call your file in a certain page with [[attachment:nameof.pdf]] the > pdf should open in MoinMoin. But this doesn't work with all file-types. I have a link like that. When I click it, I get to the attachment display page. The one which you reach bei clicking "Dateianh?nge" ("attachments") and "anzeigen" ("display"), at the listed attachment. There is a big download button, but no prominent link for the attachment itself. But I've found there is a "laden" ("load") link in the list of attachments. When you click that, you get the pdf document itself... Bye From post at volker-wysk.de Sat Aug 5 12:57:13 2017 From: post at volker-wysk.de (Volker Wysk) Date: Sat, 05 Aug 2017 18:57:13 +0200 Subject: [moin-user] Bug: Unhandled Exception Message-ID: <2483875.H1EiKpeCzT@desktop> Hi The following line, when included in some page, causes an "Unhandled Exception": [[attachment:foo.jpg|{{attachment:foo.jpg||width=200 align="middle"}}]] The attachment "foo.jpg" doesn't need to exist, for triggering the bug. When you remove the quotes, it works. Bye Volker From Christian.Molecki at stala.bwl.de Mon Aug 7 01:42:50 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Mon, 7 Aug 2017 05:42:50 +0000 Subject: [moin-user] Bug: Unhandled Exception In-Reply-To: <2483875.H1EiKpeCzT@desktop> References: <2483875.H1EiKpeCzT@desktop> Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DE6DAE@BWLSM15.ZD.BWL.NET> Hi Volker, at first you have two opening curved brackets and three closing curved brackets. The second issue are the two pipes before "width". In my opinion, two pipes are only necessary to define table cells. Christian. -----Urspr?ngliche Nachricht----- Von: moin-user [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im Auftrag von Volker Wysk Gesendet: Samstag, 5. August 2017 18:57 An: moin-user at python.org Betreff: [moin-user] Bug: Unhandled Exception Hi The following line, when included in some page, causes an "Unhandled Exception": [[attachment:foo.jpg|{{attachment:foo.jpg||width=200 align="middle"}}]] The attachment "foo.jpg" doesn't need to exist, for triggering the bug. When you remove the quotes, it works. Bye Volker _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user From post at volker-wysk.de Mon Aug 7 02:50:50 2017 From: post at volker-wysk.de (Volker Wysk) Date: Mon, 07 Aug 2017 08:50:50 +0200 Subject: [moin-user] Bug: Unhandled Exception In-Reply-To: <205F109FB2535542BD9DB0753EFF6D3326DE6DAE@BWLSM15.ZD.BWL.NET> References: <2483875.H1EiKpeCzT@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE6DAE@BWLSM15.ZD.BWL.NET> Message-ID: <25055334.9mebDCD3Dj@desktop> Am Montag, 7. August 2017, 05:42:50 CEST schrieb Molecki, Christian (STL): > Hi Volker, > > at first you have two opening curved brackets and three closing curved > brackets. Huh? No, I haven't. > The second issue are the two pipes before "width". In my opinion, > two pipes are only necessary to define table cells. In the middle of the two pipes, there is place for the "alt text". This should be empty. The link works, when you remove the braces around "middle". What I'm saying is, that there should be a proper error message, rather than a "Unhandled Exception". Cheers Volker Am Montag, 7. August 2017, 05:42:50 CEST schrieb Molecki, Christian (STL): > Hi Volker, > > at first you have two opening curved brackets and three closing curved > brackets. The second issue are the two pipes before "width". In my opinion, > two pipes are only necessary to define table cells. > > Christian. > > -----Urspr?ngliche Nachricht----- > Von: moin-user > [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im > Auftrag von Volker Wysk Gesendet: Samstag, 5. August 2017 18:57 > An: moin-user at python.org > Betreff: [moin-user] Bug: Unhandled Exception > > Hi > > The following line, when included in some page, causes an "Unhandled > Exception": > > [[attachment:foo.jpg|{{attachment:foo.jpg||width=200 align="middle"}}]] > > The attachment "foo.jpg" doesn't need to exist, for triggering the bug. When > you remove the quotes, it works. Bye Volker From Christian.Molecki at stala.bwl.de Mon Aug 7 02:53:51 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Mon, 7 Aug 2017 06:53:51 +0000 Subject: [moin-user] Bug: Unhandled Exception In-Reply-To: <25055334.9mebDCD3Dj@desktop> References: <2483875.H1EiKpeCzT@desktop> <205F109FB2535542BD9DB0753EFF6D3326DE6DAE@BWLSM15.ZD.BWL.NET> <25055334.9mebDCD3Dj@desktop> Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DE74FF@BWLSM15.ZD.BWL.NET> Take a look at the apache errolog file. There you can find the "stack trace" of unhandled exceptions. Christian -----Urspr?ngliche Nachricht----- Von: moin-user [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im Auftrag von Volker Wysk Gesendet: Montag, 7. August 2017 08:51 An: moin-user at python.org Betreff: Re: [moin-user] Bug: Unhandled Exception Am Montag, 7. August 2017, 05:42:50 CEST schrieb Molecki, Christian (STL): > Hi Volker, > > at first you have two opening curved brackets and three closing curved > brackets. Huh? No, I haven't. > The second issue are the two pipes before "width". In my opinion, > two pipes are only necessary to define table cells. In the middle of the two pipes, there is place for the "alt text". This should be empty. The link works, when you remove the braces around "middle". What I'm saying is, that there should be a proper error message, rather than a "Unhandled Exception". Cheers Volker Am Montag, 7. August 2017, 05:42:50 CEST schrieb Molecki, Christian (STL): > Hi Volker, > > at first you have two opening curved brackets and three closing curved > brackets. The second issue are the two pipes before "width". In my opinion, > two pipes are only necessary to define table cells. > > Christian. > > -----Urspr?ngliche Nachricht----- > Von: moin-user > [mailto:moin-user-bounces+christian.molecki=stala.bwl.de at python.org] Im > Auftrag von Volker Wysk Gesendet: Samstag, 5. August 2017 18:57 > An: moin-user at python.org > Betreff: [moin-user] Bug: Unhandled Exception > > Hi > > The following line, when included in some page, causes an "Unhandled > Exception": > > [[attachment:foo.jpg|{{attachment:foo.jpg||width=200 align="middle"}}]] > > The attachment "foo.jpg" doesn't need to exist, for triggering the bug. When > you remove the quotes, it works. Bye Volker _______________________________________________ moin-user mailing list moin-user at python.org https://mail.python.org/mailman/listinfo/moin-user From pete.bleackley at btinternet.com Tue Aug 8 13:30:09 2017 From: pete.bleackley at btinternet.com (PETER BLEACKLEY) Date: Tue, 8 Aug 2017 18:30:09 +0100 (BST) Subject: [moin-user] Punctuation in titles Message-ID: <32784513.51523.1502213409477.JavaMail.defaultUser@defaultHost> I am migrating a wiki from SahrisWiki to MoinMoin. Several of the pages have titles including spaces and punctuation, such as "Christophe Grandsire-Koevoets' TEDx talk", whose filename in SahrisWiki is Christophe_Grandsire-Koevoets%27_TEDx_talk. The links to these pages no longer work. What can I do to fix this? Pete Bleackley -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christian.Molecki at stala.bwl.de Thu Aug 10 03:27:15 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Thu, 10 Aug 2017 07:27:15 +0000 Subject: [moin-user] admin.py Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DF40A3@BWLSM15.ZD.BWL.NET> Hello, is there a function in moinmoin there I can get all instances (e.g from intermap.txt) ? I want to add a column in user_browser, with the instance names, where a user is registrated. Where can I get help for development? Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at boddie.org.uk Thu Aug 10 11:06:31 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Thu, 10 Aug 2017 17:06:31 +0200 Subject: [moin-user] admin.py In-Reply-To: <205F109FB2535542BD9DB0753EFF6D3326DF40A3@BWLSM15.ZD.BWL.NET> References: <205F109FB2535542BD9DB0753EFF6D3326DF40A3@BWLSM15.ZD.BWL.NET> Message-ID: <201708101706.31779.paul@boddie.org.uk> On Thursday 10. August 2017 09.27.15 Molecki, Christian (STL) wrote: > > is there a function in moinmoin there I can get all instances (e.g from > intermap.txt) ? I want to add a column in user_browser, with the instance > names, where a user is registrated. Doing a quick grep on the MoinMoin package, I see that the MoinMoin.wikiutil module is the place where intermap files are read. Maybe the load_wikimap function is suitable. > Where can I get help for development? There is a moin-devel list alongside the moin-user list on python.org. That said, I imagine that Moin developers are on both lists, anyway, and it isn't like there is any real traffic on either list. Paul From pete.bleackley at btinternet.com Thu Aug 10 11:32:41 2017 From: pete.bleackley at btinternet.com (PETER BLEACKLEY) Date: Thu, 10 Aug 2017 16:32:41 +0100 (BST) Subject: [moin-user] Punctuation in titles Message-ID: <29404652.34657.1502379161840.JavaMail.defaultUser@defaultHost> I used a bash script that, for each file $NAME in sahriswiki's repository, created a directory in data/pages/$NAME, with a subdirectory data/pages/$NAME/revisions, copied the file to data/pages/$NAME/revisions/00000001, and then created data/pages/$NAME/current, containing the string 00000001. ----Original message---- >From : paul at boddie.org.uk Date : 10/08/2017 - 16:18 (BST) To : pete.bleackley at btinternet.com Subject : Re: [moin-user] Punctuation in titles On Tuesday 8. August 2017 19.30.09 PETER BLEACKLEY wrote: > I am migrating a wiki from SahrisWiki to MoinMoin. Several of the pages > have titles including spaces and punctuation, such as "Christophe > Grandsire-Koevoets' TEDx talk", whose filename in SahrisWiki is > Christophe_Grandsire-Koevoets%27_TEDx_talk. The links to these pages no > longer work. What can I do to fix this? Pete Bleackley If you have migrated the pages, make sure that the page names have the correct form in the filesystem. They will use directories which look like this: Christophe(20)Grandsire(2d)Koevoets(2720)TEDx(20)talk You might need to tell us how you performed this migration. If I were doing it, I would process the content appropriately and then import each page in its own text file into Moin using the page package infrastructure. This should ensure the correct use of the filesystem and also interact with any search engine indexing. For reference, the MoinMoin.wikiutil.quoteWikinameFS function performs the filesystem encoding in MoinMoin 1.x. Paul From pete.bleackley at btinternet.com Thu Aug 10 15:24:09 2017 From: pete.bleackley at btinternet.com (PETER BLEACKLEY) Date: Thu, 10 Aug 2017 20:24:09 +0100 (BST) Subject: [moin-user] Punctuation in titles Message-ID: <25950837.45239.1502393049336.JavaMail.defaultUser@defaultHost> I've renamed directories as to try to match the example you gave, but there are still three that aren't linking correctly. Their names are currently Christophe(20)Grandsire(2d)Koevoets(2720)TEDx(20)talk Hildegard(20)of(20)Bingen(27)s(20)Unknown(20)Language(3A20)An(20)Edition(2C20)Translation(20)and(20)Discussion The(20)Dictionary(20)of(20)Made(2d)Up(20)Languages ----Original message---- >From : paul at boddie.org.uk Date : 10/08/2017 - 17:00 (BST) To : pete.bleackley at btinternet.com Subject : Re: [moin-user] Punctuation in titles On Thursday 10. August 2017 17.32.41 you wrote: > I used a bash script that, for each file $NAME in sahriswiki's repository, > created a directory in data/pages/$NAME, with a subdirectory > data/pages/$NAME/revisions, copied the file to > data/pages/$NAME/revisions/00000001, and then created > data/pages/$NAME/current, containing the string 00000001. OK. That will work to a reasonable extent, but as you've discovered, some filenames needing encoding will need to be changed for Moin to be happy with them. I have no experience with this "SahrisWiki", so I don't have any insights about better ways of doing this, but you could do one of the following things... The "Proper" But Harder Approach -------------------------------- Extract each page's content from the original repository, convert it as appropriate, store it in a directory dedicated to the purpose of migration using an arbitrary filename (maybe the page name as it is). You'll have something like this: wikipages/Someone'sPage wikipages/AnotherPage ... Then, define a MOIN_PACKAGE manifest suitable for the page package installer which lists each page and corresponding filename. Then you'll also have this: wikipages/MOIN_PACKAGE Inside it you'll have something like this: MoinMoinPackage|1 AddRevision|Someone'sPage|Someone'sPage AddRevision|AnotherPage|AnotherPage ... As far as I remember, you don't need to encode the page names in the third column nor the page filenames in the second column. Moin will take care of all that. See here for details: https://moinmo.in/HelpOnPackageInstaller Finally, zip up the directory and run the package installer on it. The Easier But Less Thorough Approach ------------------------------------- Alternatively, just make a script that renames your page directories to be what Moin expects. You'll need to loop over the directories in the pages directory, convert them using the quoteWikinameFS function if they are still the original page names, and then issue a rename/move operation on each one requiring adjustment. This approach is arguably a lot easier if you're comfortable with filesystem- related scripting, which I guess you are, but you will need to do things like run any indexing manually afterwards. But maybe you're not at the point where you've enabled indexing, anyway. Paul From paul at boddie.org.uk Thu Aug 10 15:57:56 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Thu, 10 Aug 2017 21:57:56 +0200 Subject: [moin-user] Punctuation in titles In-Reply-To: <25950837.45239.1502393049336.JavaMail.defaultUser@defaultHost> References: <25950837.45239.1502393049336.JavaMail.defaultUser@defaultHost> Message-ID: <201708102157.56794.paul@boddie.org.uk> On Thursday 10. August 2017 21.24.09 you wrote: > I've renamed directories as to try to match the example you gave, but there > are still three that aren't linking correctly. Their names are currently > > Christophe(20)Grandsire(2d)Koevoets(2720)TEDx(20)talk > Hildegard(20)of(20)Bingen(27)s(20)Unknown(20)Language(3A20)An(20)Edition(2C > 20)Translation(20)and(20)Discussion > The(20)Dictionary(20)of(20)Made(2d)Up(20)Languages All of these can be run through unquoteWikiname and give credible output, but the question is whether this matches the link text in the page content. Using such output given the above inputs, I'd expect things like this in page content: [[Christophe Grandsire-Koevoets' TEDx talk]] [[Hildegard of Bingen's Unknown Language: An Edition, Translation and Discussion]] [[The Dictionary of Made-Up Languages]] There shouldn't be any complications related to relative linking here, with ".." or "/" providing more of a challenge when present. Paul From paul at boddie.org.uk Fri Aug 11 08:08:55 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Fri, 11 Aug 2017 14:08:55 +0200 Subject: [moin-user] Punctuation in titles In-Reply-To: <12397663.8611.1502441312379.JavaMail.defaultUser@defaultHost> References: <12397663.8611.1502441312379.JavaMail.defaultUser@defaultHost> Message-ID: <201708111408.56078.paul@boddie.org.uk> On Friday 11. August 2017 10.48.32 you wrote: > That is what it should be doing, but I seem to have a bug in my MoinMoin > installation. If I try to create [[This is a test page]], this gets > converted to This%20is%20a%20test%20page > and then to > This(25)20is(25)20a(25)20test(25)20page > > Any idea what's doing that? If I can fix that, I think everything will be > OK. Looks like a double-encoding problem to me. Somehow, the page name, which is passed in via the URL, is not getting decoded to produce the name with spaces in it. Then, the quoteWikinameFS function is doing its work on the %-encoded string rather than the actual page name. I've copied the list in my reply because someone else might have an immediate solution to this, whereas I would need to look at the code. Paul From pete.bleackley at btinternet.com Tue Aug 22 12:59:03 2017 From: pete.bleackley at btinternet.com (PETER BLEACKLEY) Date: Tue, 22 Aug 2017 17:59:03 +0100 (BST) Subject: [moin-user] Double encoding bug in page names with spaces Message-ID: <14388889.16516.1503421143507.JavaMail.defaultUser@defaultHost> I'm using MoinMoin 1.9.9, running as a wsgi app under Passenger on a shared Dreamhost server. URLs including encoded spaces and puncuation are being processed wrongly. Consider the following HTML, returned from a page called [[Conlang Critic]] Conlang%20Critic - The Conlang Sources Wiki Note that Conlang%20Critic has been double encoded as Conlang%2520Critic In

Create New Page how is the href generated? wiki/data/pages/Conlang(20)Critic its contents do exist. Pete Bleackley -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at boddie.org.uk Tue Aug 22 17:08:00 2017 From: paul at boddie.org.uk (Paul Boddie) Date: Tue, 22 Aug 2017 23:08:00 +0200 Subject: [moin-user] Double encoding bug in page names with spaces In-Reply-To: <14388889.16516.1503421143507.JavaMail.defaultUser@defaultHost> References: <14388889.16516.1503421143507.JavaMail.defaultUser@defaultHost> Message-ID: <201708222308.01511.paul@boddie.org.uk> On Tuesday 22. August 2017 18.59.03 PETER BLEACKLEY wrote: > I'm using MoinMoin 1.9.9, running as a wsgi app under Passenger on a shared > Dreamhost server. URLs including encoded spaces and puncuation are being > processed wrongly. It seems that Passenger is not completely compliant with WSGI: https://stackoverflow.com/questions/31760135/passengerflask-and-url-escaping It might be worth telling Dreamhost this and/or seeing if they have any existing documentation about such matters. Meanwhile, you could probably fix this by modifying the MoinMoin/wsgiapp.py file that presumably gets deployed when using WSGI. Paul P.S. Sorry not to respond to your previous question about this, but I have been occupied with other matters, and since nobody is paying anyone to work on (and provide support for) Moin as far as I know, a timely response is not always guaranteed. From post at volker-wysk.de Sun Aug 27 13:28:00 2017 From: post at volker-wysk.de (Volker Wysk) Date: Sun, 27 Aug 2017 19:28:00 +0200 Subject: [moin-user] User name of the package installer? Message-ID: <3598411.CQ4Vs735d4@desktop> Hi! I'm trying to import some pages with the package installer. This leads to "action add revision: not enough rights - nothing done" messages. I believe, that this is due to my "acl_rights_before" setting in wikiconfig.py, which allows everything to one user, and forbids everything to everyone else. So I want to grant the necessary rights to the package installer. This leads to the question: What is the user name, which the package installer uses? Cheers Volker From Christian.Molecki at stala.bwl.de Thu Aug 31 02:23:17 2017 From: Christian.Molecki at stala.bwl.de (Molecki, Christian (STL)) Date: Thu, 31 Aug 2017 06:23:17 +0000 Subject: [moin-user] Output of Pagelist Message-ID: <205F109FB2535542BD9DB0753EFF6D3326DFB466@BWLSM15.ZD.BWL.NET> Hello, we have a page with some subpages. /foo/bar1 /foo/bar2 /foo/bar3 So we list these subpages by <> The output of these macro is: 1. /foo/bar1 2. /foo/bar2 3. /foo/bar3 Is it possible to display the name of the subpages only (without parent pages)? 1. bar1 2. bar2 3. bar3 Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: