SF.net SVN: fclient: [343] trunk/sandbox/fcp2/consts.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-03-08 11:14:24
|
Revision: 343
http://fclient.svn.sourceforge.net/fclient/?rev=343&view=rev
Author: jUrner
Date: 2008-03-08 03:14:24 -0800 (Sat, 08 Mar 2008)
Log Message:
-----------
beautifications
Modified Paths:
--------------
trunk/sandbox/fcp2/consts.py
Modified: trunk/sandbox/fcp2/consts.py
===================================================================
--- trunk/sandbox/fcp2/consts.py 2008-03-08 11:13:42 UTC (rev 342)
+++ trunk/sandbox/fcp2/consts.py 2008-03-08 11:14:24 UTC (rev 343)
@@ -268,6 +268,7 @@
Sending = 'Sending'
Received = 'Received'
+ CreatingNewMessageType = 'Creating new message type'
SocketDied = 'Socket died'
SocketShutdown = 'Socket shutdown by node'
@@ -405,35 +406,6 @@
NoSuchPlugin = 32
-class RequestStatus(BaseBitFlags):
- """Request status flags
- @cvar Null: no status
- @cvar Restored: the request was restored when the client was started
- @cvar Compressing: the request is about to be compressed
- @cvar Compressed: compressing is completed
- @cvar Success: the request has completed successfuly
- @cvar Error: the request has completed with an error
- @cvar Removed: the request is completed because it will be or has been removed
-
- @cvar Completed: processing of the request is completed
- @cvar RemovedFromQueue: the request is no longer present in the nodes queue. The client will remove the request
- from its own queue as soon as all event listeners have been notified.
-
- @note: the FcStatus member of the params dict of a request should contain one or more
- of the bitflags it picked up while running through the client.
- """
- Null = 0x0
- Restored = 0x1
- Compressing = 0x2
- Compressed = 0x4
- Success = 0x8
- Error = 0x10
- Removed = 0x20
-
- Completed =0x10000000
- RemovedFromQueue = 0x2000000
-
-
class PeerNodeStatus:
Connected = 'CONNECTED'
BackedOff = 'BACKED OFF'
@@ -471,6 +443,52 @@
Low = '4'
+class RequestModified(BaseBitFlags):
+ """Flags indicating what aspect of a request has been modified
+ @cvar Filename: the filename has been modified
+ @cvar Identifier: the identifier has been moodified
+ @cvar PersistentUserData: persistent user data has been modified
+ @cvar PriorityClass: the priority class has been modified
+
+ @note: the FcModified member of the params dict of a request may contain
+ one or more of the bitflags
+ """
+ Null = 0x0
+ Filename = 0x8
+ Identifier = 0x4
+ PersistentUserData = 0x1
+ PriorityClass = 0x2
+
+
+class RequestStatus(BaseBitFlags):
+ """Request status flags
+ @cvar Null: no status
+ @cvar Restored: the request was restored when the client was started
+ @cvar Compressing: the request is about to be compressed
+ @cvar Compressed: compressing is completed
+ @cvar Success: the request has completed successfuly
+ @cvar Error: the request has completed with an error
+ @cvar Removed: the request is completed because it will be or has been removed
+
+ @cvar Completed: processing of the request is completed
+ @cvar RemovedFromQueue: the request is no longer present in the nodes queue. The client will remove the request
+ from its own queue as soon as all event listeners have been notified.
+
+ @note: the FcStatus member of the params dict of a request should contain one or more
+ of the bitflags it picked up while running through the client.
+ """
+ Null = 0x0
+ Restored = 0x1
+ Compressing = 0x2
+ Compressed = 0x4
+ Success = 0x8
+ Error = 0x10
+ Removed = 0x20
+
+ Completed =0x10000000
+ RemovedFromQueue = 0x2000000
+
+
class RequestType(BaseBitFlags):
"""Consts indicating the type of a request"""
@@ -496,24 +514,9 @@
MaskGenerateKeypair = GenerateSSKKeypair | GenerateUSKKeypair
MaskPlugin = PluginInfo | PluginMessage
MaskPut = PutData | PutFile | PutDir | PutMultiple | PutRedirect
+
-class RequestModified(BaseBitFlags):
- """Flags indicating what aspect of a request has been modified
- @cvar Filename: the filename has been modified
- @cvar Identifier: the identifier has been moodified
- @cvar PersistentUserData: persistent user data has been modified
- @cvar PriorityClass: the priority class has been modified
-
- @note: the FcModified member of the params dict of a request may contain
- one or more of the bitflags
- """
- Null = 0x0
- Filename = 0x8
- Identifier = 0x4
- PersistentUserData = 0x1
- PriorityClass = 0x2
-
class ReturnType:
Direct = 'direct'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|