source: products/qTopic/trunk/skins/qtopic/getPGNewsletterSubscribers.py @ 1

Last change on this file since 1 was 1, checked in by myroslav, 19 years ago

Building directory structure

File size: 550 bytes
Line 
1##Python Script "getPGNewsletterSubscribers"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=newsletter_name=None
8##title=
9##
10members = context
11
12if hasattr(members, 'queryCatalog'):
13    return [
14        (
15            getattr(member, 'getEmail', ''), 
16            'HTML', 
17            "%s/portal_memberdata/%s/base_edit" % (context.portal_url(), getattr(member, 'id', '')),
18        )
19        for member in members.queryCatalog()]
20else:
21    raise "qTopic not found"
Note: See TracBrowser for help on using the repository browser.