Yes sorry I delete some old thread in my blog the last month. But yes I
worked integrating web2py dal in bottle some months ago, here
https://bitbucket.org/mulonemartin/bottle-web2pydal/overview now I think is
obsolete, go into gluino instead. Perhaps need a lot of test, some time
ago, I remember I have trouble with wsgi and bottle in the way of the
example in gluino perhaps adapating to use install like this:

from bottle import route, view, run, debug, install
from bottle_dal import DALPlugin, Field

def define_tables(db):
    """My tables definitions here"""
    db.define_table('person',Field('name','string'))

install(DALPlugin('sqlite://storage.sqlite',
                  define_tables = lambda db: define_tables(db)))

@route('/')
def index(db):
    """ Index Example """

    if db(db.person.id>0).count()==0:
        db.person.insert(name='James')
        db.person.insert(name='Michael')
        db.person.insert(name='Steve')
        db.person.insert(name='Robert')
        db.commit()

    persons = db(db.person.id>0).select()

    return dict(persons=persons.json())

if __name__ == '__main__':
    debug(True)
    run(host='localhost', port=8080)




2012/3/15 Andrew <awillima...@gmail.com>

> When would I choose something like Bottle over using straight web2py?
> What's the difference from bottle with gluino, and web2py?
>
> Martin M, you used to have bottle on your blog site. I went to have a
> look but it's gone.
>
> So many choices !?
>
> Thanks
>
> Andrew
>
>
> On Mar 14, 4:22 pm, Bruno Rocha <rochacbr...@gmail.com> wrote:
> > Amazing! just installed using easy_install on windows!
> >
> > *c:\Python27\Scripts>easy_install.exe gluino*
> > Searching for gluino
> > Readinghttp://pypi.python.org/simple/gluino/
> > Readinghttps://github.com/mdipierro/gluino
> > Best match: Gluino 0.1
> > Downloadinghttp://
> pypi.python.org/packages/source/G/Gluino/Gluino-0.1.tar.gz#md
> > 5=
> > 89d645322f6a0af56f80ba8df6f84e34
> > Processing Gluino-0.1.tar.gz
> > Running Gluino-0.1\setup.py -q bdist_egg --dist-dir
> > c:\users\rochac~1\appdata\lo
> > cal\temp\easy_install-qcludi\Gluino-0.1\egg-dist-tmp-m_pspc
> > zip_safe flag not set; analyzing archive contents...
> > gluino.custom_import: module references __file__
> > Adding gluino 0.1 to easy-install.pth file
> >
> > Installed c:\python27\lib\site-packages\gluino-0.1-py2.7.egg
> > Processing dependencies for gluino
> > Finished processing dependencies for gluino
> >
> > c:\Python27\Scripts>python
> > Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
> > on win
> > 32
> > Type "help", "copyright", "credits" or "license" for more information.
> > *>>> from gluino import **
> > No handlers could be found for logger "web2py"
> >
> >
> >
> >
> >
> >
> >
> >
>



-- 
 http://www.tecnodoc.com.ar

Reply via email to