[Zope-dev] Zope2.2.0b3 Image/File object create/upload bug (w/patch)
Adam Karpierz
karpierz@itl.pl
Wed, 28 Jun 2000 04:08:25 +0200
This bug causes that there is impossible to
add/create/upload etc. Image and/or File object
if image/file body has a file type
(type(file) == FileType) in:
def manage_addImage(self, id, file, title='',..
def manage_addFile(self, id, file='', title='',..
The patch has attached.
begin 666 Image.py.patch
M*BHJ(&QI8EQP>71H;VY<3T937$EM86=E+G!Y+F]R9PE4=64@2G5N(#(P(#$U
M.C(X.C,Y(#(P,# *+2TM(&QI8EQP>71H;VY<3T937$EM86=E+G!Y"5=E9"!*
M=6X@,C@@,#,Z,3,Z,S$@,C P, HJ*BHJ*BHJ*BHJ*BHJ*BH**BHJ(#DW+#$P
M-B J*BHJ"B @9G)O;2!';&]B86QS(&EM<&]R="!097)S:7-T96YT"B @9G)O
M;2!!8W%U:7-I=&EO;B!I;7!O<G0@26UP;&EC:70*("!F<F]M($1A=&54:6UE
M(&EM<&]R="!$871E5&EM90H@( H@( HM(%-T<FEN9U1Y<&4]='EP92@G)RD*
M+2 *("!M86YA9V5?861D1FEL949O<FT]2%1-3$9I;&4H)VEM86=E061D)RP@
M9VQO8F%L<R@I+$MI;F0])T9I;&4G+&MI;F0])V9I;&4G*0H@(&1E9B!M86YA
M9V5?861D1FEL92AS96QF+&ED+&9I;&4])R<L=&ET;&4])R<L<')E8V]N9&ET
M:6]N/2<G+"!C;VYT96YT7W1Y<&4])R<L"B @(" @(" @(" @(" @(" @(" @
M(%)%455%4U0]3F]N92DZ"BTM+2 Y-RPQ,#4@+2TM+0H@(&9R;VT@1VQO8F%L
M<R!I;7!O<G0@4&5R<VES=&5N= H@(&9R;VT@06-Q=6ES:71I;VX@:6UP;W)T
M($EM<&QI8VET"B @9G)O;2!$871E5&EM92!I;7!O<G0@1&%T951I;64**R!F
M<F]M('1Y<&5S(&EM<&]R="!);G-T86YC951Y<&4L(%-T<FEN9U1Y<&4*(" *
M(" *("!M86YA9V5?861D1FEL949O<FT]2%1-3$9I;&4H)VEM86=E061D)RP@
M9VQO8F%L<R@I+$MI;F0])T9I;&4G+&MI;F0])V9I;&4G*0H@(&1E9B!M86YA
M9V5?861D1FEL92AS96QF+&ED+&9I;&4])R<L=&ET;&4])R<L<')E8V]N9&ET
M:6]N/2<G+"!C;VYT96YT7W1Y<&4])R<L"B @(" @(" @(" @(" @(" @(" @
M(%)%455%4U0]3F]N92DZ"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@,C@R+#(Y-R J
M*BHJ"B @"B @(" @(&1E9B!?<F5A9%]D871A*'-E;&8L(&9I;&4I.@H@(" @
M(" @(" @"B @(" @(" @("!N/3$\/#$V"B @(" @(" @(" *(" @(" @(" @
M(&EF('1Y<&4H9FEL92D@:7,@4W1R:6YG5'EP93H*(" @(" @(" @(" @("!S
M:7IE/6QE;BAF:6QE*0H@(" @(" @(" @(" @(&EF('-I>F4@/"!N.B!R971U
M<FX@9FEL92P@<VEZ90H@(" @(" @(" @(" @(')E='5R;B!09&%T82AF:6QE
M*2P@<VEZ90HM( HM(" @(" @(" @:68@9FEL92Y?7V-L87-S7U\@:7,@4&1A
M=&$Z"BT@(" @(" @(" @(" @<VEZ93UL96XH9FEL92D*+2 @(" @(" @(" @
M("!R971U<FX@9FEL92P@<VEZ90H@( H@(" @(" @(" @<V5E:SUF:6QE+G-E
M96L*(" @(" @(" @(')E860]9FEL92YR96%D"BTM+2 R.#$L,CDV("TM+2T*
M(" *(" @(" @9&5F(%]R96%D7V1A=&$H<V5L9BP@9FEL92DZ"B @(" @(" @
M(" **R @(" @(" @(&EF('1Y<&4H9FEL92D@:7,@26YS=&%N8V54>7!E(&%N
M9"!F:6QE+E]?8VQA<W-?7R!I<R!09&%T83H**R @(" @(" @(" @("!S:7IE
M/6QE;BAF:6QE*0HK(" @(" @(" @(" @(')E='5R;B!F:6QE+"!S:7IE"BL@
M"B @(" @(" @("!N/3$\/#$V"B @(" @(" @(" *(" @(" @(" @(&EF('1Y
M<&4H9FEL92D@:7,@4W1R:6YG5'EP93H*(" @(" @(" @(" @("!S:7IE/6QE
M;BAF:6QE*0H@(" @(" @(" @(" @(&EF('-I>F4@/"!N.B!R971U<FX@9FEL
M92P@<VEZ90H@(" @(" @(" @(" @(')E='5R;B!09&%T82AF:6QE*2P@<VEZ
M90H@( H@(" @(" @(" @<V5E:SUF:6QE+G-E96L*(" @(" @(" @(')E860]
*9FEL92YR96%D"@``
`
end