123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html><head><title>Python: history</title>
- </head><body bgcolor="#f0f0f8">
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
- <tr bgcolor="#7799ee">
- <td valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>history</strong></big></big></font></td
- ><td align=right valign=bottom
- ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/hollis/Desktop/nakedmud/lib/pymodules/history.py">/Users/hollis/Desktop/nakedmud/lib/pymodules/history.py</a></font></td></tr></table>
- <p><tt>history.py<br>
- <br>
- a little database module for storing communication histories. Can store by<br>
- arbitrary groupings e.g., for guild, global, zone, or personal communications.</tt></p>
- <p>
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
- <tr bgcolor="#aa55cc">
- <td colspan=3 valign=bottom> <br>
- <font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
-
- <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
- <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="mudsys.html">mudsys</a><br>
- </td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
- <tr bgcolor="#eeaa77">
- <td colspan=3 valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
-
- <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
- <td width="100%"><dl><dt><a name="-add_history"><strong>add_history</strong></a>(ch, type, mssg)</dt></dl>
- <dl><dt><a name="-cmd_history"><strong>cmd_history</strong></a>(ch, cmd, arg)</dt><dd><tt>Communication logs are stored as you receive communication. To review<br>
- communication you have used, you can use the history command.</tt></dd></dl>
- <dl><dt><a name="-get_history"><strong>get_history</strong></a>(ch, type)</dt><dd><tt>return the communication history for a character.</tt></dd></dl>
- <dl><dt><a name="-register_comm_history"><strong>register_comm_history</strong></a>(type, group_func)</dt><dd><tt>register a new type of history, and add a grouping function as well.</tt></dd></dl>
- </td></tr></table><p>
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
- <tr bgcolor="#55aa55">
- <td colspan=3 valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
-
- <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
- <td width="100%"><strong>MAX_HISTORY_LEN</strong> = 20<br>
- <strong>comm_table</strong> = {'chat': (<function <lambda> at 0x7bfdb0>, {}), 'tell': (<function <lambda> at 0x7bfdf0>, {})}</td></tr></table>
- </body></html>
|