Fixed pythons rwprop snippet.

This commit is contained in:
Holger Rapp 2012-11-25 08:14:03 +01:00
parent 54d917ddd4
commit f81cc7a522

View File

@ -368,7 +368,12 @@ endsnippet
snippet rwprop "Read write property" b
def ${1:property}():
${2/.+/(?0:""")/}${2:The RW property $1}${2/.+/(?0:"""\n )/}def fget(self):
${2/.+/(?0:""")/}${2:The RW property $1}`!p if t[2]:
snip.rv += '"""'
snip >> 1
snip += ""
else:
snip.rv = ""`def fget(self):
return self._$1$0
def fset(self, value):
self._$1 = value