16 lines
392 B
Plaintext
16 lines
392 B
Plaintext
|
|
<snippet>
|
||
|
|
<content><![CDATA[
|
||
|
|
@classmethod
|
||
|
|
def validate(cls, ${1:records}):
|
||
|
|
super(${2:ClassName}, cls).validate($1)
|
||
|
|
for ${3:record} in $1:
|
||
|
|
$3.check_${4:validation}()
|
||
|
|
|
||
|
|
def check_$4(self):
|
||
|
|
${5}
|
||
|
|
]]></content>
|
||
|
|
<tabTrigger>tryton_validate.instance</tabTrigger>
|
||
|
|
<scope>source.python</scope>
|
||
|
|
<description>Tryton: validate() instance method validation</description>
|
||
|
|
</snippet>
|