Changeset 1248


Ignore:
Timestamp:
27/06/06 13:29:59 (13 years ago)
Author:
spascoe
Message:

renamed delivery.bbftpc.run() delivery.bbftpc.connect().

Location:
TI05-delivery/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/src/python_ext/bbftpc.c

    r1246 r1248  
    2121int treatcommand(char *cmd); 
    2222 
     23 
    2324/** 
    2425 * Main entry point into the bbftp client from python. 
    2526 */ 
    26 static PyObject *bbftpc_run(PyObject *self, PyObject *args) { 
     27static PyObject *bbftpc_connect(PyObject *self, PyObject *args) { 
    2728  int i, argc; 
    2829  struct ndg_argv argv_s; 
     
    4849  } 
    4950 
    50   ndg_argv_add(&argv_s, "bbftpc_run"); 
     51  ndg_argv_add(&argv_s, "bbftpc_connect"); 
    5152  for (i=0; i<argc; i++) { 
    5253    if ((item = PySequence_GetItem(client_args, i)) == NULL) { 
     
    8788static PyObject *bbftpc_close(PyObject *self, PyObject *args) { 
    8889 
     90   
     91 
    8992  // Check there are no arguments 
    9093  if (!PyArg_ParseTuple(args, "", NULL)) { 
     
    116119static PyMethodDef BbftpcMethods[] = { 
    117120  { 
    118     "run", bbftpc_run, METH_VARARGS, 
     121    "connect", bbftpc_connect, METH_VARARGS, 
    119122    "Execute the bbftp client.\n" 
    120123    "\n" 
  • TI05-delivery/trunk/test/runclient.py

    r1247 r1248  
    2828    args = args[:ei] + args[ei+2:] 
    2929 
    30 BC.run(args) 
     30BC.connect(args) 
    3131for cmd in cmds: 
    3232    BC.docommand(cmd) 
Note: See TracChangeset for help on using the changeset viewer.