Editieren Diskussion Vergangenheit Dateianhänge

attachment:xapian.patch von Admin/Patches

Dateianhang 'xapian.patch'

Herunterladen

   1 # HG changeset patch
   2 # User Thomas Waldmann <tw AT waldmann-edv DOT de>
   3 # Date 1263941977 -3600
   4 # Node ID 3e6b8234861cbbbec3028552eff2c888ad669882
   5 # Parent  9652b2e16a10611478fdb1215bffcc43d56be60f
   6 partially revert 0dd02729b3b5 (self.timeout related changes caused AttributeError)
   7 
   8 --- a/MoinMoin/util/SubProcess.py	Tue Jan 19 00:46:31 2010 +0100
   9 +++ b/MoinMoin/util/SubProcess.py	Tue Jan 19 23:59:37 2010 +0100
  10 @@ -67,6 +67,8 @@
  11  
  12          communicate() returns a tuple (stdout, stderr)."""
  13  
  14 +        self.timeout = timeout
  15 +
  16          # Optimization: If we are only using one pipe, or no pipe at
  17          # all, using select() or threads is unnecessary.
  18          if [self.stdin, self.stdout, self.stderr].count(None) >= 2:
  19 @@ -111,9 +113,9 @@
  20                  self.stdin.close()
  21  
  22              if self.stdout:
  23 -                stdout_thread.join(timeout)
  24 +                stdout_thread.join(self.timeout)
  25              if self.stderr:
  26 -                stderr_thread.join(timeout)
  27 +                stderr_thread.join(self.timeout)
  28  
  29              # if the threads are still alive, that means the thread join timed out
  30              timed_out = (self.stdout and stdout_thread.isAlive() or
  31 @@ -167,7 +169,7 @@
  32              input_offset = 0
  33              while read_set or write_set:
  34                  try:
  35 -                    rlist, wlist, xlist = select.select(read_set, write_set, [], timeout)
  36 +                    rlist, wlist, xlist = select.select(read_set, write_set, [], self.timeout)
  37                  except select.error, e:
  38                      if e.args[0] == errno.EINTR:
  39                          continue

Neuer Dateianhang

Neuer Dateianhang
Umbenennen auf
Anhänge gleichen Namens überschreiben
Tippe: LARP

Gespeicherte Dateianhänge

Um Dateianhänge in eine Seite einzufügen sollte unbedingt eine Angabe wie attachment:dateiname benutzt werden, wie sie auch in der folgenden Liste der Dateien erscheint. Es sollte niemals die URL des Verweises ("laden") kopiert werden, da sich diese jederzeit ändern kann und damit der Verweis auf die Datei brechen würde.
  • [laden | anzeigen] (2010-02-16 00:14:49, 0.7 KB) [[attachment:disable-spell-check.patch]]
  • [laden | anzeigen] (2010-07-16 01:10:04, 1.4 KB) [[attachment:isbn.patch]]
  • [laden | anzeigen] (2010-02-16 00:19:52, 0.6 KB) [[attachment:sitemap.patch]]
  • [laden | anzeigen] (2010-02-16 00:20:42, 8.1 KB) [[attachment:stats.patch]]
  • [laden | anzeigen] (2010-02-16 00:20:50, 0.7 KB) [[attachment:wsgiapp.patch]]
  • [laden | anzeigen] (2010-02-16 00:20:57, 1.6 KB) [[attachment:xapian.patch]]
 Alle Dateien | Ausgewählte Dateien: löschen verschieben auf Seite kopieren auf Seite