Re: PageEditor.py (edit lock problem) correction
Reimar Bauer <[email protected]>
| Newsgroups | gmane.comp.web.wiki.moin.devel |
|---|---|
| Organization | FZ-Jülich |
| Message-ID | <[email protected]> |
Sorry mistake by posting changes for line 850. I thought I have carefully checked, but it wasn't. I did a diff2html of my changes. Is there a place to show those files? (This could inhibit missing something or posting wrong things) 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: # R.B. 2004-03-14 Line 850: ~ if self.owner is not None and -10800 < secs_valid < 0: changed to: if -10800 < secs_valid < 0: # R.B. 2004-03-14 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 Am Montag, 15. März 2004 05:17 schrieb [email protected]: > Send Moin-devel mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/moin-devel > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Moin-devel digest..." > > > Today's Topics: > > 1. PageEditor.py (Reimar Bauer) > 2. [ moin-Feature Requests-916149 ] Annoying edit lock message > (SourceForge.net) 3. [ moin-Bugs-916154 ] ® characters breaks RSS feed > (SourceForge.net) 4. [ moin-Bugs-916154 ] ® characters breaks RSS feed > (SourceForge.net) > > --__--__-- > > Message: 1 > Date: Sun, 14 Mar 2004 16:48:34 +0100 > From: Reimar Bauer <[email protected]> > To: [email protected] > Subject: [Moin-devel] PageEditor.py > > 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
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQBAVUNV5aOc3Q9hk/kRAnwUAKCw4rU3lNHH2Hfrt3l19hfpDRa43wCfS2p0 lqurM52PTMdpnWOlpFe1MJM= =vt07 -----END PGP SIGNATURE-----