Initial commit
This commit is contained in:
15
py_write_reimplementation.sublime-snippet
Normal file
15
py_write_reimplementation.sublime-snippet
Normal file
@@ -0,0 +1,15 @@
|
||||
<snippet>
|
||||
<content><![CDATA[
|
||||
@classmethod
|
||||
def write(cls, *args):
|
||||
actions = iter(args)
|
||||
args = []
|
||||
for records, values in zip(actions, actions):
|
||||
${2:values['example'] = True # add/del/modify items from values}
|
||||
args.extend((records, values))
|
||||
super().write(*args)
|
||||
]]></content>
|
||||
<tabTrigger>tryton_write</tabTrigger>
|
||||
<scope>source.python </scope>
|
||||
<description>Tryton: write() reimplementation</description>
|
||||
</snippet>
|
||||
Reference in New Issue
Block a user