[web2py] Re: Using SOLR as the web2py backend

2017-09-27 Thread 黄祥
test it but not work, steps: 1 download, extract and run solr-7.0.0 2 install solrpy easy_install solrpy 3 run and create new web2py app 2.14.6 *models/db.py* import solr s = solr.SolrConnection('http://localhost:8983/solr') *controllers/default.py* def test(): form = SQLFORM.factory(Field('bo

[web2py] Re: Using SOLR as the web2py backend

2010-09-02 Thread harryf
Many thanks - will explore that further. On Sep 3, 12:01 am, mdipierro wrote: > Welcome. > > Normally in web2py you define a model > >    db.define_table('message',Field('body')) > > and then web2py generates and processes forms for you: > >    form=SQLFORM(db.message) >    if form.accepts(reques

[web2py] Re: Using SOLR as the web2py backend

2010-09-02 Thread mdipierro
mody was body. I may have other typos. On Sep 2, 5:01 pm, mdipierro wrote: > Welcome. > > Normally in web2py you define a model > >    db.define_table('message',Field('body')) > > and then web2py generates and processes forms for you: > >    form=SQLFORM(db.message) >    if form.accepts(request.v

[web2py] Re: Using SOLR as the web2py backend

2010-09-02 Thread mdipierro
Welcome. Normally in web2py you define a model db.define_table('message',Field('body')) and then web2py generates and processes forms for you: form=SQLFORM(db.message) if form.accepts(request.vars): do_something In your case you would not use define_table because web2py DAL d