PageEditor.py
Reimar Bauer <[email protected]>
| Newsgroups | gmane.comp.web.wiki.moin.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear all I don't know if this is the best solution to solve the problem if two or more unknown users from different machines try to edit a page the same time. I did the following two changes: Line 845: ~ if self.owner is None or self.uid == self.owner or secs_valid < 0: changed to: ~ if self.uid == self.owner or secs_valid < 0: Line 850: ~ if self.owner is not None and -10800 < secs_valid < 0: changed to: ~ if self.uid == self.owner or secs_valid < 0: The result of this changes is: If unknown users from different machines try to edit the same time the same page then the first one blocks the editing for all others. Named users can't edit too. Reimar - -- Reimar Bauer Institut fuer Stratosphaerische Chemie (ICG-I) Forschungszentrum Juelich email: [email protected] - ------------------------------------------------------------------- ~ a IDL library at ForschungsZentrum Juelich ~ http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro.html =================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQFAVH7Q5aOc3Q9hk/kRAoeGAJwLTFmO8b9oPFPtQFjMyjvNKqiAOQCdE7qI DN9T6Ci1RfByoXhdtsNX3QY= =JnYk -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click