[Zope-DB] mxDateTime result

Godefroid Chapelle gotcha@swing.be
Wed, 30 Oct 2002 16:40:07 +0100


Hello,

I am using ZFirebirdDA which returns mxDateTime instances in query results.

At the moment, I have to make a double cast to be able to use the strftime 
method :

DateTime(str(myresult)).strftime("%d/%m/%Y")

I have to do that because I cannot access directly the strftime method of 
the mxDateTime instance.

If I try it, I get

Error Type: Unauthorized
Error Value: You are not allowed to access strftime in this context

Is there a way to 'security wrap' the mxDateTime instances in the DA so 
that I can access directly the mxDateTime attributes ?

Thanks
--

Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 18 / 202
1348 Louvain-la-Neuve
Belgium

Tel + 32 (10) 459901
Mob + 32 (477) 363942

TVA 467 093 008
RC Niv 49849