SF.net SVN: fclient: [282] trunk/sandbox/fcp2/types.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <ju...@us...> - 2008-02-26 18:58:11
|
Revision: 282
http://fclient.svn.sourceforge.net/fclient/?rev=282&view=rev
Author: jurner
Date: 2008-02-26 10:54:12 -0800 (Tue, 26 Feb 2008)
Log Message:
-----------
moved config key sep to consts
Modified Paths:
--------------
trunk/sandbox/fcp2/types.py
Modified: trunk/sandbox/fcp2/types.py
===================================================================
--- trunk/sandbox/fcp2/types.py 2008-02-26 18:53:55 UTC (rev 281)
+++ trunk/sandbox/fcp2/types.py 2008-02-26 18:54:12 UTC (rev 282)
@@ -235,8 +235,8 @@
class ConfigMessageParams(object):
"""Parameter --> FcpType mapping for config related messages"""
- ComponentSep = '.'
+
# all known config keys (param class stripped)
Params = {
@@ -370,7 +370,7 @@
@param paramName: (str) parameter name to split
@return: (list) components
"""
- return paramName.split(self.ComponentSep)
+ return paramName.split(consts.ConfigKeySep)
def splitParamClass(self, paramName):
@@ -378,7 +378,7 @@
@param paramName: (str) parameter name to split
@return: (tuple) paramClass, tail
"""
- result = paramName.split(self.ComponentSep, 1)
+ result = paramName.split(consts.ConfigKeySep, 1)
if len(result) == 2:
if result[0] in consts.ConfigValueClass.ClassesAll:
return result
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|