Re: [python-win32] Creating python com objects

2008-04-24 Thread Alex Denham
class PyIDropTarget: _public_methods_ = ['DragEnter', 'DragOver', 'DragLeave', 'Drop'] _reg_progid_ = "Python.PyIDropTarget" _reg_clsid_ = '{0122---C000-0046}' def DragEnter(self, args=None): print 'DragEnter: ', args def DragOver(self, args=None):

[python-win32] Creating python com objects

2008-04-24 Thread Roger Upole
Alex Denham wrote: class PyIDropTarget: _public_methods_ = ['DragEnter', 'DragOver', 'DragLeave', 'Drop'] _reg_progid_ = "Python.PyIDropTarget" _reg_clsid_ = '{0122---C000-0046}' def DragEnter(self, args=None): print 'DragEnter: ', args def DragOver(self,

Re: [python-win32] Creating python com objects

2008-04-24 Thread Alex Denham
ah thanks very much, initially i had a unique GUID however i got giddy and excited when i found 'PyIDropTarget' in one of the modules, unfortunatly it was just an id (i thought it was an object) I'm working my way through python programming on win32, do you know of any other material i can work

Re: [python-win32] Creating python com objects

2008-04-24 Thread Tim Golden
Alex Denham wrote: class PyIDropTarget: _public_methods_ = ['DragEnter', 'DragOver', 'DragLeave', 'Drop'] _reg_progid_ = "Python.PyIDropTarget" _reg_clsid_ = '{0122---C000-0046}' def DragEnter(self, args=None): print 'DragEnter: ', args def DragOver

Re: [python-win32] Creating python com objects

2008-04-24 Thread Alex Denham
Thanks Tim, the program actually reacts when something is dragged over (much better than before). However i'm receiving an error everytime. >>> pythoncom error: Unexpected exception in gateway method 'DragEnter' : DragEnterpythoncom error: Unexpected gateway error Also, in the documentation it

[python-win32] Apache & mod_python & win32com

2008-04-24 Thread Dominique.Holzwarth
Hello everyone I'm developing a web application using mod_python and the apache web server. That application has to handle xml files and for that I'm using win32com with with MSXML. My problem is, that apache spawns a new process / thread (not sure wether ist a process or thread. I think it's

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Alex Denham
Hi, first of all, just import pythoncom directly import pythoncom As far as where to put pythoncom.CoInitialize() I'm not certain but i think at the top (or start) of your whole application.. if it's threaded then call it for each thread (at the start) "Initializes the COM library on the curr

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Robert Brewer
[EMAIL PROTECTED] wrote: > I'm developing a web application using mod_python and the apache web > server. That application has to handle xml files and for that I'm using > win32com with with MSXML. > > My problem is, that apache spawns a new process / thread (not sure > wether ist a process or thr

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Mike Driscoll
[EMAIL PROTECTED] wrote: Hello everyone I'm developing a web application using mod_python and the apache web server. That application has to handle xml files and for that I'm using win32com with with MSXML. My problem is, that apache spawns a new process / thread (not sure wether ist a proces

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Robert Brewer
[EMAIL PROTECTED] wrote: > Thank you Rober & Alex for the answers :-) > But I must admit that I'm still bit uncertain about that whole issue. > As I understood apache it is creating a thread for every request > anyway, or not? (and yes, on windows the MPM winnt is used) As I understand it, Apache

Re: [python-win32] Creating python com objects

2008-04-24 Thread Tim Golden
Alex Denham wrote: Thanks Tim, the program actually reacts when something is dragged over (much better than before). However i'm receiving an error everytime. >>> pythoncom error: Unexpected exception in gateway method 'DragEnter' : DragEnter pythoncom error: Unexpected gateway error I've

Re: [python-win32] Creating python com objects

2008-04-24 Thread Alex Denham
No problems, thanks for your help so far and the code below. The lack of drag and drop isn't stopping my program from working, it's just a feature i would really like to implement. I'll wait for some more help and in the meantime learn more about the win32 modules and windows programming in gener

Re: [python-win32] Apache & mod_python & win32com

2008-04-24 Thread Dominique.Holzwarth
Thank you Rober & Alex for the answers :-) But I must admit that I'm still bit uncertain about that whole issue. As I understood apache it is creating a thread for every request anyway, or not? (and yes, on windows the MPM winnt is used) so wouldn't it be enough to just call CoInitialized() at th

[python-win32] Creating python com objects

2008-04-24 Thread Roger Upole
Tim Golden wrote: Alex Denham wrote: Parameters /pDataObj/ : *PyIDataObject ** How do i link the IDataObject to the IDragTarget? I don't know that you can, if you're asking: how do I find out where this is coming from?. I think the drag-drop technique is endpoint-agnostic. (A high-so