shell only. The shell does some weird things in keeping the state in order to work on GAE.
On Jan 5, 8:21 am, meentsbk <meent...@gmail.com> wrote: > Wow, that's good to know then. > > So does that mean this is just isolated to the shell only, or does it > also affect doing something similar from a controller? > > On Jan 5, 2:31 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > > > > > You can, in fact reproduce the problem here:http://shell.appspot.com/ > > > Google App Engine/1.4.1 > > Python 2.5.2 (r252:60911, May 12 2010, 14:18:27) > > [GCC 4.3.1] > > > >>> a=[1,2,3] > > >>> a.append(4) > > >>> print a > > > [1, 2, 3] > > > On Jan 5, 1:28 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > It seems thet any statement that modifies an existing object is > > > ignored: > > > > In [1] : a=[1,2,3] > > > In [2] : a.append(4) > > > In [3] : print a > > > [1, 2, 3] > > > > On Jan 4, 10:08 pm, meentsbk <meent...@gmail.com> wrote: > > > > > Hello, > > > > > First, let me preface this with a "I'm EXTREMELY new to web2py." I've > > > > been going through the documentation and trying things in my own > > > > example apps, but there is one thing that seems pretty basic that I > > > > just can't seem to get working, and that is using the DIV helper with > > > > the .append attribute, as documented > > > > onhttp://web2py.com/book/default/docstring/DIV. > > > > > I've actually taken this into the web2py shell application, and am > > > > trying the following: > > > > > a = DIV() > > > > > printing this gives me <div></div>, as expected. > > > > > Then, I do: > > > > > a.append(SPAN('x')) > > > > > This runs without error, but when I do a print, I only get: > > > > > <div></div> > > > > > The same thing also happens for me on insert. Am I just missing > > > > something completely obvious here? > > > > > Brian