4 # Copyright (C) 2000, 2001 James Troup <james@nocrew.org>
5 # $Id: christina,v 1.1 2001-03-21 01:03:41 troup Exp $
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 ################################################################################
23 # <Omnic> elmo wrote docs?!!?!?!?!?!?!
24 # <aj> as if he wasn't scary enough before!!
25 # * aj imagines a little red furry toy sitting hunched over a computer
26 # tapping furiously and giggling to himself
27 # <aj> eventually he stops, and his heads slowly spins around and you
28 # see this really evil grin and then he sees you, and picks up a
29 # knife from beside the keyboard and throws it at you, and as you
30 # breathe your last breath, he starts giggling again
31 # <aj> but i should be telling this to my psychiatrist, not you guys,
34 ################################################################################
36 import pg, sys, os, string
37 import utils, db_access
40 ################################################################################
45 ################################################################################
48 global Cnf, projectB, db_files, waste, excluded;
52 Cnf = apt_pkg.newConfiguration();
53 apt_pkg.ReadConfigFileISC(Cnf,utils.which_conf_file());
55 Arguments = [('d',"debug","Christina::Options::Debug", "IntVal"),
56 ('h',"help","Christina::Options::Help"),
57 ('v',"version","Christina::Options::Version")];
59 apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv);
60 projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
61 db_access.init(Cnf, projectB);
63 #######################################################################################
65 if __name__ == '__main__':