From 9dd485c69ee7d886f6ade2baa58594a0581b2120 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Mon, 19 Oct 2009 18:52:13 +0000 Subject: [PATCH] Added isExternalDocument method git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29824 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/interfaces/uploadable.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/product/ERP5/interfaces/uploadable.py b/product/ERP5/interfaces/uploadable.py index 26058a78b8..0c7f463dae 100644 --- a/product/ERP5/interfaces/uploadable.py +++ b/product/ERP5/interfaces/uploadable.py @@ -111,4 +111,10 @@ class IUploadable(Interface): NOTE: implementation is normally delegated to ContributionTool. XXX - it is unclear whether MAX_REPEAT should be part of signature + """ + + def isExternalDocument(): + """ + Returns True if content was downloaded from a URL. Returns False + if content was uploaded from a file. """ \ No newline at end of file -- 2.30.9