[web2py] models: markmin.py

2015-01-04 Thread Dmitry Ermolaev
Hi what does markmin.py http://127.0.0.1:8000/admin/default/peek/lite_merch/models/markmin.py?id=models__markmin__py in models? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] models - session.py

2015-01-04 Thread Dmitry Ermolaev
What does session.py http://127.0.0.1:8000/admin/default/peek/lite_merch/models/session.py?id=models__session__py in models? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] web2py and sublime test

2015-01-04 Thread Michele Comitini
+1 My goal in this project is to be a model[...] O yeah! the glamour of the web2py environment... ;-) 2015-01-04 3:32 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com: I came across this: https://github.com/cassiobotaro/my_environment Useful! -- Resources: - http://web2py.com -

[web2py] Re: Session disappearing?? Error? Bug?

2015-01-04 Thread Dmitry Ermolaev
I use not 0 value: cache_expire = not request.is_local and 300 or 10 @cache.action(time_expire=cache_expire, cache_model=cache.ram, quick='P') def index(): return response.render() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: models - session.py

2015-01-04 Thread Niphlod
don't know. it's not a file shipped with the scaffolding app On Sunday, January 4, 2015 2:26:54 PM UTC+1, Dmitry Ermolaev wrote: What does session.py http://127.0.0.1:8000/admin/default/peek/lite_merch/models/session.py?id=models__session__py in models? -- Resources: -

[web2py] Re: models: markmin.py

2015-01-04 Thread Niphlod
this is the second question on the same matter: open the file and read the docstrings, no ?! usually this file is not in the scaffolding app. the name suggest more a module in the gluon folder, which carries the markmin markup language routines: it's heavily documented in the book (and the book

Re: [web2py] Re: Rocket // HTTP 400 Bad Request - Body is incomplete

2015-01-04 Thread Niphlod
the point of routes_onerror is EXACTLY to intercept the error and somewhat process it to display a nicer page to the end-user. I'd guess at this point that your controller handling the error has some bugs in it: would you care to trim it to the bare minimum to see if the error is in handling

[web2py] Re: How can I from a celery task post a message in websocket_messaging.py?

2015-01-04 Thread Niphlod
usually using the same method you'd do in web2py... from gluon.contrib.websocket_messaging import websocket_send websocket_send('http://127.0.0.1:', 'Hello World', 'mykey', 'mygroup') On Saturday, January 3, 2015 9:27:17 PM UTC+1, Tito Garrido wrote: Hey Folks, I am studying

[web2py] Re: Web2Py on AWS EC2

2015-01-04 Thread Niphlod
ok. this is documented in the book, but to sum it up, when you start web2py.py without the -i parameter by default it binds only to localhost (meaning it's accessible only from the same host it's running, in your case, the EC2 instance). if you want to reach it to

Re: [web2py] web2py and sublime test

2015-01-04 Thread 'Fernando Villarroel' via web2py-users
+1 Enviado desde mi iPhone El 03-01-2015, a las 23:32, Massimo Di Pierro massimo.dipie...@gmail.com escribió: I came across this: https://github.com/cassiobotaro/my_environment Useful! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] toggle_menuclass in menu examples app

2015-01-04 Thread Dmitry Ermolaev
def toggle_menuclass(cssclass='pressed', menuid='headermenu'): How it work? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

[web2py] Re: New Powered by site - advertise your work

2015-01-04 Thread Dmitry Ermolaev
toTopHover - is empty in https://www.bankruptcyanywhere.com/welcome/default/contact_me -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this

Re: [web2py] Re: How can I from a celery task post a message in websocket_messaging.py?

2015-01-04 Thread Tito Garrido
Cool! Thanks Niphlod! On Sun, Jan 4, 2015 at 3:40 PM, Niphlod niph...@gmail.com wrote: usually using the same method you'd do in web2py... from gluon.contrib.websocket_messaging import websocket_send websocket_send('http://127.0.0.1:', 'Hello World', 'mykey', 'mygroup') On Saturday,

[web2py] Re: New Powered by site - advertise your work

2015-01-04 Thread Dmitry Ermolaev
please upload this app as example: https://www.bankruptcyanywhere.com/welcome/default/index -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received

[web2py] Websocket doesn't work on stable version

2015-01-04 Thread Tito Garrido
Hi Folks, I am using 2.9.11 and when I try to use $.web2py.web2py_websocket('ws:// 127.0.0.1:/realtime/mygroup', function(e){alert(e.data)}) I receive error 403 Forbidden from the server. Chrome: WebSocket connection to 'ws://127.0.0.1:/realtime/mygroup' failed: Error during WebSocket

Re: [web2py] Re: pagination issue redirecting to the current page

2015-01-04 Thread Michele Comitini
Joe, If you stay on page 1, it's because you do not pass the args parameter correctly, when doing the redirect. check you pass the variable page to the select() function and also that when you redirect back to index you pass correctly the page as request.args(0) also simplify your code by

Re: [web2py] how to: tumblr login for web2py

2015-01-04 Thread Michele Comitini
Very nice! just one detail to make it easier for the ones that do not have apt-get... sudo apt-get install python-oauth2 can be replaced with: pip install --user python-oauth2 making it portable to any environment where web2py works 2015-01-03 13:44 GMT+01:00 Falko Delarue

[web2py] Re: web2py sqlform.grid join problem

2015-01-04 Thread Tim Richardson
Do you know how to use web2py's DAL to make a query which joins tables? http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Inner-joins Once you do, give that query to SQLFORM.grid Note that you need to understand what exactly a DAL query is. The term is subtly