2010/9/22 Dmitriy Sintsov <[email protected]>: > But, I don't need to query in conjunction. Ok, I've derived from ApiBase > class (my own API action). Then, it starts to fail on huge amount of > generally useful methods, like SQL query building methods (addJoinConds, > addWhereRange) and list continuation methods (setContinueEnumParameter), > because these are not defined in ApiBase. > > I understand that not every ApiBase derived class needs these, but many > could have. Why not make inheritance chain like this: > ApiBase -> ApiListBase -> ApiQueryBase > where ApiListBase would have at least these nice SQL query buliding > methods but also the possibility to override the default printer? Why > these methods are limited to action=query lists and generators only? > That's a very good suggestion. Feel free to implement it or, if you can't or don't want to, file a bug requesting it in Bugzilla.
Roan Kattouw (Catrope) _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
