-class ByObject(object): #{{{
- @classmethod
- def by(cls, **kw):
- try:
- return cls.selectBy(**kw)[0]
- except IndexError:
- raise SQLObjectNotFound, "The object %s with columns %s does not exist" % (cls.__name__, kw)
-#}}}
-
-class Curso(SQLObject, ByObject): #{{{