Changeset 1248 for TI05-delivery
- Timestamp:
- 27/06/06 13:29:59 (15 years ago)
- Location:
- TI05-delivery/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/trunk/src/python_ext/bbftpc.c
r1246 r1248 21 21 int treatcommand(char *cmd); 22 22 23 23 24 /** 24 25 * Main entry point into the bbftp client from python. 25 26 */ 26 static PyObject *bbftpc_ run(PyObject *self, PyObject *args) {27 static PyObject *bbftpc_connect(PyObject *self, PyObject *args) { 27 28 int i, argc; 28 29 struct ndg_argv argv_s; … … 48 49 } 49 50 50 ndg_argv_add(&argv_s, "bbftpc_ run");51 ndg_argv_add(&argv_s, "bbftpc_connect"); 51 52 for (i=0; i<argc; i++) { 52 53 if ((item = PySequence_GetItem(client_args, i)) == NULL) { … … 87 88 static PyObject *bbftpc_close(PyObject *self, PyObject *args) { 88 89 90 91 89 92 // Check there are no arguments 90 93 if (!PyArg_ParseTuple(args, "", NULL)) { … … 116 119 static PyMethodDef BbftpcMethods[] = { 117 120 { 118 " run", bbftpc_run, METH_VARARGS,121 "connect", bbftpc_connect, METH_VARARGS, 119 122 "Execute the bbftp client.\n" 120 123 "\n" -
TI05-delivery/trunk/test/runclient.py
r1247 r1248 28 28 args = args[:ei] + args[ei+2:] 29 29 30 BC. run(args)30 BC.connect(args) 31 31 for cmd in cmds: 32 32 BC.docommand(cmd)
Note: See TracChangeset
for help on using the changeset viewer.