On Apr 10, 5:53 am, "David J." <[email protected]> wrote:
> In my controller I am defining a class
>
> class Employee:
> pass
>
> john = Employee() # Create an empty employee record
>
> # Fill the fields of the record
> john.name = 'John Doe'
> john.dept = 'computer lab'
> john.salary = 1000
>
> and in my view
>
> I am trying {{=employee.name}}
How are you setting employee?.
>
> It throws an attribute exception
>
> 'p23 S'("name \'name\' is not defined",)'
>
> I am using trunk version; Perhaps I am doing something wrong.
>
> Thanks.