some questions can not be answerd by the comparion with Django in the
web2py.com:
1)How many field types does DAL have now? Can we extend by ouselves?
2)In Django, when they defining a model:
class Blog(models.Model):------------>a table in DAL
name = models.CharField(max_length=100)--------------->a SQLFIELD in DAL
def save(self, force_insert=False,
force_update=False):------------------------>Can we do this in DAL?
do_something()
super(Blog, self).save(force_insert, force_update) # Call the
"real" save() method.
do_something_else()
3)In Django table can be inherited like:
class *Place*(models.Model):
name = models.CharField(max_length=50)
class Restaurant(*Place*):---------------------> Can it be done in DAL?
serves_hot_dogs = models.BooleanField()
serves_pizza = models.BooleanField()
I found that DAL can do a lot more than documented, so add these
information in it will be more userful.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---