On 7/27/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:

"Jorge Vargas" <[EMAIL PROTECTED]> writes:

> which leads us to
>
>      def defineActivity(self, name):
>          try:
>              result = Activity(name=name)
>          except SQLObjectNotFound:
>              result = Activity.byName(name)
>          return result

This doesn't look right to me...  If you *create* (aka INSERT) a record, how
will it return SQLObjectNotFound?  It should return that on a SELECT (get,
by*, select, etc.)...

ohhh I'm so sorry It was late and I saw the byName inside the try clause, please ignore me.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to