[OT] problems with css, moinmoin standalone and Firefox on Win32 was Re: webserverless Python Wiki Engines: do they exists?

Brian van den Broek bvande at po-box.mcgill.ca
Sat Oct 9 01:54:03 CEST 2004

Carlos Ribeiro said unto the world upon 2004-10-08 18:10:
> On Fri, 08 Oct 2004 17:30:58 -0400, Brian van den Broek
> <bvande at po-box.mcgill.ca> wrote:
>>So, if anyone is still following the thread and knows about why css
>>might work with IE but not FF, I'd love to hear about it!
> I'm using Firefox 0.9 (haven't updated to 1.0pr yet), and for me it
> works just fine. I wonder if it's really a CSS bug... in my case, it
> turned out that I was messing up with the configuration. You don't
> change the CSS only -- you have to change the templating code also. I
> really don't remember what I did, but after a few attempts I managed
> to pute everything together, and the new layout is *much* better (it's
> the one with a sidebar to the right, it's really nice).

Marked OT and subject changed as this is really about moin-moin. Their 
list is much lower traffic and so far my request for help hasn't born 
fruit over there, so with the [OT] notice, I hope people don't mind if I 
pursue it here. If my hope is wrong, speak up, and I will drop it with 

Hi Carlos,

thanks for the reply.

First off, unless it is FF 1.0PR itself (as opposed to Firefox 0.9) that 
is causing the problems, I'd suggest you do the upgrade. A few very nice 
improvements, mostly to find as you type, the updating mechanism, and 
support for live-bookmarks (RSS feed bookmarks). Some very cool stuff. 
And most extensions now support 1.0, too. Also, at the very least, you 
should move up to 0.9.3 -- there were, as I understand it, some MS IE 
sized security wholes in 0.9 which 0.9.1, 0.9.2, and 0.9.3 patched. 
Evangelism done, so:

System details recap:
moin-moin 1.2.3, Python 2.3.4, Firefox 1.0PR, pywin32 build 202, and 
WindowsMe ("ah, *there's* his problem!")

At this point, I'd be happy with *any* layout. It's not that I cannot 
change to a different css-based layout; rather I have no css 
functionality at all, not even the default style. I have an 
appropriately styled wiki when viewed through IE, and an ugly mess when 
viewed through Firefox 1.0PR.

By "ugly mess" I mean: no icons, no colouring, no nicely arranged 
horizontal menus at the top, etc. Instead of the nice icons for edit, 
view, diffs, etc. that moin-moin (as defaulted) puts up on the right 
under IE (and Firefox when I view a public wiki over the web) I get 
something that looks like:

* |_Edit_|
* |_View_|

etc, etc. where the lines indicate an ugly blue box around each link.

I've never worked with css before, and didn't try anything other than as 
installed. (That was a bit bumpy, as the docs for standalone install on 
Win32 on moinmoin.wiki are under construction. I might well have goofed 
something up.)

I did note that the instructions for configuring css say:

> If you wish to modify the default MoinMoin style sheet, it is a good 
> practice to create a new .css file and use the @import function to 
> import the original moinmoin.css file.

and I have no moinmoin.css file anywhere on my system (including the 
moin-moin1.2.3.zip I downloaded). :-(

Can I run my moin-config.py settings past you? My wiki is in 
C:\wikimoin\main. Following instruction on 
 >, I made few changes to moin_config.py. The changed parts now read:

# basic options (you normally need to change these)
sitename = "Brian's Local Wiki"
interwikiname = None
data_dir = './data/'
url_prefix = 'C:/moinwiki/main/htdocs'
#url_prefix = '/wiki' see note 1
logo_url = url_prefix + '/classic/img/moinmoin.png'

# other code left unchanged is omitted.

# for standalone server (see cgi-bin/moin.py)
httpd_host = "localhost"
httpd_port = 80
httpd_user = "nobody"
#httpd_docs = "c:/moinwiki/main/" see note 2
httpd_docs = "C:/Python23/share/moin/htdocs"

note 1:
I made this change after it was suggested on the IRC channel 
freenode/#moin. It didn't help Firefox, but did break css with MS IE. I 
also tried url_prefix = 'C:/moinwiki/main'. No joy.

note 2:
This was suggested on the sourceforge moin-user list, together with 
copying the htdocs dir to c:/moinwiki/main. No observable difference.

Anything look obviously wrong? Mind if I had a peek at your moin_config.py?

Thanks for any light you can shed, and sorry to any who feel I'm abusing 
this list. Best to all,

Brian vdB

More information about the Python-list mailing list