On Mon, Nov 24, 2008 at 9:53 AM, Khaoz <[EMAIL PROTECTED]> wrote:
>
> Sry, but the engine:
>
> engine = create_engine('sqlite:///mydatabase.db', echo=True)
>
> do not need to be defined before load_sqla instead on every model
> file ?

not sure what you mean by this, but if you can make it more efficient,
please do so. you absolutely need the web.py 0.3 version.

>( i'm comparing your example with the code posted here:
> http://groups.google.com/group/webpy/browse_thread/thread/a86cd3308c3d7501/406939ee8411aeb3?lnk=gst&q=MVC#406939ee8411aeb3
> )
>
> I was trying to use your example but my web.py claims that the 'orm'
> field does not exists. Do i need the 0.3 version ?
>
> ty
>
> On 20 nov, 00:22, "Brent Pedersen" <[EMAIL PROTECTED]> wrote:
>> On Wed, Nov 19, 2008 at 6:26 PM, paul jobs <[EMAIL PROTECTED]> wrote:
>> > thanks
>> >http://webpy.org/cookbook/sqlalchemy
>> > does
>> > python models.py create the postgres tables too?
>>
>> > On 11/19/08, Brent Pedersen <[EMAIL PROTECTED]> wrote:
>>
>> >> hi, i added a recipe for using sqlalchemy with web.py
>> >>http://webpy.org/cookbook/sqlalchemy
>>
>> >> it's based off a mailing list post, and the sqlalchemy 0.5 docs.
>> >> can someone verify that it looks correct?
>>
>> >> i noticed that if i use 3 yields from the view.GET rather than
>> >> returning the single string, then commit does not
>> >> get called in the loadhook. why is that?
>>
>> >> -brent
>>
>> it will if you change the engine, currently:
>> engine = create_engine('sqlite:///mydatabase.db', echo=True)
>>
>> to a valid dburi for 
>> postgreshttp://www.sqlalchemy.org/docs/05/dbengine.html#dbengine_establishing
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to