Re: PloneFormGen: order of overrides

Chuck Theobald <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.