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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/l/plonehrm.jobperformance-1.3/plonehrm/jobperformance/events.py   plonehrm.jobperformance(Download)
from Products.plonehrm.utils import apply_template_of_tool
 
 
def apply_template(object, event):
    """After initializing a job performance interview, set text based
    on template.
    """
    apply_template_of_tool(object, 'portal_jobperformance')

src/p/l/plonehrm.absence-1.5/plonehrm/absence/events.py   plonehrm.absence(Download)
from Acquisition import aq_parent
 
from Products.plonehrm.utils import apply_template_of_tool
from plonehrm.absence import AbsenceMessageFactory as _
from plonehrm.absence.utils import localize
def apply_template(object, event):
    """After initializing an evaluation interview, set text based
    on template.
    """
    apply_template_of_tool(object, 'portal_absence')