First time poster here, though I did significant development work on Moin2 a couple years ago (e.g., the “ItemPageList” macro and the “Dokunized” theme). I had to put my dev activities on the back-burner, but… I'm now beginning a new site and I think Moin2 might be a good fit, but have three questions (to determine how much code I need to write to make things work): 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.] 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? 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… Thanks, Kent
Anyone? Did the message below go thru? Asking because the archive doesn’t show it: https://mail.python.org/pipermail/moin-devel <https://mail.python.org/pipermail/moin-devel>. K.
On Jun 21, 2021, at 8:02 AM, Kent Watsen <kent+moin@watsen.net> wrote:
First time poster here, though I did significant development work on Moin2 a couple years ago (e.g., the “ItemPageList” macro and the “Dokunized” theme). I had to put my dev activities on the back-burner, but…
I'm now beginning a new site and I think Moin2 might be a good fit, but have three questions (to determine how much code I need to write to make things work):
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.]
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?
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…
Thanks, Kent
_______________________________________________ moin-devel mailing list moin-devel@python.org https://mail.python.org/mailman/listinfo/moin-devel
On 22.06.21 13:40, Kent Watsen wrote:
Anyone? Did the message below go thru? Yes.
On Jun 21, 2021, at 8:02 AM, Kent Watsen <kent+moin@watsen.net
2. Can Moin export all its data into a hierarchy of text-files? Isn't this exactly how moin stores the pages on disk? I assume a little shell scripting should do the trick (i.e. picking the last revision of each page).
-- Jasper
Hi Kent,
Anyone? Did the message below go thru?
Yes, it went through.
Asking because the archive doesn’t show it: https://mail.python.org/pipermail/moin-devel <https://mail.python.org/pipermail/moin-devel>.
Not sure how / how often the archive is updated.
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.
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.
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_htm... This can be used to make a html dump. 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
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. Cheers, Thomas -- GPG ID: 9F88FB52FAF7B393 GPG FP: 6D5B EF9A DD20 7580 5747 B70F 9F88 FB52 FAF7 B393
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 <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_htm... <https://github.com/moinwiki/moin/blob/master/src/moin/scripts/maint/dump_htm...> 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 <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 <head> and a “script” in <body> This is a decent intro to adaptive streaming: https://bitmovin.com/adaptive-streaming <https://bitmovin.com/adaptive-streaming>. And here’s an intro to Video.JS: https://videojs.com/getting-started <https://videojs.com/getting-started>. Kent
participants (3)
-
Jasper Olbrich -
Kent Watsen -
Thomas Waldmann