OK, I was finally succeeded to get web2py to recognize firebird. Here's how it goes (for anyone having the same trials.).
I already had firebird installed on my fedora Linux host computer. To use firebird from web2py, you must install "kinderbasedb". Get it from here: http://kinterbasdb.sourceforge.net/ Restart web2py, and now notice this message: "Database drivers available: SQLite3, Interbase" Unless you install the "optional" eGenix mx package, you will need to add this line to sql.py ------------- try: import kinterbasdb add>>> kinterbasdb.init(type_conv=200) drivers.append('Interbase') except: logging.debug('no kinterbasdb driver') ------------- (Maybe there is a more correct way to do it. But this is what I did.) In your app "models" section, you can access firebird database as: db=SQLDB("firebird://SYSDBA:[EMAIL PROTECTED]:3050//usr/packages// demodb.fdb") where "masterkey" is the firebird admin password. Make sure your database file already exists, and is setup with proper access privileges. On Dec 9, 2:09 pm, Stever_ <[EMAIL PROTECTED]> wrote: > Well, I was able to kill the perpetrator (on Fedora "nasd" was taking > port 8000) and started web2py using the default port. > The demodb app runs fine now. > I am still trying to figure out how to configure web2py to use > database drivers other than SQLite3. > I already have firebird server installed on my machine. But I guess I > need some configuration parameter so the web2py can find it. > Can anyone help? > > On Dec 8, 1:59 pm,Stever_<[EMAIL PROTECTED]> wrote: > > > I wasn't able to run the appliance, and it gave an error ticket > > showing port 8000 > > "ProtocolError: <ProtocolError for localhost:8000/demodb/xmlrpc/ > > handle: -1> > > It looks like 8000 is hard coded in default.py, line 7. > > > I may be interested in maintaining this in the future, but for the > > moment I'm just trying to get up to speed on how to use web2py. > > My immediate requirement is to enable firebird database drivers. > > Is there some documentation somewhere that is a good place to get a > > handle on configuration setup? > > > On Dec 8, 1:39 pm, mdipierro <[EMAIL PROTECTED]> wrote: > > > > You can change the port and it should work. That appliance is old and > > > needs to be revised. > > > If you are using and you want to become a maintainer it would be > > > great. > > > > Massimo > > > > On Dec 8, 12:03 pm,Stever_<[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > Where is the best place to get a quick start on using web2py? > > > > My application will use firebird database, and cannot use port 8000. > > > > > My current problem is that I need to run using a port other than 8000. > > > > I use the start parameter "--port=8080". That seemed to work, but the > > > > sample appliance "Remote Database Synchronization" seems to be > > > > hardcoded with 8000. Or I may be missing some configuration parameter? > > > > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

