thanks a lot for all your help.

i got to server.webpath by debugging the following problem:

page: http://localhost:8081/organization/location (please note *2* path depth)
has an tw.autocomplete widget requiring javascript.

after the story you also know, i have finally got thew js link in the
header, as:
src="/organization/toscawidgets/resources/tw.jquery.base/static/javascript/jquery-1.2.6.pack.js"

please note, that the src url has been constructed by removing *1*
level off the page url.

as the source says, server.webpath would have been prepended to the tw
constructed
src url: /toscawidgets/resources/...

but in fact, removing /organization would give the same result. hence,
the place /location is
being removed, probably by an rindex, rindex should probably run in a
loop, untill it gets -1.

i'll find and fix and submit the patch today.

best regards and thanks a lot,
alex

On Mon, Oct 13, 2008 at 10:12, Christopher Arndt <[EMAIL PROTECTED]> wrote:
>
> alex bodnaru wrote:
>> i am running a tg 1.1 development web server at http://localhost:8081
>>
>> it was working and responding until i have set server.webpath in dev.cfg.
>>
>> i needed the webpath, so static urls for css and javascript could be
>> properly constructed.
>
> Why do you think you need it? You don't need to set server.webpath
> unless you want to integrate your TG app into a larger site and make the
> root controller accessible under a URL other than "/".
>
> http://docs.turbogears.org/1.0/Configuration#cherrypy-configuration-reference
>
>> but now, that server.webpath is set to "http://localhost:8081";, the
>> path to my controller (/organization, or even /) can't be found.
>
> This is not the correct way to use server.webpath. As the name of the
> setting implies, it should be set to a URL path, not a full URL. Are you
> looking for the 'base_url_filter.base_url' setting instead, maybe?
>
> If you tell us, what problem you are trying to solve with server.webpath
> and what you are trying to accomplish, we could probably help you better.
>
>
> Chris
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to