Hi Filip,
Sounds great, thanks for that. Not sure what version you are working from,
but you may find that some of your fixes have already been done in trunk. I
put some effort into tidying up those areas a while ago. Trunk is currently
broken, as I'm having way solving the cookie problem, and have not got round
to adding the survey id into the templates yet. Will work for single page
surveys.
I did LikertOptions for exactly that reason, to make it easier for the
editors. Main focus of PloneSurvey is to make creating a survey easy for
users.
PloneSurvey is in the Plone Collective:
https://svn.plone.org/svn/collective/PloneSurvey
If you don't have collective checkin rights yet, you can get access by
following the instructions here:
http://plone.org/development/info/write-access-collective
Cheers
Michael
Hi Filip,
Not a problem with you working on trunk, I can always revert stuff ;-)
I think I moved some of the validation to class methods called
validateAnswer, but don't think I finished them all off.
One issue with trunk is the survey_id. I changed the code to prevent users
from moving from one page to the next unless the survey_id is in the form,
however, I've not put that in the form yet. I'll try to fix that this
weekend, unless you beat me to it.
Cheers
Michael
I did more fixes, and product is now working A.O.K. I changed
getQuestionOptions method to return options ALWAYS as IntDisplayList
(Likert or non Likert) and null value is always (0, 'null value
here'). That saved tons of If's in user interface.
I fixed the strange behavior of csv files (csv files didn't show some
answers, and they didn't open in Excel 2007 corectly)
Plus older fixes - validation to .py files, and saving data to
saveAnswer method in same .py files.
Unfortunatly i couldn't force i18n to work in generating the csv files
so the answers are english only for likert options.
W dniu 23 października 2008 19:45 użytkownik Davis, Michael
<m.r....@cranfield.ac.uk> napisał:
--
-= i come in peace =-
Hi Filip,
Sounds good. Sorry for not getting back to you earlier.
I had a go at integrating your changes, but there were some failing tests,
and you didn't send me a svn copy, so I couldn't create a diff.
Could you send me the svn copy you've been working from, or tell me which
version number you checked out, so I can recreate a working copy.
Cheers
Michael
--~--~---------~--~----~------------~-------~--~----~
You received
> this message because you are subscribed to the Google Groups "PloneSurvey"
> group.
To post to this group, send email to cmfque...@googlegroups.com
To
> unsubscribe from this group, send email to
> cmfquestions...@googlegroups.com
For more options, visit this group
> at
> http://groups.google.com/group/cmfquestions?hl=en
-~----------~----~----~----~
> ------~----~------~--~---
Hi Filip,
Sounds good. Sorry for not getting back to you earlier.
I had a go at integrating your changes, but there were some failing tests,
and you didn't send me a svn copy, so I couldn't create a diff.
Could you send me the svn copy you've been working from, or tell me which
version number you checked out, so I can recreate a working copy.
Cheers
Michael
On 29/10/08 13:20, "Filip Eich" <pacy...@gmail.com> wrote:
I have no idea what svn revision i checked out ( SVN clien failure :( )
It was trunk from last friday i think im pretty sure that there ware
no changes in trunk in any of the files except i18n.
( all files I modified should have a nice .py~ backup file created by
my KWrite :) )
the getQuestionOptions is only in SurveySelectQuestion and
SurveyMatrix and before my moddification when you used likert options
it returned:
IntDisplayList [(1, 'Very Good'), (2, 'Good') ... (0, 'ull value')]
and if the options ware textual it returned
DisplayList [ 'Yes', 'No' ] - not returning null value, it had to
be added in validator.
After my mods the second case would be like:
IntDisplayList [(1, 'Yes'), (2, 'No'), (0, 'ull value')]
So the function returns same type of data for likert and textual options.
Every question in SurveyMatrix saves data independently, and possibly
save it same way as SurveyTextQuestion.
The version i sent You some time ago was not finished yet.
This one is last of 'basic plone' compatible version i can give you.
Now ill have to modify it to cooperate with other custom products
already made for the project im making for my company.
I would be happy to help You in any way I can in my free time to get
at least some of my mods to trunk.
My sources are open to You :)
2008/10/30 Yuri <yurj....@gmail.com>:
--
Hi Filip,
I'll see what I can do to get most of your changes in, hopefully this
weekend. I may need to unpick it line by line though ;-(
I don't agree with your change to make text select options return as int
lists. This would cause a problem is a survey owner wanted to add a new
option. So, if they changed the options to yes, maybe, no, then all previous
survey returns that selected no would then be registered as maybe. It's not
a limitation that I think should be put in, even though it makes things more
consistent.
If you can get a better svn client, then I would be happy for you to work on
trunk, especially when we start on plone 3 compatbility :-)
Cheers
Michael
Like you select in "Likert options" field "Good vs Bad" option and
javascript fills "Options" field with Very Good, Good ... Bad, V. Bad
Unification of likert and nonliker options will make code in other
places readable and templates will render faster.
2008/10/30 Davis, Michael <m.r....@cranfield.ac.uk>:
--
Hi Filip,
i18n is something I am not very good at, and would appreciate all the help I
can get on it. Several people have put some effort into the i18n side of
things, but I think they use different aspects of the product, so it's not
consistent. I think I will need to take a hard look at this aspect of it,
and see if it can be improved with your changes, without removing the
ability to add new text options in.
I think most users are willing to accept that the edit form is not fully
i18'd, but that won't suit all users, so I'll see what I can do. I think the
best approach at the moment is to get a final 2.5 release out, so we can
start working on a fully i18n'd plone 3 release.
Cheers
Michael