zope - Need help understanding View, Viewlet, ViewletManager and Page -
i know it's naive question couldn't figure out answer reading scattered (and outdated docs) i'm bit confused. what's conceptual meaning of these view layer components , what's difference between them? when should use which?
i'd appreciate if shed light on this. tia,
a view basic component; adapts context , request, component can apply data request , context produce.. something.
a page specialized view; produces output aimed @ browser. involves template.
a viewlet , viewlet manager closely tied together. viewlet specialized view not meant used on it's own used in assembly. viewlet manager assembling here; ask viewlet manager viewlets registered manager , active. viewlets things login link, personal information bar logged-in users, etc. login link active if there no logged in user, personal bar active if there is logged in user, etc.
basically, viewlets let delegate responsibility of 'area' of rendered pages components, manager handles 1 specific area , viewlets components used render snippets.
Comments
Post a Comment