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 <[EMAIL PROTECTED]> wrote:
> Hancock, David (DHANCOCK) wrote:
> > We're investigating the marriage of ZPT (via ZPTKit) and FormEncode (via
> > 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.)
> 
> Yep, that's the idea.
> 
> > 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?
> 
> 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.
> 
> > 3. Is there any "prior art" on merging ZPT and FormEncode?
> > 4. Is there any "prior art" on using two components at once?
> 
> 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 component.
> 
> > 5. Are there any instructions for writing your own component?
> 
> Look in the docstrings of Component.  It's a pretty minimal interface.
> 
> > 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 right
> > solution, but I just don't know how to make it work.
> 
> It's basically a combination of mix-ins (_servletMethods) and events.
> 
> --
> Ian Bicking  /  [EMAIL PROTECTED]  /  http://blog.ianbicking.org
> 
> 
> -------------------------------------------------------
> 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=offad-ysdn-ostg-q22005
> _______________________________________________
> Webware-discuss mailing list
> Webware-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 


-- 
Michel Thadeu Sabchuk
Curitiba - Brasil

Attachment: Test.tgz
Description: GNU Zip compressed data

Reply via email to