<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV>When i run the external method in plone site, it shows errors. </DIV>
<DIV>&nbsp;</DIV>
<DIV>The error shows.</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<H2>Site Error</H2>
<P>An error was encountered while publishing this resource. </P>
<P><STRONG>Error Type: AttributeError</STRONG><BR><STRONG>Error Value: portal_memberdata</STRONG><BR></P>
<P>&nbsp;</P></DIV>
<DIV>The following is the codings used in external methon.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; # make heading row<BR>&nbsp;&nbsp;&nbsp; row = makeRow()<BR>&nbsp;&nbsp;&nbsp; row[0] = 'member_id'<BR>&nbsp;&nbsp;&nbsp; row[1] = 'password'</DIV>
<DIV>&nbsp;&nbsp;&nbsp; writer.writerow(row)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; for member in self.portal_membership.listMembers():<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # make row for each member full of blank values<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row = makeRow()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; member_id = member.getId()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user = acl_users.getUser(name=member_id)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password = user._getPassword()<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row[0] = member_id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row[1] = password</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writer.writerow(row)</DIV>
<DIV><BR>&nbsp;&nbsp;&nbsp; request.RESPONSE.setHeader('Content-Type','application/csv')<BR>&nbsp;&nbsp;&nbsp; request.RESPONSE.setHeader('Content-Length',len(text.getvalue()))<BR>&nbsp;&nbsp;&nbsp; request.RESPONSE.setHeader('Content-Disposition','inline;filename=%smembers.csv' %<BR>&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; time.strftime("%Y%m%d-%H%M%S-",time.localtime()))</DIV>
<DIV>&nbsp;&nbsp;&nbsp; return text.getvalue()</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></div><br>

<hr size=1>TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.</body></html>