Re: multiple scripts in After Validattion Script field

Steve McMahon <[email protected]> Thu, 11 Jun 2015 14:53:37 -0700
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <CAOqzbgiS8YDcFev7x4y51_KGj+8mFh6vtnESpKA-ps53x6McdQ@mail.gmail.com>
Just write a script that calls both of the others.

result = context.my_script()

will call "my_script" on context and save the result.

On Thu, Jun 11, 2015 at 2:43 PM, Chuck Theobald <[email protected]> wrote:

> Plone 4.3.3, PFG 1.7.16
>
> I am using an After Validation Script to do some calculations based on a
> few fields and writing the results to other fields. Now I want to store
> data in a database through a Z SQL Method per the PFG SQL CRUD tutorial
> at
> (
> http://docs.plone.org/5/en/working-with-content/managing-content/ploneformgen/sql_crud.html
> ).
> I have this working great stand-alone, but need to combine it with the
> calculation script.
>
> I've tried putting "python:folder.prepareForExport();
> here/SQL_createScanLogRow" into the After Validation Script, but this
> produces an error. How would I run both routines for After Validation?
>
> Alternatively, is there a way to invoke a Z SQL Method from within the
> python script?
>
> Thanks
>
> --
> Chuck Theobald
> System Administrator
> The Robert and Beverly Lewis Center for Neuroimaging
> University of Oregon
> P: 541-346-0343
> F: 541-346-0345
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Plone-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plone-users
>

------------------------------------------------------------------------------

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users