[Zope] Newbie Question: date formatting/Context
Ashley Lloyd
ashleylloyd@hotmail.com
Mon, 06 Jan 2003 12:06:45 +0000
I am new to Zope and OOP, so please bear with my ignorance and stupidity!!
I am attempting to retrieve a Date from an interbase DB (using Kinterbas)
into Zope (v 2.5.1), but not in the YYYY-MM-DD HH:MM:SS.ss format that it
wants me to. I am having trouble with this, and have installed mxDateTime in
an attempt to resolve the problem.
I have written a small Python script in Zope to confirm that it works, and
it doesn't. I get errors. the script and error are below:
*************************************************************
from mx.DateTime import *
while 1:
return now().hour
*************************************************************
Error Type: Unauthorized
Error Value: You are not allowed to access DateTime in this context
*************************************************************
Can anyone help with either (or both!) problem(s)?
Kind regards
Ashley
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963