From kent+moin at watsen.net Mon Jul 5 17:16:16 2021 From: kent+moin at watsen.net (Kent Watsen) Date: Mon, 5 Jul 2021 21:16:16 +0000 Subject: [moin-devel] moin2 questions In-Reply-To: References: <0100017a2935df8f-92199976-ed40-4547-9cf8-aca6dae88997-000000@email.amazonses.com> <0100017a2e73259d-eff64159-99d8-4c34-b5d3-0a513caca318-000000@email.amazonses.com> <0100017a3385da96-51c6ad29-4305-4dd2-a7cb-80035a32ad83-000000@email.amazonses.com> Message-ID: <0100017a7887612b-749020d3-e6fd-48a7-8c79-27d022b82494-000000@email.amazonses.com> Jasper and Thomas. Thank-you for your replies. Sorry for the delay, but I wanted to test things locally first? >>> I'm now beginning a new site and I think Moin2 might be a good fit, > > Well, moin2 is not released yet, so only use it if you can care yourself for all potential issues. > > Also, better try out the stuff first, you can use a local developer setup for that. I know, same as two years ago when I first started using moin2, which is still going strong :) >>> 1. Can Moin leverage _existing_ "Basic" auth? >>> >>> * Assuming the Moin URL is underneath another URL protected by >>> an htpasswd file (i.e., the "Authorization: Basic? HTTP header >>> is present) >>> * *And* assuming that the users in the htpasswd file are exactly >>> the same as known by Moin?s database... >>> * Is it possible to get Moin to accept this authentication token >>> without requiring another authentication? >>> * [I understand that some hackery will be required to ensure a >>> ?password-change? inside Moin is reflected back into the >>> htpasswd file, but that?s not what this question is about.] > > https://github.com/moinwiki/moin/blob/master/src/moin/auth/http.py > > As you see there, if it receives an existing auth header and that works to establish a moin user (username + password must match), it will not request http basic auth by itself, but just use the existing auth. > > So, it should work. Yes it does. It took me a little bit to realize I needed an "auth = [HTTPAuthMoin(autocreate=False)]? line in my wikiconfig.py file. BTW, I think that all the examples in docs/admin/configure.rst that have the line: from MoinMoin.auth import FooBar Should be updated to say: from moin.auth import FooBar Yes? Just let me know as I?m prepping a PR with a few other doc tweaks... >>> 2. Can Moin export all its data into a hierarchy of text-files? >>> >>> * I have a requirement to be able to export the entire system >>> * A ?print? might be acceptable... >>> * ...but I think that the goal is more for a ?raw" view (e.g., >>> Markdown) >>> * Metadata can be discarded, but some (e.g., ACLs) would be nice. >>> * Anything like this? > > https://github.com/moinwiki/moin/blob/master/src/moin/scripts/maint/dump_html.py > This can be used to make a html dump. Good to know something is there, but `./m dump-html` throws an exception on both my new test system and my two-year old "production? (home-use only) system... > Theoretically you could also use any of the existing *_out converters to create any format you like - but there is no ready-to-use code for that kind of dump yet. > > https://github.com/moinwiki/moin/tree/master/src/moin/converters Also good to know that building blocks exist; ?markdown_out.py? looks particularly useful. >>> 3. Does Moin support any adaptive-streaming audio/video players >>> (e.g., Video.JS)? >>> >>> * This should be an easy ?add" if not, but figured I?d ask? > > Moin can render audio/video using the html5 tags, but that is rather simple. Not sure what you mean with adaptive-streaming. From the server?s POV, supporting adaptive streaming really boils down to: 1) preprocess raw media to a few ?streaming" formats (e.g., mp4, webm) 2) tweak the HTML returned to include a ?link? in and a ?script? in This is a decent intro to adaptive streaming: https://bitmovin.com/adaptive-streaming . And here?s an intro to Video.JS: https://videojs.com/getting-started . Kent -------------- next part -------------- An HTML attachment was scrubbed... URL: