<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>The reason is that I am porting some zclass objects
into a database. This field contains answers to a dynamic option
list.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I don't think it would be that much of a pain in
the ass to parse it into a dict, but I was thinking that Zope had some functions
that could already do this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am using Zope 2.7.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Chris</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=lists@simplistix.co.uk href="mailto:lists@simplistix.co.uk">Chris
Withers</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=chris@chrisbruce.com
href="mailto:chris@chrisbruce.com">Chris Bruce</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=zope@zope.org
href="mailto:zope@zope.org">zope@zope.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 24, 2004 5:49
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Zope] Marshalling Strings
back to data type</DIV>
<DIV><BR></DIV>Chris Bruce wrote:<BR><BR>> I am storing a STRING version of
dictionary in db like:<BR><BR>WHY?!<BR><BR>> {'3_Professional Designation':
['Bookkeeper', 'QuickBooks Certified Pro <BR>> Advisor'], '4_Products
Supported': ['QuickBooks & QuickBooks Pro'], <BR>> '1_QuickBooks
Services': ['Software Installation', 'Software Support', <BR>>
'Troubleshooting', 'Phone Consultations', 'Seminars', 'One to One <BR>>
Training', 'Payroll'], '2_Accounting Services': ['Bookkeeping ', <BR>>
'Payroll'], '5_Platforms Supported': ['Windows']}<BR>> <BR>> Is
there a way in Zope to type that back to a dict?<BR><BR>Not securely or
without much pain and suffering.<BR><BR>(The pain and suffering was described
somewhere in one of the ZOpe list <BR>archives, and involved repurposing part
of the python compiler package, which is <BR>only possible in Zope 2.7,
IIRC)<BR><BR>cheers,<BR><BR>Chris<BR><BR>-- <BR>Simplistix - Content
Management, Zope & Python
Consulting<BR>
- <A
href="http://www.simplistix.co.uk">http://www.simplistix.co.uk</A><BR></BLOCKQUOTE></BODY></HTML>