191 text = "" |
191 text = "" |
192 elif text == "any": |
192 elif text == "any": |
193 text = self.tr("any") |
193 text = self.tr("any") |
194 elif text is None: |
194 elif text is None: |
195 text = "" |
195 text = "" |
196 if forUrl: |
196 if forUrl and ( |
197 if ( |
197 not isinstance(text, str) or |
198 not isinstance(text, str) or |
198 not text.startswith(("http://", "https://", "ftp://")) |
199 not text.startswith(("http://", "https://", "ftp://")) |
199 ): |
200 ): |
200 # ignore if the schema is not one of the listed ones |
201 # ignore if the schema is not one of the listed ones |
201 text = "" |
202 text = "" |
|
203 |
202 |
204 return text |
203 return text |
205 |
204 |
206 def __formatUploadDate(self, datetime): |
205 def __formatUploadDate(self, datetime): |
207 """ |
206 """ |