[web2py] MongoDB adapter

2015-05-01 Thread José Ricardo Borba
Hi 4 All, I'm new to mongoDB and still having some problems with a TIME field. When I set a TIME field in the table, fill the input field of a sqlform (only time is allowed) and send the data to table, all the record is inserted without any warning. But when I try to show in the sqlform, I receive

[web2py] form misalignment with bootstrap3_inline

2015-05-01 Thread Bob St John
Using web2py version 2.10.4 with response.formstyle=bootstrap3_inline Problem: When using SQLFORM or SQLFORM.grid(view) the form fields whose value is None or when writable=False do not line up horizontally with the label. Solution (or hack): In gluon.sqlhtml.py I added the following elif (about

Re: [web2py] Re: socket.io to connect to tornado websocket

2015-05-01 Thread Derek
I believe you have to put the port in a variable... var socket = new io.Socket('ws://localhost/realtime/mygroup1',{ port: 12200 }); On Friday, May 1, 2015 at 9:16:01 AM UTC-7, Ramos wrote: > > I really missed a line > here it is > > socket.emit('subscribe', 'mygroup1'); > > according to this m

Re: [web2py] Re: socket.io to connect to tornado websocket

2015-05-01 Thread António Ramos
I really missed a line here it is socket.emit('subscribe', 'mygroup1'); according to this meteor package documentation https://atmospherejs.com/joncursi/socket-io-client but it does not work!! dont know why... Iḿ trying to have a meteorjs app connecting to my web2py tornado websockets app an

[web2py] Re: websocket_send() on db insert

2015-05-01 Thread 黄祥
perhaps you can check this discussion : https://groups.google.com/forum/#!topic/web2py/sp4fpYz36HI instead insert it into auth_event table, you can do mail.send() best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

[web2py] websocket_send() on db insert

2015-05-01 Thread 'sasogeek' via web2py-users
is there a way to execute some script anytime there's a db insert (either from a form or by manual insert query, or any db query for that matter)? and by script, i'd want to use websocket_send to send some messages anytime something goes in or out of the db with regards to some specific tables.

[web2py] delete session value that store query as_list()

2015-05-01 Thread 黄祥
hi, i store rows query in the session, and want to remove it, is it need two step for that? e.g. def purchase_return_form(): form = SQLFORM(db.purchase_return_header) if form.validate(): session.purchase_return_header = dict(form.vars) rows = db(db.purchase_order_detail.pu