[Moin-devel] Patch: wikiaction - add id for actions.
David Greaves
david at dgreaves.com
Tue May 18 07:35:14 EDT 2004
Here's a patch against wikiaction.py
see:
http://moinmoin.wikiwikiweb.de:8000/MoinMoinTodo_2fSkinPlugins_2fThemeCssSpecification
It's against the rel-1-2-1 tagbut doesn't appear to have changed in the
HEAD either.
diff -u -r1.110 wikiaction.py
--- wikiaction.py 7 Mar 2004 00:15:10 -0000 1.110
+++ wikiaction.py 18 May 2004 13:03:58 -0000
@@ -66,7 +66,7 @@
context=context, case=case)
# print the result
- request.write('<dl class="searchresult">')
+ request.write('<div id="Action_fullsearch"><dl class="searchresult">')
hiddenhits = 0
for (count, page_name, fragments) in hits:
if not request.user.may.read(page_name):
@@ -88,6 +88,7 @@
request.write('</dl>')
print_search_stats(request, len(hits)-hiddenhits, pagecount, start)
+ request.write('</div>')
wikiutil.send_footer(request, pagename, editable=0, showactions=0,
form=request.form)
@@ -120,12 +121,13 @@
hits = filter(request.user.may.read, hits)
- request.write('<ul>')
+ request.write('<div id="Action_titlesearch"><ul>')
for filename in hits:
request.write('<li>%s</li>' % Page(filename).link_to(request))
request.write('</ul>')
print_search_stats(request, len(hits), len(all_pages), start)
+ request.write('<\div>')
wikiutil.send_footer(request, pagename, editable=0, showactions=0,
form=request.form)
@@ -279,7 +281,7 @@
edit_count = abs(oldcount1 - oldcount2)
- request.write('<p><strong>')
+ request.write('<div id="Action_diff"><p><strong>')
request.write(_('Differences between versions dated %s and %s') % (
oldpage.mtime_printable(request),
newpage.mtime_printable(request)))
if edit_count > 1:
@@ -315,6 +317,7 @@
request.write('<hr>')
request.write(wikiutil.escape(line)+'\n')
request.write('</pre>')
+ request.write('</div>')
wikiutil.send_footer(request, pagename, showpage=1)
@@ -327,6 +330,7 @@
def general(page, pagename, request):
_ = request.getText
+ request.write('<div id="Action_info_general">')
request.write('<h2>%s</h2>\n' % _('General Information'))
# show page size
@@ -366,6 +370,7 @@
for linkedpage in links:
request.write("%s%s " %
(Page(linkedpage).link_to(request), ",."[linkedpage == links[-1]]))
request.write("</p>")
+ request.write('</div>')
def history(page, pagename, request):
@@ -373,6 +378,7 @@
from stat import ST_MTIME, ST_SIZE
_ = request.getText
+ request.write('<div id="Action_info_history">')
request.write('<h2>%s</h2>\n' % _('Revision History'))
# generate history list
@@ -506,6 +512,7 @@
history_table.render()
request.write('</div>')
request.write('\n</form>\n')
+ request.write('</div>')
_ = request.getText
@@ -515,6 +522,7 @@
request.http_headers()
wikiutil.send_title(request, _('Info for "%s"') % (pagename,),
pagename=pagename)
+ request.write('<div id="Action_info">')
historylink = wikiutil.link_tag(request, '%s?action=info' % qpagename,
_('Show "%(title)s"') % {'title': _('Revision History')})
generallink = wikiutil.link_tag(request,
'%s?action=info&general=1' % qpagename,
@@ -535,6 +543,7 @@
else:
history(page, pagename, request)
+ request.write('</div>')
wikiutil.send_footer(request, pagename, showpage=1)
More information about the Moin-devel
mailing list