Comment 2 for bug 333097

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Some followup points:

- If someone hasn't uploaded an image, we need a way to know that and allow pointing at the fake shadow image. I presume the answer for that is, the ZPTs ask for profile.portrait_url and get handed back a None? They can then hold the policy for what image to point at.

Alternatively, we have put an adapter between the ZPT and the profile.

To see this in action, look at:

          derived['photo_url'] = 'admin_fakephoto.jpg' # XXX

in views/members.py.

- Handle the case of editing a profile with no existing image vs. an existing. Plone has the radio button box. We have one for KARL in toscawidgets, but haven't yet done one in newstyle with jquery. I think balazs is doing so in the next 24 hours for calendar event.

- Regarding scaling, AFAIK, KARL2 didn't do server-side scaling in any way. We should probably hold off on this an re-consider after Pycon.