Re: replacing lines in a file

2011-01-27 Thread mpnordland
thanks for explaining what I was doing wrong and how reading the file works. What would you suggest I do to remedy the situation? -- http://mail.python.org/mailman/listinfo/python-list

Re: Return Statement

2011-01-27 Thread mpnordland
I stand corrected :) -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-26 Thread mpnordland
Segfaults in wxPython are caused by the debug assertions not being turned on. see Robin Dunn's (the creator of wxPython) response -- http://mail.python.org/mailman/listinfo/python-list

Re: Return Statement

2011-01-26 Thread mpnordland
On 01/26/2011 03:26 PM, sl33k_ wrote: How does "return True" and "return False" affect the execution of the calling function? Basically it will affect it in whatever way you design it to for example: def lie_test(statement): if statement is True: return False els

replacing lines in a file

2011-01-26 Thread mpnordland
Attached are a config file parser that i'm working on, and a example config file. Basically, what my problem is is in write_config, it should search through the file, and replace the lines with whatever the modified version is, it is also designed to ignore comments. To see my problem (which is

Re: open() mode args

2011-01-26 Thread mpnordland
thanks -- http://mail.python.org/mailman/listinfo/python-list

open() mode args

2011-01-26 Thread mpnordland
What is the correct file mode to pass to open() when I want to both read and write on the open file? -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-12-23 Thread mpnordland
Ok, thank you. I will go look at the resources mentioned. -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-12-22 Thread mpnordland
ok, I'll give one more chance. First, to pacify those who hate google groups: What is a good usenet client? second, How should I set up this proxy so that when a connection is made, it request's authentication, and then log's the request, if authentication is not gotten, how do I have it block (or

Re: Catching user switching and getting current active user from root on linux

2010-12-20 Thread mpnordland
I give up, I will never try to use a usenet group again. For the ones of you who tried to help thank you. You helped to identify some of my troubles, as for you @usernet, you are a troll -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-12-13 Thread mpnordland
I think I do understand multiuser systems, although I'm sorry I did not make my self clear. Yes, I understand that there can be multiple people logged in, and yes if you really wanted to, you could login as yourself as many times as you want. This is not a server based program, it is intended for u

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread mpnordland
about the pyutmp, is the most recent entry at the top or bottom of the file? -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread mpnordland
sorry, I've been busy, it's on linux, and current active user is the user currently using the computer. My program needs to switch log files when a different user starts using the computer. -- http://mail.python.org/mailman/listinfo/python-list

Catching user switching and getting current active user from root on linux

2010-11-30 Thread mpnordland
I have situation where I need to be able to get the current active user, and catch user switching eg user1 locks screen, leaves computer, user2 comes, and logs on. basically, when there is any type of user switch my script needs to know. -- http://mail.python.org/mailman/listinfo/python-list