Unpack, "You are not allowed to use unpack..."
Hello Zopistas.... I'm trying to read a binary file from within zope... It's format is rather simple, but it does a length stored as an Unsigned long. In a test program, I used to struct.unpack(...) to read in the unsigned long... Unfortunatetly, Zope don't want me to do this 8-( Is there a work around? Is there a work around, or must I create an unpack(..) external script just to get this value? Jerry Westrick...
You can use an External Method or extend the "commonly agreed upon as safe" restricted Python used by Scripts Python. Since you are wanting to read a file, you may be stuck with an External Method. Or you could build a Product... On 16 Sep 2003, Jerry Westrick wrote:
Hello Zopistas....
I'm trying to read a binary file from within zope...
It's format is rather simple, but it does a length stored as an Unsigned long.
In a test program, I used to struct.unpack(...) to read in the unsigned long...
Unfortunatetly, Zope don't want me to do this 8-(
Is there a work around? Is there a work around, or must I create an unpack(..) external script just to get this value?
Jerry Westrick...
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Dennis Allison -
Jerry Westrick