Re: Visibility of objects
Kim Nguyen <nguyen-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CANx9-5E+Pdp3F-WwLVOQE196=-wraT8GzFuwc++yeJfOwnwurQ@mail.gmail.com> |
The expression
python: root.site.links
is a TAL expression, which in this case specifies that it uses Python
syntax, and the Python expression to evaluate is the object with the ID
"links" contained another object with ID "site" contained in something with
ID "root". Those are just example IDs.
You can find more about TAL expressions at
http://docs.plone.org/develop/plone/functionality/expressions.html
But... you're not likely to need TAL expressions in Script (Python) objects.
Kim
On Fri, Mar 27, 2015 at 3:53 PM, Chuck Theobald <[email protected]> wrote:
> Plone 4.3.3 (4308)
> Zope 2.13.22
>
> Where can I find information on the structures available to python
> scripts within plone? I use custom validators for ploneformgen forms,
> and the syntax for referring to a script is
> python:folder.isMyScriptGood(). I gather that "folder." refers to the
> current container, the same as "./" in a *nix file system. How would I
> use a script in a different location? Multiple forms would have the need
> for the same time format validator, for instance.
>
> Also, within scripts we have structures like "container", etc. A recent
> post here referenced "python:root.site.links". Where are these things
> documented? At this point, it is JFM to me, and I am not comfortable
> with that.
>
> Thank you,
>
> --
> 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
>
------------------------------------------------------------------------------
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