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
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
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
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
4 matches
Mail list logo