Relation between lib and model components

Hi all,
I’m going to create a process that needs to execute a query (via one of
my
model classes) and then create a file according to the result.
I think I’ll locate this process class in my /lib folder, but it means
that
the lib will have to “know” the relevant model method that executes the
query.
What do you think? Can you suggest a “clean” way to do it (when lib and
model stay disconnected)?

I don’t think it is necessary creating any file in /lib since you want
to
run a process on just one model. Have your process method created in the
model class : self.process_method()