Re: Patch for webhelpers/pagination/orm.py to raise proper exception

2007-02-01 Thread Shannon -jj Behrens
On 1/31/07, Christoph Haas [EMAIL PROTECTED] wrote: On Wednesday 31 January 2007 09:12, Daniel Néri wrote: Note that raising of strings as exceptions is deprecated in Python 2.5[*] and triggers a warning. Thanks for the pointer. I already wondered why some people already use '''raise

Re: Patch for webhelpers/pagination/orm.py to raise proper exception

2007-01-31 Thread Christoph Haas
On Wednesday 31 January 2007 09:12, Daniel Néri wrote: Note that raising of strings as exceptions is deprecated in Python 2.5[*] and triggers a warning. Thanks for the pointer. I already wondered why some people already use '''raise Exception, blah blah''' I currently attempt to rewrite the

Re: Patch for webhelpers/pagination/orm.py to raise proper exception

2007-01-30 Thread Ben Bangert
On Jan 30, 7:11 am, Christoph Haas [EMAIL PROTECTED] wrote: The webhelpers.pagination.paginate call fails miserably if an object is given as the first parameter that is a proper SQLObject class or SQLAlchemy query. The error message was You shouldn't have this which doesn't tell the user what