From george at galis.org Fri Jun 4 01:59:13 2010 From: george at galis.org (George Georgalis) Date: Thu, 3 Jun 2010 22:59:13 -0700 Subject: [Moin-user] moin monitor In-Reply-To: <1275053782.19189.47.camel@server.firma.waldmann-edv.de> References: <20100526183141.GR630@bonnie> <1275053782.19189.47.camel@server.firma.waldmann-edv.de> Message-ID: <20100604055913.GJ2223@bonnie> On Fri 28 May 2010 at 03:36:22 PM +0200, Thomas Waldmann wrote: > >> I was wondering if anyone put together a monitor for moin? Not >> sure what would be a good comprehensive test, but there are a >> variety of different things that could go out of order. I'd like >> to get something in place but don't want to reinvent the wheel. :) > >Well, usually you may just want to monitor it like a web site (and >monitors for that already exist). I was thinking a macro that verified functionality of internal mechanisms and generated a page that a typical http monitor could check. Specifically for the case of upgrades or server config changes that can leave static html broken, underlay oddities, perhaps there are other potential problems like permissions, which only present themselves in the case of a page edit. So I was just wondering. If nobody has written a regression, then the answer, as expected, is no. Worth noting: while looking at this I found if I have acl_rights_before = u'Super:read,write,delete,revert,admin' acl_rights_default = u'User:read,write,revert' acl_rights_after = u'All:' then a page with #acl All:read A HEAD request generates: HTTP/1.1 403 FORBIDDEN even though the GET request returns: HTTP/1.1 200 OK Seems like a bug? moin-1.9.2 -George From emmecinque at gmail.com Sun Jun 6 09:59:52 2010 From: emmecinque at gmail.com (Mike McNally) Date: Sun, 6 Jun 2010 08:59:52 -0500 Subject: [Moin-user] Restricting user signup Message-ID: Is it possible to configure MoinMoin such that user account creation can be restricted to admins (or the superuser, or whatever)? In other words, is there a way to make the "newaccount" action available only to a logged-in admin? -- Turtle, turtle, on the ground, Pink and shiny, turn around. -------------- next part -------------- An HTML attachment was scrubbed... URL: From emmecinque at gmail.com Sun Jun 6 11:08:57 2010 From: emmecinque at gmail.com (Mike McNally) Date: Sun, 6 Jun 2010 10:08:57 -0500 Subject: [Moin-user] Restricting user signup In-Reply-To: References: Message-ID: On Sun, Jun 6, 2010 at 8:59 AM, Mike McNally wrote: > Is it possible to configure MoinMoin such that user account creation can be > restricted to admins (or the superuser, or whatever)? In other words, is > there a way to make the "newaccount" action available only to a logged-in > admin? Alternatively: can I white-list email addresses? -- Turtle, turtle, on the ground, Pink and shiny, turn around. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick.vanderveer at gmail.com Sun Jun 6 12:05:26 2010 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Sun, 6 Jun 2010 11:05:26 -0500 Subject: [Moin-user] Restricting user signup In-Reply-To: References: Message-ID: This is a true Frequently Asked Question on this list :-) , therefore I've written a quick HowTo on Managing Account Creation. It might be a bit rough right now (still in-progress) but it should certainly get you started and up to speed. http://moinmo.in/HowTo/ManagingAccountCreation Let me know if anything isn't clear or a section that needs improvement... -Rick On Sun, Jun 6, 2010 at 8:59 AM, Mike McNally wrote: > Is it possible to configure MoinMoin such that user account creation can be > restricted to admins (or the superuser, or whatever)? In other words, is > there a way to make the "newaccount" action available only to a logged-in > admin? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From george at galis.org Mon Jun 7 18:49:44 2010 From: george at galis.org (George Georgalis) Date: Mon, 7 Jun 2010 15:49:44 -0700 Subject: [Moin-user] Restricting user signup In-Reply-To: References: Message-ID: <20100607224944.GE18255@bonnie> On Sun 06 Jun 2010 at 11:05:26 AM -0500, Rick Vanderveer wrote: >This is a true Frequently Asked Question on this list :-) , therefore I've >written a quick HowTo on Managing Account Creation. It might be a bit rough >right now (still in-progress) but it should certainly get you started and up >to speed. > >http://moinmo.in/HowTo/ManagingAccountCreation Wow! Thanks a million, this is really useful! >Let me know if anything isn't clear or a section that needs improvement... One comment, I would remove delete from #acl TrustedGroup:read,write,delete,revert Write and revert for trusted users, I generally don't allow delete for anyone but superuser. There are reasons to keep it, but for a FAQ, I'd leave it out. Thanks again! George From uche.ogbuji at gmail.com Tue Jun 8 17:13:16 2010 From: uche.ogbuji at gmail.com (Uche Ogbuji) Date: Tue, 8 Jun 2010 15:13:16 -0600 Subject: [Moin-user] fabfile for Moin? Message-ID: Has anyone used fabric to deploy/configure Moin? If so, do you have a fabfile.py for Moin that you can share? Thanks. -- Uche Ogbuji http://uche.ogbuji.net Weblog: http://copia.ogbuji.net Founding Partner, Zepheira http://zepheira.com Linked-in: http://www.linkedin.com/in/ucheogbuji Articles: http://uche.ogbuji.net/tech/publications/ Poetry ed @TNB: http://www.thenervousbreakdown.com/uogbuji/ Friendfeed: http://friendfeed.com/uche Twitter: http://twitter.com/uogbuji http://www.google.com/profiles/uche.ogbuji -------------- next part -------------- An HTML attachment was scrubbed... URL: From rick.vanderveer at gmail.com Tue Jun 8 18:59:54 2010 From: rick.vanderveer at gmail.com (Rick Vanderveer) Date: Tue, 8 Jun 2010 17:59:54 -0500 Subject: [Moin-user] Restricting user signup In-Reply-To: <20100607224944.GE18255@bonnie> References: <20100607224944.GE18255@bonnie> Message-ID: Good idea, George. I've updated the page to reflect that. -Rick On Mon, Jun 7, 2010 at 5:49 PM, George Georgalis wrote: > On Sun 06 Jun 2010 at 11:05:26 AM -0500, Rick Vanderveer wrote: > >This is a true Frequently Asked Question on this list :-) , therefore I've > >written a quick HowTo on Managing Account Creation. It might be a bit > rough > >right now (still in-progress) but it should certainly get you started and > up > >to speed. > > > >http://moinmo.in/HowTo/ManagingAccountCreation > > Wow! Thanks a million, this is really useful! > > >Let me know if anything isn't clear or a section that needs improvement... > > One comment, I would remove delete from > > #acl TrustedGroup:read,write,delete,revert > > Write and revert for trusted users, I generally don't allow delete > for anyone but superuser. There are reasons to keep it, but for a > FAQ, I'd leave it out. > > Thanks again! > > George > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at xgm.de Thu Jun 10 12:56:50 2010 From: mailinglists at xgm.de (Florian Lindner) Date: Thu, 10 Jun 2010 18:56:50 +0200 Subject: [Moin-user] Archive an wiki Message-ID: <201006101856.51223.mailinglists@xgm.de> Hello, I have a MoinMoin wiki that I want to archive. I don't need to the user accounts, version histories, discussion, just the content. What is the best way to do that? (continue hosting it is not an option) Thanks, Florian From tw-public at gmx.de Thu Jun 10 14:57:08 2010 From: tw-public at gmx.de (Thomas Waldmann) Date: Thu, 10 Jun 2010 20:57:08 +0200 Subject: [Moin-user] Archive an wiki In-Reply-To: <201006101856.51223.mailinglists@xgm.de> References: <201006101856.51223.mailinglists@xgm.de> Message-ID: <1276196228.11604.3.camel@x300.fritz.box> > I have a MoinMoin wiki that I want to archive. I don't need to the user > accounts, version histories, discussion, just the content. What is the best > way to do that? (continue hosting it is not an option) You can either just keep the data_dir (everything important is in there, content, users, logs). Or, if you want to throw away all history, you can "flatten" it and just keep the current revisions: First, have a backup. :) Then: moin ... main reducewiki --help From jiawei.1214 at gmail.com Fri Jun 11 03:42:25 2010 From: jiawei.1214 at gmail.com (Jiawei Zhang) Date: Fri, 11 Jun 2010 15:42:25 +0800 Subject: [Moin-user] Failed to run moinmoin 1.9.2 with strange 'utf8' codec can't decode byte 0xc3 error Message-ID: Hello, I was run into trouble whith MoinMoin v1.9.2. My environment listed as below. MoinMoin: v1.9.2 MoinMoin code path: /usr/local/lib/python2.6/site-packages/MoinMoin MoinMoin wiki path: /inetpub/www/python/moin Python: v2.6.5 Apache: v2.2.15 Mod_WSGI: v3.2 For me, this is not first time configuring MoinMoin. This time, I went though all steps according to InstallDoc on http://master19.moinmo.in/InstallDocs as before. However, that's showed "Internal Server Error" when visiting http://myhost/wiki. I got following error messages from Apache's error_log. Anyone can help? Thanks! [Fri Jun 11 15:18:35 2010] [notice] Apache/2.2.15 (Unix) PHP/5.2.13 mod_wsgi/3.2 Python/2.6.5 configure d -- resuming normal operations [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] mod_wsgi (pid=3485): Exception occurred proce ssing WSGI script '/inetpub/www/python/moin/server/moin.wsgi'. [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] Traceback (most recent call last): [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/site-package s/MoinMoin/support/werkzeug/utils.py", line 248, in __call__ [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] return self.app(environ, start_response) [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/site-package s/MoinMoin/wsgiapp.py", line 281, in __call__ [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] context = init(request) [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/site-package s/MoinMoin/wsgiapp.py", line 51, in init [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] context.lang = setup_i18n_preauth(context ) [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/site-package s/MoinMoin/wsgiapp.py", line 233, in setup_i18n_preauth [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] i18n.i18n_init(context) [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/site-package s/MoinMoin/i18n/__init__.py", line 91, in i18n_init [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] _languages[language][key] = value.decode( encoding) [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] File "/usr/local/lib/python2.6/encodings/ut f_8.py", line 16, in decode [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] return codecs.utf_8_decode(input, errors, True) [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 5: unexpected end of data -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw-public at gmx.de Fri Jun 11 06:04:18 2010 From: tw-public at gmx.de (Thomas Waldmann) Date: Fri, 11 Jun 2010 12:04:18 +0200 Subject: [Moin-user] Failed to run moinmoin 1.9.2 with strange 'utf8' codec can't decode byte 0xc3 error In-Reply-To: References: Message-ID: <1276250658.13681.7.camel@x300.fritz.box> > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] File > "/usr/local/lib/python2.6/site-package > s/MoinMoin/i18n/__init__.py", line 91, in i18n_init > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] > _languages[language][key] = value.decode( encoding) > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] File > "/usr/local/lib/python2.6/encodings/ut f_8.py", line 16, > in decode > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] return > codecs.utf_8_decode(input, errors, True) > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] > UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 > in position 5: unexpected end of data That means that one or some of the translation files has non-utf8 or corrupt content in it. Did you modify them? Maybe find out which files are affected and fix them. See http://master19.moinmo.in/MoinI18n/... for the master copies of those files (they get put into MoinMoin/i18n/ by a script). Both zh and zh-tw could need a bit more love. (maybe also try to reproduce by just downloading moin 1.9.2 or 1.9.3 soon, unpacking it and running ./wikiserver.py from the unpacked directory) From jiawei.1214 at gmail.com Fri Jun 11 21:11:55 2010 From: jiawei.1214 at gmail.com (Jiawei Zhang) Date: Sat, 12 Jun 2010 09:11:55 +0800 Subject: [Moin-user] Failed to run moinmoin 1.9.2 with strange 'utf8' codec can't decode byte 0xc3 error In-Reply-To: <1276250658.13681.7.camel@x300.fritz.box> References: <1276250658.13681.7.camel@x300.fritz.box> Message-ID: Hello Thomas, Thanks for your information. I'm sure there are not any modifications to the "po" files in /usr/local/lib/python2.6/site-packages/MoinMoin/i18n. The only files I modified are "config/wikiconfig.py" and "server/moin.wsgi". At the same time I can run ./wikiserver.py from unpacked Moin 1.9.2 directory without problems. What's wrong? BTW, My browser language is "en-us,zh-cn,zh" Thanks Again! Jiawei 2010/6/11 Thomas Waldmann > > > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] File > > "/usr/local/lib/python2.6/site-package > > s/MoinMoin/i18n/__init__.py", line 91, in i18n_init > > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] > > _languages[language][key] = value.decode( encoding) > > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] File > > "/usr/local/lib/python2.6/encodings/ut f_8.py", line 16, > > in decode > > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] return > > codecs.utf_8_decode(input, errors, True) > > [Fri Jun 11 15:36:44 2010] [error] [client x.x.x.x] > > UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 > > in position 5: unexpected end of data > > That means that one or some of the translation files has non-utf8 or > corrupt content in it. Did you modify them? > > Maybe find out which files are affected and fix them. > > See http://master19.moinmo.in/MoinI18n/... for the master copies of > those files (they get put into MoinMoin/i18n/ by a script). Both zh and > zh-tw could need a bit more love. > > (maybe also try to reproduce by just downloading moin 1.9.2 or 1.9.3 > soon, unpacking it and running ./wikiserver.py from the unpacked > directory) > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw at waldmann-edv.de Sat Jun 12 06:42:32 2010 From: tw at waldmann-edv.de (Thomas Waldmann) Date: Sat, 12 Jun 2010 12:42:32 +0200 Subject: [Moin-user] Failed to run moinmoin 1.9.2 with strange 'utf8' codec can't decode byte 0xc3 error In-Reply-To: References: <1276250658.13681.7.camel@x300.fritz.box> Message-ID: <1276339352.17492.5.camel@x300.fritz.box> > I'm sure there are not any modifications to the "po" files > in /usr/local/lib/python2.6/site-packages/MoinMoin/i18n. The only > files I modified are "config/wikiconfig.py" and "server/moin.wsgi". Did you use any non-utf-8 encoding there? > At the same time I can run ./wikiserver.py from unpacked Moin 1.9.2 > directory without problems. What's wrong? > BTW, My browser language is "en-us,zh-cn,zh" I also tried that without problems. Is it maybe a permissions problem? Did you mix some old with some new moin installation in the same directory? Did you use setup.py --force when installing? > From jiawei.1214 at gmail.com Sat Jun 12 21:00:48 2010 From: jiawei.1214 at gmail.com (Jiawei Zhang) Date: Sun, 13 Jun 2010 09:00:48 +0800 Subject: [Moin-user] Failed to run moinmoin 1.9.2 with strange 'utf8' codec can't decode byte 0xc3 error In-Reply-To: <1276339352.17492.5.camel@x300.fritz.box> References: <1276250658.13681.7.camel@x300.fritz.box> <1276339352.17492.5.camel@x300.fritz.box> Message-ID: Thomas, 1. my config/wikiconfig.py use utf-8 encoding. The file begin with firstline "# -*- coding: utf-8 -*-". server/moin.wsgi use ANSI encoding. The file begin with firstline "# -*- coding: iso-8859-1 -*-" They encoding settings all keep unchanged as they are originally. I run MoinMoin v1.91 instance on another server. The two files on that server keep the same encoding settings. 2. The MoinMoin installation is fresh and first time on my host. So I didn't use --force parameter. Thanks Gavin 2010/6/12 Thomas Waldmann > > > > I'm sure there are not any modifications to the "po" files > > in /usr/local/lib/python2.6/site-packages/MoinMoin/i18n. The only > > files I modified are "config/wikiconfig.py" and "server/moin.wsgi". > > Did you use any non-utf-8 encoding there? > > > At the same time I can run ./wikiserver.py from unpacked Moin 1.9.2 > > directory without problems. What's wrong? > > BTW, My browser language is "en-us,zh-cn,zh" > > I also tried that without problems. > > Is it maybe a permissions problem? > > Did you mix some old with some new moin installation in the same > directory? > > Did you use setup.py --force when installing? > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christoph-Keller at web.de Tue Jun 15 06:22:56 2010 From: Christoph-Keller at web.de (Christoph Keller) Date: Tue, 15 Jun 2010 12:22:56 +0200 (CEST) Subject: [Moin-user] Macro Interface update from Moin 1.5 to 1.9 Message-ID: <1797957275.544883.1276597376995.JavaMail.fmail@mwmweb001> An HTML attachment was scrubbed... URL: From tw-public at gmx.de Tue Jun 15 07:32:22 2010 From: tw-public at gmx.de (Thomas Waldmann) Date: Tue, 15 Jun 2010 13:32:22 +0200 Subject: [Moin-user] Macro Interface update from Moin 1.5 to 1.9 In-Reply-To: <1797957275.544883.1276597376995.JavaMail.fmail@mwmweb001> References: <1797957275.544883.1276597376995.JavaMail.fmail@mwmweb001> Message-ID: <1276601542.22948.21.camel@server.firma.waldmann-edv.de> Moin, > I used the old Gallery macro with Moin 1.5.3. Now i updated to Moin > 1.9.2. > > The Gallery.py macro does not work anymore. Maybe check if there is an updated version on MacroMarket (or an alternative). Gallery2 or Arnica comes to my mind (but I personally don't use that stuff). > I tried to find the error, and the thumbnails are shown when i > uncomment the following section. In this section the values from > macro.forms.item() are are written to a helper structure formvals. request is available as macro.request. For accessing the URL args (query string), use request.args. For accessing POST form data, use request.form. If you want both mixed because you don't care, use request.values. All these are werkzeug MultiDicts and if you just want to get the first value for some key, you can use e.g. request.values.get("somekey", "defaultvalue"). No need for [0] or ["defaultvalue"]. These changes were due to wsgi/werkzeug refactoring, you can also just have a look into the macros we have in 1.9.x to see how they work now. Cheers, Thomas From MGruber at metzler.com Tue Jun 15 12:17:29 2010 From: MGruber at metzler.com (Matthias Gruber) Date: Tue, 15 Jun 2010 18:17:29 +0200 Subject: [Moin-user] XMLRpc - MoinMoin 1.9.2 Message-ID: Hi! Just running a 1.9.2, and try to put some pages in it. I put a Apache authentication on it, and added: AuthType Basic AuthName "Restricted Files" AuthBasicProvider file AuthUserFile /opt/nmsdoc/apache2/conf/httpd.passwd Require valid-user AllowOverride None Options Indexes FollowSymLinks Order allow,deny Allow from all to the apache.conf in the wikiconf.py I put: .... from MoinMoin.auth import GivenAuth # XMLRPC - Config xmlrpc_putpage_enabled = 1 actions_excluded = multiconfig.DefaultConfig.actions_excluded[:] actions_excluded.remove('xmlrpc') auth = [GivenAuth(autocreate=True)] the User which should push the data is in the acl_rights_default: acl_rights_default = u"nmssmn:read,write,delete,revert,admin All:read" An interactive Login w/ password is working! If I try my Python Code: name = "nmssmn" password = "12345678" wikiurl= "http://nmsdoc:8008/nmsdoc" nmsdoc = xmlrpclib.ServerProxy(wikiurl+"?action=xmlrpc2") auth_token = nmsdoc.getAuthToken(name,password) mc = xmlrpclib.MultiCall(nmsdoc) mc.applyAuthToken(auth_token) PageName = "FOOO" mc.putPage(str(PageName),str(PageName)) (As seen on http://moinmo.in/ReimarBauer/xmlrpc) I receive an: Traceback (most recent call last): File "R:\_MG_\_SVN_\nms2WiKi\src\push2Wiki.py", line 328, in funcSendWikiMasterPage() File "R:\_MG_\_SVN_\nms2WiKi\src\push2Wiki.py", line 255, in funcSendWikiMasterPage auth_token = nmsdoc.getAuthToken(name,password) File "R:\Daten\prog\Python\lib\xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "R:\Daten\prog\Python\lib\xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "R:\Daten\prog\Python\lib\xmlrpclib.py", line 1243, in request headers xmlrpclib.ProtocolError: What did I miss ?? Any Clues perhaps? cheers Matthias Pers?nlich haftende Gesellschafter: Friedrich von Metzler, Emmerich M?ller Vorsitzender des Aufsichtsrates: Dr. Christoph Sch?cking Sitz der Gesellschaft: Frankfurt am Main, Handelsregisternummer: HRB 27 515 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empf?nger sein, so bitten wir Sie h?flich, dies unverz?glich dem Absender mitzuteilen und die Nachricht zu l?schen. Es ist unzul?ssig, die Nachricht unbefugt weiterzuleiten oder zu kopieren. Da wir nicht die Echtheit oder Vollst?ndigkeit der in dieser Nachricht enthaltenen Informationen garantieren oder zusichern k?nnen, sind die vorstehenden Ausf?hrungen rechtlich nicht bindend. Eine Haftung hierf?r wird ausgeschlossen. This message is confidential. If you are not the intended recipient, we kindly ask you to inform the sender and delete the information. Any unauthorised dissemination or copying hereof is prohibited. As we cannot guarantee or assure the genuineness or completeness of the information contained in this message, the statements set forth above are not legally binding. Accordingly we cannot accept liability therefore. -------------- next part -------------- An HTML attachment was scrubbed... URL: From christoph-keller at web.de Wed Jun 16 17:26:32 2010 From: christoph-keller at web.de (keller) Date: Wed, 16 Jun 2010 23:26:32 +0200 Subject: [Moin-user] Macro Interface update from Moin 1.5 to 1.9 In-Reply-To: <1276601542.22948.21.camel@server.firma.waldmann-edv.de> References: <1797957275.544883.1276597376995.JavaMail.fmail@mwmweb001> <1276601542.22948.21.camel@server.firma.waldmann-edv.de> Message-ID: <4C194188.5070608@web.de> On 06/15/2010 01:32 PM, Thomas Waldmann wrote: > Moin, > > >> I used the old Gallery macro with Moin 1.5.3. Now i updated to Moin >> 1.9.2. >> >> The Gallery.py macro does not work anymore. >> > Maybe check if there is an updated version on MacroMarket (or an > alternative). Gallery2 or Arnica comes to my mind (but I personally > don't use that stuff). > > >> I tried to find the error, and the thumbnails are shown when i >> uncomment the following section. In this section the values from >> macro.forms.item() are are written to a helper structure formvals. >> > request is available as macro.request. > > For accessing the URL args (query string), use request.args. > > For accessing POST form data, use request.form. > > If you want both mixed because you don't care, use request.values. > > All these are werkzeug MultiDicts and if you just want to get the first > value for some key, you can use e.g. request.values.get("somekey", > "defaultvalue"). No need for [0] or ["defaultvalue"]. > > These changes were due to wsgi/werkzeug refactoring, you can also just > have a look into the macros we have in 1.9.x to see how they work now. > > Cheers, > > Thomas > > > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > > Thanks for you help, I have Arnica running now. I think there should be some Commend in the old Galleries about this. I can do it, but one of the programmers may not like it(There is sth. more up to date). I would not have found Arnica without you. Greetings, Christoph From rb.proj at gmail.com Thu Jun 17 10:18:49 2010 From: rb.proj at gmail.com (R.Bauer) Date: Thu, 17 Jun 2010 16:18:49 +0200 Subject: [Moin-user] XMLRpc - MoinMoin 1.9.2 In-Reply-To: References: Message-ID: Matthias Gruber schrieb: > Hi! > > Just running a 1.9.2, and try to put some pages in it. > > > I put a Apache authentication on it, and added: > > AuthType Basic > AuthName "Restricted Files" > AuthBasicProvider file > AuthUserFile /opt/nmsdoc/apache2/conf/httpd.passwd > Require valid-user > AllowOverride None > Options Indexes FollowSymLinks > Order allow,deny > Allow from all > > > to the apache.conf > > in the wikiconf.py I put: > > .... > from MoinMoin.auth import GivenAuth > > # XMLRPC - Config > xmlrpc_putpage_enabled = 1 > actions_excluded = multiconfig.DefaultConfig.actions_excluded[:] > actions_excluded.remove('xmlrpc') > > auth = [GivenAuth(autocreate=True)] > > > the User which should push the data is in the acl_rights_default: > acl_rights_default = u"nmssmn:read,write,delete,revert,admin All:read" > > An interactive Login w/ password is working! > > If I try my Python Code: > name = "nmssmn" > password = "12345678" > wikiurl= "http://nmsdoc:8008/nmsdoc" > > nmsdoc = xmlrpclib.ServerProxy(wikiurl+"?action=xmlrpc2") > auth_token = nmsdoc.getAuthToken(name,password) > mc = xmlrpclib.MultiCall(nmsdoc) > mc.applyAuthToken(auth_token) > > PageName = "FOOO" > mc.putPage(str(PageName),str(PageName)) > > (As seen on http://moinmo.in/ReimarBauer/xmlrpc) I don't have str in my example and str is wrong because it must be unicode. > > I receive an: > Traceback (most recent call last): > File "R:\_MG_\_SVN_\nms2WiKi\src\push2Wiki.py", line 328, in > funcSendWikiMasterPage() > File "R:\_MG_\_SVN_\nms2WiKi\src\push2Wiki.py", line 255, in > funcSendWikiMasterPage > auth_token = nmsdoc.getAuthToken(name,password) > File "R:\Daten\prog\Python\lib\xmlrpclib.py", line 1199, in __call__ > return self.__send(self.__name, args) > File "R:\Daten\prog\Python\lib\xmlrpclib.py", line 1489, in __request > verbose=self.__verbose > File "R:\Daten\prog\Python\lib\xmlrpclib.py", line 1243, in request > headers > xmlrpclib.ProtocolError: nmsdoc.metzler.com:8008/nmsdoc?action=xmlrpc2: 401 Authorization Required> > > > What did I miss ?? > Any Clues perhaps? Not now I try to reproduce it cheers Reimar > > cheers > Matthias > > > > > Pers?nlich haftende Gesellschafter: Friedrich von Metzler, Emmerich M?ller > Vorsitzender des Aufsichtsrates: Dr. Christoph Sch?cking > Sitz der Gesellschaft: Frankfurt am Main, Handelsregisternummer: HRB 27 515 > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empf?nger sein, so bitten wir Sie h?flich, dies unverz?glich dem Absender mitzuteilen und die Nachricht zu l?schen. Es ist unzul?ssig, die Nachricht unbefugt weiterzuleiten oder zu kopieren. Da wir nicht die Echtheit oder Vollst?ndigkeit der in dieser Nachricht enthaltenen Informationen garantieren oder zusichern k?nnen, sind die vorstehenden Ausf?hrungen rechtlich nicht bindend. Eine Haftung hierf?r wird ausgeschlossen. > > This message is confidential. If you are not the intended recipient, we kindly ask you to inform the sender and delete the information. Any unauthorised dissemination or copying hereof is prohibited. As we cannot guarantee or assure the genuineness or completeness of the information contained in this message, the statements set forth above are not legally binding. Accordingly we cannot accept liability therefore. > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > > > ------------------------------------------------------------------------ > > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user From moinmoin at uni.de Sat Jun 19 11:08:03 2010 From: moinmoin at uni.de (moinmoin at uni.de) Date: Sat, 19 Jun 2010 17:08:03 +0200 Subject: [Moin-user] Archive an wiki Message-ID: <1660.1276960083@uni.de> But that will still require a host allowing to run the wiki ... Was there not a way to reduce a wiki to the html pages instead? This could be archived and later still be hosted. Cannot remember how that can be done :-| On Thu 21:57 , "Thomas Waldmann" tw-public at gmx.de sent: > > I have a MoinMoin wiki that I want to archive. I > don't need to the user > accounts, version histories, discussion, just > the content. What is the best > way to do that? (continue hosting it is not an > option) > You can either just keep the data_dir (everything important is in > there,content, users, logs). > > Or, if you want to throw away all history, you can "flatten" it > and justkeep the current revisions: > > First, have a backup. :) > > Then: moin ... main reducewiki --help > [ Wer angemelet ist erh?lt bei jedem Online Einkauf in ?ber 850 Partnershops BARGELD direkt zur?ck auf`s Girokonto! www.bonusdirekt.de - 10 EUR Startguthaben mit dem Gutschein-Code: UNICODE ] From jdd at dodin.org Sat Jun 19 11:47:56 2010 From: jdd at dodin.org (jdd-gmane) Date: Sat, 19 Jun 2010 17:47:56 +0200 Subject: [Moin-user] Archive an wiki In-Reply-To: <1660.1276960083@uni.de> References: <1660.1276960083@uni.de> Message-ID: Le 19/06/2010 17:08, moinmoin at uni.de a ?crit : > But that will still require a host allowing to run the wiki ... > Was there not a way to reduce a wiki to the html pages instead? > This could be archived and later still be hosted. > > Cannot remember how that can be done :-| > wget? jdd -- http://www.dodin.net http://www.facebook.com/pages/I-support-the-Linux-Documentation-Project/372073631002?v=wall http://www.facebook.com/pages/The-fan-page-of-Claire-Dodin/106485119372062?v=wall From crosseyedpenguin at yahoo.com Sat Jun 19 14:55:59 2010 From: crosseyedpenguin at yahoo.com (Roger Haase) Date: Sat, 19 Jun 2010 11:55:59 -0700 (PDT) Subject: [Moin-user] Archive an wiki In-Reply-To: <1660.1276960083@uni.de> Message-ID: <131845.95123.qm@web36203.mail.mud.yahoo.com> --- On Sat, 6/19/10, moinmoin at uni.de wrote: > > But that will still require a host > allowing to run the wiki ... > Was there not a way to reduce a wiki to the html pages > instead? > This could be archived and later still be hosted. > > Cannot remember how that can be done :-| > http://moinmo.in/HelpOnMoinCommand/ExportDump From daniel.qiuliang at gmail.com Sat Jun 19 18:07:59 2010 From: daniel.qiuliang at gmail.com (Daniel Qiu) Date: Sat, 19 Jun 2010 15:07:59 -0700 Subject: [Moin-user] Moin error Message-ID: <1276985279.2469.7.camel@santorini> Hi Joacim, Do you mind telling me which Moin files to move which exact directory? I have the same problem after upgrading my ubuntu from 9.10 to 10.4. Thanks! Best Regards, Daniel -------------------------------------------------- Thanks, I found the issue. Likely Python have been upgraded to 2.6 (without me to notice) and the Moin files where in 2.5 dir. Just moving the dir to 2.6 made it running again :) Then I made a updated to 1.8.7 and will look into 1.9.x later. Thanks! // Joacim On 05/16/2010 12:33 AM, Thomas Waldmann wrote: > >> I get "500 Internal Server Error" and Apache's log file say: >> ======================= >> Traceback (most recent call last): >> File "/usr/local/share/moin/wiki_mydomain_se/cgi-bin/moin.cgi", >> line 29, in >> from MoinMoin.server.server_cgi import CgiConfig, run >> ImportError: No module named MoinMoin.server.server_cgi >> Premature end of script headers: moin.cgi >> ======================= >> >> The only reason I can think of is that the server have got some >> updates that causes this but have to clue what. >> >> - Do you have some ideas what can be wrong? >> > Likely your moin.cgi does not match the moin code you are running. > > >> Environment >> Ubunbu Server 9.10 (Jaunty) >> Moinmoin 1.8.1 >> Python 2.6.2 >> > If that is correct, you moin is quite outdated and misses some security > fixes. I suggest you upgrade to latest 1.9.x release (and also switch to > WSGI - if you run apache, install libapache2-mod-wsgi). The moin.cgi > problem will get solved by that, too. :) > > If you can't switch to WSGI (or CGI via flup via WSGI) now, you could > also update to latest 1.8.x release. > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Moin-user mailing list > Moin-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/moin-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From moinmoin at uni.de Sat Jun 19 19:48:25 2010 From: moinmoin at uni.de (moinmoin at uni.de) Date: Sun, 20 Jun 2010 01:48:25 +0200 Subject: [Moin-user] Archive an wiki Message-ID: <3704.1276991305@uni.de> That was it it! Thanx! On Sat 21:55 , "Roger Haase" crosseyedpenguin at yahoo.com sent: > http://moinmo.in/HelpOnMoinCommand/ExportDump [ Wer angemelet ist erh?lt bei jedem Online Einkauf in ?ber 850 Partnershops BARGELD direkt zur?ck auf`s Girokonto! www.bonusdirekt.de - 10 EUR Startguthaben mit dem Gutschein-Code: UNICODE ] From rb.proj at gmail.com Sun Jun 27 07:16:14 2010 From: rb.proj at gmail.com (R.Bauer) Date: Sun, 27 Jun 2010 13:16:14 +0200 Subject: [Moin-user] moin-1.9.3 released Message-ID: <4C2732FE.8070201@gmail.com> For details see: http://hg.moinmo.in/moin/1.9/raw-file/1.9.3/docs/CHANGES See http://moinmo.in/MoinMoinDownload for the release archive. BTW, we still need much more people helping with cleaning up on master19.moinmo.in. So, especially if you speak some non-english language, you can help! See http://moinmo.in/MoinDev/Translation for details. From rb.proj at gmail.com Sun Jun 27 07:17:06 2010 From: rb.proj at gmail.com (R.Bauer) Date: Sun, 27 Jun 2010 13:17:06 +0200 Subject: [Moin-user] moin-1.9.3 released Message-ID: For details see: http://hg.moinmo.in/moin/1.9/raw-file/1.9.3/docs/CHANGES See http://moinmo.in/MoinMoinDownload for the release archive. BTW, we still need much more people helping with cleaning up on master19.moinmo.in. So, especially if you speak some non-english language, you can help! See http://moinmo.in/MoinDev/Translation for details. From jan.kosinski at gmail.com Wed Jun 30 05:21:38 2010 From: jan.kosinski at gmail.com (Jan Kosinski) Date: Wed, 30 Jun 2010 11:21:38 +0200 Subject: [Moin-user] Special Pages missing in moin 1.9.3? Message-ID: I have just installed moin for the first time in my life. I used 1.9.3 version and all but two special pages (BadContent and LanguageSetup) are empty. In fact, the wiki/underlay of the 1.9.3 installation package contains only that two pages, while in moin 1.8.8 there are lots of pages there. Is it intended? What I should do? Copy the special pages from 1.8.8 package? From jan.kosinski at gmail.com Wed Jun 30 05:26:18 2010 From: jan.kosinski at gmail.com (Jan Kosinski) Date: Wed, 30 Jun 2010 11:26:18 +0200 Subject: [Moin-user] Special Pages missing in moin 1.9.3? Message-ID: <1E477939-4EF5-4921-844A-C8B5D1912B13@gmail.com> I have just installed moin for the first time in my life. I used 1.9.3 version and all but two special pages (BadContent and LanguageSetup) are empty. In fact, the wiki/underlay of the 1.9.3 installation package contains only that two pages, while in moin 1.8.8 there are lots of pages there. Is it intended? What I should do? Copy the special pages from 1.8.8 package? From tw-public at gmx.de Wed Jun 30 05:41:16 2010 From: tw-public at gmx.de (Thomas Waldmann) Date: Wed, 30 Jun 2010 11:41:16 +0200 Subject: [Moin-user] Special Pages missing in moin 1.9.3? In-Reply-To: <1E477939-4EF5-4921-844A-C8B5D1912B13@gmail.com> References: <1E477939-4EF5-4921-844A-C8B5D1912B13@gmail.com> Message-ID: <1277890876.9690.28.camel@x300.fritz.box> > I have just installed moin for the first time in my life. Congrats. :) > I used 1.9.3 version and all but two special pages (BadContent and LanguageSetup) are empty. These two are the only ones that should not be empty at the start. > In fact, the wiki/underlay of the 1.9.3 installation package contains only that two pages, > while in moin 1.8.8 there are lots of pages there. This is because we have page packages now (read LanguageSetup page). > Is it intended? What I should do? Copy the special pages from 1.8.8 package? No, just make the underlay you get with 1.9.3 work and then visit and read LanguageSetup page. Permissions? Wrong path in wiki config? From jan.kosinski at gmail.com Wed Jun 30 05:59:41 2010 From: jan.kosinski at gmail.com (Jan Kosinski) Date: Wed, 30 Jun 2010 11:59:41 +0200 Subject: [Moin-user] Special Pages missing in moin 1.9.3? In-Reply-To: <1277890876.9690.28.camel@x300.fritz.box> References: <1E477939-4EF5-4921-844A-C8B5D1912B13@gmail.com> <1277890876.9690.28.camel@x300.fritz.box> Message-ID: OK, thanks, I overlooked the thing with installing packages. Now, I have all pages. But perhaps I have spoiled my FrontPage and RecentChanges before. When the pages did no exist before installing packages, I created them manually (by adding <> to FrontPage <> macro to RecentChanges). I guess now they don't look as they would look when installed from the packages ;-) Is there a way to revert them to the default look? Delete pages and reinstall the packages? BTW. I would suggest the LanguageSetup should be clearer, it really did not catch my eye on LanguageSetup that I need to install packages to get the system pages (skimming the text I thought it is sth only about supporting other languages) On Wed, Jun 30, 2010 at 11:41 AM, Thomas Waldmann wrote: > > I have just installed moin for the first time in my life. > > Congrats. :) > > > I used 1.9.3 version and all but two special pages (BadContent and > LanguageSetup) are empty. > > These two are the only ones that should not be empty at the start. > > > In fact, the wiki/underlay of the 1.9.3 installation package contains > only that two pages, > > while in moin 1.8.8 there are lots of pages there. > > This is because we have page packages now (read LanguageSetup page). > > > Is it intended? What I should do? Copy the special pages from 1.8.8 > package? > > No, just make the underlay you get with 1.9.3 work and then visit and > read LanguageSetup page. > > Permissions? Wrong path in wiki config? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tw-public at gmx.de Wed Jun 30 06:47:21 2010 From: tw-public at gmx.de (Thomas Waldmann) Date: Wed, 30 Jun 2010 12:47:21 +0200 Subject: [Moin-user] Special Pages missing in moin 1.9.3? In-Reply-To: References: <1E477939-4EF5-4921-844A-C8B5D1912B13@gmail.com> <1277890876.9690.28.camel@x300.fritz.box> Message-ID: <1277894841.9690.57.camel@x300.fritz.box> On Wed, 2010-06-30 at 11:59 +0200, Jan Kosinski wrote: > OK, thanks, I overlooked the thing with installing packages. Now, I > have all pages. > > But perhaps I have spoiled my FrontPage and RecentChanges before. When > the pages did no exist before installing packages, I created them > manually (by adding <> to FrontPage <> > macro to RecentChanges). I guess now they don't look as they would > look when installed from the packages ;-) Is there a way to revert > them to the default look? Delete pages and reinstall the packages? Just delete the page. Deletion will affect the page in the data_dir ("your" page), and if it is deleted there, it will show you the page from underlay. > BTW. I would suggest the LanguageSetup should be clearer, it really > did not catch my eye on LanguageSetup that I need to install packages > to get the system pages (skimming the text I thought it is sth only > about supporting other languages) How exactly can it be done clearer? The page is on master19.moinmo.in, you can edit there (maybe read EditingOnMoinMaster). From jan.kosinski at gmail.com Wed Jun 30 07:24:18 2010 From: jan.kosinski at gmail.com (Jan Kosinski) Date: Wed, 30 Jun 2010 13:24:18 +0200 Subject: [Moin-user] Special Pages missing in moin 1.9.3? In-Reply-To: <1277894841.9690.57.camel@x300.fritz.box> References: <1E477939-4EF5-4921-844A-C8B5D1912B13@gmail.com> <1277890876.9690.28.camel@x300.fritz.box> <1277894841.9690.57.camel@x300.fritz.box> Message-ID: On Jun 30, 2010, at 12:47 PM, Thomas Waldmann wrote: > On Wed, 2010-06-30 at 11:59 +0200, Jan Kosinski wrote: >> OK, thanks, I overlooked the thing with installing packages. Now, I >> have all pages. >> >> But perhaps I have spoiled my FrontPage and RecentChanges before. When >> the pages did no exist before installing packages, I created them >> manually (by adding <> to FrontPage <> >> macro to RecentChanges). I guess now they don't look as they would >> look when installed from the packages ;-) Is there a way to revert >> them to the default look? Delete pages and reinstall the packages? > > Just delete the page. Deletion will affect the page in the data_dir > ("your" page), and if it is deleted there, it will show you the page > from underlay. This works indeed, thanks a lot. > >> BTW. I would suggest the LanguageSetup should be clearer, it really >> did not catch my eye on LanguageSetup that I need to install packages >> to get the system pages (skimming the text I thought it is sth only >> about supporting other languages) > > How exactly can it be done clearer? The page is on master19.moinmo.in, > you can edit there (maybe read EditingOnMoinMaster). > > I would do in such a way, that the first page after installation that one visits to make configuration is sort of WikiSetup page. When I saw LanguageSetup title I did not pay attention to the content because I just wanted to use English, and not to care about any language setup ;-) But perhaps it is only me with this problem, others may read more carefully ;-) From jan.kosinski at gmail.com Wed Jun 30 07:29:19 2010 From: jan.kosinski at gmail.com (Jan Kosinski) Date: Wed, 30 Jun 2010 13:29:19 +0200 Subject: [Moin-user] Automatic creation of Category Pages Message-ID: <2F8EEC8C-A6F8-404E-9C27-26D77DCE4995@gmail.com> Is there a way to automatically create Category Pages when a link to new Category name is created on some page? I mean that on new DummyPage I create link [[CategoryNotExistingYet]] and when I save the page, the system would create CategoryNotExistingYet page that by default lists all pages in the category based on the template. From dodecatheon at gmail.com Wed Jun 30 15:21:45 2010 From: dodecatheon at gmail.com (Ted Stern) Date: Wed, 30 Jun 2010 12:21:45 -0700 Subject: [Moin-user] how do I do hostname redirection in a farm? Message-ID: Hi all, I currently have a wiki farm located on somehost.someplace.com (for example), with wikis named like this in farmconfig.py: # for multiple wikis, do something like this: ("examplewiki", r"^somehost.somewhere.com/ExampleWiki.*$"), We are going to be moving the wiki host to another computer, and I have anticipated this by creating a hostname alias on our local nameserver that points 'mywikis.somewhere.com' to 'somehost.somewhere.com'. However, after I change farmconfig.py to point to the new hostname, anyone going to the old hostname gets an error message. Is there a simple way to put up a redirection page or something that will send my users to the correct new URL? Ted -- Frango ut patefaciam -- I break so that I may reveal