Differences between revisions 1 and 2
Revision 1 as of 2005-02-17 10:34:11
Size: 1023
Editor: ZoomQuiet
Comment: Include 宏修改
Revision 2 as of 2009-12-25 07:09:05
Size: 1023
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
::-- ZoomQuiet [[[DateTime(2005-02-17T10:34:11Z)]]] ::-- ZoomQuiet [<<DateTime(2005-02-17T10:34:11Z)>>]

修改 macro

::-- ZoomQuiet [2005-02-17 10:34:11]

Include

  • 不知道为什么 1.3.3 的MoinMoin 的 Include 宏的输出虽然可以完好的将包含页面的标题也反馈到主页面来,但是没有了原先那样的快速修改入口链接

  • 不爽直!通过快速阅读脚本修改了它!
  •    1 #...MoinMoin\macro\Include.py
       2 # 217 行左右
       3 
       4         # output the included page
       5         strfile = StringIO.StringIO()
       6         request.redirect(strfile)
       7         try:
       8             cid = request.makeUniqueID("Include_%s" % wikiutil.quoteWikinameFS(inc_page.page_name))
       9             inc_page.send_page(request, content_only=1, content_id=cid)
      10             # Zoomq:: fixed inclued page quick enter link
      11             cntpage = strfile.getvalue()
      12             cntpage += "<a href='"+inc_name+"'>["+inc_name+"]</a>"
      13             #result.append(strfile.getvalue())
      14             result.append(cntpage)
      15         finally:
      16             request.redirect()
    

WoodpeckerLog/2005-02-17 (last edited 2009-12-25 07:09:05 by localhost)