File: python_plugin.py

package info (click to toggle)
tulip 6.0.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 196,224 kB
  • sloc: cpp: 571,851; ansic: 13,983; python: 4,105; sh: 1,555; yacc: 522; xml: 484; makefile: 168; pascal: 148; lex: 55
file content (13 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
from tulip import tlp
import tulipplugins

class Test(tlp.Algorithm):
	def init(self, context):
		tlp.Algorithm.init(self, context)
		self.addStringParameter("property", "the property to set", "", True, True, True)
	def check(self):
		return (True, "")
	def run(self):
		return True

tulipplugins.registerPlugin("Test", "A simple Python plugin test", "", "19/07/2016", "", "1.0")