[python-win32] Some troubles with COMObject of the ClearCase Automation Library 4.1

amapy@snafu.de amapy@snafu.de
Thu, 11 Apr 2002 11:16:41 GMT


Sorry, I had some troubles with my mail web-interface :-(
Here is the message again:

Hi all,

I've written a little script using the ClearCase Automation Library 4.1

When I'm trying to get the HistoryRecords of one element this error message
appears:
------------------
>>> hist = Elem.HistoryRecords(0)
Traceback (most recent call last):
  File 
"C:\win32app\Python21\lib\site-packages\win32com\client\dynamic.py", line 279, 
in _make_method_
    codeObject = compile(methodCode, "<COMObject %s>" % 
self._username_,"exec")
  File "<string>", line 1
     def HistoryRecords(self, 
pICCBranchType=pythoncom.Missing, Since=<time object at 013BB240>, User='', 
Minor=0, ExcludeCheckOutEvents=0, Recurse=0, DirectoryOnly=0):
                                                                      
^
 SyntaxError: invalid syntax
Traceback (most recent call last):
  File 
"<interactive input>", line 1, in ?
TypeError: object of type 'None' is not 
callable
--------------
It seems, there is some trouble with the time object.

The IDL-Syntax for the HistoryRecords Method looks like this:
--------------------------------
        [id(0x00000005), propget, helpstring("Gets the collection of history 
records for this object"), helpcontext(0x00000c85)]
        HRESULT HistoryRecords(
                        [in] ICCBranchType* pICCBranchType,
                        [in, optional, defaultvalue(00:00:00)] DATE Since,
                        [in, optional, defaultvalue("")] BSTR User,
                        [in, optional, defaultvalue(0)] VARIANT_BOOL Minor,
                        [in, optional, defaultvalue(0)] VARIANT_BOOL 
ExcludeCheckOutEvents,
                        [in, optional, defaultvalue(0)] VARIANT_BOOL Recurse,
                        [in, optional, defaultvalue(0)] VARIANT_BOOL 
DirectoryOnly,
                        [out, retval] ICCHistoryRecords** pHistoryRecords);
        [id(0x00000006), propget, helpstring("Gets the collection of hyperlinks 
associated with this VOB object"), helpcontext(0x00000c86)]
--------------

If you need more information, please let me know

Many Thanks

Andreas