Re: Get the pid of a os.startfile(filename)
Hi! That works perfect! But how I do it in a Win98? Does the win32all library have a standard way to do it? Thank you Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: append to non-existing list
Hi I think there's no way to append to a non existing list. Sorry about my question, but the English is my second language, and I don't know what is the meaning of IHMO (or IMHO). I googled and found that it means "In My Humbled Opinion", is that true? Thanks and accept my appologies for not talking entirely about your problem. Daniel -- http://mail.python.org/mailman/listinfo/python-list
Get the pid of a os.startfile(filename)
Hi to all, How can I get the Process ID (PID) of an application started because of os.startfile(filename)? Or, better, How can I get the PID of a running program, suposing I know the name of the running application? Many thanks. Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: How to convert a number to hex number?
And if you want only the hex number, try: >>>hex(255)[2:] 'ff' -- http://mail.python.org/mailman/listinfo/python-list
Re: XML GUI
www.wxpython.org Look for the Docs and examples file. It has a full list of interesting examples, including the way for loading GUIs from xrc files. The xrc files can be generated from DialogBlocks, XRCEditor, wxDesigner. Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: Application monitor
> Personally, I use init > as an app monitor. It doesn't need monitoring What's "init"? Sorry about my ignorance. -- http://mail.python.org/mailman/listinfo/python-list
Application monitor
Hi to all, I'd like to have an app monitor that gets rid of another app, in the way that if it closes unspectedly, the app monitor just wake it up one more time, and viceversa. I mean: Main application starts This one starts the App Monitor of itself. (This means that if Main Application closes, the App Monitor restart it) And viceversa means that if App Monitor closes, the Main application restart it. How can I accomplish this? I've been thinking in wx.SingleInstanceChecker (from wxPython GUI library). If it doesn't exist, then call os.system(). But I don't know if there's a better way. Thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: python.org offline
The answer is here: "The server is temporarily unable to service your request due to maintenance downtime or capacity problems." -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? Frank Zappa -- http://mail.python.org/mailman/listinfo/python-list
Re: OpenSSL in Python
Tu madre -- http://mail.python.org/mailman/listinfo/python-list
Re: OpenSSL in Python
Hi, Excuse me all of you for the way I answered. Sybren, and all of you, accept my apology. I saw the Sybren's message yersterday late night in a bad moment. I'll visit the OpenSSL forum. Thank you all. -- http://mail.python.org/mailman/listinfo/python-list
Re: OpenSSL in Python
First, is the PYTHON OpenSSL C wrapper what I need to get running. Second, if you don't know how to answer, then limit your opinion to yourself. Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: OpenSSL in Python
> wouldn't your question then not be more appropriate on the > OpenSSL newsgroup/mailinglist/forum/whatever? Well, I think that because python is the language where I want it to run, I ask it right here. OpenSSL is written in C, so they wont help me. I need the right wrappers to that C library. Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: How to replace all None values with the string "Null" in a dictionary
Thanks... I did it right that way, but asked it without telling how I did it just to see what are the occurences of others. I thing there's no better/faster solution. Many thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list
xml-rpc - adodb - None type - DateTime type
Hi to all, I have functions defined in an xml-rpc server. Some functions query to a Postgres database (using adodb) and return its recordset. So, if some xml-rpc client runs the mentioned function, it will retrieve the recordset. The problem is that if a retrieved field has the Null value or the Date value (DateTime Database format), then, the retrieved recordset in the python program will have the 'None' value or the DateTime type object value. xml-rpc isn't able to accept any type of value, so I have to solve it. I can replace all None values with the string 'Null', there's no problem, but I can't detect the DateTime type object I retrieve from the database. I have something like this: def xmlrpc_function(): conn = adodb.NewADOConnection('postgres') conn.Connect(host,user,password,database) rs = conn.Exec("select * from table") result = [] i = 0 while not rs.EOF: row = rs.GetRowAssoc(False) for key, value in row.items(): if value==None: row[key]='Null' result.append(row) i = i + 1 rs.MoveNext() rs.Close() print result return result The problem here is that if row[key] == , then I don't know what to do for detect it and make the appropriate change to string. Console output: [{'name': 'Null', 'date': }] If you consult the python manual, you'll see that there's no 'DateTime' type object, so I can't do something like: if value==DateTimeType: ... I only need to know which type of data is a field for make the change according to what can I pass through the xml-rpc. Any help? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: How to replace all None values with the string "Null" in a dictionary
> I think it would be time for you to read the Fine Manual... hi, thanks for your answer... I really did it the same way you suggested, but I forgot to tell you that I wanted to get a better way for doing it. By the way, knowing your wisdom, what do I have to install to get the following code work (Win XP, Python 2.4.2) - from OpenSSL import SSL import config KEY_FILE = config.SSL_KEY_FILE CERT_FILE = config.SSL_CERT_FILE I've been looking for OpenSSL for python. I found pyOpenSSL, but it requires the OpenSSL library, which I only found on http://www.openssl.org/, but don't know how to install. Other thing is the "config" module... I'm lost. Someone knows? :-S My main purpose is to enable XML-RPC SERVER over an SSL connection. Thanks -- http://mail.python.org/mailman/listinfo/python-list
How to replace all None values with the string "Null" in a dictionary
Hi all, How can I replace all None values with the string 'Null' in a dictionary? For example: convert this: a = {'item1': 45, 'item2': None} into this: a = {'item1': 45, 'item2': 'Null'} Thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: socket.error: (32, 'Broken pipe'): need help
When enabling the server, note that you put '' as the IP, and not 'localhost'. if you put an ip: '172.16.1.2', your server will listen on that IP (if it's valid) if you put '', your server will listen on all IPs defined on that computer. of you put 'localhost', it will listen for local connections only. Maybe that's the problem. -- http://mail.python.org/mailman/listinfo/python-list
OpenSSL in Python
Hi to all, What do I have to install to get the following code work (Win XP, Python 2.4.2) from OpenSSL import SSL import config KEY_FILE = config.SSL_KEY_FILE CERT_FILE = config.SSL_CERT_FILE -- I've been looking for OpenSSL for python. I found pyOpenSSL, but it requires the OpenSSL library, which I only found on http://www.openssl.org/, but don't know how to install. Other thing is the "config" module... I'm lost. Someone knows? :-S My main purpose is to enable xml-rpc server over an SSL connection. Thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list
SimpleXMLRPCServer
Hello, Here's my SimpleXMLRPCServer derived class for serving XMLRPC functions. Note that this class enables you to shutdown the xml-rpc server in the moment you want just accesing the QuitFlag variable of the class. I would like to add SSL functionality to that. What do I have to add or modify in it to do so? class XMLRPCServer(SimpleXMLRPCServer): def __init__(self,socket,lock): self.bUsarFuncionesXMLRPCPrivadas = False SimpleXMLRPCServer.__init__(self, socket) SocketServer.ThreadingTCPServer.allow_reuse_address = True SocketServer.ThreadingTCPServer.request_queue_size = 100 self.timeout = 0.1 # Default timeout: 5.0 seconds self.lock = lock # Should be a preexisting threading.RLock() object self.lock.acquire() self.QuitFlag = 0 self.lock.release() def get_request(self): socklist = [self.socket] while 1: # Select with a timeout, then poll a quit flag. An alternate # approach would be to let the master thread "wake us up" # with a socket connection. ready = select.select(socklist, [], [], self.timeout) self.lock.acquire() time_to_quit = self.QuitFlag self.lock.release() if time_to_quit: raise TimeToQuit# Get out now if ready[0]:# A socket was ready to read return SocketServer.ThreadingTCPServer.get_request(self) else: # We timed out, no connection yet pass# Just go back to the select() def _dispatch(self, method, params): try: func = getattr(self, 'xmlrpc_' + method) except AttributeError: #return 'La funcion no existe' raise Exception('La Funcion "%s" no existe' % method) else: return func(*params) def verify_request(self,request,client_address): if TrustedHost(client_address): return True return False def test_xmlrpc(self): return "xmlrpc works" Thanks, Daniel -- http://mail.python.org/mailman/listinfo/python-list
What is Transport parameter in xmlrpclib.Server used for?
Hello all... Someone can tell me what is the parameter 'transport' used for? I think it can be used for encrypt the data... If so, how can I use it? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Security on XML-RPC
Hi all, Anyone knows a simpler but stronger control access to XML-RPC functions than the one I comment here? My actual system works like this: I have a TCP Server and an XML-RPC Server. Both of them verify if the IP address is allowed. The TCP Server works for validate and register an IP address if it wasn't validated previously, while the XML-RPC Server works only if the requester IP address was allowed through the mentioned TCP Server. This means, anyone who wants to connect to the XML-RPC Server has to pass the TCP Server. How a client connects to the TCP Server and authenticate his IP? Well, there is an interchange of encrypted data between the Client and the TCP Server, where, in few words, the client sends a UserName and a Password, all this through the send() function of the Socket connection. If the TCP Server authenticate an IP address, then that Client will be able to connect to the XML-RPC Server and use its defined functions. The problem I see here is that if I want someone to taking advantage of my XML-RPC functions, I have to tell him all these. I would like to get a strong but simpler way of doing all these. Thank you for reading and thinking. Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: How to get a raised exception from other thread
> One suggestion about the above: "description" is actually the exception > instance (the object), not just the description. Yes. In fact, it's a tuple. Maybe, I'll change it for just printing the second item of it. Thanks a lot. -- http://mail.python.org/mailman/listinfo/python-list
Accessing a dll from Python
Hi to all, Can someone give me lights on how can I deal with dlls from python? My main purpose is to get access to a Unitech PT600 Bar Code system. I have the dll that works fine through Visual Basic. But I'm migrating to Python, so I need a way to use the same dll, or a C library. I tried to access a dll created by myself on Visual Basic. The dll just have one function. It works perfect when using it on a VB project just including it in the references configuration. But I can't access it from python. I tried the ctypes module. Thank you Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: Is there a module for print object in a readable format?
Maybe you don't have an up to date python version. I'm using 2.4.2. I tried: import pprint pprint.pprint([1,2,3,4,[0,1,2,[3,4]],5], width=1,indent=4) [ 1, 2, 3, 4, [ 0, 1, 2, [ 3, 4]], 5] Works fine. -- http://mail.python.org/mailman/listinfo/python-list
Re: How to get a raised exception from other thread
Ok, sorry about the above question. I solved it adding this to the main thread: try: SrvrTCP = module.ThreadedTCPServer(ip,port) SrvrTCP.start() except Exception, description: MsgBox(self,"TCPServer Error:\n\n"+str(description),title="TCPServer",style=wx.OK | wx.ICON_ERROR) return Peter, thank you very much. -- http://mail.python.org/mailman/listinfo/python-list
Re: How to get a raised exception from other thread
> Now that may not be perfect, since I'm not familiar with the TCPServer() > call. I've sort of assumed it does something quickly and returns, or > raises an exception if the input is bad. If it doesn't actually return > if it starts successfully, you would need a little different approach. > Probably adding a simple timeout to the self.startEvent.wait() call > would work. It's perfect! Thank you very much. After the .start() call in the main thread, it just waits until was a succesfull thread start. It's just perfect. One more thing, I would like to catch the description string of the error, so I can show it to the user in a Message Box. How can I do that in the main threa, once that I allready catched the exception? Thank you so much -- http://mail.python.org/mailman/listinfo/python-list
Re: wierd threading behavior
> Hello, > I am just starting to play threading in python, here is a really > interesting problem I am very curious about: > " > import thread > def main(): >thread.start_new(test.()) First, delete the dot after "test". Second, is possibly that the Main() finishes before you can see the print out of test(). -- http://mail.python.org/mailman/listinfo/python-list
Re: How to get a raised exception from other thread
> Before, after, or during the .start() call, or somewhere else? I'd like to catch *just after* the .start() call. > I'm quite sure the problem you are trying to solve can be solved, but > you are still describing part of the solution you believe you need, > rather than explaining why you want to do this (which may let us show > you other, simpler or cleaner ways to accomplish your goals). The thing is that I have in ProgramB a class derived from threading.Thread, that runs a TCPServer, listening to a port on local ip address. As you surely know, you have to specify certain parameters when instantiating the tcpserver: SocketServer.TCPServer(server_address, RequestHandlerClass) where server_address is a tuple (ip,port) ip has to be one of three modes of values (If I remember well): 1. A null string '' Listens on all IP local address 2. A string containing the local IP address where you want it to listen Listens only in the specified local IP address 3. A string containing "localhost". Listens only for connections from "localhost". Here comes the problem: When you specify the case number 2, the IP must be valid for the computer where the program runs, otherwise, it raises an exception saying that "Can't assign requested address". The TCPServer class, defined in a module, is ran (instantiatedly) from the main program through a started thread. The thread also is in the same module as TCPServer class. It looks like (it's much more code than this. If you want the whole code, tell me): MainProgram.py ... SrvrTCP = module.ThreadedTCPServer(ip,port) SrvrTCP.start() #Here, I want to know if the TCPServer started well. ... module.py ... class ThreadedTCPServer(threading.Thread): def __init__(self, ip,port): threading.Thread.__init__(self) self.ip= ip self.port= port def run(self): TCPServer((self.ip,self.port)) #Here, if the self.ip is invalid, it raises an exception. ... -- http://mail.python.org/mailman/listinfo/python-list
Re: How to get a raised exception from other thread
Hi Peter. Sorry for my delay. I wasn't in home the weekend. > Define what "get" means for your purposes. It appears that you mean you > want to catch the exception, but in the thread which launched the other > thread in the first place. If that's true, please show where you would > expect to catch this exception, given that when you start the thread, > the main thread continues running and might even finish before the other > thread finishes. In my above example, I want to catch in ProgramA the raised exception in ProgramB. Please, look at my example one more time. Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: Send password over TCP connection
I think you said the same as me: Client: Password = "password" h = Hash(Password) h is "GddTHww90lze7vnmxG" (whatever) Sends h over the network to the server. h is a string, so this approach is simply vulnerable. SRP seems to be very good, but because I don't know it well, I think I'll delay it for a while. Thank you -- http://mail.python.org/mailman/listinfo/python-list
Re: How to get a raised exception from other thread
Thanks for your answer, but I think that created thread in python should create a thread either on windows and linux. Can you give me Python example of how to do what I want to do? Thanks -- http://mail.python.org/mailman/listinfo/python-list
How to get a raised exception from other thread
Hi all, How can I get a raised exception from other thread that is in an imported module? For example: --- programA.py --- import programB thread = programB.MakeThread() thread.start() --- programB.py --- import threading, time class SomeException(Exception): pass class MakeThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) def run(self): i = 0 while 1: print i i += 1 time.sleep(1) #wait a second to continue if i>10: raise SomeException() Thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list
A way to set levels of access to users
Hi all, I have this table on a database: Table: user coduser | username | password | securitylevel 1| fcumana || 0123456789qwe where "securitylevel" is a string where the presence of each character is a permited key for running certain functions. For example: functions.py - securitylevel=6 def function1(): print "This is the function 'function1'" ...and/or other functions - Because securitylevel=6 exists in securitylevel in the database, the user running it is allowed to access. The lack here is that if there's a lot of functions and users, and I want to enable certain users to access certain functions, then, it will get confusing for maintain it. Any help? Daniel -- http://mail.python.org/mailman/listinfo/python-list
Using SRP on TCPServer module
Hi all, Below, you can see a class that when it receives a host connection, it gets validated. Then, if the validation returns True, then process the request. Also, if I want to stop the server, I simply access the self.QuitFlag in lock mode, and set it to 1. Now that you know what I have, I would like to add SRP functionality to the validation of each new connection. What I need to add to my code to get SRP to work? I don't know where to start. The docs are poor. Thanks Daniel -- class TCPServer(SocketServer.ThreadingTCPServer): def __init__(self,socket,lock): self.socket = socket SocketServer.ThreadingTCPServer.__init__(self, socket,SocketServer.StreamRequestHandler) SocketServer.ThreadingTCPServer.allow_reuse_address = True self.timeout = 0.1 self.lock = lock self.lock.acquire() self.QuitFlag = 0 self.lock.release() def get_request(self): socklist = [self.socket] while 1: # Select with a timeout, then poll a quit flag. An alternate # approach would be to let the master thread "wake us up" # with a socket connection. ready = select.select(socklist, [], [], self.timeout) self.lock.acquire() time_to_quit = self.QuitFlag self.lock.release() if time_to_quit: raise TimeToQuit# Get out now if ready[0]:# A socket was ready to read return SocketServer.ThreadingTCPServer.get_request(self) else: # We timed out, no connection yet pass# Just go back to the select() #Process the request def process_request_thread(self,request,client_address): """ This function gets triggered when the connection is accepted """ pass #Verify the request def verify_request(self,request,client_address): """ This function triggers when some host wants to connect """ if DoValidationOf(client_address): return True else: return False -- http://mail.python.org/mailman/listinfo/python-list
Re: Send password over TCP connection
> Well, I mean, what kind of data is it? Sports chat? Personal > correspondence? Financial info like credit card numbers? Medical records? > Military/diplomatic traffic? I'm asking how severe the security requirements > are. Important data like diplomatic traffic. Must be accessible from all Clients inmediatly a client publish his data. Its an online system. > Why do you want to do that? All of them get compromised if the one password > is compromised. How is it that all of them get compromised? > What do you mean by "password"? If it's not something a user has to remember > and type in, then I hope you mean a long random string rather than a > password. I sort of remember your mentioning this though. With 'password' I meant simply a string to log in. > so why do you need this password stuff at all? I don't want to permit anyone to run RPC functions. It's my desire. -- http://mail.python.org/mailman/listinfo/python-list
Re: Send password over TCP connection
> Can you say what your application is? That will help figure out how far you > need to go to protect these passwords, and what alternatives might be > possible. Sure, no problem (see this on fixed text): ___ MasterServer ___ /// || | \\\ ClientServer ClientServer ClientServer //\\ //\\// \\ Client Client Client Client Client Client // = XML-RPC connection / = Pure TCP connection Clients, connects to MasterServer through ClientServer using XML-RPC ClientServer interacts with MasterServer using 2 modes: XMLRPC and pure TCP. Pure TCP connection is used for athenticating ClientServer. When a ClientServer is authenticated, the ClientServers can connect to MasterServer for running RPC functions requested by its Clients. All ClientServers log in supplying only one hashed password. It is hashedly stored in MasterServer. The way I elected to log in is: -Generate an MD5 string from a Random Alpha_Numeric string on ClientServer side -Generate another MD5 string from a Random Alpha_Numeric string on MasterServer side -Send each string from one host to the other. -Apply a Hash algorithm using both MD5 in conjunction with the password that each one knows. -Then, the ClientServer sends its resulting hashed string to MasterServer -MasterServer then compares its own resulting hashed string with the one received from ClientServer ClientServer logs in if: - IP's ClientServer is not a Blocked IP by MasterServer - IP's ClientServer is in an Allowed IP Range - hashed strings match All this is sustented over a VPN. Suggestions are welcomed -- http://mail.python.org/mailman/listinfo/python-list
Re: Send password over TCP connection
> Do you know how any other system manages to do this? Linux, for example > assuming properly configured system)? The passwords aren't stored: hashes > of the passwords are stored (with additional things thrown in to prevent > certain kinds of attacks even if someone nabs the password (/etc/shadow) > file). If you store the password or even encrypt it (i.e. something that can > be reversed if someone knows the key), it's a risk. Ok, I understand it. What about the MD5? Is it good enough to use when saving a hashed password on the database? For example: user_input = raw_input("Type your password: ") password = md5.md5(user_input).hexdigest() SavePasswordInDatabase(user,password) -- http://mail.python.org/mailman/listinfo/python-list
Re: Send password over TCP connection
Ok, I understand... What about the MD5? Is it good enough to use when saving a hashed password on the database? For example: user_input = raw_input("Type your password: ") password = md5.md5(user_input).hexdigest() SavePasswordInDatabase(user,password) -- http://mail.python.org/mailman/listinfo/python-list
Re: Send password over TCP connection
then, what you proppose? -- http://mail.python.org/mailman/listinfo/python-list
Re: Send password over TCP connection
> Sounds like it, but how is it different from what I just described? :) That's right, but I wanted to rewrite it... I was for confirm my recent acquired knowlegde :) With "alphanumeric" I meant the md5 hash (for example). -- http://mail.python.org/mailman/listinfo/python-list
Re: Send password over TCP connection
¡Beautiful and elegant solution! Two copies of the password: one on the client, the other on the server. 1. Client wants to connect 2. Server generates a random_alphanumeric_string and sends it to the client 3. Both Client and Server creates a hash string from 4. Client sends the hash string to the server 5. Server compares his hash result with the hash string received from de client. I think it is a very good solution, Isn't it? Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: Send password over TCP connection
Hi. I found TSL, a Python Library that supports SRP. Do you know where can I find a sample client and server code? Thanks for your help. -- http://mail.python.org/mailman/listinfo/python-list
Send password over TCP connection
Hi all, I have a program that serves client programs. The server has a login password, which has to be used by each client for logging in. So, when the client connects, it sends a string with a password, which is then validated on the server side. The problem is obvious: anyone can get the password just sniffing the network. How can I solve this? Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: Can I send files through xmlrpc connections?
I'm sorry, I didn't the right question... Of course that I can break the file and rewrite it on an xmlrpc protocol for transmition, or send a byte each time through the socket lib. I meant is there a program already developed that sends and receives files based on xmlrpc calls? Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Can I send files through xmlrpc connections?
...If the answer is Yes, can you give me an example either in the server side and the client side? I googled a lot, but I can't find nothing regarding this. A lot of thanks. Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: SOAP and XMLRPC
I'm looking for code under VB6 :(... I'm looking everywhere. I hope I get luck. -- http://mail.python.org/mailman/listinfo/python-list
Re: SOAP and XMLRPC
Hi... Thanks for your answer, but can you give me his contact or tell him to post here the answer I'm looking for? I'm needing it seriously. -- http://mail.python.org/mailman/listinfo/python-list
SOAP and XMLRPC
Hi to all... Someone knows if is there possible to have a Python SOAP or XMLRPC server that works with VB? I would like you to include the examples clients and server programs. My examples are: #Server.py import SOAPpy def sum(x,y): return x+y server = SOAPpy.SOAPServer(("localhost", 8080)) server.registerFunction(sum) server.serve_forever() #client.py import SOAPpy server = SOAPpy.SOAPProxy("http://localhost:8080";) print server.sum(5,6) #This should print: 11 These programs work perfect. The thing is that I need to access the server from VB (like does SOAPpy accessing google's services) Many thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: New WYSIWYG Python IDE in the works
wxDesigner + XRCed = The best. I would like the Boa approach but with xrc exports. It would reaally be the best of the best! And don't get me wrong too, but "to be better than the competition you need to be better than the competition" - Christoph Rackwitz Daniel -- http://mail.python.org/mailman/listinfo/python-list
Adapt PyShell's code completion into DrPython
I would like to adapt the PyShell code completion to DrPython, because both programs are very good... Any clue for start finding the code location in both programs to accomplish this? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Python & SQLite
> There are specific python modules for SQLite on Linux. Which? I thought pysqlite works on Linux. My important question is: If I develop an app using Python-wxPython-PySQLite under Windows, and run it on Linux, it should work, ¿right? Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
Try one of these: - Hit F8 - Menu View/Toggle Source Browser Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: Python & SQLite
Does PySQLite run on Linux? Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
Hi. You were right: I meant "Code Completition". I did what you told me to do. I get now auto completition of code. For example: import wx wx.(here appear a list with the possibilities) But (there's always a "but") with: button = wx.Button(...) when I write "button." there's a flick of the list of the possible parameters, resulting in no showing it. Is there a way to correct it? Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: Which IDE is recommended?
> But I personally recommend DrPython. (Not only, I'm a member of the > project). I saw this message and downloaded DrPython. It's very good: I like the class/functions browser while I'm coding... but I can't find the autocompletion feature you talk, and I think this feature is very important. Where it is? Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGTK vs. wxPython
> Really though, these questions are more suited for the wxPython mailing list. Thank you very much for this acclaration :) -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGTK vs. wxPython
Ok, I get the point. So, when a dynamic component comes up, It can be handled importing from an XRC file? I have to develop a complete MDI app, so I'm realizing that I will get ride of hand-coding it. Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGTK vs. wxPython
Correct me if I'm wrong: XRCed doesn't allow to do MDI Parent and Child frames, but simple apps only. For what you wouldn't use it? And instead, what would you use instead? GUI Hand coding? Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGTK vs. wxPython
If you see carefully, that question was for you too, because the reply is at the same level as the one that says "Aaand: which do you prefer?" :) Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGTK vs. wxPython
Aaand: which do you prefer? Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGTK vs. wxPython
And what did you use for deploying either PyGTK and wxPython? In other words, what were your workspace and logic of the development? Thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: cross platform printing - using a GUI ?
Had you used it? Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: PyGTK vs. wxPython
Hi all... Thank you for your answers... wxPython, under Linux, tries to use GTK... A better way to say it is: wxPython uses whatever it needs: under Windows, his API; under Linux, his API (may imply the use of GTK or GNOME), etc... Aparently, none of you has tried wxPython recently or properly. wxPython is a cross-platform toolkit. Currently supported platforms are 32-bit Microsoft Windows, most Unix or unix-like systems, and Macintosh OS X. Certainly, there may be Linux distributions where it doesn't run well... > The PyGTK is a better choice if you are writing for > Linux and want your application to also be able to run on windows. I want exactly the opossite: my apps must be developed for running primarly under Windows but also be able to run on Linux. So, tell me PyGTK (with or without Glade/w XML output) or entirely Python code through wxPython? Truely, what's the best for CROSS-platform for both Linux and Windows? Not just for Linux or just for Windows, but for both. Anyone who had used any a lot? Thanks Daniel -- http://mail.python.org/mailman/listinfo/python-list
PyGTK vs. wxPython
Hi all... I think wxPython is much better than PyGTK. First of all, PyGTK needs the GTK runtime installed, whereas wxPython is entirely Python's modules, so It facilitates the apps' distribution. Also, PyGTK uses specific controls or widgets of GTK, while wxPython uses native controls of the platform where the app is running. I'm learning both, but at a slow step, so I want to know all the comments about this subject in this group. I heard about Glade to make the graphic layout of the app and then export it as XML. Then, it connects to PyGTK. The problem I see is that What if you want to refer to a state of a specific radiobutton of a radobutton's group? It seems to be very troublesome. Please, post any comments about the pros and cons of each library, and the proper way to construct the graphic layout (generating XML through Glade, or by hand-code). Thanks. Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: cross platform printing
Hi Dennis... Then, what would be your solution? Print a PDF? If so, how you do that without assuming that an application is available to print it? Daniel -- http://mail.python.org/mailman/listinfo/python-list
SQLite Database Manager
Hi all... Does anybody know about the best SQLite Database Manager open source web-based or standalone app under windows? I tried: - SQLiteManager (web-based - http://sqlitemanager.sourceforge.net/) but I can't get it working. (When I try to just create a new database, it does nothing... If anyone knows how to get it working, I am all ears (or eyes) :) ) - the demo version of SQLite Analyzer 3 (http://www.kraslabs.com/sqlite_analyzer.html). It seems to be good enough, but it isn't free ($40). - SQLiteManager (stand-alone program - http://sqlabs.net) that isn't free ($39) -- http://mail.python.org/mailman/listinfo/python-list
Re: The convenient compiler for Python Apps and Distribution of it
the question is "is there an application that can compiles standalone python applications for running under Windows?" and "is there an application that can compile standalone python applications for running under Linux?". So I want a compiler for each platform, but that works. -- http://mail.python.org/mailman/listinfo/python-list
The convenient database engine for a "Distributed" System
Hi all... Here is my infrastructure design of a "distributed" system: - Many (30-50) hosts connected via VPN to a server. - Each host manages a system that receives local data (stored in a local database), and has to be sent to the server, so the rest of the hosts can "see" this data. What I want? I want to have a portable/changeable/easy-installation/cross-platform local database. The problem is that the database structure may change, so I have to change the database structure of each host. As you can see, it requires the database structure to be very portable and changeable. I think there is 2 database paradigms to consider: The Access-like one, and the MySQL-like one. With the Access-like paradigm, it only needs the file .mdb on the local host, and its respectively set of dlls to manipulate it. But, I remember that I need a cross platform database... On the other hand, the MySQL-like paradigm, needs the database engine to be installed for running. The cons of it, is that is more difficult (I don't know yet if a can do it) to install it silently, I mean without user intervention, whereas a .mdb file being a member of the system installation files is totally viable. I heard about sqlite... Any comments? -- http://mail.python.org/mailman/listinfo/python-list
The convenient compiler for Python Apps and Distribution of it
Hi all... There are py2exe, but it only works for Windows. Which would be the convenient(s) compiler(s) to deploy an executable that runs under Windows and under Linux (obviously, they have to be from different source of program compiler)... Any comments? (write the Pros and Cons of each one please) -- http://mail.python.org/mailman/listinfo/python-list
NSInstaller Vs. Inno Setup
Any comments? -- http://mail.python.org/mailman/listinfo/python-list
Re: Distributing Python Apps and MySQL
Hi. Thank you for your answer. I had been working on NSInstaller since it was the first one I looked up. I take advantage of this comment to say that NSInstaller really works (for whoever that is reading this) ;) -- http://mail.python.org/mailman/listinfo/python-list
Re: client-client connection using socket
"Client" and "Server" are just definitions or convention names. If your program "listens" to connections, then it is a server. Just it. -- http://mail.python.org/mailman/listinfo/python-list
Distributing Python Apps and MySQL
Hi there... I want to distribute my python apps and the MySQL Database in the easiest way possible. I mean a user just run the installation file and all is automaticly installed. Any suggestions? My knowledge: I know, as many of you, that there's py2exe for compiling python apps for running under Windows. But what about the database structure and data? I think it could be reached through a .qry run in the MySQL database from an installation instruction. But (one more time) what about the automated installation of the MySQL database without user intervention? Daniel Crespo -- http://mail.python.org/mailman/listinfo/python-list