SF.net SVN: fclient: [632] trunk/fclient/src/fclient/lib/fcp2/types.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-15 23:45:56
|
Revision: 632
http://fclient.svn.sourceforge.net/fclient/?rev=632&view=rev
Author: jUrner
Date: 2008-07-15 16:46:02 -0700 (Tue, 15 Jul 2008)
Log Message:
-----------
handle IPlist and Ip
Modified Paths:
--------------
trunk/fclient/src/fclient/lib/fcp2/types.py
Modified: trunk/fclient/src/fclient/lib/fcp2/types.py
===================================================================
--- trunk/fclient/src/fclient/lib/fcp2/types.py 2008-07-15 23:45:14 UTC (rev 631)
+++ trunk/fclient/src/fclient/lib/fcp2/types.py 2008-07-15 23:46:02 UTC (rev 632)
@@ -154,8 +154,21 @@
class TypeUri(Type): pass
class TypeIP(Type): pass
-class TypeIPList(Type): pass
-class TypeIPort(Type): pass
+class TypeIPList(Type):
+
+ @classmethod
+ def pythonToFcp(clss, value):
+ return ','.join(value)
+
+ @classmethod
+ def fcpToPython(clss, value):
+ return [i.strip() for i in value.split(',')]
+
+#TODO: i assume the node makes shure it can not be '' or < 0
+class TypeIPort(TypeInt):
+ pass
+
+
class TypeStringList(Type): pass
class TypeDirname(Type): pass
class TypeFilename(Type): pass
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|