[web2py] RESTful json:api

2016-04-17 Thread Raphael Lechner
Hi, I'm trying to build an application with ember.js as frontend and web2py as backend. Ember requires a valid json:api (http://jsonapi.org/) interface. I tried to use the generic json view but the output is different. Example output from generic json view: {"data": [{ "name": "100", "fi

[web2py] testcase for all menu items with py.test after a logon

2015-09-10 Thread Raphael Lechner
Hi, I'm trying to write a test to verify that all menu items are working. I copied the Example from https://github.com/viniciusban/web2py.test to write the first test. The problem is that most of the menu items are only visible after a login. Therefore I tried to login with auth.login_bare but

[web2py] Re: Customizing SQLFORM.grid create, edit and update forms

2015-08-21 Thread Raphael Lechner
Hi, I have the same issue. I added a checkbox to the form, but I can't get the value after submitting. if request.args(0) == 'new': my_extra_element = DIV(LABEL('Create Remote SSH Key',_class="control-label col-sm-3"),INPUT(_name='create_key',_type='checkbox'), _class="form-group")

[web2py] Re: view without newline

2015-08-19 Thread Raphael Lechner
OK I found a very simple solution. I created the view file like echo -n "{{=name}}" > lookup.html On Wednesday, August 19, 2015 at 10:04:52 AM UTC+2, Raphael Lechner wrote: > > Hi, > > I have created a small application that will try to lookup for a name from > a pho

[web2py] view without newline

2015-08-19 Thread Raphael Lechner
Hi, I have created a small application that will try to lookup for a name from a phonenumber. My problem is that FreeSWITCH(the telephone software) requires that the answer don't contains newlines. I have tried with a view that contains only a single line {{=name}} but the answer always contain

[web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-08-04 Thread Raphael Lechner
Hi Massimo, Please add me to the list: Raphael Lechner - GeekOnDemand (Italy) http://www.geekondemand.it/ Thanks! On Sunday, February 15, 2015 at 11:21:36 PM UTC+1, Massimo Di Pierro wrote: > > We need to update the list of companies that provide web2py consulting. > This list is

[web2py] Re: create xml

2013-11-29 Thread Raphael Lechner
Thank you Massimo for the example. I tried your example code but I get now this error: name 'content' is not defined any idea? thank you, Raphael On Saturday, November 16, 2013 6:38:57 PM UTC+1, Massimo Di Pierro wrote: > > Using generic.xml creates a fixed structure. Like in the case of > ge