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)
def set_base_url(context, base_url): context.server = add_multi_path_segments(context.server, base_url)