#NEWLINE# def _get_view_type( self , repopath ) : #NEWLINE# #INDENT# cmdline = [ 'cleartool' , 'lsview' , '-full' , '-properties' , '-cview' ] #NEWLINE# p = subprocess . Popen ( line , stdout = subprocess . PIPE , stderr = subprocess . PIPE , cwd = repopath , shell = _popen_shell ) #NEWLINE# ( res , error ) = p . communicate ( ) #NEWLINE# failure = p . poll ( ) #NEWLINE# if failure : #NEWLINE# #INDENT# raise SCMError ( error ) #NEWLINE# #UNINDENT# for line in res . splitlines ( True ) : #NEWLINE# #INDENT# splitted = line . split ( ' ' ) #NEWLINE# if ( splitted [ 0 ] == 'Properties:' ) : #NEWLINE# #INDENT# if ( 'snapshot' in splitted ) : #NEWLINE# #INDENT# return self . VIEW_SNAPSHOT #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'dynamic' in splitted ) : #NEWLINE# #INDENT# return self . VIEW_DYNAMIC #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return self . VIEW_UNKNOWN