Hi guys,
I done the FEComponent and I glue it with ZPTKit, in fact, I extend
the ZPTKit to a customzptcomponent.py, in this file I add some
contexts to the zpt and done another utilities...
I attached a example of usage, it is a site I'm doing to me, I can't
work with it now so I'm sending it in portuguese, but I promise to
translate an example of usage until friday. The contact session is a
good example of formencode and zptkit usage. I call it Contato.py/pt.
Sorry if I can't explain it well now, but I would lost time, it's
easier to make an example from scratch.
Regards,
On 5/24/05, Ian Bicking <ianb@...> wrote:
> Hancock, David (DHANCOCK) wrote:
> > We're investigating the marriage of ZPT (via ZPTKit) and FormEncode (vi=
a
> > a component to be written or FEComponent found on the list).
> >
> > A couple initial questions:
> >
> > 1. Is ComponentKit designed to handle more than one component for a
> > page/servlet? (Seems like it is, just not sure.)
>=20
> Yep, that's the idea.
>=20
> > 2. If you add to the components list, how does the servlet know which
> > awake/asleep/writeHTML to call? Should those methods be overridden in
> > the class that how the two components?
>=20
> awakeEvent and sleepEvent get called for every component. writeHTML
> isn't overridden, which is why you set it in your SitePage to use
> ZPTKit. I think there was a reason for that, but I can't remember what
> it is now.
>=20
> > 3. Is there any "prior art" on merging ZPT and FormEncode?
> > 4. Is there any "prior art" on using two components at once?
>=20
> I do this regularly, using ZPTKit, LoginKit, and NotifyComponent
> together. But I wrote them all, so it's not surprising they work
> together; I haven't tried other components, so I don't know how they'll
> work. But it's a bug if any component doesn't work with another componen=
t.
>=20
> > 5. Are there any instructions for writing your own component?
>=20
> Look in the docstrings of Component. It's a pretty minimal interface.
>=20
> > I will admit that I'm not the sharpest tool in the shed, and I don't
> > understand how ComponentKit works. It seems (intuitively) like the righ=
t
> > solution, but I just don't know how to make it work.
>=20
> It's basically a combination of mix-ins (_servletMethods) and events.
>=20
> --
> Ian Bicking / ianb@... / http://blog.ianbicking.org
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by Yahoo.
> Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> Search APIs Find out how you can build Yahoo! directly into your own
> Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q22=
005
> _______________________________________________
> Webware-discuss mailing list
> Webware-discuss@...
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>=20
--=20
Michel Thadeu Sabchuk
Curitiba - Brasil
|