source:
n4d/trunk/fuentes/install-files/usr/share/n4d/xmlrpc-server/class_skel.py
@
105
Last change on this file since 105 was 103, checked in by , 5 years ago | |
---|---|
File size: 306 bytes |
Line | |
---|---|
1 | # -*- coding: utf-8 -*- |
2 | import subprocess |
3 | |
4 | class %CLASSNAME%: |
5 | |
6 | def %METHOD%(self,*params): |
7 | |
8 | popen_list=[] |
9 | popen_list.append("%BINARY%") |
10 | |
11 | for param in params: |
12 | popen_list.append(str(param)) |
13 | |
14 | output = subprocess.Popen(popen_list, stdout=subprocess.PIPE).communicate()[0] |
15 | |
16 | return output |
Note: See TracBrowser
for help on using the repository browser.