Re: [Repoze-dev] Question about using repoze.bfg.formish in url dispatch

2009-10-28 Thread Chris McDonough
georgehu wrote: > Chris McDonough wrote: >> You need something like >> > Regarding to the request.form(), I've tried to find document explaining > the usage but no luck. Can you give it more explaination? > There's probably nothing in the docs about it (the docs are accurate but incomplete cu

Re: [Repoze-dev] Question about using repoze.bfg.formish in url dispatch

2009-10-27 Thread Chris McDonough
Chris McDonough wrote: > The contract for what the __call__ may return a webob Response object or a > dictionary. This is the same contract as required of "views with renderers". > See > http://docs.repoze.org/bfg/1.1/narr/views.html#writing-views-which-use-a-renderer This is maybe a better de

Re: [Repoze-dev] Question about using repoze.bfg.formish in url dispatch

2009-10-27 Thread Chris McDonough
george hu wrote: > Now I have no problem of setting up the configure.zcml, my new problem > is to wiring template and form together, I think I may write something > in the .pt file: > > AForm You need something like > > and place something in the __call__ method of form controller. When I do

Re: [Repoze-dev] Question about using repoze.bfg.formish in url dispatch

2009-10-27 Thread george hu
Now I have no problem of setting up the configure.zcml, my new problem is to wiring template and form together, I think I may write something in the .pt file: AForm and place something in the __call__ method of form controller. When I do it in pure formish way, I use: ... form=formish.Form(schem

Re: [Repoze-dev] Question about using repoze.bfg.formish in url dispatch

2009-10-27 Thread Chris McDonough
Something like this might work: george hu wrote: > I'm trying to use the repoze.bfg.formish by checking out the code from > svn. I have configured the configure.zcml successfully and using > formish:form directive in the file. According to the document, the > formish:form is kind of mirror

[Repoze-dev] Question about using repoze.bfg.formish in url dispatch

2009-10-27 Thread george hu
I'm trying to use the repoze.bfg.formish by checking out the code from svn. I have configured the configure.zcml successfully and using formish:form directive in the file. According to the document, the formish:form is kind of mirror of view directive, now I could not figure out how to map a url to