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

All Samples(155)  |  Call(138)  |  Derive(0)  |  Import(17)

src/p/r/Products.plonehrm-2.14/Products/plonehrm/notifications/checkers.py   Products.plonehrm(Download)
from plonehrm.notifications.interfaces import INotified
from plonehrm.notifications.utils import get_employees_for_checking
from Products.plonehrm import PloneHrmMessageFactory as _
from Products.plonehrm.notifications.events import BirthdayNearsEvent
from Products.plonehrm.notifications.interfaces import IPersonalDataEmailer
            notification_text = u"plonehrm: Birthday %s" % \
                                anniversary.year()
            notification_title = translate(_(u'title_birthday_nears',
                                             mapping = {'name': employee.officialName()}),
                                           target_language = language)
            # We compute the age the employee will turn after this birthday.
            age = anniversary.year() - employee.getBirthDate().year()
            link_text = translate(_(u'title_go_to_employee',
                                    default = 'Go to ${name} folder',
                                    mapping = {'name': employee.officialName()}),

src/p/r/Products.plonehrm-2.14/Products/plonehrm/browser/employee.py   Products.plonehrm(Download)
 
from Products.plonehrm import utils
from Products.plonehrm import PloneHrmMessageFactory as _
try:
    from plonehrm.absence.absence import IAbsenceAdapter
            days = self.days_absent()
            if days == 1:
                absence = _('1_day_absent',
                            default=u'(1 day absent)')
            else:
                absence = _(u'x_days_absent',

src/p/r/Products.plonehrm-2.14/Products/plonehrm/browser/substitution.py   Products.plonehrm(Download)
from Products.plonehrm.interfaces import IWorkLocation
from Products.plonehrm.browser.interfaces import ISubstitutionPortlet
from Products.plonehrm import PloneHrmMessageFactory as _
from plonehrm.contracts.interfaces import IContract
 
 
            if gender == 'male':
                formal_title = _(u'formal_title_male',
                                 default=u'Dear Sir ')
            else:
                formal_title = _(u'formal_title_female',
        # can not simply generate ids and default values.
        if day == 1:
            day = _(u'day_1', default=u'1')
        elif  day == 2:
            day = _(u'day_2', default=u'2')

src/p/r/Products.plonehrm-2.14/Products/plonehrm/content/worklocation.py   Products.plonehrm(Download)
from zope.interface import implements
 
from Products.plonehrm import PloneHrmMessageFactory as _
from Products.plonehrm import config
from Products.plonehrm.interfaces import IWorkLocation
        name='address',
        widget=StringWidget(
            label=_(u'plonehrm_label_address',
                    default=u'Work Location Address'),
            description=_(
                    u'plonehrm_help_address',
        name='postalCode',
        widget=StringWidget(
            label=_(u'plonehrm_label_postalCode',
                    default=u'Work Location Zip Code'),
        ),
    ),
    StringField(
        name='city',
        widget=StringWidget(
            label=_(u'plonehrm_label_city',

src/p/r/Products.plonehrm-2.14/Products/plonehrm/content/employee.py   Products.plonehrm(Download)
from Products.CMFPlone.interfaces.structure import INonStructuralFolder
from Products.CMFPlone.utils import safe_unicode
from Products.plonehrm import PloneHrmMessageFactory as _
from Products.plonehrm import config
from Products.plonehrm.interfaces import IEmployee
        name='employeeNumber',
        widget=StringWidget(
            label=_(u'label_employeeNumber', default=u'Employee number'),
        ),
    ),
    StringField(
        name='firstName',
        widget=StringWidget(
            label=_(u'plonehrm_label_firstName', default=u'Firstname'),
        name='middleName',
        widget=StringWidget(
            label=_(u'plonehrm_label_middleName', default=u'Middle name'),
        ),
    ),
    StringField(
        name='lastName',
        widget=StringWidget(
            label=_(u'plonehrm_label_lastName', default=u'Last name'),

src/p/r/Products.plonehrm-2.14/Products/plonehrm/controlpanel.py   Products.plonehrm(Download)
from Products.CMFPlone.interfaces import IPloneSiteRoot
 
from Products.plonehrm import PloneHrmMessageFactory as _
from Products.plonehrm.config import PLONEHRM_PROPERTIES
 
class IHRMNotificationsPanelSchema(Interface):
 
    birthday_notification = Bool(
        title=_(u'title_birthday_notification',
                default=u'Give birthday notification'),
        description=_(u'description_birthday_notification',
 
    birthday_notification_period = Int(
        title=_(u'title_birthday_notification_period',
                default=u'Birthday notification period'),
        description=_(u'description_birthday_notification_period',

src/p/r/Products.plonehrm-2.14/Products/plonehrm/notifications/events.py   Products.plonehrm(Download)
from Products.CMFCore.utils import getToolByName
 
from Products.plonehrm import PloneHrmMessageFactory as _
from Products.plonehrm.notifications.interfaces import IPersonalDataEvent
from Products.plonehrm.utils import next_anniversary
        age = anniversary.year() - birthdate.year()
        anniversary = self.object.restrictedTraverse('@@plone').toLocalizedTime(anniversary)
        text = _(u"Turns ${age} at ${anniversary}.",
                 mapping=dict(age=age,
                              anniversary=anniversary))

src/p/r/Products.plonehrm-2.14/Products/plonehrm/content/template.py   Products.plonehrm(Download)
 
from Products.plonehrm.config import PROJECTNAME
from Products.plonehrm import PloneHrmMessageFactory as _
 
TemplateSchema = ATDocumentSchema.copy() + Schema((
                    'job_performance', 'absence_evaluation'],
        widget=SelectionWidget(
            label=_(u'label_templateType',
                    default=u'Template type'),
            ),

src/p/l/plonehrm.contracts-2.6/plonehrm/contracts/notifications/checkers.py   plonehrm.contracts(Download)
from Products.plonehrm import utils
from Products.plonehrm.controlpanel import IHRMNotificationsPanelSchema
from Products.plonehrm import PloneHrmMessageFactory as _hrm
 
from plonehrm.contracts import ContractsMessageFactory as _
        if (expires + 1).isCurrentDay():
            # The last contract expired yesterday.
            link_text = translate(_hrm(u'title_go_to_employee',
                                       mapping = {'name': employee.Title()}),
                                  target_language = language)
                continue
 
            link_text = translate(_hrm(u'title_go_to_employee',
                                       mapping = {'name': employee.Title()}),
                                  target_language = language)

src/p/l/plonehrm.checklist-1.3/plonehrm/checklist/notifications/checkers.py   plonehrm.checklist(Download)
 
from Products.plonehrm.utils import email_adresses_of_local_managers
from Products.plonehrm import PloneHrmMessageFactory as _hrm
 
from plonehrm.notifications.emailer import HRMEmailer
                              mapping = {'task': item.text.decode('utf8')}),
                            target_language = language)
        link_text = translate(_hrm(u'title_go_to_employee',
                                   mapping = {'name': employee.Title()}),
                              target_language = language)

  1 | 2  Next