def get_published_templateid(context):
    """
    Return the template id, as of the PUBLISHED variable, or None
    """
    request = context.REQUEST
    if request.has_key('PUBLISHED'):
        return request['PUBLISHED'].__name__
    return None