What do you mean, it isn't being called?

This is actually a variable declaration:
isWeb = false
And it is only in the scope of the current block.

So basically, your code is a noop.

You probably wants:

unless IsDefined("isWeb"):
    AddProperty('isWeb', false)
end

On Tue, Aug 19, 2008 at 11:42 PM, Jan Limpens <[EMAIL PROTECTED]> wrote:

> Hi there,
>
> my controller sends:
> PropertyBag["isWeb"] = true;
>
> in the view I have
>         unless IsDefined("isWeb"):
>             isWeb = false
>         end
>
> this is never called.
>
> but if I do ${isWeb}
>
> I always get false.
>
> Am I stupid?
>
> --
> Jan
> ___________________
> [EMAIL PROTECTED]
> www.limpens.com
> +55 (11) 3082-1087
> +55 (11) 3097-8339
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to