Fixed rwprop now... maybe

This commit is contained in:
Holger Rapp 2009-07-20 21:25:01 +02:00
parent ebc685232e
commit 9292919205

View File

@ -47,13 +47,13 @@ def ${1:property}(self):
endsnippet endsnippet
snippet rwprop "Read write property" b snippet rwprop "Read write property" b
def ${1:property}(self): def ${1:property}():
${2/.+/(?0:""")/}${2:The RW property $1}${2/.+/(?0:"""\n )/}def fget(self): ${2/.+/(?0:""")/}${2:The RW property $1}${2/.+/(?0:"""\n )/}def fget(self):
return self._$1$0 return self._$1$0
def fset(self, value): def fset(self, value):
self._$1 = value self._$1 = value
return locals() return locals()
$1 = property(**$1) $1 = property(**$1())
endsnippet endsnippet
########################## ##########################