Re: py-ldap question
and this set option ? ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,ldap.OPT_X_TLS_NEVER) HTH Laszlo Nagy a écrit : > By the way, I already tried the set_option function, but I still get the > same error. > > > import ldap > import local > > ldap.set_option(ldap.OPT_X_TLS_ALLOW,1) > ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,0) > ldap.set_option(ldap.OPT_X_TLS_CERTFILE,local.LDAP_CACERTFILE) > ldap.set_option(ldap.OPT_X_TLS_CACERTFILE,local.LDAP_CACERTFILE) > > def getnewconnection(logindc,password): >conn = ldap.initialize(local.LDAP_SERVER_URL) >conn.simple_bind_s(logindc,password) >return conn > > if __name__ == '__main__': >conn = getnewconnection(local.LDAP_MANAGER_DC,local.LDAP_MANAGER_PWD) >print conn > > > -- http://mail.python.org/mailman/listinfo/python-list
Re: textwidget.tag_bind("name", "", self.donothing) not working
To make amends, I tried my own search and came up with this (that you might already have...): http://groups.google.com/group/comp.lang.python/browse_thread/thread/1384f49c35ffba9b/5928092247429e9a%235928092247429e9a?sa=X&oi=groupsr&start=1&num=3 Maybe you'll understand it better than me :-) -- http://mail.python.org/mailman/listinfo/python-list
Re: textwidget.tag_bind("name", "", self.donothing) not working
Sorry, kinda wrote over your intentions... -- http://mail.python.org/mailman/listinfo/python-list
Re: textwidget.tag_bind("name", "", self.donothing) not working
but you don't want to use the state=DISABLED option because it gray's out the field showing people that it is not available for editing, right? -- http://mail.python.org/mailman/listinfo/python-list
Re: Python vs Ruby
As you see, pythonistas are a nice humourous bunch... But to help a bit more in your balancing act you might take a look at: http://blog.ianbicking.org/ruby-python-power.html It's rather nice, and commented. -- http://mail.python.org/mailman/listinfo/python-list
Re: Python vs Ruby
I'd believe that would be Lua, but then again what is common to one might not be to another ;-) -- http://mail.python.org/mailman/listinfo/python-list
Re: python classes taught
Cegep du Vieux Montreal (technical college level), uses Python for CGI in web developement class. ...At least when I give this course ;-) Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list
Re: seeking Python developers
What level? and is geography important? JM -- http://mail.python.org/mailman/listinfo/python-list
Re: SOAP and XMLRPC
why isn't this good? http://www.enappsys.com/backend.jsp Seems to be what you're looking for... (second entry of a googled 'xml-rpc visual basic' search!) JM PS Tell us why the refered *.dll don't do, so I won't refer to it again if it's of no value. -- http://mail.python.org/mailman/listinfo/python-list
Thanks for PIL (and other stuff)
I was just reading on daily-python that PIL is 10 years old... So I wish it and its author(s) a good day, week, month, year and more! Really! Jean-Marc PS If I knew that Python had a anniversary date, I'd also write to thanks our BDFL (and authors)! But no such luck, so I'm restaining myself! ;-)) -- http://mail.python.org/mailman/listinfo/python-list
Re: how to use more than 1 __init__ constructor in a class ?
Singletoned wrote: > Rocco Moretti wrote: > > Steven D'Aprano wrote: > > > > That's the joys of a mostly self-taught programming knowledge: you miss > > > out on all the buzzwords. > > > > Being mostly self taught myself, I have a tendancy to use infrequently > > encountered terms in related but technically inappropriate contexts, > > confusing the better informed people I deal with. ;-) > > Indeed. I find I use even more buzzwords because I can just make up as > many as I want. This thread 'branch' (humm, is this an appropriate term for the last few quotes, going to Steven's?) is soothing in reminding us we are not alone. That there is a sort of distributed 'Alma Mater' of the 'Teach-It-Yourself School of Computing', producing a virtual FOAF group (Is FOAF, Friend Of A Friend or Flock Of A Feather?) jm -- http://mail.python.org/mailman/listinfo/python-list
Re: Python as CGI on IIS and Windows 2003 Server
[EMAIL PROTECTED] wrote: > jean-marc schrieb: > > Some bits are coming back to me: the problems stemmed from adresses - > > getting the root of IIS was different so accessing files didn't work > > the same way. > > thanks for that. > you are right, IIS versions are different. > Wich kind of adresses do you mean, http-adresses or paths in file > systems to root of IIS or to pythonscripts below IIS' root? > > Unfortunately I couldn't find a way to solve the problem. > > > regards > Lothar I think it was due to the way of getting a reference to the IIS's root - I think that all adresses in html (wheter from static documents or those generated by python) need to use relative adresses (double dot slash, or dot slash type of adresses). If it still doesn't work maybe posting some culprit code could help figure it out...! Jean-Marc May -- http://mail.python.org/mailman/listinfo/python-list
Re: searching for IDE
if you are familiar with eclipse, you could use the PyDev python plugin. jm -- http://mail.python.org/mailman/listinfo/python-list
Re: Python as CGI on IIS and Windows 2003 Server
Some bits are coming back to me: the problems stemmed from adresses - getting the root of IIS was different so accessing files didn't work the same way. I'm also quite positive that my desktop (developement version) was IIS 5.1 which comes with XP Pro compared to 6.0 for IIS Server. I changed the way I was dealing with file adresses. Maybe there is a hint of direction for your own investigation... Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list
Re: Python as CGI on IIS and Windows 2003 Server
[EMAIL PROTECTED] wrote: > Hi, > > My python scripts are running as cgi scripts on an IIS on Windows XP. > I have to distribute it to IIS on Windows 2003 Server. ... > Is there any difference for python as CGI on IIS between Windows XP > prof. and Windows 2003 Server? ... Yes there is a difference! I had this problem last year (developing on Win XP Pro and delivering on IIS Server), I'll try to lookup the solution, but it might be difficult (it's kind of a thing you do once and forget about later.) Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list
Re: write to the same file from multiple processes at the same time?
Sorry, why is the temp file solution 'stupid'?, (not aesthetic-pythonistic???) - it looks OK: simple and direct, and certainly less 'heavy' than any db stuff (even embedded) And collating in a 'official log file' can be done periodically by another process, on a time-scale that is 'useful' if not instantaneous... Just trying to understand here... JMD -- http://mail.python.org/mailman/listinfo/python-list
God damn error 666 (Tkinter in PythonWin)
Hello, No I'm not angry - but my machine seems to be :-| A pop-up dialog appears while trying to close the main PythonWin window that has that error 'God damn error 666' - I can close this and then the machine is ok BUT bye bye PythonWin... This occurs after a progression of windows (small 'w' for the frame on screen, not the OS) related problems occur within the PythonWin environment, and these problems follow after trying to debug Tkinter apps from within PythonWin, which I had read was problematic, causing all sorts of problem BUT never thinking it was the kind that couldn't get fixed by a shut-down and reboot type of memory cleansing... Even uninstalling all of Python and related stuff and re-installing them does not make this better. The progression of the sickness as best as I can remember is like this: First, the debugger stalls and fails to permit correct exit, Secong PythonWin seems fine (editor that is) but can't open any other windows (browsers , pdf files etc) at the same time, Third, Python's windows don't appear to fill out (documentation, for example) Fourth, I can't even open Pythonwin itself correctly, window open without menus, or such stuff... I think the nasty dialog referred to above appears between the third and fourth events... Sorry, this was not made to be a scientific test, so I can't be morfe precise, it just happened to me twice recently because I'm on a 10-15 K lines of program that uses Tkinter for the first time. Mark Hammond doesn't seem to know where this comes from; thinks it might be Tk related thing so I'm posting here in case it means anything to anyone, (My environment: ToshibaA70, Python 2.3.5, pyWin 203 (from ActiveState), under Windows XP Pro SP2) Hoping this is not CHTULHU telling to do something else with my life ;-) Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list
Re: Importing and namespace visibility
Merci Bruno, ( and also to Fredrik ) So I think I understand correctly, if I say that: each modulkes requires its own set of reference to whatever objects it needs to speak. The interpreter wil see not to create extra copies of the compiled code if many modules import the same modules but will make them all point to the one already existing (in this program's execution). Practically, it means every module import whatever it needs - be careful with recursive imports - keep things tidy by using the 'import suchModule' (and use dotted name chains to reach whatever is needed). Again thank you, JM PS Nice weather in Bordeaux ? I've been there once... (when I was young (sigh)) -- http://mail.python.org/mailman/listinfo/python-list
PythonWin + Tkinter = broken relation with WindowsXP !?!?!
I read that Tkinter and Python IDEs (PythonWin and Idle at least) makes for a bad mix in execution mode because they're fighting for the event loop, but this mode is usefull to use the debugger. But to the point of breaking something elsewhere than in memory ??? (Shutting down and rebooting the computer doesn't resolve the problems... PythonWin becomes impossible to use if another window is open (pdf files, winAmp music, browser et al...) is this documented somewhere??? It's been happening quite a few times to me (real bummer!). NOTE: This situation seems to appear slowly... Not like a works or doesn't work situation but rather that corruption is progressive. This is a complete mystery to me Thanks in advance, JMD Python 2.3.5, WinXP Pro SP2 I've started using Python Scripter, which seems less problematic (at this point) -- http://mail.python.org/mailman/listinfo/python-list
Importing and namespace visibility
As an application programmer, I'm not well versed in the material aspects of computing (memory, cpu, bus and all). My understanding of imports in Python is such: the __main__ program is the center piece which holds the programs reference: globals, functions, classes, modules etc. The objects of this file (functions and classes) are directly accessible; 'import suchModule' s objects are attainable through the *qualified name* (module.function); the 'from suchModule import *' the objects are directly attainable. A recent msg from F. Lundh http://groups.google.ca/group/comp.lang.python/browse_frm/thread/f9bf9734fa19eee9/8a51ab24748251d8?q=&rnum=12&hl=en#8a51ab24748251d8 suggested being careful with recursive importing... BUT, of all this I thought that if you import module1, then module2 (into __main__), objects from module1 would be available to objects of module2 which came (into memory space) after module1 was loaded. This does not seem to be the case, and module2 requires an 'import module1' statement in its own file to see this last module's objects. This is not the recursive situation that was a pitfall Fredrik was evoking. What am I missing here??? The reason I'm asking is to setup team development, using Tkinter, where different people will be programming diverse sections to be 'packed' into the main interface... Thanks for any help in understanding what is happening in this situation, JMD -- http://mail.python.org/mailman/listinfo/python-list