SF.net SVN: fclient: [89] trunk/sandbox/fcp/fcp2_0_client.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <ju...@us...> - 2008-01-30 13:22:42
|
Revision: 89
http://fclient.svn.sourceforge.net/fclient/?rev=89&view=rev
Author: jurner
Date: 2008-01-30 05:22:48 -0800 (Wed, 30 Jan 2008)
Log Message:
-----------
adapt to type conversions
Modified Paths:
--------------
trunk/sandbox/fcp/fcp2_0_client.py
Modified: trunk/sandbox/fcp/fcp2_0_client.py
===================================================================
--- trunk/sandbox/fcp/fcp2_0_client.py 2008-01-30 13:21:55 UTC (rev 88)
+++ trunk/sandbox/fcp/fcp2_0_client.py 2008-01-30 13:22:48 UTC (rev 89)
@@ -1432,6 +1432,16 @@
## Peer related methods
##
########################################################
+ def getNode(self, withPrivate=True, withVolantile=True):
+ self.sendMessage(
+ self.Message.MessageGetNode,
+ WithPrivate=withPrivate,
+ WithVolatile=withVolantile,
+ )
+
+
+
+
def listPeer(self, identity):
self.jobClient.sendMessage(
self.Message.MessageListPeer,
@@ -1462,8 +1472,8 @@
"""
self.sendMessage(
self.Message.MessageListPeers,
- WithMetadata=self.fcpBool(withMetaData),
- WithVolatile=self.fcpBool(withVolantile),
+ WithMetadata=withMetaData,
+ WithVolatile=withVolantile,
)
@@ -1654,4 +1664,18 @@
#testGenerateSSK()
+ def testListPeers():
+ c.listPeers()
+ for i in xrange(10):
+ c.next()
+
+ #testListPeers()
+
+ def testGetNode():
+ c.getNode()
+ for i in xrange(10):
+ c.next()
+
+ #testGetNode()
+
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|