|
From: <jda...@us...> - 2010-04-21 14:34:04
|
Revision: 398
http://pyscard.svn.sourceforge.net/pyscard/?rev=398&view=rev
Author: jdaussel
Date: 2010-04-21 14:33:55 +0000 (Wed, 21 Apr 2010)
Log Message:
-----------
Propagate disposition parameter to CardConnection and CardConnectionDecorators
Modified Paths:
--------------
trunk/pyscard/src/smartcard/CardConnection.py
trunk/pyscard/src/smartcard/ExclusiveConnectCardConnection.py
Modified: trunk/pyscard/src/smartcard/CardConnection.py
===================================================================
--- trunk/pyscard/src/smartcard/CardConnection.py 2010-04-20 19:21:09 UTC (rev 397)
+++ trunk/pyscard/src/smartcard/CardConnection.py 2010-04-21 14:33:55 UTC (rev 398)
@@ -70,7 +70,7 @@
"""Remove a CardConnection observer."""
Observable.deleteObserver( self, observer )
- def connect( self, protocol=None, mode=None ):
+ def connect( self, protocol=None, mode=None, disposition=None ):
"""Connect to card.
protocol: a bit mask of the protocols to use, from CardConnection.T0_protocol, CardConnection.T1_protocol,
CardConnection.RAW_protocol, CardConnection.T15_protocol
Modified: trunk/pyscard/src/smartcard/ExclusiveConnectCardConnection.py
===================================================================
--- trunk/pyscard/src/smartcard/ExclusiveConnectCardConnection.py 2010-04-20 19:21:09 UTC (rev 397)
+++ trunk/pyscard/src/smartcard/ExclusiveConnectCardConnection.py 2010-04-21 14:33:55 UTC (rev 398)
@@ -35,9 +35,9 @@
def __init__( self, cardconnection ):
CardConnectionDecorator.__init__( self, cardconnection )
- def connect( self, protocol=None, mode=None ):
+ def connect( self, protocol=None, mode=None, disposition=None ):
'''Disconnect and reconnect in exclusive mode PCSCCardconnections.'''
- CardConnectionDecorator.connect( self, protocol, mode )
+ CardConnectionDecorator.connect( self, protocol, mode, disposition )
component=self.component
while True:
if isinstance( component, smartcard.pcsc.PCSCCardConnection.PCSCCardConnection ):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|