##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
#
##############################################################################
__version__='$Revision: 1.13 $'[11:-2]


# This allows ZPublisher to work with embedded interpreters
# that for some reason have no sys.argv (required by cgi.py).
import sys
if not hasattr(sys, 'argv'):
    sys.argv=[]

from zExceptions import NotFound, BadRequest, InternalError, Forbidden

from Publish import publish_module, Retry

def test(*args, **kw):
    global test
    import Test
    test=Test.publish
    return apply(test, args, kw)

def Main(*args, **kw):
    global test
    import Test
    test=Test.publish
    return apply(test, ('Main',)+args, kw)

# What can we say. ;/
def Zope(*args, **kw):
    global test
    import Test
    test=Test.publish
    return apply(test, ('Zope',)+args, kw)
