Yes .. looks like there was something wrong in my code the other day.. Am using it today for something else and it works fine.. sorry for the trouble.. and yeah thanks mdipierro for replying!
On Fri, Sep 3, 2010 at 10:06 PM, Matias <[email protected]> wrote: > El 03/09/10 17:09, mdipierro escribió: > > 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. >>> >> >> > Hi, > > Probably this is quite offtopic, but I have to say it: I've been using > django for over two years now for three different projects, and I love it, > but as I'm an nonconformist I'm allways looking for new tools. I've spent > now several weeks looking to web2py, reading the book, viewing powered by > w2p sites, trying some examples, and reading this list. > > I think it is REALLY GREAT to have mdipierro, the creator of the framework > answering any question here, even to somebody asking "begginers questions". > This is great. > > Sorry for the offtopic. > > >

