레이블이 moinmoin인 게시물을 표시합니다. 모든 게시물 표시
레이블이 moinmoin인 게시물을 표시합니다. 모든 게시물 표시

1/04/2009

How to show some strings instead of logo image at the top left of page in moinmoin

Edit moin-desktop/MoinMoin/config.py

find
logo_string = u'[img src="/wiki/common/moinmoin_.png" alt="MoinMoin Logo" /]'

to
logo_string = u'Logo string here'


where, [ and ] should be replaced by ( and )

1/01/2009

moinmoin desktop edition tips..

How to make anonymous user cannot read, write, and so on....

Edit wikiconfig.py as follows
# -*- coding: iso-8859-1 -*-
"MoinMoin - Configuration"

from MoinMoin.multiconfig import DefaultConfig

class Config(DefaultConfig):
sitename = "Jun-Seok Choi local notebook"
acl_rights_before = u"LoginUser:read,write,delete,revert,admin All:"
acl_rights_after = acl_rights_default = u"LoginUser:read,write,delete,revert,admin All:"
port = 8080
where, "LoginUser" is an ID.
Note that admin must create LoginUser ID and password before edit wikiconfig.py file as above.


How to make desktop edition runs as server


make wikiserverconfig.py file as follows
from __main__ import DefaultConfig
class Config(DefaultConfig):
port = 8080
interface = ""
# changes the interface where the webserver is bound.
#use "" for every interface

How to start webbrowser automatically when start moin.py


edit moin.py
import webbrowser

and add these before run(Config) in moin.py last line.
# Run browser
iface = 'localhost'
url = "http://" + iface + ":" + str(Config.port)
webbrowser.open(url)

.