Hey everyone. I've got an easy one here, but it's got me somewhat confused... I declare in my product: self.skins_loaded = ['default', 'minimal'] when I use it in a <dtml-in> I get "strings are not allowed". Ok, fine, so I go to my edit form, which is marshalling "skins_loaded:lines" and I put them on two lines.... Then it works as it should... How can I get this to happen from the start? I must be missing something really obvious. thanks for any clues! -e- -- Green Graphics ::: Print and Web Design ::: 510.923.0000
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
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
participants (2)
-
Dieter Maurer -
Ed Colmar