1.1 --- a/MoinShare.py Tue Jul 17 00:41:14 2012 +0200
1.2 +++ b/MoinShare.py Sun Jul 29 00:07:45 2012 +0200
1.3 @@ -7,7 +7,7 @@
1.4 """
1.5
1.6 from MoinSupport import *
1.7 -from MoinMoin import config, wikiutil
1.8 +from MoinMoin import wikiutil
1.9 from DateSupport import getCurrentTime
1.10 import re
1.11
1.12 @@ -156,32 +156,6 @@
1.13 else:
1.14 return mimetypes
1.15
1.16 -def writeHeaders(request, mimetype, metadata, status=None):
1.17 -
1.18 - """
1.19 - Using the 'request', write resource headers using the given 'mimetype',
1.20 - based on the given 'metadata'. If the optional 'status' is specified, set
1.21 - the status header to the given value.
1.22 - """
1.23 -
1.24 - send_headers = get_send_headers(request)
1.25 -
1.26 - # Define headers.
1.27 -
1.28 - headers = ["Content-Type: %s; charset=%s" % (mimetype, config.charset)]
1.29 -
1.30 - # Define the last modified time.
1.31 - # NOTE: Consider using request.httpDate.
1.32 -
1.33 - latest_timestamp = metadata.get("last-modified")
1.34 - if latest_timestamp:
1.35 - headers.append("Last-Modified: %s" % latest_timestamp.as_HTTP_datetime_string())
1.36 -
1.37 - if status:
1.38 - headers.append("Status: %s" % status)
1.39 -
1.40 - send_headers(headers)
1.41 -
1.42 def getUpdatedTime(metadata):
1.43
1.44 """
2.1 --- a/actions/SharedUpdate.py Tue Jul 17 00:41:14 2012 +0200
2.2 +++ b/actions/SharedUpdate.py Sun Jul 29 00:07:45 2012 +0200
2.3 @@ -16,7 +16,7 @@
2.4
2.5 class SharedUpdate(ActionBase, ActionSupport):
2.6
2.7 - "A summary dialogue requesting various parameters."
2.8 + "An update retrieval dialogue requesting various parameters."
2.9
2.10 def get_form_html(self, buttons_html):
2.11 _ = self._
3.1 --- a/actions/SharedUpdates.py Tue Jul 17 00:41:14 2012 +0200
3.2 +++ b/actions/SharedUpdates.py Sun Jul 29 00:07:45 2012 +0200
3.3 @@ -16,7 +16,7 @@
3.4
3.5 class SharedUpdates(ActionBase, ActionSupport):
3.6
3.7 - "A summary dialogue requesting various parameters."
3.8 + "An update manifest retrieval dialogue requesting various parameters."
3.9
3.10 def get_form_html(self, buttons_html):
3.11 _ = self._