| Revision 3107,
1.1 KB
checked in by benjamin, 19 months ago
(diff) |
|
Adding the ability for users to choose the url of their mailman lists from a list of 4 : http(s)?:(paneldom|listdom)/cgi-bin/mailman/
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #! /usr/bin/python |
|---|
| 2 | # |
|---|
| 3 | # Copyright (C) 2001,2002 by the Free Software Foundation, Inc. |
|---|
| 4 | # |
|---|
| 5 | # This program is free software; you can redistribute it and/or |
|---|
| 6 | # modify it under the terms of the GNU General Public License |
|---|
| 7 | # as published by the Free Software Foundation; either version 2 |
|---|
| 8 | # of the License, or (at your option) any later version. |
|---|
| 9 | # |
|---|
| 10 | # This program is distributed in the hope that it will be useful, |
|---|
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | # GNU General Public License for more details. |
|---|
| 14 | # |
|---|
| 15 | # You should have received a copy of the GNU General Public License |
|---|
| 16 | # along with this program; if not, write to the Free Software |
|---|
| 17 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|---|
| 18 | |
|---|
| 19 | """Print a list's web_page_url attribute |
|---|
| 20 | |
|---|
| 21 | This script is intended to be run as a bin/withlist script, i.e. |
|---|
| 22 | |
|---|
| 23 | % bin/withlist -l -r get_url_alternc listname |
|---|
| 24 | |
|---|
| 25 | """ |
|---|
| 26 | |
|---|
| 27 | import sys |
|---|
| 28 | import getopt |
|---|
| 29 | |
|---|
| 30 | import paths |
|---|
| 31 | from Mailman import mm_cfg |
|---|
| 32 | from Mailman.i18n import _ |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | def get_url_alternc(mlist, *args): |
|---|
| 37 | |
|---|
| 38 | print mlist.web_page_url |
|---|
| 39 | mlist.Unlock() |
|---|
| 40 | |
|---|
| 41 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.