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