[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/common/src/commdrivers/xmlrpc RpcDoc.py
From: |
Jan Ischebeck |
Subject: |
gnue/common/src/commdrivers/xmlrpc RpcDoc.py |
Date: |
Sun, 05 May 2002 20:29:12 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jan Ischebeck <address@hidden> 02/05/05 20:29:11
Modified files:
common/src/commdrivers/xmlrpc: RpcDoc.py
Log message:
better listing of hirarchie
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/commdrivers/xmlrpc/RpcDoc.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: gnue/common/src/commdrivers/xmlrpc/RpcDoc.py
diff -c gnue/common/src/commdrivers/xmlrpc/RpcDoc.py:1.3
gnue/common/src/commdrivers/xmlrpc/RpcDoc.py:1.4
*** gnue/common/src/commdrivers/xmlrpc/RpcDoc.py:1.3 Fri May 3 22:59:25 2002
--- gnue/common/src/commdrivers/xmlrpc/RpcDoc.py Sun May 5 20:29:11 2002
***************
*** 118,126 ****
def _gen(object):
if hasattr(object,'name'):
name=object.name
else:
! name=""
! gloutfile.write(name + "\n")
##
## Create python exsample
--- 118,133 ----
def _gen(object):
if hasattr(object,'name'):
name=object.name
+ if hasattr(object,'_path'): # and hasattr(object._parent,'name'):
+ name=object._path+'.'+name
else:
! name=""
!
! if hasattr(object,'_children'):
! for child in object._children:
! child._path=name
!
! gloutfile.write(name[1:] + "\n")
##
## Create python exsample
***************
*** 140,148 ****
def _genPy(object):
if hasattr(object,'name'):
name=object.name
else:
! name=""
! gloutfile.write("rpcClient.execute('%s')\n" % name)
##
--- 147,161 ----
def _genPy(object):
if hasattr(object,'name'):
name=object.name
+ if hasattr(object,'_path'): # and hasattr(object._parent,'name'):
+ name=object._path+'.'+name
else:
! name=""
!
! if hasattr(object,'_children'):
! for child in object._children:
! child._path=name
! gloutfile.write("rpcClient.execute('%s')\n" % name[1:])
##
- gnue/common/src/commdrivers/xmlrpc RpcDoc.py,
Jan Ischebeck <=