[Zope3-checkins] CVS: Zope3/src/zope/app/rdb - __init__.py:1.13
   
    Steve Alexander
     
    steve@cat-box.net
       
    Mon, 9 Jun 2003 11:03:16 -0400
    
    
  
Update of /cvs-repository/Zope3/src/zope/app/rdb
In directory cvs.zope.org:/tmp/cvs-serv29482/src/zope/app/rdb
Modified Files:
	__init__.py 
Log Message:
Removed another XXX comment.
Made code handle passwords that contain a ':' character.
=== Zope3/src/zope/app/rdb/__init__.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/rdb/__init__.py:1.12	Mon Jun  9 10:58:34 2003
+++ Zope3/src/zope/app/rdb/__init__.py	Mon Jun  9 11:02:45 2003
@@ -210,8 +210,7 @@
 
     # Get username and password from DSN
     if dsn:
-        # XXX: what if password contains a colon?
-        username, password = dsn.split(':')
+        username, password = dsn.split(':', 1)
     else:
         username, password = '', ''