Re: [SQLObject] URI for a database without a password?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2006-03-29 21:04:13
|
On Wed, Mar 29, 2006 at 02:57:20PM -0500, Kevin Dangoor wrote: > Is this the right syntax then? > > mysql://user:""@host:8080/databasename >>> from sqlobject.dbconnection import DBConnection >>> DBConnection._parseURI('mysql://user:""@host:8080/databasename') ('user', '""', 'host', 8080, '/databasename', {}) Right syntax but the password is not empty. >>> DBConnection._parseURI('mysql://user@host:8080/databasename') ('user', None, 'host', 8080, '/databasename', {}) Now the password is empty! Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |