[Grok-dev] Re: Displaying an image stored on a grok.Model

Dirceu Pereira Tiegs dirceutiegs at gmail.com
Mon Jan 21 15:09:05 EST 2008


Hey,

On Jan 21, 2008 4:01 PM, Philipp von Weitershausen
<philipp at weitershausen.de> wrote:
> I forgot to mention that in both cases, you'll be able to access the
> image data via  http://.../some_event/image. In solution a), this URL
> will resolve to the ShowEventImage view. In solution b), this URL
> resolves to the actual IImage object for which there's a default view
> that will display it.
>
> Concering security, you'd probably want to do solution a) because you're
>   exposing as few data objects as possible.

Thanks a lot for the info, I'm using solution a) now.

Cheers,
-- 
Dirceu Pereira Tiegs
Weimar Consultoria

Hospedagem Plone, Zope e Python
http://www.pytown.com


More information about the Grok-dev mailing list