auxiliary.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: auxiliary</title>
  3. </head><body bgcolor="#f0f0f8">
  4. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
  5. <tr bgcolor="#7799ee">
  6. <td valign=bottom>&nbsp;<br>
  7. <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>auxiliary</strong></big></big></font></td
  8. ><td align=right valign=bottom
  9. ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br>(built-in)</font></td></tr></table>
  10. <p><tt>The&nbsp;module&nbsp;for&nbsp;installing&nbsp;auxiliary&nbsp;data</tt></p>
  11. <p>
  12. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  13. <tr bgcolor="#eeaa77">
  14. <td colspan=3 valign=bottom>&nbsp;<br>
  15. <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
  16. <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  17. <td width="100%"><dl><dt><a name="-install"><strong>install</strong></a>(...)</dt><dd><tt><a href="#-install">install</a>(name,&nbsp;AuxClass,&nbsp;installs_on)<br>
  18. &nbsp;<br>
  19. Register&nbsp;new&nbsp;auxiliary&nbsp;data&nbsp;to&nbsp;the&nbsp;given&nbsp;name.&nbsp;Auxiliary&nbsp;data&nbsp;can&nbsp;be<br>
  20. installed&nbsp;on:&nbsp;character,&nbsp;object,&nbsp;room,&nbsp;account,&nbsp;socket.&nbsp;Auxiliary&nbsp;data<br>
  21. must&nbsp;be&nbsp;a&nbsp;class&nbsp;object&nbsp;of&nbsp;the&nbsp;following&nbsp;form:<br>
  22. &nbsp;<br>
  23. &nbsp;&nbsp;class&nbsp;ClassName:<br>
  24. &nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;__init__(self,&nbsp;storage_set&nbsp;=&nbsp;None)<br>
  25. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>
  26. &nbsp;<br>
  27. &nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;copy(self)<br>
  28. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>
  29. &nbsp;<br>
  30. &nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;copyTo(self,&nbsp;to)<br>
  31. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>
  32. &nbsp;<br>
  33. &nbsp;&nbsp;&nbsp;&nbsp;def&nbsp;store(self)<br>
  34. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>
  35. &nbsp;<br>
  36. The&nbsp;Store&nbsp;method&nbsp;returns&nbsp;a&nbsp;storage&nbsp;set&nbsp;representation&nbsp;of&nbsp;the&nbsp;data.&nbsp;If<br>
  37. the&nbsp;auxiliary&nbsp;data&nbsp;is&nbsp;not&nbsp;persistent,&nbsp;an&nbsp;empty&nbsp;storage&nbsp;set&nbsp;can&nbsp;be<br>
  38. returned.&nbsp;The&nbsp;class's&nbsp;init&nbsp;function&nbsp;must&nbsp;be&nbsp;able&nbsp;to&nbsp;handle&nbsp;reading&nbsp;in<br>
  39. data&nbsp;from&nbsp;a&nbsp;storage&nbsp;set,&nbsp;or&nbsp;creating&nbsp;a&nbsp;fresh&nbsp;instance&nbsp;if&nbsp;set&nbsp;=&nbsp;None.</tt></dd></dl>
  40. </td></tr></table>
  41. </body></html>