there must be a typo in your code since element(xxx) just calls
elements(xxx)[0]. Please email a sample string a to reproduce the
problem. Google scrambled your message and I cannot check it.

On Sep 2, 2:25 am, b vivek <[email protected]> wrote:
> Hii, I just hopped onto web2py. And it is just beautiful. I am going through
> the book and am stuck up at one place.There is an example there:->>> a = DIV 
> </book/default/docstring/DIV>(DIV </book/default/docstring/DIV>(
>
> DIV </book/default/docstring/DIV>('a', _id='target',_class='abc')))>>> d = 
> a.elements('div#target')
> >>> d[0] = 'changed'
> >>> print a
>
> <div><div><div id="target" class="abc">changed</div></div></div>---(4)
>
> Now when I try this in the shell.. I dont get the result as in 4. However
> when I use a.element instead of a.elements , I get the result. Why should it
> be so . Am I doing something really wrong.

Reply via email to