Attachment 'GoogleGroupsBox.py'

Download

   1 # -*- coding: iso-8859-1 -*-
   2 """
   3     MoinMoin - YouTube Macro
   4         <<YouTube(V8tSRJ8e3b0)>>  or
   5         <<YouTube(http://www.youtube.com/v/V8tSRJ8e3b0)>>
   6 
   7 """
   8 
   9 def execute(macro, text):
  10     html = '''
  11     <table border=0 style="padding: 5px;" cellspacing=0>
  12     <tr><td style="padding-left: 5px;border:0;">
  13     <b>Subscribe to %(group)s</b>
  14     </td></tr>
  15     <form action="http://groups.google.com/group/%(group)s/boxsubscribe">
  16     <tr><td style="padding-left: 5px;border:0;">
  17     Email: <input type=text name=email>
  18     <input type=submit name="sub" value="Subscribe">
  19     </td></tr>
  20     </form>
  21     <tr><td align=right style="border:0;">
  22       <a href="http://groups.google.com/group/%(group)s">Visit this group</a>
  23     </td></tr>
  24       </table>
  25     ''' % {"group": text}
  26     return html
  27 

New Attachment

File to upload
Rename to
Overwrite existing attachment of same name
Name our hockey team

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.