How to add Google Calendar iframes in a MoinMoin Page

We use a simple MoinMoin wiki at work in our team in order to record some best practices, information related to problems and so on.

I wanted to maintain a calendar of events related to the team and Google Calendar is the right tool for that but I didn't want to give to the team and new URL to track.

So I looked how to embed it in a MoinMoin page. Google Cal for that advises to embed an iframe as you can also show multiple calendars at once (see picture).

So I did a little GSearch and ended up on the macro for MoinMoin.

It is a pretty dumb macro as all it does is to pass the macro argument to the HTML engine that is going to render it.

The issue is that the macro is compatible with version anterior to 1.6.

So I did modified it to be compatible with version 1.6 onwards.

It is available on github under

Get the file and drop it under [MY_MOIN_MOIN_ROOT]/data/plugin/macro or in [PYTHON_DISTRIB]/lib/pythonx.x/site-packages/MoinMoin/macro.

If it works you should have a handy page like that.

Just one additional comment, When you will copy the iframe tag from the GoogleCal page (see below), remove all quotes from the iframe attributes otherwise the macro system of MOINMOIN will not work.

If  you have iframe src="" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>

You shoud insert the following HTML macro:


<<HTML("iframe src= style=border: 0 width=800 height=600 frameborder=0 scrolling=no></iframe>")>>


Enjoy !!!