| ActionMarket |
UserPreferences |
| Agile Atlanta User Group | FrontPage | RecentChanges | TitleIndex | WordIndex |
Use a special pagename ["action/YourAction.py"] and start your macro with the line
#format pythonThis way, the action can directly be put on the page without any modification, and as easily copied from that page. See the examples below.
| Macro | Author | Release | Revision | |
| action/SpellCheck.py | Christian Bird | chris.bird@lineo.com | 0.8 | N/A |
| This is a modification to Richard Jones' Spell Check action, but this allows to easily add words via an input field | ||||
| action/limitedsearch.py | Christian Bird | chris.bird@lineo.com | 0.8 | N/A |
| This is an action called by the LimitedSearch macro that allows searches within a limited portion of the wiki | ||||
| action/mailchanges.py | Christian Bird | chris.bird@lineo.com | 0.8 | N/A |
| This is a python module to place in your MoinMoin directory that allows anyone to easily subscribe to changes on any page | ||||
These actions only become available when Jürgen places them on his system. They should appear at the bottom of each page.
How about changing action/mailchanges.py so that it uses the python smtplib rather than the system mail program? A snippet to do the mailing is as follows:
import smtplib msg = """From: user@anywhere.com To: you@someplaceelse.com This is a test of the python broadcasting system. This is only a test. """ fromaddr = 'me@anywhere.com' toaddr = 'you@someplaceelse.com' server = 'smtp.anywhere.com' server = smtplib.SMTP(server) server.set_debuglevel(1) server.sendmail(fromaddr, toaddr, msg) server.quit()
This is just a quick example but I think it would be easy to put in. -- BruceDurling