source: products/quintagroup.pingtool/trunk/quintagroup/pingtool/utils.py @ 714

Last change on this file since 714 was 626, checked in by crchemist, 18 years ago

Modified tests.

File size: 331 bytes
Line 
1from zope.schema.vocabulary import SimpleVocabulary
2
3from Products.CMFCore.utils import getToolByName
4
5def 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.