durusmail: quixote-users: qxdemo design question
qxdemo design question
2004-05-16
qxdemo design question
John Miller
2004-05-16
As I was playing with qxdemo, I noticed that the design of the
'links.ptl' file had a layer of indirection built into it, and I'm not
quite sure what the advantage is. In other words, the file defines a
method, say, 'edit' in a _q_exports list at the top. This leads to an
edit function which basically instantiates a class and calls an 'edit'
method in that class. That class now has to include 'edit' in *its*
_q_exports list. So whenever I define a new method for the 'links.ptl'
file, I end up exporting it twice and writing two (different) methods.
I haven't coded enough with quixote to appreciate the reason for this
particular design and wonder if someone could explain why it was done
this way? Thanks!

John Miller



reply