Logo Search packages:      
Sourcecode: zope-atextensions version File versions  Download package

def ATExtensions::widget::smartemail::SmartEmailWidget::linkToMailForm (   self,
  field,
  instance 
)

Constructs a link to the email formular

Definition at line 54 of file smartemail.py.

00054                                            :
      """Constructs a link to the email formular"""
        uid=instance.UID()
        field_id=field
        url=instance.absolute_url()
        link='%s/mailout_form?uid=%s&fid=%s' % (url,uid,field_id)
        return link

InitializeClass(SmartEmailWidget)

registerWidget(SmartEmailWidget,
               title='SmartEmail',
               description="Renders a SmartEmailField.",
               used_for=('Products.ATExtensions.fields.SmartEmailField',)
               )
               )


Generated by  Doxygen 1.6.0   Back to index