[Moin-devel] CVS: MoinMoin wikiaction.py,1.62,1.63

J?rgen Hermann jhermann at users.sourceforge.net
Mon Apr 8 11:51:08 EDT 2002


Update of /cvsroot/moin/MoinMoin
In directory usw-pr-cvs1:/tmp/cvs-serv26576

Modified Files:
	wikiaction.py 
Log Message:
Always create log object


Index: wikiaction.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/wikiaction.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -r1.62 -r1.63
*** wikiaction.py	27 Mar 2002 21:46:50 -0000	1.62
--- wikiaction.py	8 Apr 2002 18:50:07 -0000	1.63
***************
*** 308,311 ****
--- 308,316 ----
              revisions.append(os.path.join(config.backup_dir, file))
  
+     # open log for this page
+     from MoinMoin import editlog
+     log = editlog.EditLog()
+     log.filter(pagename=pagename)
+ 
      print '<h2>' + _('Revision History') + '</h2>\n'
      print '<table border="1" cellpadding="3" cellspacing="0">\n'
***************
*** 314,320 ****
      print '<th>' + _('Size') + '</th>'
      if config.show_hosts:
-         from MoinMoin import editlog
-         log = editlog.EditLog()
-         log.filter(pagename=pagename)
          print '<th>' + _('Editor') + '</th>'
      print '<th>' + _('Comment') + '</th>'
--- 319,322 ----
***************
*** 333,336 ****
--- 335,340 ----
          ##print count, mtime, st[ST_MTIME], "<br>"
  
+         log.find(ed_time=mtime)
+ 
          actions = ""
          if file != currentpage:
***************
*** 347,351 ****
  
          if config.show_hosts:
-             log.find(ed_time=mtime)
              print '<td>%s</td>' % (log.getEditor() or _("N/A"),)
  
--- 351,354 ----





More information about the Moin-devel mailing list