changeset 1110:b27d720fbc8e

actions: cleanup, fix imports
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 31 Jul 2006 01:07:59 +0200
parents 95de1730bedb
children 59f77f472b06 9485500daadf
files MoinMoin/action/__init__.py MoinMoin/action/bookmark.py
diffstat 2 files changed, 5 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/__init__.py	Mon Jul 31 00:58:16 2006 +0200
+++ b/MoinMoin/action/__init__.py	Mon Jul 31 01:07:59 2006 +0200
@@ -201,15 +201,8 @@
         else:
             self.render_msg(self.make_form()) # display the form again
 
-# from wikiaction.py ---------------------------------------------------------
 
-import os, re, time
-from MoinMoin import config
-from MoinMoin.logfile import editlog
-
-#############################################################################
-### Misc Actions
-#############################################################################
+# Builtin Actions ------------------------------------------------------------
 
 def do_raw(pagename, request):
     """ send raw content of a page (e.g. wiki markup) """
@@ -290,9 +283,8 @@
     savemsg = userform.savedata(request)
     Page(request, pagename).send_page(request, msg=savemsg)
 
-#############################################################################
-### Dispatching
-#############################################################################
+# Dispatching ----------------------------------------------------------------
+import os
 
 def getPlugins(request):
     """ return the path to the action plugin directory and a list of plugins there """
--- a/MoinMoin/action/bookmark.py	Mon Jul 31 00:58:16 2006 +0200
+++ b/MoinMoin/action/bookmark.py	Mon Jul 31 01:07:59 2006 +0200
@@ -6,6 +6,8 @@
                 2006 by MoinMoin:ThomasWaldmann
     @license: GNU GPL, see COPYING for details.
 """
+import time
+
 from MoinMoin import wikiutil
 from MoinMoin.Page import Page