Re: DateTime vs. datetime

Steve McMahon <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <CAOqzbgg8PWH_yM=8kZ3Bk_5zvLRPNRT0ZrMvqCf9qtg=cv8tOw@mail.gmail.com>
It's not at all hard to mark modules as safe for use in Restricted Python.
See https://github.com/collective/collective.localfunctions for example
code.

On Mon, Mar 23, 2015 at 2:59 PM, Chuck Theobald <[email protected]> wrote:

>      Plone 4.3.3 (4308)
>      CMF 2.2.7
>      Zope 2.13.22
>      Python 2.7.6
>
> So I am given to understand that python datetime is to be preferred over
> Plone's DateTime. Yet, when I try to "from datetime import time" in a
> PloneFormGen field validator and submit the form, I get the
> "Insufficient Privileges" page. Using "from DateTime import DateTime"
> works fine. I'd prefer to stay with standard python if possible, how can
> I use datetime instead of DateTime?
>
> http://docs.plone.org/external/plone.api/docs/api/portal.html
>
> --
> 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
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.