[Moin-devel] CVS: MoinMoin/action AttachFile.py,1.23,1.24

J?rgen Hermann jhermann at users.sourceforge.net
Wed Feb 6 17:21:02 EST 2002


Update of /cvsroot/moin/MoinMoin/action
In directory usw-pr-cvs1:/tmp/cvs-serv31968

Modified Files:
	AttachFile.py 
Log Message:
Bugfix: need to create dir when saving a drawing as first attachment


Index: AttachFile.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/action/AttachFile.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** AttachFile.py	2002/02/07 01:03:32	1.23
--- AttachFile.py	2002/02/07 01:20:02	1.24
***************
*** 369,372 ****
--- 369,377 ----
          sys.exit(1)
  
+     # get directory, and possibly create it
+     attach_dir = getAttachDir(pagename)
+     if not os.path.isdir(attach_dir): 
+         os.makedirs(attach_dir, 0777 & config.umask)
+ 
      if ext == '.draw':
          _addLogEntry('ATTDRW', pagename, basename + ext)





More information about the Moin-devel mailing list