| 265 |
# Return a tuple of of users |
# Return a tuple of of users |
| 266 |
return res |
return res |
| 267 |
|
|
| 268 |
|
security.declarePublic('expandPoliticalParty') |
| 269 |
|
def expandPoliticalParty(self, key): |
| 270 |
|
props = self.portal_properties.pac_properties.getProperty('political_parties') |
| 271 |
|
for prop in props: |
| 272 |
|
# XXX: This probably should not need key[0] as key should probably |
| 273 |
|
# be a string and not a half-assed tuple |
| 274 |
|
if prop.split('|')[0] == key or prop.split('|')[0] == key[0]: |
| 275 |
|
return prop.split('|')[1] |
| 276 |
|
|
| 277 |
|
return None |
| 278 |
|
|
| 279 |
security.declarePublic('sendto') |
security.declarePublic('sendto') |
| 280 |
def sendto( self, variables = {} ): |
def sendto( self, variables = {} ): |
| 281 |
"""Sends a link of a page to someone""" |
"""Sends a link of a page to someone""" |