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