How do you lock your web app data?
John Nielsen
nielsenjf at my-deja.com
Thu Feb 1 08:02:43 EST 2001
Since it will not be a heavy load app, for a windows solution, you can
also look at python's win32file extension, it exposes LockFileEx which
will lock files for you.
How to use it is described in the help section of pythonwin:
Help->Other->Win32Extensions and then look for locking.
The lock, however, is process based. This means you'd need to run it
in a separate process from IIS (the reason you don't want it to be a
heavy-load app).
Have a good day,
john
In article <956uqd$6st$1 at newsreaderg1.core.theplanet.net>,
"Franz GEIGER" <fgeiger at datec.at> wrote:
>
> Hi all,
>
> I began to play around with cgi scripts and of course use Python for that.
> And man, it is a pleasure to do that with Python! It really is a snap.
After
> about a day I had written an Issue Tracker, where People can add software
> feature requests and bug reports. At this time I add functionality to edit
> and delete the entries - until now they only could have been added.
>
> So an important issue enters the game: How do I lock others out, when one
> edits/writes records? Please get me right: This will not be a heavy
load app
> nor will it be to handle requests and reports from hundreds of people.
> Therefore and because I just settled out to explore cgi I decided to use
> text files and pickle files for maintaining data and state, which is very
> convenient.
>
> Of course I could take a database as backend but I wonder if there are
other
> possibilities to achieve that "serialization"? How do you do it? Do you
> always use a database? Is it worth the effort doing it without a database?
>
> The server is an NT box running IIS4. Python is of version 2.0
(AvtiveState
> distribution).
>
> Any hint is appreciated.
>
> Thanks in advance and best regards
> Franz GEIGER
>
>
--
nielsenjf at my-Deja.com
Sent via Deja.com
http://www.deja.com/
More information about the Python-list
mailing list