[Zope] When a number is the id of a folder

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Fri, 5 Oct 2001 19:15:25 +0400


On Fri, Oct 05, 2001 at 02:06:28PM +0000, Julián Muñoz Domínguez wrote:
> In Zope, I can create a folder with the id "1"
> 
> But then, I can't call it through a python script
> container.1.anything() gives "invalid syntax"

   Try container['1']. Or getattr(container, '1').

Oleg.
---- 
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.