code
stringlengths
1
1.72M
language
stringclasses
1 value
PROJECTNAME = "PloneboardNotify"
Python
from setuptools import setup, find_packages import os version = '0.3.0' setup(name='Products.PloneboardNotify', version=version, description="A configurable product that rely on Zope 3 events, for sending emails when new message is added on Ploneboard forum", long_description=open("README.txt").read...
Python
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages try: __import__('pkg_resources').declare_namespace(__name__) except ImportError: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
Python
from Acquisition import Explicit from DateTime import DateTime from Products.CMFCore.utils import getToolByName from Products.Five import BrowserView from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from zope.interface import implements from zope.viewlet.interfaces import IViewlet from zope impor...
Python
from Acquisition import aq_inner from DateTime import DateTime from kss.core import kssaction, KSSView from zope.event import notify from Products.Archetypes.event import ObjectInitializedEvent from Products.CMFCore.utils import getToolByName from zope.i18n import translate from plonehrm.contracts import ContractsMess...
Python
from zope.interface import Interface class IContractView(Interface): """Provide a view for an Employee specifically for Contracts. """ def current_contract(): """Return a link to the contract""" def expires(): """Return the expiration date of the current contract.""" def trial_p...
Python
# python package
Python
__author__ = """Jean-Paul Ladage <j.ladage@zestsoftware.nl>""" __docformat__ = 'plaintext' from AccessControl import ClassSecurityInfo from Acquisition import aq_chain, aq_inner from DateTime import DateTime from Products.Archetypes.utils import IntDisplayList from Products.Archetypes.interfaces import IBaseContent fr...
Python
__author__ = """Jean-Paul Ladage <j.ladage@zestsoftware.nl>""" __docformat__ = 'plaintext' from Acquisition import aq_parent, aq_chain from Products.Archetypes.atapi import registerType from zope import component from zope.interface import implements from AccessControl import ClassSecurityInfo from Products.Archetypes...
Python
__author__ = """Jean-Paul Ladage <j.ladage@zestsoftware.nl>""" __docformat__ = 'plaintext' # # Classes import contract import letter
Python
__author__ = """Jean-Paul Ladage <j.ladage@zestsoftware.nl>""" __docformat__ = 'plaintext' from AccessControl import ClassSecurityInfo from Acquisition import aq_inner, aq_parent from Products.Archetypes.atapi import BaseFolder from Products.Archetypes.atapi import BaseFolderSchema from Products.Archetypes.atapi impor...
Python
from Products.CMFCore.utils import getToolByName def setup(context): # This is the main method that gets called by genericsetup. if context.readDataFile('plonehrm.contracts.txt') is None: return site = context.getSite() logger = context.getLogger('plonehrm') add_currency_property(site, log...
Python
from zope.interface import Interface class IContract(Interface): def getId(): """ """ def setId(): """ """ def Title(): """ """ def Description(): """ """ def setDescription(): """ """ def getWage(): """return the current wage""" def s...
Python
import logging from DateTime import DateTime from Products.Five.browser.pagetemplatefile import ZopeTwoPageTemplateFile from Products.CMFCore.utils import getToolByName from Acquisition import aq_parent from Products.plonehrm import utils from Products.plonehrm.controlpanel import IHRMNotificationsPanelSchema from pl...
Python
from plonehrm.notifications.interfaces import IHRMModuleEvent from plonehrm.notifications.interfaces import IHRMEmailer class IContractEvent(IHRMModuleEvent): pass class IContractEmailer(IHRMEmailer): pass
Python
try: import zope.annotation except ImportError: # BBB for Zope 2.9 import zope.app.annotation import zope.app.annotation.interfaces import sys sys.modules['zope.annotation'] = zope.app.annotation sys.modules['zope.annotation.interfaces'] = zope.app.annotation.interfaces
Python
from zope.i18n import translate from zope.interface import implements from zope.component.interfaces import ObjectEvent from Acquisition import aq_parent from Products.CMFCore.utils import getToolByName from plonehrm.contracts import ContractsMessageFactory as _ from plonehrm.contracts.notifications.interfaces import ...
Python
from Products.PloneTestCase import PloneTestCase as ptc from Products.plonehrm.tests.base import PlonehrmLayer ptc.setupPloneSite() class BaseTestCase(ptc.PloneTestCase): layer = PlonehrmLayer
Python
# -*- coding: utf-8 -*- # # File: tests.py # # Copyright (c) 2007 by [] # Generator: ArchGenXML Version 1.6.0-beta-svn # http://plone.org/products/archgenxml # # GNU General Public License (GPL) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General P...
Python
__author__ = """Jean-Paul Ladage <j.ladage@zestsoftware.nl>""" __docformat__ = 'plaintext' import logging from zope.i18nmessageid import MessageFactory from Products.Archetypes import listTypes from Products.Archetypes.atapi import process_types from Products.CMFCore import utils as cmfutils from Products.validation....
Python
from Products.validation.interfaces import ivalidator from Products.validation import validation from Products.validation.validators.RegexValidator import RegexValidator from Products.plonehrm import PloneHrmMessageFactory as _ from zope.i18n import translate class MaxDaysPerWeek: __implements__ = (ivalidator,) ...
Python
__author__ = """Jean-Paul Ladage <j.ladage@zestsoftware.nl>""" __docformat__ = 'plaintext' PROJECTNAME = "plonehrm.contracts" product_globals = globals()
Python
import logging from zope.component import queryMultiAdapter from Products.CMFCore.utils import getToolByName logger = logging.getLogger('plonehrm.contracts.events') def apply_template(object, event, rename=True): """After initializing a contract, set text and title based on template. If rename is True (the...
Python
import logging from AccessControl import Unauthorized from DateTime import DateTime from zope.component import queryMultiAdapter from Products.CMFCore.utils import getToolByName from zExceptions import BadRequest logger = logging.getLogger("plonehrm") class HRMConfigException(Exception): pass def updateEmploye...
Python
from zope.interface import Interface from zope.component import adapts from zope.formlib.form import FormFields from zope.interface import implements from zope.schema import Bool from zope.schema import Int from plone.app.controlpanel.form import ControlPanelForm from Products.CMFCore.utils import getToolByName from P...
Python
import logging from zope.component import queryMultiAdapter from zope.i18n import translate from Products.CMFCore.utils import getToolByName from zope.event import notify from Products.Archetypes.event import ObjectInitializedEvent from Acquisition import aq_parent from Products.plonehrm import utils from Products.pl...
Python
import cStringIO from Acquisition import Explicit from zope.i18n import translate from zope.interface import implements from zope.viewlet.interfaces import IViewlet from Products.Five import BrowserView from datetime import date from Acquisition import aq_chain, aq_parent from Products.CMFCore.utils import getToolByNa...
Python
from kss.core import kssaction, KSSView from zope.event import notify from Products.Archetypes.event import ObjectInitializedEvent from Products.Archetypes.config import RENAME_AFTER_CREATION_ATTEMPTS from Products.CMFCore import utils as cmfutils from Acquisition import aq_inner from Products.plonehrm import PloneHrm...
Python
from datetime import date from datetime import timedelta from DateTime import DateTime import logging from Acquisition import Explicit from Products.CMFCore.utils import getToolByName from Products.Five.browser.pagetemplatefile import ZopeTwoPageTemplateFile from zope.component import getMultiAdapter from zope.viewlet...
Python
from zope.interface import implements from plone.app.contentmenu.menu import WorkflowMenu from plone.app.contentmenu.interfaces import IWorkflowMenu class PloneHrmWorkflowMenu(WorkflowMenu): """ Overrides the Plone default class to display workflow menus in order to hide them in the absence view. """ i...
Python
from zope.interface import implements from zope.i18n import translate from zope.formlib import form from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from Acquisition import aq_inner, aq_parent, aq_chain from DateTime import DateTime from Products.Five import BrowserView from Products.CMFPlone.uti...
Python
import cStringIO import codecs import csv class UnicodeWriter: """ A CSV writer which will write rows to CSV file "f", which is encoded in the given encoding. MvL modified the original version from the Python documentation since that version use codecs.getincrementalencoder which is introduce...
Python
from zope.interface import Interface, Attribute from zope.viewlet.interfaces import IViewletManager from plone.portlets.interfaces import IPortletDataProvider class IEmployeeView(Interface): def extraItems(): """ Return all non hrm specific items """ class IWorkLocationView(Interface): def...
Python
import csv from Products.Five import BrowserView from zope.i18n import translate from zope.event import notify from Products.Archetypes.event import ObjectInitializedEvent from Products.CMFPlone.utils import safe_unicode from Acquisition import aq_inner from Products.plonehrm.content.employee import Employee, Employe...
Python
from DateTime import DateTime from Acquisition import aq_inner, aq_parent, aq_chain from Products.CMFCore.utils import getToolByName from Products.Five import BrowserView from zope.i18n import translate from zope.component import getMultiAdapter from zope.viewlet.interfaces import IViewletManager from Products.plonehr...
Python
from Acquisition import Explicit from Products.CMFCore.utils import getToolByName from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from zope.interface import implements from zope.viewlet.interfaces import IViewlet class FileViewlet(Explicit): implements(IViewlet) render = ViewPageTempla...
Python
# make me a python package
Python
from DateTime import DateTime from Acquisition import aq_inner, aq_parent, aq_chain from Products.CMFCore.utils import getToolByName from Products.CMFPlone import Batch from Products.Five import BrowserView from plone.memoize.view import memoize from zope.interface import implements from kss.core import kssaction, KSSV...
Python
from Acquisition import Explicit from Products.CMFCore.utils import getToolByName from Products.CMFPlone import Batch from Products.Five import BrowserView from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from zope.i18n import translate from zope.interface import Interface, implements from zope.v...
Python
from zope.interface import implements from plone.app.workflow.interfaces import ISharingPageRole # Please keep this 'PMF' and not '_' as otherwise i18ndude picks it # up, does not realize it is for the plone domain and puts it in the # pot/po files of plonehrm. Alternatively: exclude this file in # rebuild_i18n.sh fr...
Python
from Products.validation.interfaces import ivalidator from DateTime import DateTime from zope.i18n import translate from Products.plonehrm import PloneHrmMessageFactory as _ class DateValidator: __implements__ = (ivalidator, ) def __init__(self, name): self.name = name def __call__(self, value, ...
Python
from Products.ATContentTypes.content.document import ATDocument from Products.ATContentTypes.content.document import ATDocumentSchema from Products.Archetypes.atapi import StringField from Products.Archetypes.atapi import SelectionWidget from Products.Archetypes.atapi import Schema from Products.Archetypes.atapi import...
Python
# -*- coding: utf-8 -*- import worklocation import employee import template
Python
__author__ = """Reinout van Rees <reinout@zestsoftware.nl>""" __docformat__ = 'plaintext' from AccessControl import ClassSecurityInfo from Products.ATContentTypes.content.folder import ATFolder from Products.ATContentTypes.content.folder import ATFolderSchema from Products.Archetypes.public import BaseFolder from Pr...
Python
__author__ = """Reinout van Rees <reinout@zestsoftware.nl>""" __docformat__ = 'plaintext' from datetime import date, timedelta from AccessControl import ClassSecurityInfo from Products.Archetypes.atapi import BaseFolder from Products.Archetypes.atapi import BaseFolderSchema from Products.Archetypes.atapi import Calen...
Python
from Products.CMFCore.utils import getToolByName from Products.CMFQuickInstallerTool.interfaces import INonInstallable from plone.portlets.interfaces import IPortletAssignmentMapping from plone.portlets.interfaces import IPortletManager from zope.app.container.interfaces import INameChooser from zope.component import g...
Python
__author__ = """Reinout van Rees <reinout@zestsoftware.nl>""" __docformat__ = 'plaintext' from zope.component.interfaces import IObjectEvent from zope.interface import Interface class IHRMCheckEvent(IObjectEvent): """ An event that is fired at a regular interval This can be triggered using a cron job. ""...
Python
from DateTime import DateTime from Products.Five.browser.pagetemplatefile import ZopeTwoPageTemplateFile from Products.CMFCore.utils import getToolByName from zope.event import notify from zope.interface import implements import logging from Products.plonehrm import utils as hrmutils from Products.plonehrm.controlpane...
Python
from plonehrm.notifications.interfaces import IHRMModuleEvent from plonehrm.notifications.interfaces import IHRMEmailer class IPersonalDataEvent(IHRMModuleEvent): pass class IPersonalDataEmailer(IHRMEmailer): pass
Python
#
Python
from zope.i18n import translate from zope.interface import implements from zope.component.interfaces import ObjectEvent from Products.CMFCore.utils import getToolByName from Products.plonehrm import PloneHrmMessageFactory as _ from Products.plonehrm.notifications.interfaces import IPersonalDataEvent from Products.plo...
Python
from Products.plonehrm.tests.base import MainTestCase def test_suite(): from unittest import TestSuite from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite s = ZopeDocFileSuite('permissions.txt', package='Products.plonehrm.doc', test_class=MainTe...
Python
import transaction from AccessControl import SecurityManagement from Products.Five import fiveconfigure from Products.Five import zcml from Products.PloneTestCase import PloneTestCase as ptc from Products.PloneTestCase import layer from Testing import ZopeTestCase as ztc # Ourselves import Products.plonehrm # Regular ...
Python
from Products.plonehrm.tests.base import MainTestCase import doctest OPTIONFLAGS = (doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE) def test_suite(): from unittest import TestSuite from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite s = ZopeDocFileSuite('worklocation.txt', ...
Python
__author__ = """Maurits van Rees <reinout@zestsoftware.nl>""" __docformat__ = 'plaintext' from Products.plonehrm.tests.base import MainTestCase import doctest OPTIONFLAGS = (doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE) class testOverview(MainTestCase): """Test-cases for class(es) .""" pas...
Python
from Products.plonehrm.tests.base import MainTestCase import doctest OPTIONFLAGS = (doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE) def test_suite(): from unittest import TestSuite from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite s = ZopeDocFileSuite('overview.txt', ...
Python
#
Python
__author__ = """Reinout van Rees <reinout@zestsoftware.nl>""" __docformat__ = 'plaintext' import logging logger = logging.getLogger('plonehrm') logger.debug('Installing Product') from zope.i18nmessageid import MessageFactory PloneHrmMessageFactory = MessageFactory(u'plonehrm') from Products.Archetypes import listTyp...
Python
#
Python
PROJECTNAME = "plonehrm" product_globals = globals() QI_DEPS = ( 'CMFPlacefulWorkflow', 'plonehrm.jobperformance', 'plonehrm.checklist', 'plonehrm.contracts', 'plonehrm.notes', 'plonehrm.absence', ) # Make a dict of dicts to list the properties. PLONEHRM_PROPERTIES = {} PLONEHRM_PROPERTIES...
Python
from Products.plonehrm.utils import set_plonehrm_workflow_policy def worklocationCreated(object, event): """A Worklocation has been created. Give it a placeful workflow.""" set_plonehrm_workflow_policy(object)
Python
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages try: __import__('pkg_resources').declare_namespace(__name__) except ImportError: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
Python
#
Python
from zope import schema from zope.interface import Interface from Products.plonecrm import plonecrmMessageFactory as _ class Iorganization(Interface): """an organization unite""" # -*- schema definition goes here -*- newfield = schema.TextLine( title=_(u"register capital"), required=Fals...
Python
# -*- extra stuff goes here -*- from contact import Icontact from organization import Iorganization
Python
from zope import schema from zope.interface import Interface from Products.plonecrm import plonecrmMessageFactory as _ class Icontact(Interface): """contact person""" # -*- schema definition goes here -*- portrait = schema.Bytes( title=_(u"personal photo"), required=False, descri...
Python
from zope.interface import implements, Interface from Products.Five import BrowserView from Products.CMFCore.utils import getToolByName from Products.plonecrm import plonecrmMessageFactory as _ class IorganizationView(Interface): """ organization view interface """ def test(): """ test meth...
Python
#
Python
from zope.interface import implements, Interface from Products.Five import BrowserView from Products.CMFCore.utils import getToolByName from Products.plonecrm import plonecrmMessageFactory as _ class IcontactView(Interface): """ contact view interface """ def test(): """ test method""" cl...
Python
"""Definition of the organization content type """ from zope.interface import implements from Products.Archetypes import atapi from Products.ATContentTypes.content import folder from Products.ATContentTypes.content import schemata from Products.plonecrm import plonecrmMessageFactory as _ from Products.plonecrm.inter...
Python
#
Python
"""Definition of the contact content type """ from zope.interface import implements from Products.Archetypes import atapi from Products.ATContentTypes.content import base from Products.ATContentTypes.content import schemata from Products.plonecrm import plonecrmMessageFactory as _ from Products.plonecrm.interfaces i...
Python
"""Test setup for integration and functional tests. When we import PloneTestCase and then call setupPloneSite(), all of Plone's products are loaded, and a Plone site will be created. This happens at module level, which makes it faster to run each test, but slows down test runner startup. """ from Products.Five import...
Python
#
Python
"""Main product initializer """ from zope.i18nmessageid import MessageFactory from Products.plonecrm import config from Products.Archetypes import atapi from Products.CMFCore import utils # Define a message factory for when this product is internationalised. # This will be imported with the special name "_" in most ...
Python
"""Common configuration constants """ PROJECTNAME = 'Products.plonecrm' ADD_PERMISSIONS = { # -*- extra stuff goes here -*- 'contact': 'Products.plonecrm: Add contact', 'organization': 'Products.plonecrm: Add organization', }
Python
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages try: __import__('pkg_resources').declare_namespace(__name__) except ImportError: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
Python
# -*- coding: utf-8 -*- """ This module contains the tool of Products.plonecrm """ import os from setuptools import setup, find_packages def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() version = '1.0' long_description = ( read('README.txt') + '\n' + 'Change hi...
Python
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages try: __import__('pkg_resources').declare_namespace(__name__) except ImportError: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
Python
from BeautifulSoup import BeautifulSoup def getPostUrlFromForum(res, position=0): soup = BeautifulSoup(res.body) posts = soup.findAll('a', attrs={'class':'state-active'}) return posts[position].attrMap['href'] def getReplyUrlFromConversation(res, position=0): soup = BeautifulSoup(res.body) return ...
Python
""" $Id: utils.py 53403 2007-11-08 09:54:35Z wichert $ """ from ZODB.PersistentMapping import PersistentMapping from AccessControl import ClassSecurityInfo, ModuleSecurityInfo from Acquisition import Implicit, aq_inner, aq_parent import Globals from zope.i18nmessageid import MessageFactory from Products.CMFCore.utils...
Python
## Script (Python) "lock_board.py" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title=Locks board ## if context.portal_type != 'Ploneboard': return for f1 in context.objectValues('PloneboardForum'): for c1 in f1.objectValue...
Python
## Script (Python) "list_pending_search.py" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=obj=None ##title=Searches for pending comments in moderated boards # $Id: moderation_count_search.py 53223 2007-11-06 10:26:29Z glenfant $ if...
Python
## Script (Python) "moderation.py" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title=Searches for pending comments in moderated boards ## # Search the catalog, and depending on where the script is called from, filter # and mass...
Python
## Script (Python) "moderateComment" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=action,cameFrom=None ##title=Moderate the given comment, and return to referer ## from Products.CMFCore.utils import getToolByName from Products.CMF...
Python
## Script (Python) "comment_redirect_to_conversation" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title=Redirect from a comment to it's conversation ## # XXX if we ever do batching, we need extra logic here. redirect_target = ...
Python
## Script (Python) "lock_board.py" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title=Unlocks board ## if context.portal_type != 'Ploneboard': return for f1 in context.objectValues('PloneboardForum'): for c1 in f1.objectVal...
Python
## Script (Python) "getKeyedForums" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=forums=None ##title=Get forums keyed on category ## if forums is None: forums = context.getForums() result = {} for forum in forums: if has...
Python
from ExtensionClass import Base from Products.CMFPlone.PloneBatch import Batch as PloneBatch, \ calculate_pagenumber, \ calculate_pagerange, \ calculate_leapback, \ ...
Python
### Register Transforms ### This is interesting because we don't expect all transforms to be ### available on all platforms. To do this we allow things to fail at ### two levels ### 1) Imports ### If the import fails the module is removed from the list and ### will not be processed/registered ### 2) Registration ...
Python
from Products.PortalTransforms.interfaces import itransform from ZODB.PersistentMapping import PersistentMapping from Products.CMFCore.utils import getToolByName from Products.Ploneboard.utils import TransformDataProvider import re import copy class EmoticonDataProvider(TransformDataProvider): def __init__(self): ...
Python
from Products.PortalTransforms.interfaces import itransform import re hider = "##HIDE" schemematcher = re.compile ("(mailto|telnet|gopher|http|https|ftp)", re.I) hiddenschemematcher = re.compile ("(mailto|telnet|gopher|http|https|ftp)" + hider, re.I) elementmatcher = re.compile("<[^>]+>") emailRegexp = re.compile(r'["...
Python
from Products.CMFCore.utils import getToolByName from Products.CMFPlone.utils import getFSVersionTuple def install(self, reinstall=False): tool=getToolByName(self, "portal_setup") if getFSVersionTuple()[0]>=3: tool.runAllImportStepsFromProfile( "profile-Products.Ploneboard:ploneboard",...
Python
from Acquisition import aq_inner, aq_parent from Products.Ploneboard.interfaces import IConversation, IComment def autopublish_script(self, sci): """Publish the conversation along with the comment""" object = sci.object wftool = sci.getPortal().portal_workflow # Try to make sure that conversation an...
Python
# this file is here to make Install.py importable. # we need to make it non-zero size to make winzip cooperate
Python
from datetime import datetime from dateutil.parser import parse as dateparse from zope.i18n import translate from DateTime.DateTime import DateTime from Products.CMFCore.utils import getToolByName from Products.CMFPlone import PloneMessageFactory as _plone from Products.CMFPlone import PloneLocalesMessageFactory as _lo...
Python
from zope.schema import Tuple from zope.schema import Choice from zope.interface import implements from zope.interface import Interface from zope.formlib.form import FormFields from zope.component import adapts from plone.app.controlpanel.form import ControlPanelForm from plone.app.controlpanel.widgets import MultiChec...
Python
from Acquisition import aq_inner from zExceptions import Unauthorized from zope.component import getMultiAdapter from Products.Five.browser import BrowserView from Products.CMFCore.utils import getToolByName from Products.Five.browser.pagetemplatefile import ZopeTwoPageTemplateFile class RSSView(BrowserView): tem...
Python
from DateTime import DateTime from Products import Five from plone.memoize.view import memoize from Products.CMFCore.utils import getToolByName from Products.Ploneboard.batch import Batch from Products.Ploneboard.browser.utils import toPloneboardTime, getNumberOfComments, getNumberOfConversations from Products.Ploneboa...
Python
from zope.component import getMultiAdapter from zope.component import getUtility from plone.i18n.normalizer.interfaces import IIDNormalizer from Products.Five import BrowserView from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from Products.CMFCore.utils import getToolByName class SearchView(Bro...
Python