On Oct 12, 12:07 pm, David Marko dma...@tiscali.cz wrote:
Massimo adviced me to use something like this previsously:
def make_connection():
from pymongo import Connection
connection = Connection('localhost', 27017)
return connection
connection =
thks Roberto,
tiago@tiago:~$ cd /opt/web2py/
tiago@tiago:/opt/web2py$ mkdir myspool
tiago@tiago:/opt/web2py$ uwsgi --socket :3031 --spooler myspool --
master --processes 4 --import mytasks --module web2py.wsgihandler
uwsgi: unrecognized option '--import'
On Jul 22, 5:47 am, Roberto De Ioris
I using 0.9.8.1.
How can i update to 0.9.8.2
thks in advance
On Jul 22, 10:15 am, Roberto De Ioris robe...@unbit.it wrote:
Il giorno 22/lug/2011, alle ore 11:09, Tiago Moutinho ha scritto:
thks Roberto,
tiago@tiago:~$ cd /opt/web2py/
tiago@tiago:/opt/web2py$ mkdir myspool
tiago@tiago
) and come back here when you have a
working setup :)
On Jul 22, 10:15 am, Roberto De Ioris robe...@unbit.it wrote:
Il giorno 22/lug/2011, alle ore 11:09, Tiago Moutinho ha scritto:
thks Roberto,
tiago@tiago:~$ cd /opt/web2py/
tiago@tiago:/opt/web2py$ mkdir myspool
tiago
How can i enable the spooler?
I have pass target='spooler' to the decorator args but it gives the
same error.
On Jul 22, 7:44 pm, Tiago Moutinho tiago...@gmail.com wrote:
I'M sorry Roberto for this boring question, but it gives an error in
web2py when i try to run the controller, and i don't
How can i create the spoller directory?
thks in advance
On Jul 21, 6:06 pm, Roberto De Ioris robe...@unbit.it wrote:
Hello Roberto,
I've tried to start web2py has you demonstrated:
uwsgi --socket :3031 --spooler myspool --master --processes 4 --
import mytasks --module
I also want to know that.. its in the routes??
On Jun 14, 11:55 am, Francisco Costa m...@franciscocosta.com wrote:
Hello,
I have this controller (not the default one) that I would like to have
a default function (not index)
How can I do that?
i think this might help you out:
http://comments.gmane.org/gmane.comp.python.web2py/39225
Hi,
I have in my databse 2 tables: blog_post(id, name, slug, description) and
blog_comments(id, post_id, comment).
I want to use the restful api to for example list all comments for a given
slug from blog_post.
It is possible?
With patterns i can not do that.
Other question: Can i do a
Hi,
I have in my databse 2 tables: blog_post(id, name, slug, description) and
blog_comments(id, post_id, comment).
I want to use the restful api to for example list all comments for a given
slug from blog_post.
It is possible?
With patterns i can not do that.
Other question: Can i do a
I created this controller named api, as seen in you video.
@request.restful()
def place():
def GET(id):
place = db.place(id)
return place.as_dict() if place else None
def POST(name, description):
return db.place.validate_and_insert(
name = name, description =
Hi,
I have some difficulties on using @resquest.restful().
I want to do some experiments using GET, POST, PUSH and DELETE, but i can
not make it work.
Only GET works for me.
How can i do for example a def POST(name): ??
I did this:
def POST(name):
return db.blog.validate_and_insert(name =
/post_test',
urllib.urlencode(params))
return http_response
Does anyone have some ideas in makinh PUSH AND DELETE work???
On May 18, 10:31 am, Tiago Moutinho tiago...@gmail.com wrote:
Hi,
I have some difficulties on using @resquest.restful().
I want to do some experiments using GET, POST
Hi,
I need some help about the delete and push methods using restful api.
I made POST method work using urllib2, but i can not find anything on the
web about DELETE AND PUSH
Please help
Thks in advance
Hello,
How can I change this http://www.test.com/blog to this blog.test.com ??
I know that ia have to change in routes.py but i do not know how.
i tried this in routes.py:
(r'.*blog.test.com*', r'http://www.test.com/blog'),
but it still does not work.
Many thaks in advance.
I created this controller named api, as seen in you video.
@request.restful()
def place():
def GET(id):
place = db.place(id)
return place.as_dict() if place else None
def POST(name, description):
return db.place.validate_and_insert(name = name, description =
Hi,
i answer it the other post.
But my problem is in the client.
Hi Bruno,
Is there any possibility to edit only one column?
cumps,
Tiago
Hello,
I'm using PowerTable and I love it!
But I have an issue:
I want to edit a column named status, but only that column.
And i want to alter de value of that column (status) on the databse,
with an update.
I've made an editable function, but something is missing, i guess,
because it does not
Hello,
I'm using PowerTable and I love it!
But I have an issue:
I want to edit a column named status, but only that column.
And i want to alter de value of that column (status) on the databse,
with an update.
I've made an editable function, but something is missing, i guess,
because it does not
20 matches
Mail list logo