dbm

2006-12-27 Thread Julien Cigar
Hello list, I have a dbm "database" which needs to be accessed/writed by multiple processes. At the moment I do something like : @with_lock def _save(self): f = shelve.open(self.session_file, 'c') try: f[self.sid] = self.data finally: f.clo

Re: Controlling who can run an executable

2005-10-04 Thread Cigar
Tony Nelson wrote: > In article <[EMAIL PROTECTED]>, > "Cigar" <[EMAIL PROTECTED]> wrote: > > > I am developing a program for a client. She runs a shop where her > > clients bring in items for sale or short term buyback. Development of > > the

Re: Controlling who can run an executable

2005-10-04 Thread Cigar
Istvan Albert wrote: > > I could ask her, "If you can't break it is that good enough security?" > > Guess not. Most non-programmers think everyone else who knows some > programming is a some sort of hacker genius. > > Instead come up with a simple solution then explain her how it will > works. I t

Re: Controlling who can run an executable

2005-10-04 Thread Cigar
Istvan Albert wrote: > >was using to track clients and transactions. He couldn't demonstrate > >the program for one reason or another because it was protected in a way > >that neither could circumvent. (She didn't remember how it was > >protected, she had hired this person a long time ago.) > > I

Re: Controlling who can run an executable

2005-10-04 Thread Cigar
Myles Strous wrote: > What's more, Tim Golden's wmi module (see > http://tgolden.sc.sabren.com/python/wmi.html) makes getting at these > numbers very easy: > > import wmi > c = wmi.WMI () > for thingy in c.Win32_NetworkAdapter(): > print "Network Adaptor", thingy.MACAddress > for thingy in c.Win

Re: Controlling who can run an executable

2005-10-04 Thread Cigar
Paul Rubin wrote: > Suppose that competitor's program that her employee had illicitly > brought her wasn't protected, so she was able to run it. You might > ask her whether, ethical issues aside, she would be willing to use it > on a daily basis, given it sounds like people in her industry know >

Re: Controlling who can run an executable

2005-10-04 Thread Cigar
Paul Rubin wrote: > "Cigar" <[EMAIL PROTECTED]> writes: > > Now that I'm three months into the development of this program, my > > client tells me she would like to protect her investment by preventing > > her employees from doing the same to her. (

Re: Controlling who can run an executable

2005-10-04 Thread Cigar
Mike Meyer wrote: > First thing to know; you can't stop someone who's sufficiently > determined to run the program. I have explained to her that I can't prevent someone who REALLY wants her program from tossing a rock through her front window and making off with her PC. They'd get the hardware an

Controlling who can run an executable

2005-10-03 Thread Cigar
I am developing a program for a client. She runs a shop where her clients bring in items for sale or short term buyback. Development of the program has been going great but she's mentioned that there is a 'feature' coming up in the next couple of weeks that she'd like me to implement that has me

mod_python and Internal Server Error ...

2005-06-28 Thread Julien Cigar
Hello, I'm using mod_python 3.1.3 with Apache 2.0.54 on a Debian box with the publisher handler and the Clearsilver template engine, and from time to time apache returns an 500 error code (Internal Server Error). Apache errog.log file looks like : [Tue Jun 28 14:42:12 2005] [error] [client 164.x