[ic] address_book formating

Philip Alves interchange-users@icdevgroup.org
Wed Oct 2 15:28:01 2002


Hello all.  I've searched the dcs and the mailing list for some insight, and
haven't gotten what I need.  In the address_book column of the userdb table,
what is the proper format for adding extra addresses manually in the
userdb.txt file?  This is what I get in the admin UI after I added a couple
of addresses through ship_addresses.html:

{'Store144' => {'state' => "ON",'country' => "CA",'address1' => "174 Street
Ave.",'address2' => "",'mv_data_fields' => "username company fname lname
address1 address2 city state zip country phone_day",'city' =>
"Toronto",'phone_day' => "416-555-5555",'lname' => "Jones",'fname' =>
"Tom",'zip' => "H0H0H0",'company' => "Store 144",},'Store350' => {'state' =>
"ON",'country' => "CA",'address1' => "174 Street Ave.",'address2' =>
"",'mv_data_fields' => "username company fname lname address1 address2 city
state zip country phone_day",'city' => "Toronto",'lname' =>
"Jones",'phone_day' => "416-555-5555",'fname' => "Steve",'zip' =>
"H0H0H0",'company' => "Store 350",},'Store2' => {'state' => "ON",'country'
=> "CA",'address1' => "174 Street Ave.",'address2' => "",'mv_data_fields' =>
"username company fname lname address1 address2 city state zip country
phone_day",'city' => "Toronto",'lname' => "Jones",'phone_day' =>
"416-555-5555",'fname' => "Chuck",'zip' => "H0H0H0",'company' => "Store
2",},}

I pasted this into the userdb.txt of another test catalog and got this error
when I tried to login as that customer:

Bad structure in address_book: Bad structure in address_book: syntax error
at (eval 530) line 1, near ""{'Store144' => {'state' => ""ON""

This is in 4.8.6 Foundation Demo using DBM.

I guess my question is, what is the right structure?  Any thoughts or a
shove in the right direction is much appreciated!