[Zope] CVSFile - canīt update file in sandbox

Craeg K Strong cstrong@arielpartners.com
Sun, 31 Mar 2002 20:34:47 -0500


This is a multi-part message in MIME format.
--------------030307030506030706000001
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello:

You have found a bug!      Sorry about that.   It is a bit of sloppiness 
on my part--
I did not test that exact use case.   Anyway, attached please find a 
"diff -u" file
that illustrates the (small) change you must make to the file
ExternalFile.py to fix the bug.    I will be making another release, but 
this way you
can get the fix going immediately.  

Let me know if you need help applying the patch (not sure if you have 
had experience dealing
with patchfiles before).   Again, the file to patch is ExternalFile.py 
which is part of the
ExternalFile 0.9.0 product (which CVSFile 0.7 inherits from).  

After you apply the patch, you can restart your Zope server and all 
should be well.
Let me know how it works out for you.

Regards,

--Craeg Strong

Oliver Skiebe wrote:

>hi there,
>
>i am running CVSFile 0.7 on Zope 2.5.0;
>
>when i try to update a checked out file in the sandbox with a local file
>(i.e. upload that file), zope keeps telling ma
>
>"... Invalid request
>The parameter, externalfile_content, was omitted from the request...."
>
>This only happens when uploading binary files - e.g. Images -, text files
>work just normal.
>Creating new binary files and committing them to cvs works as well...
>
>Any suggestions out there? - Thank you!
>
>- Oliver
> 
>_____
>To understand recursion, we first have to understand recursion.
> 
>
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists - 
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>



--------------030307030506030706000001
Content-Type: application/x-java-vm;
 name="externalfile-changes"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="externalfile-changes"

SW5kZXg6IEV4dGVybmFsRmlsZS5weQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvcmVwb3Np
dG9yeS9jdnNyb290L2NvbS9hcmllbHB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X2NvbnRlbnQsCiAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcl9tZXNzYWdlPW1lc3NhZ2UpCiAgICAg
ICAgICAgICBlbHNlOgogICAgICAgICAgICAgICAgIG1lc3NhZ2UucmVwbGFjZSgnXG4nLCc8
YnIvPicpCg==
--------------030307030506030706000001--