Commit 573cbc22 authored by Klaus Wölfel's avatar Klaus Wölfel Committed by Xiaowu Zhang

fixup! ValueConfiguratorItem

parent 4d141518
...@@ -63,12 +63,12 @@ class AlarmConfiguratorItem(ConfiguratorItemMixin, XMLObject): ...@@ -63,12 +63,12 @@ class AlarmConfiguratorItem(ConfiguratorItemMixin, XMLObject):
error_list = [] error_list = []
property_dict = { property_dict = {
"active_sense_method_id" : self.getActiveSenseMethodId(), "active_sense_method_id" : self.getActiveSenseMethodId(),
"destination_list" : self.getDesitnationList(), "destination_list" : self.getDestinationList(),
"periodicity_hour_list" : self.getPeriodicityHourList(), "periodicity_hour_list" : self.getPeriodicityHourList(),
"periodicity_minute_list": self.getPeriodicityMinuteList(), "periodicity_minute_list": self.getPeriodicityMinuteList(),
"periodicity_minute_frequency": self.getPeriodicityMinuteFrequency(), "periodicity_minute_frequency": self.getPeriodicityMinuteFrequency(),
"periodicity_week_list": self.getPeriodicityWeekList(), "periodicity_week_list": self.getPeriodicityWeekList(),
"periodicity_week_day_list": self.getPeriodicityWeeDaykList(), "periodicity_week_day_list": self.getPeriodicityWeekDayList(),
"periodicity_week_frequency": self.getPeriodicityWeekFrequency(), "periodicity_week_frequency": self.getPeriodicityWeekFrequency(),
"periodicity_month_list": self.getPeriodicityMonthList(), "periodicity_month_list": self.getPeriodicityMonthList(),
"periodicity_month_day_list": self.getPeriodicityMonthDayList(), "periodicity_month_day_list": self.getPeriodicityMonthDayList(),
......
...@@ -71,8 +71,11 @@ class PathConfiguratorItem(ConfiguratorItemMixin, XMLObject): ...@@ -71,8 +71,11 @@ class PathConfiguratorItem(ConfiguratorItemMixin, XMLObject):
error_list.append(self._createConstraintMessage( error_list.append(self._createConstraintMessage(
"%s %s should be created" %(portal_type, document_id))) "%s %s should be created" %(portal_type, document_id)))
if fixit: if fixit:
document = container.newContent(id=document_id, document_init_dict = { 'portal_type' : portal_type,
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) document.edit(**document_dict)
if transition_method is not None: if transition_method is not None:
getattr(document, transition_method) ( 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