Thanks Thadeu, that will be very useful for me too, I will try to follow
your instructions.

BTW, I am using DAL for a Py/Gtk Application,
besides the migration ( does not works very well )
everything else is running ok.

I am going to speak about DAL in PyCon Brasil.

(google translated)
http://translate.google.com.br/translate?js=y&prev=_t&hl=pt-BR&ie=UTF-8&layout=1&eotf=1&u=http://www.pythonbrasil.org.br/2010/sobre-o-evento/inscricoes/e82ba44698924532bc0af1256dfa288f&sl=pt&tl=en


2010/8/27 Thadeus Burgess <[email protected]>

> >.< DON'T DO IT!
>
> The DAL is ment for functional programming... so be careful if you
> have to use it in a class based system. Plus you will have to have
> your stand alone application manage the .table files too. Just keep it
> in mind.
>
> In any case...
>
> You will need.
>
> gluon/LICENSE
> gluon/sql.py
> gluon/portalocker.py
> gluon/utils.py
>
> Also, you will NOT need validators.. so edit gluon/sql.py and comment
> out anything to do with the following
>
> from serializers import json - remove this, it conflicts with the real
> version of simplejson installed from pypi.
> from http import HTTP -- doubt you will be making any http exceptions
> import validators -- unless you are somehow using SQLFORM, you dont
> need this. Be sure to remove all traces of validators from the rest of
> sql.py Just do a search for "validators" and remove that code.
>
> Yay, you now have a stand alone DAL... see how easy that was to
> de-couple things?! =)
>
>
> --
> Thadeus
>
>
>
>
>
> On Fri, Aug 27, 2010 at 6:34 PM, Sujan Shakya <[email protected]>
> wrote:
> > Hi All,
> >
> > I'm going to have to use a MySQL orm in a project in near future.
> > Do you think web2py DAL is good for that purpose regarding scalability
> > and performance ?
> > And what files do I need to import or execute to use only web2py DAL ?
> >
> > Thanks.
> >
>



-- 

http://rochacbruno.com.br

Reply via email to