python_devnotes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
python_devnotes [2017/02/16 02:51] – added python implementation notes avon | python_devnotes [2017/12/05 13:01] (current) – avon | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Python Implementation Notes ====== | ====== Python Implementation Notes ====== | ||
- | This section documents | + | This section documents notes that relate |
The ability to incorporate Python code with Mystic BBS began with the arrival of Mystic 1.12 Alpha 1 | The ability to incorporate Python code with Mystic BBS began with the arrival of Mystic 1.12 Alpha 1 | ||
Line 68: | Line 68: | ||
| | ||
mystic -uSysop -ppassword -ytestpython | mystic -uSysop -ppassword -ytestpython | ||
+ | | ||
+ | + Mystic now logs whenever a Python script is executed. | ||
+ | | ||
+ | + New Python function " | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | user = bbs.getuserid(1) | ||
+ | | ||
+ | if not user is None: | ||
+ | | ||
+ | | ||
+ | + New Python function " | ||
+ | the record physically located at (num). | ||
+ | the message bases out: | ||
+ | | ||
+ | | ||
+ | | ||
+ | count = 0; | ||
+ | | ||
+ | while not bbs.shutdown(): | ||
+ | mbase = bbs.getmbase(count); | ||
+ | | ||
+ | if mbase is None: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | count = count + 1; | ||
+ | | ||
+ | | ||
+ | | ||
+ | + New Python function " | ||
+ | the Message Base with ID of (ID). | ||
+ | | ||
+ | + New Python functions for reading Message Bases: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | Rather than try to document them all here there is a " | ||
+ | in the default Mystic installation as an example of how to use these | ||
+ | functions. This example implements a very basic message reader using the | ||
+ | user's current message base. Check out the ' | ||
+ | Wiki page to see an example of this script. | ||
| | ||
+ | === Related Links === | ||
+ | * [[python_examples|Mystic BBS Python Examples]] |
python_devnotes.1487235107.txt.gz · Last modified: by avon