Added link to edit the Document on the Document's public page.
This link will only show if the user is allowed to edit the document.
Fixes issue 271.
Update issue 271
Owner: ljvderijk
"""
Code used in a couple of places to work with the current thread's environment.
Current users include i18n and request prefix handling.
"""
try:
import threading
currentThread = threading.currentThread
except ImportError:
def currentThread():
return "no threading"