SF.net SVN: fclient:[787] trunk/fclient/src/fclient/impl/lib/fcp2/key.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-27 20:02:29
|
Revision: 787
http://fclient.svn.sourceforge.net/fclient/?rev=787&view=rev
Author: jUrner
Date: 2008-07-27 20:02:39 +0000 (Sun, 27 Jul 2008)
Log Message:
-----------
add wrappe for any type of key
Modified Paths:
--------------
trunk/fclient/src/fclient/impl/lib/fcp2/key.py
Modified: trunk/fclient/src/fclient/impl/lib/fcp2/key.py
===================================================================
--- trunk/fclient/src/fclient/impl/lib/fcp2/key.py 2008-07-27 18:20:55 UTC (rev 786)
+++ trunk/fclient/src/fclient/impl/lib/fcp2/key.py 2008-07-27 20:02:39 UTC (rev 787)
@@ -134,6 +134,19 @@
raise NotImplementedError()
+class KeyAny(object):
+ """key object that may contain any string, wether it is a vlaid key or not
+ """
+ def __init__(self, string):
+ self.string = string
+
+ def toString(self):
+ return self.string
+
+ @classmethod
+ def fromString(clss, string):
+ self.key = string
+
class KeyCHK(_KeyBase):
""""""
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|