John wrote:
> On Tuesday 03 November 2009 07:10:52 am Steffl, Joseph wrote:
>> If I'm running AppWizard do I have the ability to connectInfo string
>> manually ?
>
> AppWizard creates a py script so I'm sure it can be done. I just don't know
> where in the code to do it. I don't use AppWizard to create programs - so I
> hope Paul (the author of AppWizard) has an better answer.
AppWizard creates pretty bare-bones dabo applications. If you want to do your
own db
connection without using the .cnxml file, that's easy:
1) delete db/default.cnxml
2) in your main.py, before importing any bizobjs but after instantiating the
app:
app.openDatabase() ## or whatever you want to call it
3) in App.py, add the openDatabase() method and do whatever you want:
def openDatabase(self):
self.dbConnection = dabo.db.connect(DbType="MsSQL", Host="example.com",
...)
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]