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/a/r/archetypes.recurringdate-0.2/archetypes/recurringdate/widget.py   archetypes.recurringdate(Download)
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
from Products.Archetypes.Widget import TypesWidget
from Products.Archetypes.Registry import registerWidget
from archetypes.recurringdate.recurrence import RecurringData
        kwargs['end_date'] = form.get('%s_range_end' % fname, None)
 
        value = RecurringData(**kwargs)
 
        # Stick it back in request.form

src/a/r/archetypes.recurringdate-0.2/archetypes/recurringdate/field.py   archetypes.recurringdate(Download)
from Products.Archetypes.Registry import registerField
from archetypes.recurringdate.widget import RecurringDateWidget
from archetypes.recurringdate.recurrence import RecurringData
 
 
            value = None
        elif not isinstance(value, RecurringData):
            value = RecurringData(**kwargs)
 
        ObjectField.set(self, instance, value)