Re: PloneFormGen: order of overrides
Kim Nguyen <nguyen-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CANx9-5Ey5SqcAs5NdK0yZEF4keXpfa25HbbLv1y0Q8zNC=ZyhQ@mail.gmail.com> |
Check this out too as an example of what you can do with custom script
adapters...
http://www.uwosh.edu/ploneprojects/docs/how-tos/using-custom-script-adapters-with-ploneformgen-forms-to-do-a-lot-behind-the-scenes
Kim
On Fri, Mar 27, 2015 at 3:29 PM, Chuck Theobald <[email protected]> wrote:
> Hi Kim,
>
> I suppose a custom script adapter could be used. So far, the form is
> working well enough as is. I moved the time format validator script above
> the duration calculation script in the list, not sure if that makes a
> difference, but it is working.
>
> I need to learn custom script adapters as well as validators, so I will
> look into them.
>
> Chuck
>
>
>
> On 03/26/2015 07:05 PM, T. Kim Nguyen wrote:
>
>> It would seem that calculating duration might be better done not as a
>> field validation but as a whole form thing. Could you use a custom script
>> adapter instead for that?
>>
>> Kim
>>
>>
>>
>> On Mar 26, 2015, at 7:03 PM, Chuck Theobald <[email protected]> wrote:
>>>
>>> How is the order of evaluation of overrides determined? I've got a few
>>> fields with custom validators, some simply determine correct format
>>> (HH:MM), one does a calculation using these other fields. Specifically,
>>> subtracting start time from end time to set a hidden duration field.
>>>
>>> In my case, it seems the validator on the hidden field is being run
>>> first, before the format validators. There is nothing I can see to set
>>> order of evaluation or dependency checking, so it seems the order of
>>> evaluation is arbitrary.
>>>
>>> Thoughts?
>>>
>>> --
>>> Chuck Theobald
>>> System Administrator
>>> The Robert and Beverly Lewis Center for Neuroimaging
>>> University of Oregon
>>> P: 541-346-0343
>>> F: 541-346-0345
>>>
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Dive into the World of Parallel Programming The Go Parallel Website,
>>> sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub
>>> for all
>>> things parallel software development, from weekly thought leadership
>>> blogs to
>>> news, videos, case studies, tutorials and more. Take a look and join the
>>> conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> Plone-Users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/plone-users
>>>
>>
>
> --
> Chuck Theobald
> System Administrator
> The Robert and Beverly Lewis Center for Neuroimaging
> University of Oregon
> P: 541-346-0343
> F: 541-346-0345
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users