Christoph Zwerschke a écrit : > sophana wrote: > >> formencode does the trick also, but its too bad it doesn't have an >> automatic layout by default. >> I had to write my own simple layout management for formkit, that I will >> contribute some times. >> > > Is FormKit still maintained? If it is not actively developed any more > and not used for any other web frameworks, I think it would be good to > continue development inside the Webware SVN and release it together with > Webware, maybe with some improvements like the additions you have made. > > Formkit works just fine. I don't think it needs major development. I don't understand why it was not integrated into webware, because it was designed for it.
I found some minor details that could be corrected: for example, fields are stored in the form with a list. When you want to access a field by its name, formkit iterates the list to find the field. That's not really the best performance wise implementation. What I don't like in formencode, is that forms are entered in html (which I don't like, because I personaly prefer python object hierarchy description) I don't think it is also very performant in terms of cpu power... The validator features of formencode and formkit seem similar. What could be improved, (that's what I did), is the layout description, which is actually a simple vertical table. I simply did a nested horizontal or vertical tables description which fitted my needs. > I also like to add something like FunFormKit's SimpleHTMLGen.py to > Webware, maybe as module in the WebUtils package. Is something like that > also part of FormKit? > I agree that webware should have some simple html helper methods. For tables, I wrote my own little script where you describe tables with nested lists. It's very simple, and because of that, it won't fit everybody's needs, but it save lot of python lines of code. If we talk about the features of webware, I did not find how to manage directories url notation. for example, what I would like to have is: if Main is the page handler, it should be possible to enter any url like: http://webkit/Main/foo/boo?a=1&b=2 Main request fields would be: { 'a':'1','b':'2','_path':'foo/boo'} http://webkit/Main/foo would give : {'_path':'foo'} What do you think of that? simple isn't it? ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss