durusmail: quixote-users: Quixote changing object type, from list to _QuoteWrapper
Quixote changing object type, from list to _QuoteWrapper
2003-01-27
2003-01-27
2003-01-27
2003-01-27
2003-01-27
2003-01-27
2003-01-27
Quixote changing object type, from list to _QuoteWrapper
Nicola Larosa
2003-01-27
 > PTL templates that generate HTML convert all string constants to the
 > htmltext type.

Yeah, when migrating from 0.5.1 I had exactly one instance where I had to
use the str() trick, the format string of a time.strftime call.


 > So, you should probably write
 >
 >   interface[str("services")][0]
 >
 > to force the string constant to be a regular Python string.

Just tried, it does not work. In fact, it as well shouldn't: the problem is
not in the 'interface' dict, it's in the 'interface["services"] list.


Hey, looks like I raised quite a stir. Thanks for the attention, guys!


--
"Python is the Beatles of programming languages."
    Aaron K. Johnson on comp.lang.python

Nicola Larosa - nico@tekNico.net



reply