this is as far as I got with the trace back
in the portlet code in PortletSubscriptionAddForm.update() ...
> collective/dancing/browser/portlets/channelsubscribe.py(156)update() -> super(PortletSubscriptionAddForm, self).update() (Pdb) list 151 def newslettertool(self): 152 return getToolByName(self.context, 'portal_newsletters') 153 154 def update(self): 155 import pdb;pdb.set_trace() 156 -> super(PortletSubscriptionAddForm, self).update() 157 self.channel_id = self.context.id 158 159 if self.context.collector is not None: 160 stored_values = self.stored_values 161 collector_schema = self.context.collector.schema
self.widgets gets assigned somewhere in the super(...) call, but there is so much indirection here, I'm not able to effectively trace down the part which assigns the default value to welf.widgets["composer.email"].value
-> super(PortletSubscriptionAddForm, self).update() (Pdb) n > /home/adam/var/buildout-cache/eggs/collective.dancing-0.9.9-py2.6.egg/collective/dancing/browser/portlets/channelsubscribe.py(157)update() -> self.channel_id = self.context.id
(Pdb) self.widgets["composer.email"].value <email address hidden>'
this is as far as I got with the trace back
in the portlet code in PortletSubscrip tionAddForm. update( ) ...
> collective/ dancing/ browser/ portlets/ channelsubscrib e.py(156) update( ) bscriptionAddFo rm, self).update() self): self.context, 'portal_ newsletters' ) bscriptionAddFo rm, self).update() collector is not None: collector. schema
-> super(PortletSu
(Pdb) list
151 def newslettertool(
152 return getToolByName(
153
154 def update(self):
155 import pdb;pdb.set_trace()
156 -> super(PortletSu
157 self.channel_id = self.context.id
158
159 if self.context.
160 stored_values = self.stored_values
161 collector_schema = self.context.
self.widgets gets assigned somewhere in the super(...) call, but there is so much indirection here, I'm not able to effectively trace down the part which assigns the default value to welf.widgets[ "composer. email"] .value
-> super(PortletSu bscriptionAddFo rm, self).update() var/buildout- cache/eggs/ collective. dancing- 0.9.9-py2. 6.egg/collectiv e/dancing/ browser/ portlets/ channelsubscrib e.py(157) update( )
(Pdb) n
> /home/adam/
-> self.channel_id = self.context.id
(Pdb) self.widgets[ "composer. email"] .value
<email address hidden>'