On Aug 7, 7:09 pm, Sriram Durbha <[email protected]> wrote:
> Hi all,
>  I came across web2py recently and have been very impressed by it.
> One of the tasks on a project I am helping with is to improve the
> registration process and general security of the site.
> Ofcourse that being a Java project, there is not much chance for me to apply
> web2py there [ also because I am not yet an expert with web2py] but I was
> wondering if some one with experience with Spring, Spring Roo and web2py can
> provide a fair comparison among them.
> My notes so far: [ Apart from the fact that spring is in Java, although
> there seems to be a spring Python version in the works too ]
>  1. the project structure organization looks fairly similar, with a clean
> seperation between concerns.
>  2. I had to type in less code for the same form in web2py.
>  3. with spring it was easy to declaratively mark validation at multiple
> levels. so far I have only understood how to validate at the database level
> with web2py, so i can't comment much.

Mind that you set Field(...,requires=....) the validation is not done
at the database level. The validators propagate and will validate all
forms such as:

form = SQLFORM(db.mytable)
form = crud.create(db.mytable)
form = crud.update(db.mytable)

>  4. Spring supports an ORM, which is different from the DAL in web2py, I
> beleive both have their right place.
>  5. Spring Roo makes it really easy and declarative to build the core of an
> application.
>
> My hope is that I can use or recommend web2py also in a future project if it
> is found to be a good fit.
> Kindly do not diss or denigrate any tool, let us have a fair unbiased
> comparison.

I do not know Spring and your comments are very much welcome.

Reply via email to