[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Zope] decaring a list in python


Hey Dieter...  Thanks for the response...

ok...  from the top...   

In my init of my product is this:

self.skins_loaded = ['default', 'minimal']

in my manage screen when using <dtml-in skins_loaded>:  "strings not 
allowed"

so I make it <dtml-var skins_loaded> and I get: ['default', 'minimal']

I change my form to "skins_loaded:lines" and delete the quotes, comma, and 
bracets, and return seperate, then submit the form.

Now <dtml-in skins_loaded> produces the correct result.

This seems like really strange behaviour.  

This is the proper way to declare a list, yes?

-e-

On Sun, 5 May 2002, Dieter Maurer wrote:

> Ed Colmar writes:
>  > I declare in my product:
>  > 
>  > self.skins_loaded = ['default', 'minimal']
>  > 
>  > when I use it in a <dtml-in> I get "strings are not allowed".
> Your "dtml-in" does not see this definition (I cannot tell you
> what it sees, but it is not this one)...
> 
> 
> Dieter
> 

-- 
Green Graphics   :::   Print and Web Design   :::   510.923.0000 



_______________________________________________
Zope maillist  -  Zope@xxxxxxxx
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )



This mailing list archive is a service of Copilotco.