[Moin-devel] CVS: MoinMoin PageEditor.py,1.12,1.13 wikiutil.py,1.101,1.102
J?rgen Hermann
jhermann at users.sourceforge.net
Sat May 11 12:52:02 EDT 2002
Update of /cvsroot/moin/MoinMoin
In directory usw-pr-cvs1:/tmp/cvs-serv5926
Modified Files:
PageEditor.py wikiutil.py
Log Message:
Visual indication we're on the editor page (as a reminder to save stuff)
Index: PageEditor.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/PageEditor.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** PageEditor.py 10 May 2002 22:59:21 -0000 1.12
--- PageEditor.py 11 May 2002 19:51:23 -0000 1.13
***************
*** 75,79 ****
wikiutil.send_title(
title % {'pagename': self.split_title(),},
! pagename=self.page_name)
template_param = ''
if form.has_key('template'):
--- 75,79 ----
wikiutil.send_title(
title % {'pagename': self.split_title(),},
! pagename=self.page_name, body_class="editor")
template_param = ''
if form.has_key('template'):
Index: wikiutil.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/wikiutil.py,v
retrieving revision 1.101
retrieving revision 1.102
diff -C2 -r1.101 -r1.102
*** wikiutil.py 10 May 2002 22:59:21 -0000 1.101
--- wikiutil.py 11 May 2002 19:51:23 -0000 1.102
***************
*** 482,485 ****
--- 482,486 ----
print_mode=1 (or 0)
allow_doubleclick=1 (or 0)
+ body_class: CSS style for BODY tag
"""
import cgi
***************
*** 532,535 ****
--- 533,539 ----
bodyattr = bodyattr + ''' onload="window.defaultStatus='%s'"''' % (
string.replace(string.replace(config.sitename, '"', "'"), "'", "'"))
+ body_class = keywords.get('body_class')
+ if body_class:
+ bodyattr = bodyattr + ' class="%s"' % body_class
print '<body%s><a name="top"></a>' % bodyattr
More information about the Moin-devel
mailing list