[Zope-DB] mxDateTime result
M.-A. Lemburg
mal@lemburg.com
Thu, 31 Oct 2002 10:03:07 +0100
Godefroid Chapelle wrote:
> At 18:10 30/10/2002, Andreas Jung wrote:
>
>> Maybe ;-) but there only a number of standard module regarded
>> as safe. And since mxDateTime is not part of the Zope/Python
>> it is treated as any other 3rd party module and you must
>> grant the permission to the module.
>
>
> Does that mean that the mxDateTime C module must be modified to state
> Zope security assertions ?
That's for Andreas to answer :-)
If there's an easy way to do this, I could add something along these
lines to mxDateTime 2.1.0.
>> -aj
>>
>>>>> Is there a way to 'security wrap' the mxDateTime instances in the
>>>>> DA so
>>>>> that I can access directly the mxDateTime attributes ?
>
>
> Or can I create a python class inheriting the mxDateTime class, stating
> security assertions and make the DA send back instances of this new class ?
That will most likely not be possible (DateTime objects are not
new-style types as you have them in Python 2.2).
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting: http://www.egenix.com/
Python Software: http://www.egenix.com/files/python/