Last change
on this file since 714 was
626,
checked in by crchemist, 18 years ago
|
Modified tests.
|
File size:
331 bytes
|
Line | |
---|
1 | from zope.schema.vocabulary import SimpleVocabulary |
---|
2 | |
---|
3 | from Products.CMFCore.utils import getToolByName |
---|
4 | |
---|
5 | def getPingSites(context): |
---|
6 | pp = getToolByName(context, 'portal_pingtool', None) |
---|
7 | values = [] |
---|
8 | if pp: |
---|
9 | values = tuple([(i.Title(), i.id) for i in pp.objectValues()]) |
---|
10 | return SimpleVocabulary.fromItems(values) |
---|
Note: See
TracBrowser
for help on using the repository browser.