Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/r/Products.PloneInvite-1.1.6/Products/PloneInvite/PloneInvite.py   Products.PloneInvite(Download)
from OFS.PropertyManager import PropertyManager
from Products.CMFCore.ActionProviderBase import ActionProviderBase
from Products.CMFCore.ActionProviderBase import ActionInformation
from Products.CMFCore.Expression import Expression
from Products.CMFCore.utils import UniqueObject
 
    _actions = (
        ActionInformation(id='invite',
                          title=_(u'Invite'),
                          action=Expression( text='string:${portal_url}/invite_form'),
                          condition=Expression( text='python:member and len(portal.plone_invite.getInvitesUser(used=0, sent=0))'),
                          permissions=(Permissions.InvitePortalUsers,),
                          category='user',
                          visible=1),
        ActionInformation(id='generate_invites',