Hello Diogene, 2007/8/1, Diogene Laerce <[EMAIL PROTECTED]>: > Got another question : Id like to know if the demexp software can be easily > changed to allow only global question (answer yes/no) ?
Easily is quite relative but I don't think such a requirement would be difficult to do. We already automatically add new answers when a question is created and it is easy to remove the ability to add new answers. So yes, this can be done without extended knowledge of the code. See function `add_question' around line 244 in http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/latest-dev?f=666a5cc3302d;file=srv/posbase.ml.nw The automatic response is added at line 264. You would modify this call to `add_response' to add the "No" answer and add a second call to add the "Yes" answer. Regarding the ability to add a new response, you would have to remove this ability by modifying handler `add_response' in srv/work.ml.nw. The handler would always respond `rt_not_enough_rights' without trying to add a response. See the corresponding code at line 229 in http://www.linux-france.org/cgi-bin/hgwebdir.cgi/demexp/latest-dev?f=8064410717e0;file=srv/work.ml.nw Of course, you would have to do similar modification on the client side, but removing or disabling the code to add a response is always easier than adding new code. ;-) I hope I'm clear. > That kind of restriction, I think is a first step to limit the number of > questions > and a easier way to sort the questions later - less parameters to handle. > > Can you tell me what you think about that ? I don't have any opinion regarding the usefulness of this proposal. Yours, d. _______________________________________________ Demexp-dev mailing list Demexp-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/demexp-dev