Attachment 'patchpullfromdir.diff'

Download

   1 --- /sjr/beodata/tmp/software/Gallery2-1.3.5-6.py	2005-08-10 12:30:55.000000000 -0400
   2 +++ Gallery2.py	2005-08-10 12:27:32.000000000 -0400
   3 @@ -329,6 +338,7 @@
   4          self.kw['thumbnail_width']='128'
   5          self.kw['webnail_width']='640'
   6          self.kw['text_width']='140'
   7 +        self.kw['pull_from_dir']=None
   8  
   9         
  10  
  11 @@ -349,7 +359,12 @@
  12  
  13          current_pagename=formatter.page.page_name
  14  
  15 -        attachment_path = AttachFile.getAttachDir(self.request,current_pagename,create=1)
  16 +        if kw['pull_from_dir']:
  17 +            attachment_path = kw['pull_from_dir']
  18 +        else:
  19 +            attachment_path = AttachFile.getAttachDir(self.request,current_pagename,create=1)
  20 +
  21 +        out_path = AttachFile.getAttachDir(self.request,current_pagename,create=1)
  22   
  23          if (kw['help'] == '1'):
  24  
  25 @@ -505,8 +520,8 @@
  26                                 'date'    : 'alias'
  27                              })
  28  
  29 -                        thumb=os.path.join(attachment_path,thumbfile)
  30 -                        webf=os.path.join(attachment_path,webnail)
  31 +                        thumb=os.path.join(out_path,thumbfile)
  32 +                        webf=os.path.join(out_path,webnail)
  33  
  34                          if (kw['renew'] == '1'):
  35                             if os.path.exists(thumb):

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] (2006-08-06 08:57:54, 41.8 KB) [[attachment:EXIF.py]]
  • [get | view] (2005-03-24 20:14:37, 10.6 KB) [[attachment:Gallery2-1.3.3-1.py]]
  • [get | view] (2005-03-26 08:39:13, 11.6 KB) [[attachment:Gallery2-1.3.3-2.py]]
  • [get | view] (2005-03-26 12:41:49, 13.1 KB) [[attachment:Gallery2-1.3.3-3.py]]
  • [get | view] (2005-03-27 20:23:01, 19.0 KB) [[attachment:Gallery2-1.3.3-4.py]]
  • [get | view] (2005-08-03 19:30:10, 23.2 KB) [[attachment:Gallery2-1.3.3-5.py]]
  • [get | view] (2005-08-18 07:58:38, 31.9 KB) [[attachment:Gallery2-1.3.5-10.py]]
  • [get | view] (2005-09-02 19:55:13, 34.1 KB) [[attachment:Gallery2-1.3.5-11.py]]
  • [get | view] (2005-11-13 18:09:11, 35.4 KB) [[attachment:Gallery2-1.3.5-12.py]]
  • [get | view] (2005-11-18 20:13:04, 46.2 KB) [[attachment:Gallery2-1.3.5-13.py]]
  • [get | view] (2005-12-03 15:33:06, 46.6 KB) [[attachment:Gallery2-1.3.5-14.py]]
  • [get | view] (2006-01-01 09:20:19, 43.3 KB) [[attachment:Gallery2-1.3.5-15.py]]
  • [get | view] (2005-08-07 15:46:28, 26.9 KB) [[attachment:Gallery2-1.3.5-6.py]]
  • [get | view] (2005-08-13 15:13:59, 28.7 KB) [[attachment:Gallery2-1.3.5-7.py]]
  • [get | view] (2005-08-14 13:02:00, 27.5 KB) [[attachment:Gallery2-1.3.5-8.py]]
  • [get | view] (2005-08-14 14:38:32, 28.7 KB) [[attachment:Gallery2-1.3.5-9.py]]
  • [get | view] (2006-08-06 08:45:47, 41.8 KB) [[attachment:Gallery2-1.5.4-16.py]]
  • [get | view] (2006-08-22 20:29:39, 42.0 KB) [[attachment:Gallery2-1.5.4-18.py]]
  • [get | view] (2006-08-06 08:57:36, 514.8 KB) [[attachment:example.swf]]
  • [get | view] (2005-08-17 18:10:27, 11.3 KB) [[attachment:gallery2image_test.py]]
  • [get | view] (2005-08-10 16:49:16, 1.3 KB) [[attachment:patchpullfromdir.diff]]
  • [get | view] (2006-08-17 16:32:50, 41.9 KB) [[attachment:text_x_gallery2-1.6.0-17.py]]
  • [get | view] (2006-08-22 20:23:06, 42.1 KB) [[attachment:text_x_gallery2-1.6.0-18.py]]
  • [get | view] (2008-02-06 10:08:05, 42.2 KB) [[attachment:text_x_gallery2-1.6.0-19.py]]
 All files | Selected Files: delete move to page copy to page

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