tg2.1 default template, server not responding

View: New views
3 Messages — Rating Filter:   Alert me  

tg2.1 default template, server not responding

by Lukasz Szybalski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,
Just installed tg2.1 and when I click on wsgi environemt link the
server stops responding.

The template needs to be changed to encode the value part as string.

 <td>${str(environment[key])}</td>

otherwise the whole tg2 app crashes.

Thanks,
Lucas






--
Setup CalendarServer for your company.
http://lucasmanual.com/mywiki/CalendarServer
Automotive Recall Database - See if you vehicle has a recall
http://lucasmanual.com/recall

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


Re: tg2.1 default template, server not responding

by Jorge Vargas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, Oct 28, 2009 at 1:36 PM, Lukasz Szybalski <szybalski@...> wrote:
>
> Hello,
> Just installed tg2.1 and when I click on wsgi environemt link the
> server stops responding.
>
> The template needs to be changed to encode the value part as string.
>
>  <td>${str(environment[key])}</td>
>
Sorry about this I have seen many problems with this. Perhaps this
example wasn't the best idea.

> otherwise the whole tg2 app crashes.
>
Are you using any specific locale that may be causing this?

I have commited this to my local copy to be sure I won't forget.

> Thanks,
> Lucas
>
>
>
>
>
>
> --
> Setup CalendarServer for your company.
> http://lucasmanual.com/mywiki/CalendarServer
> Automotive Recall Database - See if you vehicle has a recall
> http://lucasmanual.com/recall
>
> >
>

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


Re: tg2.1 default template, server not responding

by Lukasz Szybalski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, Nov 4, 2009 at 9:13 PM, Jorge Vargas <jorge.vargas@...> wrote:

>
> On Wed, Oct 28, 2009 at 1:36 PM, Lukasz Szybalski <szybalski@...> wrote:
>>
>> Hello,
>> Just installed tg2.1 and when I click on wsgi environemt link the
>> server stops responding.
>>
>> The template needs to be changed to encode the value part as string.
>>
>>  <td>${str(environment[key])}</td>
>>
> Sorry about this I have seen many problems with this. Perhaps this
> example wasn't the best idea.
>
>> otherwise the whole tg2 app crashes.
>>
> Are you using any specific locale that may be causing this?

Not really. My guess its one of the keys is causing some kind of
crash. If you want I can send you a list of the variables.
For now encoding it using str() fixes the issue. Seeing the wsgi
variables is nice, good job on that....


Lucas


>
> I have commited this to my local copy to be sure I won't forget.
>
>> Thanks,
>> Lucas
>>
>>
>>
>>
>>
>>
>> --
>> Setup CalendarServer for your company.
>> http://lucasmanual.com/mywiki/CalendarServer
>> Automotive Recall Database - See if you vehicle has a recall
>> http://lucasmanual.com/recall
>>
>> >
>>
>
> >
>



--
Setup CalendarServer for your company.
http://lucasmanual.com/mywiki/CalendarServer
Automotive Recall Database - See if you vehicle has a recall
http://lucasmanual.com/recall

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