White, Daryl (EPC COE) wrote: > > I’m using the ClearCase Automation Library and I’m getting different > behaviors between Python (via the PyWin32 library) and PERL (via the > OLE library). In the examples below, I’m trying to get a list of views > and purposely ensuring that I am not in a directory associated with a > view. So, starting in new command window and in the same non-view > directory, when I execute the PERL example from IBM , I get a list of > views (command is “perl C:\Python31\view.pl”). When I execute the > Python script from the same directory and with command of > “C:\Python31\python C:\Python31\comtest.py”, I get the following > exception: > > > > Traceback (most recent call last): > > File "C:\Python31\comtest.py", line 13, in <module> > > allViews = ccApp.Views("False", "local") > > File "C:\Python31\lib\site-packages\win32com\client\__init__.py", > line 463, in __getattr__ > > return self._ApplyTypes_(*args) > > File "C:\Python31\lib\site-packages\win32com\client\__init__.py", > line 456, in _ApplyTypes_ > > self._oleobj_.InvokeTypes(dispid, 0, wFlags, retType, argTypes, > *args), > > pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, > 'ClearCase.Application.1', 'No view is set, and current working > directory is not in a view.\r\n', None, 0, -2147467259), None) > > > > So, is there a difference/limitation using the COM interface via > Python windows extensions and the OLE interface in PERL? >
The "Views" property is supposed to take a boolean, not a string. Shouldn't that be False instead of "False"? -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32