<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Here is error log. </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<TABLE>
<TBODY>
<TR>
<TH vAlign=top align=left>
<P>Time</P></TH>
<TD>2007/02/28 10:41:23.080 GMT+7</TD></TR>
<TR>
<TH vAlign=top align=left>User Name (User Id)</TH>
<TD>admin (admin)</TD></TR>
<TR>
<TH vAlign=top align=left>Request URL</TH>
<TD>http://localhost:8080/export</TD></TR>
<TR>
<TH vAlign=top align=left>Exception Type</TH>
<TD>AttributeError</TD></TR>
<TR>
<TH vAlign=top align=left>Exception Value</TH>
<TD>portal_memberdata</TD></TR></TBODY></TABLE>
<DIV>
<P>Traceback (innermost last): 
<UL>
<LI>Module ZPublisher.Publish, line 115, in publish 
<LI>Module ZPublisher.mapply, line 88, in mapply 
<LI>Module ZPublisher.Publish, line 41, in call_object 
<LI>Module Products.ExternalMethod.ExternalMethod, line 225, in __call__<BR>__traceback_info__: ((&lt;Application at &gt;,), {}, None) 
<LI>Module C:\Program Files\Plone 2\Data\Extensions\export.py, line 15, in createcsv </LI></UL>AttributeError: portal_memberdata <BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Paul Williams &lt;pwilliams@diamonddata.com&gt;<BR>To: zope@zope.org<BR>Cc: zope-db@zope.org<BR>Sent: Tuesday, February 27, 2007 8:22:36 PM<BR>Subject: [Zope] Re: Exporting portal member data to csv<BR><BR>
<DIV>What does your log say?<BR><BR>Win Myint Aung wrote:<BR>&gt; When i run the external method in plone site, it shows errors.<BR>&gt;&nbsp;&nbsp;<BR>&gt; The error shows.<BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Site Error<BR>&gt; <BR>&gt; An error was encountered while publishing this resource.<BR>&gt; <BR>&gt; *Error Type: AttributeError*<BR>&gt; *Error Value: portal_memberdata*<BR>&gt; <BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt; The following is the codings used in external methon.<BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; # make heading row<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; row = makeRow()<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; row[0] = 'member_id'<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; row[1] = 'password'<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; writer.writerow(row)<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; for member in
 self.portal_membership.listMembers():<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # make row for each member full of blank values<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row = makeRow()<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; member_id = member.getId()<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user = acl_users.getUser(name=member_id)<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password = user._getPassword()<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row[0] = member_id<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row[1] = password<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writer.writerow(row)<BR>&gt; <BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; request.RESPONSE.setHeader('Content-Type','application/csv')<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;
 request.RESPONSE.setHeader('Content-Length',len(text.getvalue()))<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; request.RESPONSE.setHeader('Content-Disposition','inline;filename=%smembers.csv' <BR>&gt; %<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; time.strftime("%Y%m%d-%H%M%S-",time.localtime()))<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; return text.getvalue()<BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;<BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; TV dinner still cooling?<BR>&gt; Check out "Tonight's Picks" <BR>&gt; &lt;<A href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/" target=_blank>http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/</A>&gt; on Yahoo! TV.<BR>&gt; <BR>&gt; <BR>&gt;
 ------------------------------------------------------------------------<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Zope-DB mailing list<BR>&gt; Zope-DB@zope.org<BR>&gt; <A href="http://mail.zope.org/mailman/listinfo/zope-db" target=_blank>http://mail.zope.org/mailman/listinfo/zope-db</A><BR><BR>_______________________________________________<BR>Zope maillist&nbsp;&nbsp;-&nbsp;&nbsp;Zope@zope.org<BR><A href="http://mail.zope.org/mailman/listinfo/zope" target=_blank>http://mail.zope.org/mailman/listinfo/zope</A><BR>**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp;&nbsp;**<BR>(Related lists - <BR><A href="http://mail.zope.org/mailman/listinfo/zope-announce" target=_blank>http://mail.zope.org/mailman/listinfo/zope-announce</A><BR><A href="http://mail.zope.org/mailman/listinfo/zope-dev" target=_blank>http://mail.zope.org/mailman/listinfo/zope-dev</A> )</DIV></DIV><BR></DIV></div><br>

<hr size=1>It's here! Your new message!<br>Get
<a href="http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/"> new email alerts</a> with the free <a href="
http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/">Yahoo! Toolbar.</a></body></html>