SF.net SVN: fclient: [290] trunk/sandbox/fcp2/types.py
Status: Pre-Alpha
Brought to you by:
jurner
From: <ju...@us...> - 2008-02-27 12:06:58
|
Revision: 290 http://fclient.svn.sourceforge.net/fclient/?rev=290&view=rev Author: jurner Date: 2008-02-27 04:06:59 -0800 (Wed, 27 Feb 2008) Log Message: ----------- combed over docs Modified Paths: -------------- trunk/sandbox/fcp2/types.py Modified: trunk/sandbox/fcp2/types.py =================================================================== --- trunk/sandbox/fcp2/types.py 2008-02-27 12:06:38 UTC (rev 289) +++ trunk/sandbox/fcp2/types.py 2008-02-27 12:06:59 UTC (rev 290) @@ -1,4 +1,4 @@ -"""Fcp types vs. Python types +"""Fcp types vs Python types This module handles type conversions from Fcp to Python and vice versa """ @@ -21,7 +21,6 @@ del hack #<-- rel import hack - #************************************************************************************* # #************************************************************************************* @@ -128,8 +127,10 @@ def fcpToPython(clss, value): return int(value) / 1000 -#TODO: how to handle time deltas? Convert them to seconds? -class FcpTypeTimeDelta(FcpType): pass +class FcpTypeTimeDelta(FcpType): + """ + @todo: how to handle time deltas? No idea... + """ class FcpTypeIP(FcpType): pass class FcpTypeIPList(FcpType): pass @@ -137,10 +138,10 @@ class FcpTypeStringList(FcpType): pass class FcpTypeDirname(FcpType): pass class FcpTypeFilename(FcpType): pass - -#TODO: how to handle byte amounts? Convert them to (int) bytes? class FcpTypeNumBytes(FcpType): - """Type conversion """ + """ + @todo: how to handle byte ammounts? No idea... + """ NamesBinary = ('', 'K', 'M', 'G', 'T', 'P', 'E') NamesCommon = ('', 'k', 'm', 'g', 't', 'p', 'e') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |