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

All Samples(358)  |  Call(214)  |  Derive(0)  |  Import(144)

src/e/r/erp5-HEAD/product/ERP5Type/patches/ActionProviderBase.py   erp5(Download)
from Products.CMFCore.ActionProviderBase import ActionProviderBase
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.Expression import Expression
from Products.ERP5Type import _dtmldir
 
        raise ValueError('A name is required.')
 
    a_expr = action and Expression(text=str(action)) or ''
    i_expr = icon and Expression(text=str(icon)) or ''
    c_expr = condition and Expression(text=str(condition)) or ''
 
    if action is not '':
        action = Expression( text=action )
 
    if icon is not '':

src/p/r/Products.ZSyncer-1.0.3/Products/ZSyncer/ZSyncerTool.py   Products.ZSyncer(Download)
from Products.CMFCore.ActionProviderBase import ActionProviderBase
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.Expression import Expression
 
from OFS.Folder import Folder
           id='zsyncer_fol_status',
           title='Sync Status',
           action=Expression(text='string: ${folder_url}/zsyncer_folderview'),
           condition=Expression(text='python: folder is object'),
           permissions=(ZSYNC_PERMISSION,),
           id='zsyncer_obj_status',
           title='Sync Status',
           action=Expression(text='string: ${object_url}/zsyncer_objectview'),
	   condition=Expression(text='python: not (folder is object)'),
           permissions=(ZSYNC_PERMISSION,),

src/e/r/erp5-HEAD/product/ERP5Type/patches/CachingPolicyManager.py   erp5(Download)
from Products.CMFCore.CachingPolicyManager import CachingPolicy, \
    CachingPolicyManager
from App.special_dtml import DTMLFile
from Products.CMFCore.Expression import Expression
from App.Common import rfc1123_date
 
    self._policy_id = policy_id
    self._predicate = Expression( text=predicate )
    self._mtime_func = Expression( text=mtime_func )
    self._max_age_secs = max_age_secs
    self._no_transform = int( no_transform )
    self._vary = vary
    self._etag_func = Expression( text=etag_func )
    self._enable_304s = int ( enable_304s )
    self._last_modified = int( last_modified )

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/CachingPolicyManager.py   Products.CMFCore(Download)
from zope.interface import implements
 
from Products.CMFCore.Expression import Expression
from Products.CMFCore.interfaces import ICachingPolicy
from Products.CMFCore.interfaces import ICachingPolicyManager
 
        self._policy_id = policy_id
        self._predicate = Expression( text=predicate )
        self._mtime_func = Expression( text=mtime_func )
        self._max_age_secs = max_age_secs
        self._no_transform = int( no_transform )
        self._vary = vary
        self._etag_func = Expression( text=etag_func )
        self._enable_304s = int ( enable_304s )
        self._last_modified = int( last_modified )

src/p/r/Products.PloneInvite-1.1.6/Products/PloneInvite/PloneInvite.py   Products.PloneInvite(Download)
from Products.CMFCore.ActionProviderBase import ActionProviderBase
from Products.CMFCore.ActionProviderBase import ActionInformation
from Products.CMFCore.Expression import Expression
from Products.CMFCore.utils import UniqueObject
from Products.CMFCore.utils import getToolByName
        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',
                          title=_(u'Give invitations'),
                          action=Expression( text='string:${portal_url}/user_invites'),
                          title=_(u'Give invitations'),
                          action=Expression( text='string:${portal_url}/user_invites'),
                          condition=Expression( text='python:member and not checkPermission("Manage portal", context)'),
                          permissions=(Permissions.GeneratePortalInvites,),
                          category='user',

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/PloneControlPanel.py   Products.CMFPlone(Download)
from zope.i18nmessageid import Message
 
from Products.CMFCore.Expression import Expression, createExprContext
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.ActionProviderBase import ActionProviderBase
 
        if action is not '':
            action = Expression(text=action)
 
        if condition is not '':
            condition = Expression(text=condition)
            raise ValueError('A name is required.')
 
        a_expr = action and Expression(text=str(action)) or ''
        c_expr = condition and Expression(text=str(condition)) or ''
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/PloneControlPanel.py   Products.CMFPlone(Download)
from zope.i18nmessageid import Message
 
from Products.CMFCore.Expression import Expression, createExprContext
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.ActionProviderBase import ActionProviderBase
 
        if action is not '':
            action = Expression(text=action)
 
        if condition is not '':
            condition = Expression(text=condition)
            raise ValueError('A name is required.')
 
        a_expr = action and Expression(text=str(action)) or ''
        c_expr = condition and Expression(text=str(condition)) or ''
 

src/p/r/Products.CMFSquidTool-1.5.1/Products/CMFSquidTool/SquidTool.py   Products.CMFSquidTool(Download)
from Products.PageTemplates.Expressions import SecureModuleImporter
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
from Products.CMFCore.Expression import Expression
from Products.CMFCore.utils import UniqueObject, getToolByName
from Products.CMFCore.FSObject import FSObject
    def __init__(self):
        self.id = 'portal_squid'
        self.squid_urls = []
        self.url_expression = Expression(text='')
 
        """
        if self.url_expression is None:
            self.url_expression = Expression(text='')
        return self.url_expression.text
 
    def setUrlExpression(self, expr):
        """Return the text of the expression used for generating the
        URLs to purge when an object is modified
        """
        self.url_expression = Expression(expr)

src/p/r/Products.PloneKeywordExplorer-0.5.0/Products/PloneKeywordExplorer/tool.py   Products.PloneKeywordExplorer(Download)
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.ActionProviderBase import ActionProviderBase
from Products.CMFCore.Expression import Expression
 
 
            title='Keyword Explorer',
            action=Expression(
                text='string: ${portal_url}/searchkeywords_form'
            ),
            condition=Expression(
                text="python: portal." + id + ".isActionDisplayed(object)"

src/p/r/Products.PloneFilesZip-1.2.0b1/Products/PloneFilesZip/PloneFilesZipTool.py   Products.PloneFilesZip(Download)
 
from Products.CMFCore.ActionInformation import ActionInformation
from Products.CMFCore.Expression import Expression
 
try:
            title='Download all files from this folder in a ZIP file',
            description='Archive content',
            action=Expression(text='string:files_zip_form'),
            permissions=(cmf_permissions.View, ),
            category='document_actions',
            condition=Expression(text='python:portal.%s.showZipAction(object)' % TOOL_ID),

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next