/[pac]/pac/PACCore/PACTool.py
ViewVC logotype

Diff of /pac/PACCore/PACTool.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tvon, Sat Sep 27 16:57:47 2003 UTC revision 1.5 by tvon, Fri Oct 3 17:19:30 2003 UTC
# Line 265  class PACTool (UniqueObject, SimpleItem) Line 265  class PACTool (UniqueObject, SimpleItem)
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"""

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26