Andrew Malcolmson wrote at 2005-5-26 11:58 -0400:
>I want to upload a restructured text (rst) document to my Zope server 
>via FTP and have its content type recognized.  I understand that I need 
>to make an entry in PUT_factory.py but I need some guidance here.  The 
>following attempt didn't have any effect (that is, the type of the 
>uploaded file is still just 'text/plain'):
>
>elif typ.endswith('rst'):
>
>   ob= ReStructuredTextDocument(name)

Probably because the decision is already fixed before your
"elif" is reached (and then skipped).

-- 
Dieter
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to