From barry at barrys-emacs.org Sun Jan 13 12:33:14 2019 From: barry at barrys-emacs.org (Barry Scott) Date: Sun, 13 Jan 2019 17:33:14 +0000 Subject: [moin-devel] Porting Moin Moin to Python 3 Message-ID: <6479427.F5r7xjIEvW@varric.chelsea.private> I've been using MoinMoin for many many years and just got hit with it not working for python3 wsgi. I have ported a lot of code from python2 to python3 and work in both all the time. I'd like to find out what your plans are beyond the Wiki and how I might help. Do you have the first steps identified etc. Barry From tw at waldmann-edv.de Sun Jan 13 17:32:58 2019 From: tw at waldmann-edv.de (Thomas Waldmann) Date: Sun, 13 Jan 2019 23:32:58 +0100 Subject: [moin-devel] Porting Moin Moin to Python 3 In-Reply-To: <6479427.F5r7xjIEvW@varric.chelsea.private> References: <6479427.F5r7xjIEvW@varric.chelsea.private> Message-ID: <47b292b7-fddf-57ea-6efa-bafec31921a6@waldmann-edv.de> > I've been using MoinMoin for many many years and just got hit with it not > working for python3 wsgi. Right, moin 1.9.x and also unreleased "moin2" still require py27. > I'd like to find out what your plans are beyond the Wiki and how I might help. Best help is getting involved in moin2 development and working on issues, but not porting to py3 right now. There are quite a lot of more pressing things to do than the py3 port and the py3 port might even rather get in the way / slow down these things (and also delaying the release of moin2). See the github issue tracker for stuff to do: https://github.com/moinwiki/moin From tw at waldmann-edv.de Mon Jan 14 19:22:11 2019 From: tw at waldmann-edv.de (Thomas Waldmann) Date: Tue, 15 Jan 2019 01:22:11 +0100 Subject: [moin-devel] Porting Moin Moin to Python 3 In-Reply-To: <47b292b7-fddf-57ea-6efa-bafec31921a6@waldmann-edv.de> References: <6479427.F5r7xjIEvW@varric.chelsea.private> <47b292b7-fddf-57ea-6efa-bafec31921a6@waldmann-edv.de> Message-ID: <04b11a65-d118-9240-8f1b-fdb5e7bc8c98@waldmann-edv.de> I updated the related ticket: https://github.com/moinwiki/moin/issues/720#issuecomment-454213469 Improving testing can be done at any time and is required for porting to python 3. -- GPG ID: 9F88FB52FAF7B393 GPG FP: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393 From kent+moin at watsen.net Tue Jan 15 07:56:00 2019 From: kent+moin at watsen.net (Kent Watsen) Date: Tue, 15 Jan 2019 12:56:00 +0000 Subject: [moin-devel] sample data for tests Message-ID: <0100016851953861-0d0b3657-4f6b-492c-a00a-e2645a61f483-000000@email.amazonses.com> Hiya, new guy here. I'm wanting to do something with PagenameList, or maybe MacroPageLinkListBase, but first I notice there are no py.tests, so I figure it might be good to add some... Immediately, I notice that MacroPageLinkListBase.get_item_names() returns an empty list in the py.test environment, but it returns a non-empty list in running server. How to provide storage data for tests?B? Can the "sample" data (./m sample) be used? My tests will extend to testing the ACLs on data, so please consider that as well. Kent From r.alex.owen at gmail.com Mon Jan 28 13:09:01 2019 From: r.alex.owen at gmail.com (Alex Owen) Date: Mon, 28 Jan 2019 18:09:01 +0000 Subject: [moin-devel] Patch for CreatePdfDocument.py Message-ID: Dear moin-devel, I had to make a one line hack to CreatePdfDocument.py to get it working on my web server. I think it is of generic use so am sharing it here as I can't edit the documentation page: http://moinmo.in/ActionMarket/PdfAction Here is the patch that got this remarkable plugin working for me. ====================================== #diff -uNr old/CreatePdfDocument.py new/CreatePdfDocument.py --- old/CreatePdfDocument.py 2019-01-28 15:48:17.697291901 +0000 +++ new/CreatePdfDocument.py 2019-01-28 17:54:05.053729204 +0000 @@ -1785,7 +1785,7 @@ htmldocopts = [self.default_values['htmldoc_cmd'], u'--no-duplex'] + self.default_values['htmldoc_options'] for k,v in self.get_session_cookies().items(): - htmldocopts += ['--cookies', "%s=%s" % (k,v)] + htmldocopts += ['--cookies', "'%s=%s'" % (k,v)] for key in [u'header', u'footer', u'tocheader', u'tocfooter']: self.values[key] = self.values.get(key + u'left', u'.') + self.values.get(key + u'middle', u'.') + self.values.get(key + u'right', u'.') ================================= Regards Alex Owen -- Private web search without a filter bubble: https://duckduckgo.com/ https://ixquick.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: