Attachment 'copy_underlay.diff'

Download

   1 --- moin-1.8.3/MoinMoin/_tests/maketestwiki.py	2009-05-25 00:06:49.000000000 +0400
   2 +++ site/MoinMoin/_tests/maketestwiki.py	2009-05-27 12:08:15.000000000 +0400
   3 @@ -31,12 +31,18 @@
   4                      (err.errno == 3 and os.name == 'nt')):
   5                  raise
   6  
   7 +def copyDataFolder(folder):
   8 +    print 'copying ' + folder + ' ...'
   9 +    src = os.path.join(SHARE, folder)
  10 +    dst = os.path.join(WIKI, folder)
  11 +    shutil.copytree(src, dst)
  12  
  13  def copyData():
  14 -    print 'copying data ...'
  15 -    src = os.path.join(SHARE, 'data')
  16 -    dst = os.path.join(WIKI, 'data')
  17 -    shutil.copytree(src, dst)
  18 +    #print 'copying data ...'
  19 +    #src = os.path.join(SHARE, 'data')
  20 +    #dst = os.path.join(WIKI, 'data')
  21 +    #shutil.copytree(src, dst)
  22 +    copyDataFolder('data')
  23  
  24  
  25  def untarUnderlay():
  26 @@ -58,7 +64,8 @@
  27          return
  28      removeTestWiki()
  29      copyData()
  30 -    untarUnderlay()
  31 +    #untarUnderlay()
  32 +    copyDataFolder('underlay')
  33  
  34  if __name__ == '__main__':
  35      sys.path.insert(0, moinpath)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2009-05-27 09:31:37, 1.0 KB) [[attachment:copy_underlay.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.