[web2py:13601] Question from a beginner

2008-12-15 Thread aus
that? I somehow cannot cross the wall between the templace code and the javascript code... Is JSON a possible solution? Could someone provide an example? thank you! Cheers, aus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:13656] Re: Question from a beginner

2008-12-16 Thread aus
m not the only beginner around :) Traceback (most recent call last): File "/home/aus/Software/Web2py/web2py/gluon/restricted.py", line 62, in restricted exec ccode in environment File "/home/aus/Software/Web2py/web2py/applications/test/controllers/ matplotlib.py", line 29,

[web2py:13662] Re: Question from a beginner

2008-12-16 Thread aus
ok, it works, but firefox displays the raw data, not a figure. I guess I need an appropriate view for that, am I right? Cheers aus On Dec 16, 4:56 pm, mdipierro wrote: >     response.header['content-type']='image/png' > > should have been > >     response

[web2py:13665] Re: Question from a beginner

2008-12-16 Thread aus
ok, I found it, I mistyped 'Content-Type', my fault thanks! aus On Dec 16, 5:04 pm, aus wrote: > ok, it works, but firefox displays the raw data, not a figure. I guess > I need an appropriate view for that, am I right? > > Cheers > aus > > On De

[web2py:13634] Re: Question from a beginner

2008-12-16 Thread aus
http://www.scipy.org/Cookbook/Matplotlib/Django . Is there a similar feature in web2py? Thank you! Cheers, aus On Dec 16, 6:57 am, mdipierro wrote: > I do not know about Dojo. I have been using flot instead. perhaps this > helps > > {{import gluon.contrib.simplejson as sj}} > {{=sj.dumps(d

[web2py:13668] Re: Question from a beginner

2008-12-16 Thread aus
now the question is how to place the figure in a variable to be used in a template. What's the best way of doing that? Should I pack the stream into a dict? How should the view look like? thanks! aus On Dec 16, 5:27 pm, aus wrote: > ok, I found it, I mistyped 'Content-Ty

[web2py:13670] Re: Question from a beginner

2008-12-16 Thread aus
now the question is how to place the figure in a variable to be used in a template. What's the best way of doing that? Should I pack the stream into a dict? How should the view look like? thanks! aus On Dec 16, 5:27 pm, aus wrote: > ok, I found it, I mistyped 'Content-Ty

[web2py:13673] Re: Question from a beginner

2008-12-16 Thread aus
now the question is how to place the figure in a variable to be used in a template. What's the best way of doing that? Should I pack the stream into a dict? How should the view look like? thanks! aus On Dec 16, 5:27 pm, aus wrote: > ok, I found it, I mistyped 'Content-Ty

[web2py:13677] Re: Question from a beginner

2008-12-16 Thread aus
now the question is how to place the figure in a variable to be used in a template. What's the best way of doing that? Should I pack the stream into a dict? How should the view look like? thanks! aus On Dec 16, 5:27 pm, aus wrote: > ok, I found it, I mistyped 'Content-Ty

[web2py:13694] Re: Question from a beginner

2008-12-16 Thread aus
Thank you, Massimo! Sorry for the multiple posts... I didn't mean it :) cheers, ale On Dec 16, 7:26 pm, mdipierro wrote: > You have to do it the old fashion way > > > > web2py allows you to do > > but this is not > supported by IE. > > Massimo > > O

[web2py:13695] Re: Question from a beginner

2008-12-16 Thread aus
syntax is wrong: response.write(embed64(data = {{=imagebinarydata) ^ SyntaxError: invalid syntax and I don't quite understand why. Is it also necessary to include extension='image/png' in the call to embed64? Thanks! Cheers, aus On Dec 17, 1:02 am

[web2py:13735] Re: Question from a beginner

2008-12-17 Thread aus
works fine, but does not Is it a good practice to use a relative path or am I missing anything? thanks! aus On Dec 17, 3:45 pm, mdipierro wrote: > consider the previous example with mathplotlib: > >     def simple(): . return stream.getvalue() > > now from a template you can do &

[web2py:13736] Re: Question from a beginner

2008-12-17 Thread aus
intended behavior or am I again missing something? thanks! aus On Dec 17, 4:09 pm, aus wrote: > ok... I'm slowing getting there... > > now, I've got a file "test/views/testfigure/index.html" where I have > {{extend 'layout.html'}} > This is the testfi

[web2py:13732] Re: Question from a beginner

2008-12-17 Thread aus
is there any example for doing that? I just cannot figure out how to call a python function (action) from a template... thanks! aus On Dec 17, 7:31 am, mdipierro wrote: > > > will work (not on IE). > > Be aware that nobody ever does this. Nobody ever embeds images in > HT

[web2py:13741] Re: Question from a beginner

2008-12-17 Thread aus
great, thanks once again! aus On Dec 17, 4:54 pm, mdipierro wrote: > > > should be > > > > the view simple.html is not used because simple() returns a string > (the page body, the image) and not a dictionary. > > Massimo > > On Dec 17, 9:23 am, a

[web2py:15774] qooxdoo

2009-02-02 Thread aus
Hi everybody! Does anyone have tried out qooxdoo with web2py? If not, is there any foreseeable integration problem? Thanks! Cheers, Alessandro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework"

[web2py:15787] Re: qooxdoo

2009-02-02 Thread aus
Store in Web2Py admin. > > 2009/2/2 aus > > > > > Hi everybody! > > > Does anyone have tried out qooxdoo with web2py? If not, is there any > > foreseeable integration problem? > > > Thanks! > > > Cheers, > > Alessandro --~--~-~--~-