one more datapoint: psycopg 1.99.13 expects a string, too. so at
least, one could differentiate based on psycopg major versions, i.e.
psycopg.__version__.split('.')[0] == '1'
or something like that.On 12/3/06, Robert Forkel <[EMAIL PROTECTED]> wrote: > You are right. line 48 would be the better place. Unfortunately, i > just found the following: > sqlobject 0.7.0 had the port converted to a string, but using this > with psycopg 2.0b8 gives: > TypeError: an Integer is required > so i really don't know what to do. It would be possible to distinguish > between psycopg major versions. > > On 12/3/06, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > > Hello! > > > > On Sun, Dec 03, 2006 at 04:56:35PM +0100, Robert Forkel wrote: > > > @@ -107,6 +107,8 @@ > > > if self.use_dsn: > > > conn = self.module.connect(self.dsn) > > > else: > > > + if 'port' in self.dsn_dict: > > > + self.dsn_dict['port'] = str(self.dsn_dict['port']) > > > conn = self.module.connect(**self.dsn_dict) > > > > Thank you. I don't think this is the best place to fix that. Why not fix > > the place where the dsn_dict has been created? (Line 48.) > > > > Oleg. > > -- > > Oleg Broytmann http://phd.pp.ru/ [EMAIL > > PROTECTED] > > Programmers don't die, they just GOSUB without RETURN. > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > sqlobject-discuss mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ sqlobject-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
