def edit(UI):
    """Edit the requested Directory object page."""
    
    # Locate the requested Directory object.
    reqID = UI.requestParams.value('ID', '0')
    reqDir = objectservers.recall('Directory', reqID)
    reqDir.name = UI.requestParams.value('name', '')

    # Write page out to the client.
    UI.write_header('Directory %s' % reqID)
    UI.write("<body>You just edited Directory record %s, %s" % \
        (reqID, reqDir.name()))
    UI.write("</body></html>")
    return UI.OK
Edit the requested Directory object page.
recipes/Python/225299_Use_IISASP_or_Apachemodpythsame/recipe-225299.py