Why does my TurboGears/SQLObject app need an explicit connection to database to
be exposed?
I'm thinking of the following line which *MUST* appear
__connection__ = turbogears.database.PackageHub("myapp")
Isn't a goal for ORMs to hide all this database conn
In my TurboGears/SQLObject app, I manually commit changes to the database
with a line like the following...
MyObject._connection.commit()
It works but looks ugly since _connection is "private variable" that should not
be accessed rig
than in Python code?
Unless I'm missing something,
this is *already* done in TurboGears/SQLObject as the config
file there defines a sqlobject.dburi variable!
Chris
-
This SF.net email is sponsored by the 2008 JavaOne(SM
ne convinced me to use the former so I switched.)
Chris
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority c
t works but looks ugly since _connection is "private variable" that
>should not
> > be accessed right?
> >
> please suggest another way.
I think I'll keep this way. I was just trying one last email to see if there
was another way. That's all.
Thanks for t
t community is so talented I knew I'd
learn something from asking a possibly dumb question. My apologies if I
annoyed anyone.
Chris
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year&
= StringCol()Is there a way to have sqlobject generate this structure w/o having to create 39 elements in my table? I suppose I could use 1-to-1 joins for each record, but that seems less than elegant as well.
Thanks!Chris-- "A little government and a little luck are necessary in life, but onl
ct follows? I couldn't find it on the website.
Thanks in advance for any help anyone is able to give.
Chris
--
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to
ist?) dictionary? If I can use columns,
how do I actually initialise / fill the dictionary?
Thanks,
Chris
2009/9/29 Oleg Broytman
> On Tue, Sep 29, 2009 at 09:03:51AM +0100, Chris Wood wrote:
> > I'm new to using SQLObject,
>
>Welcome!
>
> > and having some problems
Excellent, that works! Thanks.
2009/9/30 Oleg Broytman
> (Answering to the list...)
>
> On Wed, Sep 30, 2009 at 10:33:18AM +0100, Chris Wood wrote:
> > class Cruise(sqlobject.SQLObject):
> > connection = conn
> > class sqlmeta:
> > table = T
that table be returned as a SelectResults class so
i can access its attrs and everything?
This may be a stupid question or already answered but i thought i would ask.
Thank you very much
Chris Bennett
11 matches
Mail list logo