Also, I will change the way datamodels are defined, I learned a good trick
from my use of Django.

*Instead of:*

class Post(object):
     tablename = "post"

     def set_propertieds(self):
          self.fields = [
             Field("name"),
             Field("email"),
         ]

*We can do:*

class Post(object):
    name = Field("name")
    email = Field("email")

    class Meta:
         tablename = "post"

I think the second option is more confortable in therms of O.O

-- 



Reply via email to