bbull wrote: > I have some code that returns what I'm calling a table object. > > return getattr(self.dbc, tablename) > > where self.dbc is an SqlSoup object and tablename is the name of the > table. > > [..] > TypeError: type() argument 1 must be string, not unicode > > For some reason, the line "mapname = 'Mapped' + > _selectable_name(selectable)" in sqlsoup.py creates a unicode object > instead of a string object when 'entity' is passed in. If I put a > simple str() around the code ("mapname = str('Mapped' + > _selectable_name(selectable))"), it works with no problem. > > Any reason why only this one particular case would cause this problem?
Try that again with the latest from trunk. -j --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---