Can you tell me, how I can patch the extFile-product to allow ftp and webdav transport. FTP-uploaded Images should become extImages and files should become extfile-objects. Please can you give me detailed information about PUT_factory.py. Another problem with extFile-product: A 2,8 MB-File can uploaded via http with no probs, the upload of bigger files (6 MB, 14 MB) stops with time-out. Any idea? Sincerely M. Koelle
Markus Koelle writes:
Can you tell me, how I can patch the extFile-product to allow ftp and webdav transport. FTP-uploaded Images should become extImages and files should become extfile-objects. Please can you give me detailed information about PUT_factory.py. You read the HowTo on Zope.org?
Another problem with extFile-product: A 2,8 MB-File can uploaded via http with no probs, the upload of bigger files (6 MB, 14 MB) stops with time-out. Any idea? Uploading large objects takes some time. I fear, you need to find the process that times out (your browser, an FCGI/PCGI gateway, Apache, ...) and increase the timeout.
Dieter
-> > transport. FTP-uploaded Images should become extImages and files should become -> > extfile-objects. Please can you give me detailed information about PUT_factory.py. -> You read the HowTo on Zope.org? (a) What HowTo? (b) What is the URL for this HowTo?
Derek Simkowiak writes:
-> > transport. FTP-uploaded Images should become extImages and files should become -> > extfile-objects. Please can you give me detailed information about PUT_factory.py.
-> You read the HowTo on Zope.org?
(a) What HowTo? (b) What is the URL for this HowTo? Search Zope.org for "PUT_factory".
You can be sure that I will not do *THIS* for you.... Dieter
-> > -> You read the HowTo on Zope.org? -> > -> > (a) What HowTo? -> > (b) What is the URL for this HowTo? -> Search Zope.org for "PUT_factory". -> -> You can be sure that I will not do *THIS* for you.... Okay. I did as you recommended. Now I only have two questions: (a) What HowTo? (b) What is the URL for this HowTo? Here are the results I get when searching Zope.org for PUT_factory: --------------------------------------------------- Found 7 items matching "PUT_factory" [Document] Patches for exUserFolder and ExtFile [News Item] CMF 1.1beta Released [ZWiki Page] HookablePUTCreation of Proposals [ZWiki Page] NewObjectPutHandler of Interfaces [Formatted Document] PTK Changes [ZWiki Page] SamplePutFactoryExternalMethod of Proposals [ZWiki Page] ObjectTypeAssociationAndDeathToIndexHtml of Proposals --------------------------------------------------- Doing an "Advanced Search" of documents with the type of "How-To" resulted in "There was no data matching 'PUT_factory'". Although it is not a HowTo, the first search result above was possibly what you were referring to. It gives an example PUT_factory, but that's all. It can be viewed at: http://www.zope.org/Members/shh/Patches/index_html Zope's lack of documentation bites again...? --Derek
On 27/2/02 12:26 am, "Derek Simkowiak" <dereks@realloc.net> wrote:
-> > -> You read the HowTo on Zope.org? -> > -> > (a) What HowTo? -> > (b) What is the URL for this HowTo? -> Search Zope.org for "PUT_factory". -> -> You can be sure that I will not do *THIS* for you....
Okay. I did as you recommended. Now I only have two questions:
(a) What HowTo? (b) What is the URL for this HowTo?
Here are the results I get when searching Zope.org for PUT_factory: --------------------------------------------------- Found 7 items matching "PUT_factory"
[Document] Patches for exUserFolder and ExtFile [News Item] CMF 1.1beta Released [ZWiki Page] HookablePUTCreation of Proposals [ZWiki Page] NewObjectPutHandler of Interfaces [Formatted Document] PTK Changes [ZWiki Page] SamplePutFactoryExternalMethod of Proposals [ZWiki Page] ObjectTypeAssociationAndDeathToIndexHtml of Proposals ---------------------------------------------------
I use google a lot for things like this, ie site:www.zope.org PUT_factory Yields 30+ hits - there could be duplicates there, I didn't check. Hth tone -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
-> I use google a lot for things like this, ie -> -> site:www.zope.org PUT_factory -> -> Yields 30+ hits - there could be duplicates there, I didn't check. That's a great tip, thanks! Although, assuming the results above include some non-duplicates, I'm forced to wonder why Google would find them but Zope.org's Search (using the ZCatalog, right?) would not. If I were a business guy, I wouldn't want *my* customers to go over to Google to find stuff on my site. --Derek
Derek Simkowiak writes:
-> [DS] -> > (a) What HowTo? -> > (b) What is the URL for this HowTo? [DM] -> Search Zope.org for "PUT_factory". [DS] Okay. I did as you recommended. Now I only have two questions:
(a) What HowTo? (b) What is the URL for this HowTo?
Here are the results I get when searching Zope.org for PUT_factory: --------------------------------------------------- Found 7 items matching "PUT_factory"
[Document] Patches for exUserFolder and ExtFile [News Item] CMF 1.1beta Released [ZWiki Page] HookablePUTCreation of Proposals [ZWiki Page] NewObjectPutHandler of Interfaces [Formatted Document] PTK Changes [ZWiki Page] SamplePutFactoryExternalMethod of Proposals [ZWiki Page] ObjectTypeAssociationAndDeathToIndexHtml of Proposals --------------------------------------------------- I have been sploppy with terminology...
I should have said: read what you find about "PUT_factory" on Zope.org. Dieter
On 26 Feb 2002 at 20:51, Dieter Maurer wrote:
Markus Koelle writes:
Can you tell me, how I can patch the extFile-product to allow ftp and webdav transport. FTP-uploaded Images should become extImages and files should become extfile-objects. Please can you give me detailed information about PUT_factory.py. You read the HowTo on Zope.org? a) I've tried ExtFile-1.1.3.patch and the example external method on http://dev.zope.org/Members/shh/Patches/ but it didn't work. FTP-Client shoes "426 Error creating files" alltough I'm a manager and have got all permissions.
Here my external method code: def PUT_factory(self, name, typ, body): # Return DTMLDoc/Image/File, based on sniffing. print "Factory called" from Products.ExtFile.ExtFile import ExtFile from Products.ExtFile.ExtImage import ExtImage if typ[:6]=='image/': ob=ExtImage(name) else: ob=ExtFile(name) return ob Any idea?
Another problem with extFile-product: A 2,8 MB-File can uploaded via http with no probs, the upload of bigger files (6 MB, 14 MB) stops with time-out. Any idea? Uploading large objects takes some time. I fear, you need to find the process that times out (your browser, an FCGI/PCGI gateway, Apache, ...) and increase the timeout.
May be a squid-proxy time-out.
Dieter
Thank you Markus
Markus Koelle writes:
On 26 Feb 2002 at 20:51, Dieter Maurer wrote: I've tried ExtFile-1.1.3.patch and the example external method on http://dev.zope.org/Members/shh/Patches/ but it didn't work. FTP-Client shoes "426 Error creating files" alltough I'm a manager and have got all permissions.
Here my external method code:
def PUT_factory(self, name, typ, body): # Return DTMLDoc/Image/File, based on sniffing. print "Factory called" from Products.ExtFile.ExtFile import ExtFile from Products.ExtFile.ExtImage import ExtImage if typ[:6]=='image/': ob=ExtImage(name) else: ob=ExtFile(name) return ob
Any idea? I would expect that the "ExtImage" and "ExtFile" constructors want more than a single name attribute.
Dieter
participants (4)
-
Derek Simkowiak -
Dieter Maurer -
Markus Koelle -
Tony McDonald