[Moin-user] MoinMoin 1.1 AttachFile.py v1.38: Missing module filesys

george young gry at ll.mit.edu
Tue Jun 18 08:39:10 EDT 2002


On Tue, 18 Jun 2002 07:18:27 -0400
"Yandle, Hans" <Hans.Yandle at cingular.com> wrote:

> I am new to MoinMoin and wanted to give it a try out on an Intranet. The
> AttachFile macro is desired. When I went to try it, an "unknown error"
> occurred. I tacked it down to a missing module in AttachFile.py. Line 30 in
> MoinMoin/action/AttachFile.py states "from MoinMoin.util import filesys". I
> looked for this filesys module and could not find it. It apparently should
> be located in MoinMoin/util/filesys.py. Does anyone have a copy of the
> missing utility file so the v1.38 AttachFile.py can work successfully? As a
> quick fix, I found that in moin-1.0 has an AttachFile.py v1.36 that does not
> reference the util/filesys.py module but does require a MIME type to be
> entered.

I just removed the import filesys line and used os.makedirs instead of filesys.makeDirs.
See the attached patch.  I'm running python 2.2

-- George Young

-- 
 I cannot think why the whole bed of the ocean is
 not one solid mass of oysters, so prolific they seem. Ah,
 I am wandering! Strange how the brain controls the brain!
	-- Sherlock Holmes in "The Dying Detective"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AttachFile.py.patch
Type: application/octet-stream
Size: 1059 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/moin-user/attachments/20020618/7ff3f350/attachment.obj>


More information about the Moin-user mailing list