code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
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,) ...
[ [ 1, 0, 0.0323, 0.0323, 0, 0.66, 0, 842, 0, 1, 0, 0, 842, 0, 0 ], [ 1, 0, 0.0645, 0.0323, 0, 0.66, 0.1429, 195, 0, 1, 0, 0, 195, 0, 0 ], [ 1, 0, 0.0968, 0.0323, 0, ...
[ "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:\n __i...
__author__ = """Jean-Paul Ladage <j.ladage@zestsoftware.nl>""" __docformat__ = 'plaintext' PROJECTNAME = "plonehrm.contracts" product_globals = globals()
[ [ 14, 0, 0.2, 0.2, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.4, 0.2, 0, 0.66, 0.3333, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.8, 0.2, 0, 0.66, 0.6667, ...
[ "__author__ = \"\"\"Jean-Paul Ladage <j.ladage@zestsoftware.nl>\"\"\"", "__docformat__ = 'plaintext'", "PROJECTNAME = \"plonehrm.contracts\"", "product_globals = globals()" ]
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...
[ [ 1, 0, 0.0159, 0.0159, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0476, 0.0159, 0, 0.66, 0.25, 353, 0, 1, 0, 0, 353, 0, 0 ], [ 1, 0, 0.0635, 0.0159, 0, 0....
[ "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):\n \"\"\"After initializing a contract, set text and title based on template.\n\...
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...
[ [ 1, 0, 0.0052, 0.0052, 0, 0.66, 0, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0104, 0.0052, 0, 0.66, 0.0588, 353, 0, 1, 0, 0, 353, 0, 0 ], [ 1, 0, 0.0156, 0.0052, 0, ...
[ "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.CM...
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...
[ [ 1, 0, 0.0017, 0.0017, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0052, 0.0017, 0, 0.66, 0.0435, 353, 0, 1, 0, 0, 353, 0, 0 ], [ 1, 0, 0.007, 0.0017, 0, 0...
[ "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....
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...
[ [ 1, 0, 0.0045, 0.0045, 0, 0.66, 0, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.0135, 0.0045, 0, 0.66, 0.0625, 62, 0, 1, 0, 0, 62, 0, 0 ], [ 1, 0, 0.018, 0.0045, 0, 0.6...
[ "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", "fr...
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...
[ [ 1, 0, 0.0066, 0.0066, 0, 0.66, 0, 653, 0, 2, 0, 0, 653, 0, 0 ], [ 1, 0, 0.0132, 0.0066, 0, 0.66, 0.1429, 293, 0, 1, 0, 0, 293, 0, 0 ], [ 1, 0, 0.0199, 0.0066, 0, ...
[ "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...
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...
[ [ 1, 0, 0.0019, 0.0019, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0037, 0.0019, 0, 0.66, 0.0667, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0056, 0.0019, 0, ...
[ "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 i...
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...
[ [ 1, 0, 0.0667, 0.0667, 0, 0.66, 0, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.1333, 0.0667, 0, 0.66, 0.3333, 25, 0, 1, 0, 0, 25, 0, 0 ], [ 1, 0, 0.2, 0.0667, 0, 0.66,...
[ "from zope.interface import implements", "from plone.app.contentmenu.menu import WorkflowMenu", "from plone.app.contentmenu.interfaces import IWorkflowMenu", "class PloneHrmWorkflowMenu(WorkflowMenu):\n \"\"\" Overrides the Plone default class to display workflow menus in\n order to hide them in the abs...
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...
[ [ 1, 0, 0.0023, 0.0023, 0, 0.66, 0, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0046, 0.0023, 0, 0.66, 0.0526, 500, 0, 1, 0, 0, 500, 0, 0 ], [ 1, 0, 0.0069, 0.0023, 0, ...
[ "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 Bro...
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...
[ [ 1, 0, 0.0135, 0.0135, 0, 0.66, 0, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.027, 0.0135, 0, 0.66, 0.25, 220, 0, 1, 0, 0, 220, 0, 0 ], [ 1, 0, 0.0405, 0.0135, 0, 0.6...
[ "import cStringIO", "import codecs", "import csv", "class UnicodeWriter:\n \"\"\"\n A CSV writer which will write rows to CSV file \"f\",\n which is encoded in the given encoding.\n\n MvL modified the original version from the Python documentation\n since that version use codecs.getincrementale...
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...
[ [ 1, 0, 0.0161, 0.0161, 0, 0.66, 0, 443, 0, 2, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0323, 0.0161, 0, 0.66, 0.1111, 229, 0, 1, 0, 0, 229, 0, 0 ], [ 1, 0, 0.0484, 0.0161, 0, ...
[ "from zope.interface import Interface, Attribute", "from zope.viewlet.interfaces import IViewletManager", "from plone.portlets.interfaces import IPortletDataProvider", "class IEmployeeView(Interface):\n\n def extraItems():\n \"\"\" Return all non hrm specific items\n \"\"\"", " def extra...
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...
[ [ 1, 0, 0.0074, 0.0074, 0, 0.66, 0, 312, 0, 1, 0, 0, 312, 0, 0 ], [ 1, 0, 0.0222, 0.0074, 0, 0.66, 0.125, 796, 0, 1, 0, 0, 796, 0, 0 ], [ 1, 0, 0.0296, 0.0074, 0, 0...
[ "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.con...
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...
[ [ 1, 0, 0.0145, 0.0145, 0, 0.66, 0, 556, 0, 1, 0, 0, 556, 0, 0 ], [ 1, 0, 0.029, 0.0145, 0, 0.66, 0.1, 62, 0, 3, 0, 0, 62, 0, 0 ], [ 1, 0, 0.0435, 0.0145, 0, 0.66, ...
[ "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 IVi...
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...
[ [ 1, 0, 0.0208, 0.0208, 0, 0.66, 0, 62, 0, 1, 0, 0, 62, 0, 0 ], [ 1, 0, 0.0417, 0.0208, 0, 0.66, 0.2, 287, 0, 1, 0, 0, 287, 0, 0 ], [ 1, 0, 0.0625, 0.0208, 0, 0.66,...
[ "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):\n implements(IViewlet...
# make me a python package
[]
[]
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...
[ [ 1, 0, 0.0032, 0.0032, 0, 0.66, 0, 556, 0, 1, 0, 0, 556, 0, 0 ], [ 1, 0, 0.0063, 0.0032, 0, 0.66, 0.0625, 62, 0, 3, 0, 0, 62, 0, 0 ], [ 1, 0, 0.0095, 0.0032, 0, 0....
[ "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 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...
[ [ 1, 0, 0.0051, 0.0051, 0, 0.66, 0, 62, 0, 1, 0, 0, 62, 0, 0 ], [ 1, 0, 0.0102, 0.0051, 0, 0.66, 0.0526, 287, 0, 1, 0, 0, 287, 0, 0 ], [ 1, 0, 0.0153, 0.0051, 0, 0....
[ "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 impor...
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...
[ [ 1, 0, 0.0385, 0.0385, 0, 0.66, 0, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0769, 0.0385, 0, 0.66, 0.25, 868, 0, 1, 0, 0, 868, 0, 0 ], [ 1, 0, 0.3077, 0.0385, 0, 0....
[ "from zope.interface import implements", "from plone.app.workflow.interfaces import ISharingPageRole", "from Products.CMFPlone import PloneMessageFactory as PMF", "class HrmManagerRole(object):\n implements(ISharingPageRole)\n\n title = PMF(u\"title_hrm_manager_role\",\n default=\"HRM man...
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, ...
[ [ 1, 0, 0.0048, 0.0048, 0, 0.66, 0, 842, 0, 1, 0, 0, 842, 0, 0 ], [ 1, 0, 0.0095, 0.0048, 0, 0.66, 0.1667, 556, 0, 1, 0, 0, 556, 0, 0 ], [ 1, 0, 0.0143, 0.0048, 0, ...
[ "from Products.validation.interfaces import ivalidator", "from DateTime import DateTime", "from zope.i18n import translate", "from Products.plonehrm import PloneHrmMessageFactory as _", "class DateValidator:\n __implements__ = (ivalidator, )\n\n def __init__(self, name):\n self.name = name\n\n ...
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...
[ [ 1, 0, 0.0227, 0.0227, 0, 0.66, 0, 880, 0, 1, 0, 0, 880, 0, 0 ], [ 1, 0, 0.0455, 0.0227, 0, 0.66, 0.0909, 880, 0, 1, 0, 0, 880, 0, 0 ], [ 1, 0, 0.0682, 0.0227, 0, ...
[ "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 Pr...
# -*- coding: utf-8 -*- import worklocation import employee import template
[ [ 1, 0, 0.5, 0.25, 0, 0.66, 0, 128, 0, 1, 0, 0, 128, 0, 0 ], [ 1, 0, 0.75, 0.25, 0, 0.66, 0.5, 70, 0, 1, 0, 0, 70, 0, 0 ], [ 1, 0, 1, 0.25, 0, 0.66, 1, 549,...
[ "import worklocation", "import employee", "import template" ]
__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...
[ [ 1, 0, 0.0204, 0.0204, 0, 0.66, 0, 227, 0, 1, 0, 0, 227, 0, 0 ], [ 1, 0, 0.0612, 0.0204, 0, 0.66, 0.05, 284, 0, 1, 0, 0, 284, 0, 0 ], [ 1, 0, 0.0816, 0.0204, 0, 0....
[ "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 Products.Archetypes.public import BaseFolderSchema", "from Products....
__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...
[ [ 14, 0, 0.0019, 0.0019, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0037, 0.0019, 0, 0.66, 0.0263, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0074, 0.0019, 0, 0....
[ "__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...
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...
[ [ 1, 0, 0.007, 0.007, 0, 0.66, 0, 287, 0, 1, 0, 0, 287, 0, 0 ], [ 1, 0, 0.014, 0.007, 0, 0.66, 0.0556, 224, 0, 1, 0, 0, 224, 0, 0 ], [ 1, 0, 0.021, 0.007, 0, 0.66, ...
[ "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", ...
__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. ""...
[ [ 14, 0, 0.0385, 0.0385, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0769, 0.0385, 0, 0.66, 0.125, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1538, 0.0385, 0, 0.6...
[ "__author__ = \"\"\"Reinout van Rees <reinout@zestsoftware.nl>\"\"\"", "__docformat__ = 'plaintext'", "from zope.component.interfaces import IObjectEvent", "from zope.interface import Interface", "class IHRMCheckEvent(IObjectEvent):\n \"\"\" An event that is fired at a regular interval\n This can be t...
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...
[ [ 1, 0, 0.0132, 0.0132, 0, 0.66, 0, 556, 0, 1, 0, 0, 556, 0, 0 ], [ 1, 0, 0.0263, 0.0132, 0, 0.66, 0.0588, 624, 0, 1, 0, 0, 624, 0, 0 ], [ 1, 0, 0.0395, 0.0132, 0, ...
[ "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 plonehrm.notifications.interfaces import IHRMModuleEvent from plonehrm.notifications.interfaces import IHRMEmailer class IPersonalDataEvent(IHRMModuleEvent): pass class IPersonalDataEmailer(IHRMEmailer): pass
[ [ 1, 0, 0.1, 0.1, 0, 0.66, 0, 835, 0, 1, 0, 0, 835, 0, 0 ], [ 1, 0, 0.2, 0.1, 0, 0.66, 0.3333, 835, 0, 1, 0, 0, 835, 0, 0 ], [ 3, 0, 0.55, 0.2, 0, 0.66, 0.6667,...
[ "from plonehrm.notifications.interfaces import IHRMModuleEvent", "from plonehrm.notifications.interfaces import IHRMEmailer", "class IPersonalDataEvent(IHRMModuleEvent):\n pass", "class IPersonalDataEmailer(IHRMEmailer):\n pass" ]
#
[]
[]
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...
[ [ 1, 0, 0.0323, 0.0323, 0, 0.66, 0, 500, 0, 1, 0, 0, 500, 0, 0 ], [ 1, 0, 0.0645, 0.0323, 0, 0.66, 0.1429, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0968, 0.0323, 0, ...
[ "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 IPersona...
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...
[ [ 1, 0, 0.0909, 0.0909, 0, 0.66, 0, 313, 0, 1, 0, 0, 313, 0, 0 ], [ 2, 0, 0.6818, 0.7273, 0, 0.66, 1, 852, 0, 0, 1, 0, 0, 0, 2 ], [ 1, 1, 0.4545, 0.0909, 1, 0.98, ...
[ "from Products.plonehrm.tests.base import MainTestCase", "def test_suite():\n from unittest import TestSuite\n from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite\n\n s = ZopeDocFileSuite('permissions.txt',\n package='Products.plonehrm.doc',\n tes...
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 ...
[ [ 1, 0, 0.0132, 0.0132, 0, 0.66, 0, 502, 0, 1, 0, 0, 502, 0, 0 ], [ 1, 0, 0.0263, 0.0132, 0, 0.66, 0.0588, 227, 0, 1, 0, 0, 227, 0, 0 ], [ 1, 0, 0.0395, 0.0132, 0, ...
[ "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", "import P...
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', ...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 313, 0, 1, 0, 0, 313, 0, 0 ], [ 1, 0, 0.125, 0.0625, 0, 0.66, 0.3333, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.2812, 0.125, 0, 0...
[ "from Products.plonehrm.tests.base import MainTestCase", "import doctest", "OPTIONFLAGS = (doctest.ELLIPSIS |\n doctest.NORMALIZE_WHITESPACE)", "def test_suite():\n from unittest import TestSuite\n from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite\n\n s = ZopeDocFileSuite('w...
__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...
[ [ 14, 0, 0.0417, 0.0417, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0833, 0.0417, 0, 0.66, 0.1667, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1667, 0.0417, 0, 0....
[ "__author__ = \"\"\"Maurits van Rees <reinout@zestsoftware.nl>\"\"\"", "__docformat__ = 'plaintext'", "from Products.plonehrm.tests.base import MainTestCase", "import doctest", "OPTIONFLAGS = (doctest.ELLIPSIS |\n doctest.NORMALIZE_WHITESPACE)", "class testOverview(MainTestCase):\n \"\"\"...
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', ...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 313, 0, 1, 0, 0, 313, 0, 0 ], [ 1, 0, 0.125, 0.0625, 0, 0.66, 0.3333, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.2812, 0.125, 0, 0...
[ "from Products.plonehrm.tests.base import MainTestCase", "import doctest", "OPTIONFLAGS = (doctest.ELLIPSIS |\n doctest.NORMALIZE_WHITESPACE)", "def test_suite():\n from unittest import TestSuite\n from Testing.ZopeTestCase.zopedoctest import ZopeDocFileSuite\n\n s = ZopeDocFileSuite('o...
#
[]
[]
__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...
[ [ 14, 0, 0.0222, 0.0222, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0444, 0.0222, 0, 0.66, 0.0556, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0889, 0.0222, 0, 0....
[ "__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')",...
#
[]
[]
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...
[ [ 14, 0, 0.0132, 0.0132, 0, 0.66, 0, 239, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0263, 0.0132, 0, 0.66, 0.0556, 298, 3, 0, 0, 0, 926, 10, 1 ], [ 14, 0, 0.0987, 0.1053, 0, ...
[ "PROJECTNAME = \"plonehrm\"", "product_globals = globals()", "QI_DEPS = (\n 'CMFPlacefulWorkflow',\n 'plonehrm.jobperformance',\n 'plonehrm.checklist',\n 'plonehrm.contracts',\n 'plonehrm.notes',\n 'plonehrm.absence',\n )", "PLONEHRM_PROPERTIES = {}", "PLONEHRM_PROPERTIES['birthday_noti...
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)
[ [ 1, 0, 0.1667, 0.1667, 0, 0.66, 0, 75, 0, 1, 0, 0, 75, 0, 0 ], [ 2, 0, 0.8333, 0.5, 0, 0.66, 1, 977, 0, 2, 0, 0, 0, 0, 1 ], [ 8, 1, 0.8333, 0.1667, 1, 0.95, 0,...
[ "from Products.plonehrm.utils import set_plonehrm_workflow_policy", "def worklocationCreated(object, event):\n \"\"\"A Worklocation has been created. Give it a placeful workflow.\"\"\"\n set_plonehrm_workflow_policy(object)", " \"\"\"A Worklocation has been created. Give it a placeful workflow.\"\"\"...
# 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__)
[ [ 7, 0, 0.6667, 0.8333, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 3 ], [ 8, 1, 0.5, 0.1667, 1, 0.71, 0, 736, 3, 1, 0, 0, 0, 0, 2 ], [ 1, 1, 0.8333, 0.1667, 1, 0.71, 0, ...
[ "try:\n __import__('pkg_resources').declare_namespace(__name__)\nexcept ImportError:\n from pkgutil import extend_path\n __path__ = extend_path(__path__, __name__)", " __import__('pkg_resources').declare_namespace(__name__)", " from pkgutil import extend_path", " __path__ = extend_path(__pat...
#
[]
[]
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...
[ [ 1, 0, 0.0156, 0.0156, 0, 0.66, 0, 603, 0, 1, 0, 0, 603, 0, 0 ], [ 1, 0, 0.0312, 0.0156, 0, 0.66, 0.3333, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0625, 0.0156, 0, ...
[ "from zope import schema", "from zope.interface import Interface", "from Products.plonecrm import plonecrmMessageFactory as _", "class Iorganization(Interface):\n \"\"\"an organization unite\"\"\"\n\n # -*- schema definition goes here -*-\n newfield = schema.TextLine(\n title=_(u\"register cap...
# -*- extra stuff goes here -*- from contact import Icontact from organization import Iorganization
[ [ 1, 0, 0.6667, 0.3333, 0, 0.66, 0, 357, 0, 1, 0, 0, 357, 0, 0 ], [ 1, 0, 1, 0.3333, 0, 0.66, 1, 239, 0, 1, 0, 0, 239, 0, 0 ] ]
[ "from contact import Icontact", "from organization import Iorganization" ]
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...
[ [ 1, 0, 0.01, 0.01, 0, 0.66, 0, 603, 0, 1, 0, 0, 603, 0, 0 ], [ 1, 0, 0.02, 0.01, 0, 0.66, 0.3333, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.04, 0.01, 0, 0.66, 0....
[ "from zope import schema", "from zope.interface import Interface", "from Products.plonecrm import plonecrmMessageFactory as _", "class Icontact(Interface):\n \"\"\"contact person\"\"\"\n\n # -*- schema definition goes here -*-\n portrait = schema.Bytes(\n title=_(u\"personal photo\"),\n ...
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...
[ [ 1, 0, 0.0238, 0.0238, 0, 0.66, 0, 443, 0, 2, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0714, 0.0238, 0, 0.66, 0.2, 796, 0, 1, 0, 0, 796, 0, 0 ], [ 1, 0, 0.0952, 0.0238, 0, 0.6...
[ "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):\n \"\"\"\n organization view interface\n \"\"\"\n\n d...
#
[]
[]
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...
[ [ 1, 0, 0.0238, 0.0238, 0, 0.66, 0, 443, 0, 2, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0714, 0.0238, 0, 0.66, 0.2, 796, 0, 1, 0, 0, 796, 0, 0 ], [ 1, 0, 0.0952, 0.0238, 0, 0.6...
[ "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):\n \"\"\"\n contact view interface\n \"\"\"\n\n def test():...
"""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...
[ [ 8, 0, 0.0097, 0.013, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.026, 0.0065, 0, 0.66, 0.0769, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.039, 0.0065, 0, 0.66, ...
[ "\"\"\"Definition of the organization content type\n\"\"\"", "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...
#
[]
[]
"""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...
[ [ 8, 0, 0.0067, 0.009, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0179, 0.0045, 0, 0.66, 0.0769, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0269, 0.0045, 0, 0.66,...
[ "\"\"\"Definition of the contact content type\n\"\"\"", "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 _",...
"""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...
[ [ 8, 0, 0.0494, 0.0864, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1111, 0.0123, 0, 0.66, 0.1, 796, 0, 1, 0, 0, 796, 0, 0 ], [ 1, 0, 0.1235, 0.0123, 0, 0.66, ...
[ "\"\"\"Test setup for integration and functional tests.\n\nWhen we import PloneTestCase and then call setupPloneSite(), all of\nPlone's products are loaded, and a Plone site will be created. This\nhappens at module level, which makes it faster to run each test, but\nslows down test runner startup.\n\"\"\"", "from...
#
[]
[]
"""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 ...
[ [ 8, 0, 0.03, 0.04, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.08, 0.02, 0, 0.66, 0.1667, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.1, 0.02, 0, 0.66, 0.3333,...
[ "\"\"\"Main product initializer\n\"\"\"", "from zope.i18nmessageid import MessageFactory", "from Products.plonecrm import config", "from Products.Archetypes import atapi", "from Products.CMFCore import utils", "plonecrmMessageFactory = MessageFactory('Products.plonecrm')", "def initialize(context):\n ...
"""Common configuration constants """ PROJECTNAME = 'Products.plonecrm' ADD_PERMISSIONS = { # -*- extra stuff goes here -*- 'contact': 'Products.plonecrm: Add contact', 'organization': 'Products.plonecrm: Add organization', }
[ [ 8, 0, 0.15, 0.2, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4, 0.1, 0, 0.66, 0.5, 239, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.8, 0.5, 0, 0.66, 1, 783, ...
[ "\"\"\"Common configuration constants\n\"\"\"", "PROJECTNAME = 'Products.plonecrm'", "ADD_PERMISSIONS = {\n # -*- extra stuff goes here -*-\n 'contact': 'Products.plonecrm: Add contact',\n 'organization': 'Products.plonecrm: Add organization',\n}" ]
# 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__)
[ [ 7, 0, 0.6667, 0.8333, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 3 ], [ 8, 1, 0.5, 0.1667, 1, 0.07, 0, 736, 3, 1, 0, 0, 0, 0, 2 ], [ 1, 1, 0.8333, 0.1667, 1, 0.07, 0, ...
[ "try:\n __import__('pkg_resources').declare_namespace(__name__)\nexcept ImportError:\n from pkgutil import extend_path\n __path__ = extend_path(__path__, __name__)", " __import__('pkg_resources').declare_namespace(__name__)", " from pkgutil import extend_path", " __path__ = extend_path(__pat...
# -*- 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...
[ [ 8, 0, 0.0429, 0.0429, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0714, 0.0143, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0857, 0.0143, 0, 0.66...
[ "\"\"\"\nThis module contains the tool of Products.plonecrm\n\"\"\"", "import os", "from setuptools import setup, find_packages", "def read(*rnames):\n return open(os.path.join(os.path.dirname(__file__), *rnames)).read()", " return open(os.path.join(os.path.dirname(__file__), *rnames)).read()", "ver...
# 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__)
[ [ 7, 0, 0.6667, 0.8333, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 3 ], [ 8, 1, 0.5, 0.1667, 1, 0.1, 0, 736, 3, 1, 0, 0, 0, 0, 2 ], [ 1, 1, 0.8333, 0.1667, 1, 0.1, 0, ...
[ "try:\n __import__('pkg_resources').declare_namespace(__name__)\nexcept ImportError:\n from pkgutil import extend_path\n __path__ = extend_path(__path__, __name__)", " __import__('pkg_resources').declare_namespace(__name__)", " from pkgutil import extend_path", " __path__ = extend_path(__pat...
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 ...
[ [ 1, 0, 0.0714, 0.0714, 0, 0.66, 0, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 2, 0, 0.3214, 0.2857, 0, 0.66, 0.3333, 748, 0, 2, 1, 0, 0, 0, 2 ], [ 14, 1, 0.2857, 0.0714, 1, 0...
[ "from BeautifulSoup import BeautifulSoup", "def getPostUrlFromForum(res, position=0):\n soup = BeautifulSoup(res.body)\n posts = soup.findAll('a', attrs={'class':'state-active'})\n return posts[position].attrMap['href']", " soup = BeautifulSoup(res.body)", " posts = soup.findAll('a', attrs={'cl...
## 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...
[ [ 4, 0, 0.55, 0.05, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 13, 1, 0.55, 0.05, 1, 0.67, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 6, 0, 0.8, 0.45, 0, 0.66, 1, 282, ...
[ "if context.portal_type != 'Ploneboard': return", "if context.portal_type != 'Ploneboard': return", "for f1 in context.objectValues('PloneboardForum'):\n for c1 in f1.objectValues('PloneboardConversation'):\n for m1 in c1.objectValues('PloneboardComment'):\n m1.manage_permission('Modify por...
## 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...
[ [ 4, 0, 0.4107, 0.0714, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.4286, 0.0357, 1, 0.19, 0, 505, 2, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.5, 0.0357, 0, 0.66, 0....
[ "if obj is None:\n obj = context", " obj = context", "query = {}", "query['review_state'] = 'pending'", "query['portal_type'] = 'Ploneboard Comment'", "query['path'] = '/'+ '/'.join(obj.getPhysicalPath()[1:])", "reqget = context.REQUEST.get", "def supplement_query(field, index_name=None, reqget=...
## 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...
[ [ 14, 0, 0.2958, 0.0141, 0, 0.66, 0, 546, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.3099, 0.0141, 0, 0.66, 0.0833, 0, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3239, 0.0141, 0, 0.6...
[ "query = {}", "query['sort_on'] = 'created'", "query['review_state'] = 'pending'", "query['portal_type'] = 'PloneboardComment'", "query['path'] = '/'.join(context.getPhysicalPath())", "reqget = context.REQUEST.get", "def supplement_query(field, index_name=None, reqget=reqget, query=query):\n if not i...
## 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...
[ [ 1, 0, 0.5789, 0.0526, 0, 0.66, 0, 287, 0, 1, 0, 0, 287, 0, 0 ], [ 1, 0, 0.6316, 0.0526, 0, 0.66, 0.2, 184, 0, 1, 0, 0, 184, 0, 0 ], [ 14, 0, 0.7368, 0.0526, 0, 0....
[ "from Products.CMFCore.utils import getToolByName", "from Products.CMFCore.WorkflowCore import WorkflowException", "workflow = getToolByName(context, 'portal_workflow')", "workflow.doActionFor(context, action)", "if cameFrom is None:\n cameFrom = context.REQUEST.get('HTTP_REFERER', context.absolute_url()...
## 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 = ...
[ [ 14, 0, 0.3636, 0.0303, 0, 0.66, 0, 252, 3, 0, 0, 0, 774, 10, 1 ], [ 14, 0, 0.3939, 0.0303, 0, 0.66, 0.1111, 26, 3, 0, 0, 0, 591, 10, 1 ], [ 14, 0, 0.4545, 0.0303, 0, ...
[ "redirect_target = context.getConversation()", "anchor = context.getId()", "conv = context.getConversation()", "query = {'object_implements' : 'Products.Ploneboard.interfaces.IComment',\n 'sort_on' : 'created',\n 'path' : '/'.join(conv.getPhysicalPath()),\n }", ...
## 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...
[ [ 4, 0, 0.55, 0.05, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 13, 1, 0.55, 0.05, 1, 0.52, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 6, 0, 0.8, 0.45, 0, 0.66, 1, 282, ...
[ "if context.portal_type != 'Ploneboard': return", "if context.portal_type != 'Ploneboard': return", "for f1 in context.objectValues('PloneboardForum'):\n for c1 in f1.objectValues('PloneboardConversation'):\n for m1 in c1.objectValues('PloneboardComment'):\n m1.manage_permission('Modify por...
## 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...
[ [ 4, 0, 0.3833, 0.0667, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 14, 1, 0.4, 0.0333, 1, 0.87, 0, 763, 3, 0, 0, 0, 929, 10, 1 ], [ 14, 0, 0.4667, 0.0333, 0, 0.66, ...
[ "if forums is None:\n forums = context.getForums()", " forums = context.getForums()", "result = {}", "for forum in forums:\n if hasattr(forum, 'getCategory'):\n categories = forum.getCategory()\n if not categories:\n categories = None\n if not same_type(categories, ())...
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): ...
[ [ 1, 0, 0.0089, 0.0089, 0, 0.66, 0, 415, 0, 1, 0, 0, 415, 0, 0 ], [ 1, 0, 0.0179, 0.0089, 0, 0.66, 0.1111, 375, 0, 1, 0, 0, 375, 0, 0 ], [ 1, 0, 0.0268, 0.0089, 0, ...
[ "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(TransformDataP...
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'["...
[ [ 1, 0, 0.0139, 0.0139, 0, 0.66, 0, 415, 0, 1, 0, 0, 415, 0, 0 ], [ 1, 0, 0.0278, 0.0139, 0, 0.66, 0.1, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0556, 0.0139, 0, 0....
[ "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(\"<[^...
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",...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 287, 0, 1, 0, 0, 287, 0, 0 ], [ 1, 0, 0.125, 0.0625, 0, 0.66, 0.5, 99, 0, 1, 0, 0, 99, 0, 0 ], [ 2, 0, 0.625, 0.8125, 0, 0.66, ...
[ "from Products.CMFCore.utils import getToolByName", "from Products.CMFPlone.utils import getFSVersionTuple", "def install(self, reinstall=False):\n tool=getToolByName(self, \"portal_setup\")\n\n if getFSVersionTuple()[0]>=3:\n tool.runAllImportStepsFromProfile(\n \"profile-Products.P...
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...
[ [ 1, 0, 0.0161, 0.0161, 0, 0.66, 0, 62, 0, 2, 0, 0, 62, 0, 0 ], [ 1, 0, 0.0323, 0.0161, 0, 0.66, 0.2, 895, 0, 2, 0, 0, 895, 0, 0 ], [ 2, 0, 0.1935, 0.2419, 0, 0.66,...
[ "from Acquisition import aq_inner, aq_parent", "from Products.Ploneboard.interfaces import IConversation, IComment", "def autopublish_script(self, sci):\n \"\"\"Publish the conversation along with the comment\"\"\"\n object = sci.object\n\n wftool = sci.getPortal().portal_workflow\n\n # Try to make ...
# this file is here to make Install.py importable. # we need to make it non-zero size to make winzip cooperate
[]
[]
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...
[ [ 1, 0, 0.0116, 0.0116, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0233, 0.0116, 0, 0.66, 0.0833, 194, 0, 1, 0, 0, 194, 0, 0 ], [ 1, 0, 0.0349, 0.0116, 0, ...
[ "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 impor...
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...
[ [ 1, 0, 0.0161, 0.0161, 0, 0.66, 0, 30, 0, 1, 0, 0, 30, 0, 0 ], [ 1, 0, 0.0323, 0.0161, 0, 0.66, 0.0714, 30, 0, 1, 0, 0, 30, 0, 0 ], [ 1, 0, 0.0484, 0.0161, 0, 0.66...
[ "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.a...
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...
[ [ 1, 0, 0.0128, 0.0128, 0, 0.66, 0, 556, 0, 1, 0, 0, 556, 0, 0 ], [ 1, 0, 0.0256, 0.0128, 0, 0.66, 0.1429, 803, 0, 1, 0, 0, 803, 0, 0 ], [ 1, 0, 0.0385, 0.0128, 0, ...
[ "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, getNumberOfConver...
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...
[ [ 1, 0, 0.0139, 0.0139, 0, 0.66, 0, 353, 0, 1, 0, 0, 353, 0, 0 ], [ 1, 0, 0.0278, 0.0139, 0, 0.66, 0.1667, 353, 0, 1, 0, 0, 353, 0, 0 ], [ 1, 0, 0.0417, 0.0139, 0, ...
[ "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 getTo...
from zope.interface import Interface class IConversationView(Interface): def comments(): """Return all comments in the conversation. """ def conversation(): """Return active conversation. """ def root_comments(): """Return all of the root comments for a conversatio...
[ [ 1, 0, 0.0286, 0.0286, 0, 0.66, 0, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 3, 0, 0.3, 0.4571, 0, 0.66, 0.5, 947, 0, 4, 0, 0, 270, 0, 0 ], [ 2, 1, 0.1429, 0.0857, 1, 0.09, ...
[ "from zope.interface import Interface", "class IConversationView(Interface):\n def comments():\n \"\"\"Return all comments in the conversation.\n \"\"\"\n\n def conversation():\n \"\"\"Return active conversation.\n \"\"\"", " def comments():\n \"\"\"Return all comment...
from Products import Five from Products.CMFCore.utils import getToolByName from Products.Ploneboard.browser.utils import toPloneboardTime, getNumberOfConversations from Products.Ploneboard.interfaces import IForum, IComment class BoardView(Five.BrowserView): """View methods for board type """ def __init__...
[ [ 1, 0, 0.0161, 0.0161, 0, 0.66, 0, 803, 0, 1, 0, 0, 803, 0, 0 ], [ 1, 0, 0.0323, 0.0161, 0, 0.66, 0.25, 287, 0, 1, 0, 0, 287, 0, 0 ], [ 1, 0, 0.0484, 0.0161, 0, 0....
[ "from Products import Five", "from Products.CMFCore.utils import getToolByName", "from Products.Ploneboard.browser.utils import toPloneboardTime, getNumberOfConversations", "from Products.Ploneboard.interfaces import IForum, IComment", "class BoardView(Five.BrowserView):\n \"\"\"View methods for board ty...
#
[]
[]
""" $Id: comment.py 99041 2009-10-06 06:38:21Z sureshvv $ """ from zope import interface from Acquisition import aq_base from DateTime.DateTime import DateTime from Products import Five from Products.CMFCore import utils as cmf_utils from Products.CMFCore.utils import getToolByName from Products.Ploneboard import permi...
[ [ 8, 0, 0.0073, 0.0109, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0146, 0.0036, 0, 0.66, 0.0556, 603, 0, 1, 0, 0, 603, 0, 0 ], [ 1, 0, 0.0182, 0.0036, 0, 0.66...
[ "\"\"\"\n$Id: comment.py 99041 2009-10-06 06:38:21Z sureshvv $\n\"\"\"", "from zope import interface", "from Acquisition import aq_base", "from DateTime.DateTime import DateTime", "from Products import Five", "from Products.CMFCore import utils as cmf_utils", "from Products.CMFCore.utils import getToolB...
from zope.interface import implements from zope import schema from zope.component import getUtility from zope.component import getMultiAdapter from zope.formlib.form import Fields from plone.memoize.view import memoize from Products.CMFCore.utils import getToolByName from Products.Five.browser.pagetemplatefile import V...
[ [ 1, 0, 0.0083, 0.0083, 0, 0.66, 0, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0167, 0.0083, 0, 0.66, 0.0625, 603, 0, 1, 0, 0, 603, 0, 0 ], [ 1, 0, 0.025, 0.0083, 0, 0...
[ "from zope.interface import implements", "from zope import schema", "from zope.component import getUtility", "from zope.component import getMultiAdapter", "from zope.formlib.form import Fields", "from plone.memoize.view import memoize", "from Products.CMFCore.utils import getToolByName", "from Product...
# Poof
[]
[]
from zope.interface import implements from AccessControl import ClassSecurityInfo from Products.CMFCore.utils import getToolByName from Products.Archetypes.public import BaseBTreeFolderSchema, Schema, TextField, LinesField from Products.Archetypes.public import BaseBTreeFolder, registerType from Products.Archetypes.p...
[ [ 1, 0, 0.0076, 0.0076, 0, 0.66, 0, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0229, 0.0076, 0, 0.66, 0.0667, 227, 0, 1, 0, 0, 227, 0, 0 ], [ 1, 0, 0.0305, 0.0076, 0, ...
[ "from zope.interface import implements", "from AccessControl import ClassSecurityInfo", "from Products.CMFCore.utils import getToolByName", "from Products.Archetypes.public import BaseBTreeFolderSchema, Schema, TextField, LinesField", "from Products.Archetypes.public import BaseBTreeFolder, registerType", ...
from zope.interface import implements from AccessControl import ClassSecurityInfo from Acquisition import aq_chain, aq_inner from OFS.CopySupport import CopyContainer from OFS.Image import File from Products.CMFCore.utils import getToolByName from Products.CMFPlone.utils import _createObjectByType, log_deprecated fr...
[ [ 1, 0, 0.0033, 0.0033, 0, 0.66, 0, 443, 0, 1, 0, 0, 443, 0, 0 ], [ 1, 0, 0.0098, 0.0033, 0, 0.66, 0.04, 227, 0, 1, 0, 0, 227, 0, 0 ], [ 1, 0, 0.013, 0.0033, 0, 0.6...
[ "from zope.interface import implements", "from AccessControl import ClassSecurityInfo", "from Acquisition import aq_chain, aq_inner", "from OFS.CopySupport import CopyContainer", "from OFS.Image import File", "from Products.CMFCore.utils import getToolByName", "from Products.CMFPlone.utils import _creat...
import Ploneboard import PloneboardForum import PloneboardConversation import PloneboardComment
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 534, 0, 1, 0, 0, 534, 0, 0 ], [ 1, 0, 0.5, 0.25, 0, 0.66, 0.3333, 371, 0, 1, 0, 0, 371, 0, 0 ], [ 1, 0, 0.75, 0.25, 0, 0.66, 0.6...
[ "import Ploneboard", "import PloneboardForum", "import PloneboardConversation", "import PloneboardComment" ]
try: from lipsum import markupgenerator except ImportError: class markupgenerator(object): def __init__(self,sample,dictionary):pass def generate_sentence(self):return 'subject' def generate_paragraph(self):return 'Please install lorem-ipsum-generator.' import transaction from time impo...
[ [ 7, 0, 0.0408, 0.0714, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0204, 0.0102, 1, 0.44, 0, 758, 0, 1, 0, 0, 758, 0, 0 ], [ 3, 1, 0.0561, 0.0408, 1, 0.44, ...
[ "try:\n from lipsum import markupgenerator\nexcept ImportError:\n class markupgenerator(object):\n def __init__(self,sample,dictionary):pass\n def generate_sentence(self):return 'subject'\n def generate_paragraph(self):return 'Please install lorem-ipsum-generator.'", " from lipsum im...
""" $Id: interfaces.py 55766 2007-12-18 11:08:52Z wichert $ """ # Dependency on Zope 2.8.x (or greater) or Five from zope.interface import Interface, Attribute class IPloneboard(Interface): """ Ploneboard is the outmost board object, what shows up in your site. The board contains forums. Board is folderish...
[ [ 8, 0, 0.0072, 0.0108, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0181, 0.0036, 0, 0.66, 0.1429, 443, 0, 2, 0, 0, 443, 0, 0 ], [ 3, 0, 0.1047, 0.1625, 0, 0.66...
[ "\"\"\"\n$Id: interfaces.py 55766 2007-12-18 11:08:52Z wichert $\n\"\"\"", "from zope.interface import Interface, Attribute", "class IPloneboard(Interface):\n \"\"\"\n Ploneboard is the outmost board object, what shows up in your site.\n The board contains forums. Board is folderish. The number of item...
from Products.Ploneboard.interfaces import IConversation from plone.indexer.decorator import indexer @indexer(IConversation) def num_comments(obj): return obj.getNumberOfComments()
[ [ 1, 0, 0.1667, 0.1667, 0, 0.66, 0, 895, 0, 1, 0, 0, 895, 0, 0 ], [ 1, 0, 0.5, 0.1667, 0, 0.66, 0.5, 1, 0, 1, 0, 0, 1, 0, 0 ], [ 2, 0, 0.9167, 0.3333, 0, 0.66, ...
[ "from Products.Ploneboard.interfaces import IConversation", "from plone.indexer.decorator import indexer", "def num_comments(obj):\n return obj.getNumberOfComments()", " return obj.getNumberOfComments()" ]
from Testing import ZopeTestCase # Make the boring stuff load quietly ZopeTestCase.installProduct('SimpleAttachment') ZopeTestCase.installProduct('CMFPlacefulWorkflow') ZopeTestCase.installProduct('Ploneboard') from Products.PloneTestCase import PloneTestCase PloneTestCase.setupPloneSite(products=('SimpleAttachment'...
[ [ 1, 0, 0.0323, 0.0323, 0, 0.66, 0, 740, 0, 1, 0, 0, 740, 0, 0 ], [ 8, 0, 0.129, 0.0323, 0, 0.66, 0.1429, 602, 3, 1, 0, 0, 0, 0, 1 ], [ 8, 0, 0.1613, 0.0323, 0, 0.6...
[ "from Testing import ZopeTestCase", "ZopeTestCase.installProduct('SimpleAttachment')", "ZopeTestCase.installProduct('CMFPlacefulWorkflow')", "ZopeTestCase.installProduct('Ploneboard')", "from Products.PloneTestCase import PloneTestCase", "PloneTestCase.setupPloneSite(products=('SimpleAttachment', 'CMFPlac...
import Products.Five import Products.ATContentTypes from Products.CMFPlacefulWorkflow.WorkflowPolicyConfig import manage_addWorkflowPolicyConfig from DateTime import DateTime def addMember(self, username, fullname="", email="", roles=('Member',), last_login_time=None): self.portal.portal_membership.addMember(user...
[ [ 1, 0, 0.0169, 0.0169, 0, 0.66, 0, 796, 0, 1, 0, 0, 796, 0, 0 ], [ 1, 0, 0.0339, 0.0169, 0, 0.66, 0.1111, 189, 0, 1, 0, 0, 189, 0, 0 ], [ 1, 0, 0.0508, 0.0169, 0, ...
[ "import Products.Five", "import Products.ATContentTypes", "from Products.CMFPlacefulWorkflow.WorkflowPolicyConfig import manage_addWorkflowPolicyConfig", "from DateTime import DateTime", "def addMember(self, username, fullname=\"\", email=\"\", roles=('Member',), last_login_time=None):\n self.portal.port...
# # Conversation tests # import transaction import unittest from zope.interface.verify import verifyClass, verifyObject import PloneboardTestCase from Products.CMFPlone.utils import _createObjectByType from Products.Ploneboard.interfaces import IConversation from Products.Ploneboard.content.PloneboardConversation imp...
[ [ 1, 0, 0.0256, 0.0051, 0, 0.66, 0, 502, 0, 1, 0, 0, 502, 0, 0 ], [ 1, 0, 0.0308, 0.0051, 0, 0.66, 0.1111, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0359, 0.0051, 0, 0....
[ "import transaction", "import unittest", "from zope.interface.verify import verifyClass, verifyObject", "import PloneboardTestCase", "from Products.CMFPlone.utils import _createObjectByType", "from Products.Ploneboard.interfaces import IConversation", "from Products.Ploneboard.content.PloneboardConversa...
# # Ploneboard tests # from Products.Ploneboard.tests import PloneboardTestCase # Catch errors in Install from Products.Ploneboard.Extensions import Install from Products.CMFCore.utils import getToolByName class TestSetup(PloneboardTestCase.PloneboardTestCase): def testSkins(self): portal_skins = self....
[ [ 1, 0, 0.0746, 0.0149, 0, 0.66, 0, 703, 0, 1, 0, 0, 703, 0, 0 ], [ 1, 0, 0.1194, 0.0149, 0, 0.66, 0.25, 138, 0, 1, 0, 0, 138, 0, 0 ], [ 1, 0, 0.1493, 0.0149, 0, 0....
[ "from Products.Ploneboard.tests import PloneboardTestCase", "from Products.Ploneboard.Extensions import Install", "from Products.CMFCore.utils import getToolByName", "class TestSetup(PloneboardTestCase.PloneboardTestCase):\n\n def testSkins(self):\n portal_skins = self.portal.portal_skins.objectIds(...
"""Ploneboard functional doctests. This module collects all *.txt files in the tests directory and runs them. (stolen from Plone) """ import os, sys import glob import doctest import unittest from Globals import package_home from Testing.ZopeTestCase import FunctionalDocFileSuite as Suite from Products.Ploneboard.c...
[ [ 8, 0, 0.0364, 0.0545, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0909, 0.0182, 0, 0.66, 0.0769, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1273, 0.0182, 0, 0.66...
[ "\"\"\"Ploneboard functional doctests. This module collects all *.txt\nfiles in the tests directory and runs them. (stolen from Plone)\n\"\"\"", "import os, sys", "import glob", "import doctest", "import unittest", "from Globals import package_home", "from Testing.ZopeTestCase import FunctionalDocFileS...
# # Comment tests # import unittest from zope.interface.verify import verifyClass import PloneboardTestCase from Products.Ploneboard.interfaces import IComment from Products.Ploneboard.content.PloneboardComment import PloneboardComment from Products.Ploneboard.config import HAS_SIMPLEATTACHMENT from OFS.Image import...
[ [ 1, 0, 0.016, 0.0032, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0192, 0.0032, 0, 0.66, 0.0909, 767, 0, 1, 0, 0, 767, 0, 0 ], [ 1, 0, 0.0256, 0.0032, 0, 0.6...
[ "import unittest", "from zope.interface.verify import verifyClass", "import PloneboardTestCase", "from Products.Ploneboard.interfaces import IComment", "from Products.Ploneboard.content.PloneboardComment import PloneboardComment", "from Products.Ploneboard.config import HAS_SIMPLEATTACHMENT", "from OFS....
# # Comment tests # import unittest from Products.Ploneboard.tests import PloneboardTestCase from Products.CMFPlone.utils import _createObjectByType class TestITextContentAdapter(PloneboardTestCase.PloneboardTestCase): def afterSetUp(self): from Products.ATContentTypes.interface import ITextContent ...
[ [ 1, 0, 0.1163, 0.0233, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1395, 0.0233, 0, 0.66, 0.25, 703, 0, 1, 0, 0, 703, 0, 0 ], [ 1, 0, 0.1628, 0.0233, 0, 0.66...
[ "import unittest", "from Products.Ploneboard.tests import PloneboardTestCase", "from Products.CMFPlone.utils import _createObjectByType", "class TestITextContentAdapter(PloneboardTestCase.PloneboardTestCase):\n\n def afterSetUp(self):\n from Products.ATContentTypes.interface import ITextContent \n ...
# # Ploneboard tests # import unittest from Products.Ploneboard.tests import PloneboardTestCase from Products.Ploneboard.batch import Batch from Products.CMFPlone.utils import _createObjectByType class TestBatch(PloneboardTestCase.PloneboardTestCase): def afterSetUp(self): self.board = _createObjectBy...
[ [ 1, 0, 0.0481, 0.0096, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0577, 0.0096, 0, 0.66, 0.2, 703, 0, 1, 0, 0, 703, 0, 0 ], [ 1, 0, 0.0769, 0.0096, 0, 0.66,...
[ "import unittest", "from Products.Ploneboard.tests import PloneboardTestCase", "from Products.Ploneboard.batch import Batch", "from Products.CMFPlone.utils import _createObjectByType", "class TestBatch(PloneboardTestCase.PloneboardTestCase):\n\n def afterSetUp(self):\n self.board = _createObjectBy...
# # Tests the default workflow # from AccessControl.Permission import Permission from Products.CMFPlone.tests import PloneTestCase from Products.CMFCore.utils import _checkPermission as checkPerm from Products.CMFPlone.utils import _createObjectByType from Products.Ploneboard.Extensions import WorkflowScripts # Catc...
[ [ 1, 0, 0.0427, 0.0085, 0, 0.66, 0, 745, 0, 1, 0, 0, 745, 0, 0 ], [ 1, 0, 0.0513, 0.0085, 0, 0.66, 0.1, 656, 0, 1, 0, 0, 656, 0, 0 ], [ 1, 0, 0.0684, 0.0085, 0, 0.6...
[ "from AccessControl.Permission import Permission", "from Products.CMFPlone.tests import PloneTestCase", "from Products.CMFCore.utils import _checkPermission as checkPerm", "from Products.CMFPlone.utils import _createObjectByType", "from Products.Ploneboard.Extensions import WorkflowScripts # Catch errors", ...
# # Event notification tests # import unittest import zope.component from Products.Ploneboard.tests import PloneboardTestCase from Products.Archetypes.event import ObjectInitializedEvent from Products.CMFPlone.utils import _createObjectByType notified = [] @zope.component.adapter(ObjectInitializedEvent) def dummy...
[ [ 1, 0, 0.1579, 0.0263, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1842, 0.0263, 0, 0.66, 0.125, 353, 0, 1, 0, 0, 353, 0, 0 ], [ 1, 0, 0.2105, 0.0263, 0, 0.6...
[ "import unittest", "import zope.component", "from Products.Ploneboard.tests import PloneboardTestCase", "from Products.Archetypes.event import ObjectInitializedEvent", "from Products.CMFPlone.utils import _createObjectByType", "notified = []", "def dummyEventHandler(event):\n notified.append(event.ob...
# # Ploneboard transform tests # import unittest from Products.Ploneboard.tests import PloneboardTestCase from Products.CMFCore.utils import getToolByName from Products.Ploneboard.config import PLONEBOARD_TOOL from Products.CMFPlone.utils import _createObjectByType class TestTransformRegistration(PloneboardTestCase...
[ [ 1, 0, 0.0943, 0.0189, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1132, 0.0189, 0, 0.66, 0.1667, 703, 0, 1, 0, 0, 703, 0, 0 ], [ 1, 0, 0.1321, 0.0189, 0, 0....
[ "import unittest", "from Products.Ploneboard.tests import PloneboardTestCase", "from Products.CMFCore.utils import getToolByName", "from Products.Ploneboard.config import PLONEBOARD_TOOL", "from Products.CMFPlone.utils import _createObjectByType", "class TestTransformRegistration(PloneboardTestCase.Ploneb...
"""Ploneboard tests package """
[ [ 8, 0, 0.75, 1, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ] ]
[ "\"\"\"Ploneboard tests package\n\"\"\"" ]
# # Forum tests # import unittest from zExceptions import Unauthorized from zope.interface.verify import verifyClass, verifyObject import PloneboardTestCase from Products.Ploneboard.interfaces import IForum from Products.Ploneboard.content.PloneboardForum import PloneboardForum from Products.CMFCore.utils import get...
[ [ 1, 0, 0.026, 0.0052, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0312, 0.0052, 0, 0.66, 0.1, 550, 0, 1, 0, 0, 550, 0, 0 ], [ 1, 0, 0.0365, 0.0052, 0, 0.66, ...
[ "import unittest", "from zExceptions import Unauthorized", "from zope.interface.verify import verifyClass, verifyObject", "import PloneboardTestCase", "from Products.Ploneboard.interfaces import IForum", "from Products.Ploneboard.content.PloneboardForum import PloneboardForum", "from Products.CMFCore.ut...