I wrote:
> I'm wondering how to design this:
> (...)
> One obvious implementation would be to provide a class Operation,
> let the user define a single subclass of this, and have the server
> call request_search(), response_search(), request_modify(),
> check_access() etc in that subclass.
>
> Then I suppose the server would turn individual operations into
> instance of internal subclasses of the user's subclass - class
> SearchOperation(<user's class>), ModifyOperation(<user's class>)
> etc.  Begins to look a bit messy now.
> (...)

<Slap head>  Or two classes - one operation class and one class
subclassed by the user.

Still need some way to let the user provide both general and more
specialized methods though.

-- 
Hallvard
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to