<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_widget_for(self, fieldname):
 """Lookup the widget """

        field = self.context.getField(fieldname)
        if not field:
            return None
        return field.widget