Re: Visibility of objects
Kim Nguyen <nguyen-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CANx9-5GvcKYON6Juv34Z-u3CiwSWqXFuFk9Vc9zL7jatY3pJgw@mail.gmail.com> |
Chuck, you've got some pretty open ended questions there...
What I usually do is include Products.DocFinderTab in my buildout. With it
activated on a site, you can go to the ZMI and see a Doc tab for every
object in the site; that shows all the methods available on that object.
Alternatively, install plone.app.debugtoolbar - it has a ton of info you
can view on any object on your site, plus you get an interactive prompt
where you can try out bits of code as you work out what to put in your
script.
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