Next release

0 views
Skip to first unread message

Michael Davis

unread,
Nov 25, 2008, 6:11:50 PM11/25/08
to cmfque...@googlegroups.com
Hi All,

I'm getting ready to release the last 2.5 version.

The only thing remaining that I want to do is a date/time question type,
which is almost finished. Perhaps two weeks off, bearing in mind how much
time I have available.

If anyone has anything they feel that should be in this release, can they
check it in, or contact me.

If anyone has anything more complex or substantial refactoring, can they do
it in a trunk, or wait until the trunk moves onto a plone 3 release.

Cheers
Michael

Yuri

unread,
Nov 26, 2008, 4:18:37 AM11/26/08
to PloneSurvey
well, fixing all the bugs is enough. I love the datetime field idea,
any info on it?

Davis, Michael

unread,
Nov 26, 2008, 5:20:52 AM11/26/08
to cmfque...@googlegroups.com
Hi Yuri,

I've checked it in, but not fully working yet. Needs more options for
which date/times fields to show, Java date picker not working, and
there's no validtion or anything yet.

Cheers
Michael

Yuri

unread,
Nov 26, 2008, 6:49:09 AM11/26/08
to PloneSurvey
well, if you read my code, you can see how I did for DataGridField,
which is more javascript complicated.

I think you can use the PFG way, embedding an archetype field to do
the "dirty" work :)

Yuri

unread,
Nov 26, 2008, 7:58:50 AM11/26/08
to PloneSurvey
===================
This snippet allows you to use it anywhere:

<div tal:define="inputname string:your_field_name;
formname string:edit_form;
formvalue request/your_field_name | nothing;
fieldvalue here/your_field_name | python:'';
inputvalue python:formvalue and formvalue or
fieldvalue">
<div tal:content="error">Validation error output</div>
<div
metal:use-macro="here/calendar_macros/macros/calendarDatePickerBox">
Gets the calendar code.
</div>
</div>

Of course, don't forget to add the necessary CSS/JS resources...

You can also set show_hm/show_ymd/... and all other parameters used
by the calendar, take a look at the Archetypes calendar widget:

Archetypes/skins/archetypes/widgets/calendar.pt
===============

this should display the date widget of plone (thanks to Dorneles
Treméa)

On 26 Nov, 11:20, "Davis, Michael" <m.r.da...@cranfield.ac.uk> wrote:

Davis, Michael

unread,
Nov 26, 2008, 9:56:24 AM11/26/08
to cmfque...@googlegroups.com
Hi Yuri,

Thanks for that, I've got that far ;-) need to do the complex stuff, and decide what options survey creators should have for start years, default value, etc etc.

<div tal:define="formname string:survey_view;
inputname context/id;
inputvalue python:DateTime()">
<div metal:use-macro="here/calendar_macros/macros/calendarDatePickerBox" />
</div>

Yuri

unread,
Nov 27, 2008, 3:51:56 AM11/27/08
to PloneSurvey
ops :)
Reply all
Reply to author
Forward
0 new messages