when using properties in pydev, it marks the method as an error, saying that it
should start with self as first parameter:
class AppConfig(object):
@apply
def type():
<<-----------------------------------------------------------this is where it
wants to see self as first parameter, however it is not needed in this
situation.
def set(self, val):
_config['server']['type'] = val
def get(self):
return _config['server']['type']
return property(get, set)
_________________________________________________________________
Stay in touch when you're away with Windows Live Messenger.
http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messenger2_072008-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users