Open mgaitan opened 7 years ago
this seems to be simple enough https://pypi.python.org/pypi/pylock/0.3
From my reading of pylock's documentation this package seems a bad choice. Anyone deploying a Waliki based website will then have to decide between:
A distributed locking library that has a "fallback" to file locks for simple and small installations would be very much preferable IMO.
a concurrent edition in a page can leave the repo in a dirty state like the following:
Explanation
the simplistic apprach of waliki uses system calls to the "git command". this process imply few commands (branch, commit, merge). If a second edition (on any page) is saved before a previous one finish, those git commands could be mixed
solution
we need to lock, at least the "Git.commit" method. Research the proper lib to use https://pypi.python.org/pypi?%3Aaction=search&term=distributed+lock&submit=search