Marc Carignan

Email: <marc@auto123.com>

Been using MoinMoin since 1.1. Have some custom hacks to integrate it into our company intranet (more specifically, the authentication system).

Recently been bitten by the MoinMoinBugs/DeepCopyError (1.5.0 release) which seems like more of a Python bug than a MoinMoin bug. Simple fix is to upgrade your lib/copy.py to the latest version for whatever version of Python you have (2.3.x - use copy.py from 2.3.5 release, 2.4.x - use copy.py from 2.4.2 release)

Now all that is missing is a kick-ass authentication plug-in (with group support!) and we're ready to roll!!


   1 """
   2 from data directory:
   3 > find pages -name edit-log > edit-log.files
   4 > python thisscript.py
   5 
   6 """
   7 
   8 fp = file('edit-log.files','rt')
   9 files = [ x.strip() for x in fp.readlines() ]
  10 fp.close()
  11 
  12 lines = []
  13 for fn in files:
  14   fp = file(fn,'rt')
  15   lines = lines + fp.readlines()
  16   fp.close()
  17 
  18 def cmp(a,b):
  19   return int((int(a.split('\t')[0])/1000000) - (int(b.split('\t')[0])/1000000))
  20 
  21 lines.sort(cmp)
  22 
  23 fp = file('edit-log-new','wt')
  24 fp.writelines(lines)
  25 fp.close()

MoinMoin: MarcCarignan (last edited 2007-10-29 19:20:23 by localhost)