Commit 869227d4 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Xiaowu Zhang

fixup! ValueConfiguratorItem

parent 9f579373
......@@ -63,12 +63,12 @@ class AlarmConfiguratorItem(ConfiguratorItemMixin, XMLObject):
error_list = []
property_dict = {
"active_sense_method_id" : self.getActiveSenseMethodId(),
"destination_list" : self.getDesitnationList(),
"destination_list" : self.getDestinationList(),
"periodicity_hour_list" : self.getPeriodicityHourList(),
"periodicity_minute_list": self.getPeriodicityMinuteList(),
"periodicity_minute_frequency": self.getPeriodicityMinuteFrequency(),
"periodicity_week_list": self.getPeriodicityWeekList(),
"periodicity_week_day_list": self.getPeriodicityWeeDaykList(),
"periodicity_week_day_list": self.getPeriodicityWeekDayList(),
"periodicity_week_frequency": self.getPeriodicityWeekFrequency(),
"periodicity_month_list": self.getPeriodicityMonthList(),
"periodicity_month_day_list": self.getPeriodicityMonthDayList(),
......
......@@ -71,8 +71,11 @@ class PathConfiguratorItem(ConfiguratorItemMixin, XMLObject):
error_list.append(self._createConstraintMessage(
"%s %s should be created" %(portal_type, document_id)))
if fixit:
document = container.newContent(id=document_id,
portal_type=portal_type)
document_init_dict = { 'portal_type' : portal_type,
'document_id': document_id }
if title in document_dict:
document_init_dict['title'] = document_dict.pop('title')
document = container.newContent(**document_init_dict)
document.edit(**document_dict)
if transition_method is not None:
getattr(document, transition_method) (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment