158 else: |
158 else: |
159 return self.__addEngineByFile(engine) |
159 return self.__addEngineByFile(engine) |
160 |
160 |
161 def __addEngineByUrl(self, url): |
161 def __addEngineByUrl(self, url): |
162 """ |
162 """ |
163 Private method to add a new search engine given it's URL. |
163 Private method to add a new search engine given its URL. |
164 |
164 |
165 @param url URL of the engine definition file (QUrl) |
165 @param url URL of the engine definition file (QUrl) |
166 @return flag indicating success (boolean) |
166 @return flag indicating success (boolean) |
167 """ |
167 """ |
168 if not url.isValid(): |
168 if not url.isValid(): |