[Zope-DB] DMTL and DateTime or... mxDateTime
David Wilbur
wildboar@cybermesa.com
Thu, 08 May 2003 13:12:20 -0600
yes, as i just said to eric this seems to be exactly the issue and gets=20
fixed by forcing use of zope DateTime vs mxDateTime... does this mean=20
that mxDateTime is not setup correctly for zope you think? there are=20
several places that i have seen comments that mxDateTime is "better"...
Geir B=E6kholt wrote:
>On Thu, 08 May 2003 12:20:56 -0600 GMT (..20:20 where i live(GMT+2) )
>David Wilbur asked the Zope-DB mailinglist about the following:
> =20
>DW> <dtml-var "start_date.year()">
>
>DW> if i cancel the login i get:
>
>DW> Error Type: Unauthorized
>DW> Error Value: You are not allowed to access year in this context
>
>DW> and i truly have been disconnected too, since to do anything else at=
=20
>DW> this point, i have to relog in.
>
>I have seen something like this once. I think i located the problem in
>that i recieved mxDateTime objects instead of Zope DateTime objects
>from Psycopg.
>
>I have also experienced *really* strange behaviors when applying
>DataTime methods to OracleDate objects.
>
>tip of the day: make sure you are using a DateTime object before
>treating it like one inside Zope or things can turn really strange..
>
>:)
>
>
>--
>Geir B=E6kholt
>
>
>
> =20
>