コード例 #1
0
def set_base_url(context):
    #context.server = context.server.add_path_segment(context.base_url)
    # This causes trouble on at least one setup (Windows 8, 64bit, Anaconda Python installation; '/' in path gets url-encoded!)
    # Thus try to avoid this:
    context.server = add_multi_path_segments(context.server, context.base_url)
コード例 #2
0
def set_base_url(context, base_url):
    context.server = add_multi_path_segments(context.server, base_url)