SF.net SVN: fclient: [365] trunk/sandbox/fcp2/key.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-03-11 11:19:43
|
Revision: 365
http://fclient.svn.sourceforge.net/fclient/?rev=365&view=rev
Author: jUrner
Date: 2008-03-11 04:19:48 -0700 (Tue, 11 Mar 2008)
Log Message:
-----------
this and that
Modified Paths:
--------------
trunk/sandbox/fcp2/key.py
Modified: trunk/sandbox/fcp2/key.py
===================================================================
--- trunk/sandbox/fcp2/key.py 2008-03-11 11:19:16 UTC (rev 364)
+++ trunk/sandbox/fcp2/key.py 2008-03-11 11:19:48 UTC (rev 365)
@@ -109,8 +109,13 @@
if result is not None:
return result
+
+ def toString(self):
+ """Returns the key as string"""
+ return self.pythonToFcp()
+
+
-
class CHK(KeyBase):
""""""
_key_pattern_ = '''
@@ -242,6 +247,12 @@
ExactKeyPattern = re.compile(ReMatchExact % _key_pattern_, re.I | re.X)
def __init__(self, keyData, filename, edition=0):
+ """Creates a USK key
+ @param keyData: (str) public key
+ @param filename: (str) filename
+ @param edition: (int) edition number
+ """
+
self.edition = edition
self.filename = filename
self.keyData = keyData
@@ -253,7 +264,7 @@
if self.filename is not None:
out += self.filename + '/'
if self.edition is not None:
- out += self.edition + '/'
+ out += str(self.edition) + '/'
return out
@classmethod
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|