ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/Genquire/gq_uwindsor.cfg
Revision: 1.1
Committed: Thu Nov 4 17:45:07 2004 UTC (11 years, 10 months ago) by mlinks
Branch: MAIN
CVS Tags: HEAD
Log Message:
New configuration file for a demo server that should start at UWindsor

Line File contents
1 # any cfg file must return a valid Context object
2 # based on whatever data source is being configured.
3 # see the AdaptorLayer documentation for details on
4 # how to construct your own Context object and adaptor layer
5 # for your own datasource.
6
7 # ALL METHODS OF Context.pm and ContextI must be available!
8
9 # The variables $Username, $Password, $IPAddress, and/or $Filename
10 # may be set here, and the values will appear in the appropriate
11 # box on the opening genquire GUI. This is FYI only!! Modifying
12 # their values from the GUI makes **no difference** to the final connection parameters,
13 # since the final Context object is created here!
14
15
16 $Username = "gqguest";
17 $Password = "";
18 $IPAddress = "bioinfo.uwindsor.ca";
19 $Filename = "";
20
21
22 $Default_DB = "gqdemo";
23
24 # note that DbObj is not an absolute requirement for all Context objects
25 # we use it in the Genquire_local adaptor layer because it is useful...
26 # you will probably want to have something like DbObj (call it what you wish)
27 # as the test of database or flat-file availability/successful connection.
28
29 $dbobj = GQ::Server::DB::DbObj->new($Username, $Password, $Default_DB, $IPAddress);
30 if ($dbobj) { #successful connection
31 $context=GQ::Server::DB::Context->new($dbobj) # not all Context objects will require $dbobj for initialization!
32 } else {
33 die "failed to connect to local Genquire database to extract organism list";
34 }