Feature Requests item #1429820, was opened at 2006-02-11 15:23
Message generated for change (Comment added) made by rupole
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1429820&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: win32
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Norman Rasmussen (normanr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Better documentation for CtxtHandleType, and others
Initial Comment:
PyCredHandle does it right: In the Comments section in
the help file it tells you to use
win32security.CredHandleType() to create an instance.
These classes require the same code, but the help
doesn't tell you that:
- PyCtxtHandle
- PySecBufferDesc
- PySecBuffer
Possibly: Is there anyway to make a default constructor
for these classes so you don't have to call ThingType()
to create a new PyThing.
----------------------------------------------------------------------
>Comment By: Roger Upole (rupole)
Date: 2006-02-12 09:37
Message:
Logged In: YES
user_id=771074
Calling win32security.CtxtHandleType() calls the type's
__new__ constructor. A distinct function to create the
handle would be just a pass-thru to the same type
constructor, so there's really no advantage to having a
function separate from the type object.
Roger
----------------------------------------------------------------------
Comment By: Norman Rasmussen (normanr)
Date: 2006-02-12 07:37
Message:
Logged In: YES
user_id=336265
Cool. Is there no way to make a constructor for these
objects on the same object? Either via setting a __init__
method, or even providing a 'new' static method on the object.
i.e. win32security.PyCtxtHandle.New() instead of
win32security.CtxtHandleType(). I'm guessing that
win32security.PyCtxtHandle() is much harder?
----------------------------------------------------------------------
Comment By: Roger Upole (rupole)
Date: 2006-02-12 06:12
Message:
Logged In: YES
user_id=771074
Just checked in win32security_sspi.cpp 1.5 with some
clarifications and corrections.
Roger
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1429820&group_id=78018
|