def __GetLocalViews(self):
"""
Return a list with all local view.
"""
import socket
myClearCaseCommand = 'cleartool lsview'
myHostName = string.lower(socket.gethostname())
myListLocalView = []
(mystdIn, myStdOut) = popen2.popen2(myClearCaseCommand)
for myLine in mystdIn:
myLowerLine = string.lower(myLine)
myStartHostName = string.find(myLowerLine, myHostName)
if myStartHostName != -1:
myLocalView = myLine[2:myStartHostName-2]
myListLocalView.append(string.strip(myLocalView))
self.__StartViews(myListLocalView)
return myListLocalView
return
评论列表
文章目录