Modify ↓
Opened 16 years ago
Closed 16 years ago
#4842 closed defect (duplicate)
post_process_request does not correctly pass content type
Reported by: | anonymous | Owned by: | Carlos López Pérez |
---|---|---|---|
Priority: | high | Component: | AccountLdapPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
AccountLdapPlugin blocks other plugins from changing the content type of their response. This was a problem for me and kept RevtreePlugin from rendering its SVG.
Here's a patch that fixes it:
-
accountldap/accountldap.py
53 53 54 54 def post_process_request(self, req, template, data, content_type): 55 55 if not req.remote_user or req.session.has_key('email'): 56 return template, data, None56 return template, data, content_type 57 57 uid = req.remote_user.lower() 58 58 name, email = self._getUserAttributes(uid) 59 59 req.session['name'] = name 60 60 req.session['email'] = email 61 return template, data, None61 return template, data, content_type 62 62 # 63 63 #----------------------------------------- INavigationContributor interface 64 64 #
This issue was a blocker for our new install.
Attachments (0)
Note: See
TracTickets for help on using
tickets.
sorry! forgot to log in!
duplicate of #4843