<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> </DIV>
<DIV>The error shows.</DIV>
<DIV> </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> </P></DIV>
<DIV>The following is the codings used in external methon.</DIV>
<DIV> </DIV>
<DIV> # make heading row<BR> row = makeRow()<BR> row[0] = 'member_id'<BR> row[1] = 'password'</DIV>
<DIV> writer.writerow(row)<BR> <BR> for member in self.portal_membership.listMembers():<BR> <BR> # make row for each member full of blank values<BR> row = makeRow()<BR> member_id = member.getId()<BR> user = acl_users.getUser(name=member_id)<BR> password = user._getPassword()<BR> row[0] = member_id<BR> row[1] = password</DIV>
<DIV> writer.writerow(row)</DIV>
<DIV><BR> request.RESPONSE.setHeader('Content-Type','application/csv')<BR> request.RESPONSE.setHeader('Content-Length',len(text.getvalue()))<BR> request.RESPONSE.setHeader('Content-Disposition','inline;filename=%smembers.csv' %<BR> time.strftime("%Y%m%d-%H%M%S-",time.localtime()))</DIV>
<DIV> return text.getvalue()</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </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>