web.py 0.34 is ready for release

9 views
Skip to first unread message

Anand Chitipothu

unread,
Mar 11, 2010, 1:41:14 AM3/11/10
to webpy
web.py 0.34 is ready for release.

Changes:

* fix: boolen test works even for sqlite results (tx Emyr Thomas for the idea)
* fix issue with loop.xx variables in templetor (Bug#476708)
* hide unwanted tracebacks in debugerror
* display correct template line numbers in debugerror
* new utilities: counter, safeiter, safewrite, requeue, restack (by
Aaron Swartz)
* various form.py fixes and improvements
* automatically escape % characters in the db query (Bug#516516)
* fix non-deterministic template order (Bug#490209)
* attachment support for web.sendmail (tx gregglind)
* template.py optimizations and extension support

I'm quite excited about the template improvements and extension support.

Please test this with your software and let me know if something breaks.

Anand

Greg Milby

unread,
Mar 11, 2010, 7:04:39 AM3/11/10
to we...@googlegroups.com
re: automatically escape % characters in the db query
is this for a specific application, or everything (asking/wasn't specified)
-----------------------
Visit My Sites!
http://1-4-u.info | Don't send insanely long links!
www.syrbot.com | My Site
www.syrbotwebdesign.com | My Site New Design (Under Construction)
www.attackr.com | Latest Blog Posts
www.superantispyware.com/superantispyware.html?rid=3971 Remove All The Spyware - Not Just The Easy Ones!




--
You received this message because you are subscribed to the Google Groups "web.py" group.
To post to this group, send email to we...@googlegroups.com.
To unsubscribe from this group, send email to webpy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webpy?hl=en.


Anand Chitipothu

unread,
Mar 11, 2010, 8:45:01 AM3/11/10
to we...@googlegroups.com
On Thu, Mar 11, 2010 at 5:34 PM, Greg Milby <gmi...@gmail.com> wrote:
> re: automatically escape % characters in the db query
> is this for a specific application, or everything (asking/wasn't specified)

I'm not sure what you mean by specific to an application.

In web.py 0.33, the following query would fail.

>>> db.query("SELECT * FROM thing WHERE key LIKE 'foo%'")
ERR: SELECT * FROM thing WHERE key LIKE 'foo%'
Traceback (most recent call last):
...
IndexError: list index out of range

The work around was to escape % with %%.

>>> db.query("SELECT * FROM thing WHERE key LIKE 'foo%%'")
0.22 (1): SELECT * FROM thing WHERE key LIKE 'foo%'
<web.utils.IterBetter instance at 0x16676e8>

In 0.34 this has been fixed.

>>> db.query("SELECT * FROM thing WHERE key LIKE 'foo%'")
0.0 (1): SELECT * FROM thing WHERE key LIKE 'foo%'
<web.utils.IterBetter instance at 0x1667580>

%% works still to provide backward-compatibility.

>>> db.query("SELECT * FROM thing WHERE key LIKE 'foo%%'")
0.0 (1): SELECT * FROM thing WHERE key LIKE 'foo%'
<web.utils.IterBetter instance at 0x16676e8>

Does this answer your question?

Greg Milby

unread,
Mar 11, 2010, 9:36:05 AM3/11/10
to we...@googlegroups.com
thank for answering so thoroughly.
i should have said is this specific to a specific database type (or is it type-agnostic)?
after reading you answers, i think it's db-agnostic/generic for sql.  (if i'm reading it correctly)
Thanks again,
Greg

-----------------------
Visit My Sites!
http://1-4-u.info | Don't send insanely long links!
www.syrbot.com | My Site
www.syrbotwebdesign.com | My Site New Design (Under Construction)
www.attackr.com | Latest Blog Posts
www.superantispyware.com/superantispyware.html?rid=3971 Remove All The Spyware - Not Just The Easy Ones!




--

kevin

unread,
Mar 11, 2010, 3:11:07 PM3/11/10
to we...@googlegroups.com
thanks for the release!

geekbuntu

unread,
Mar 19, 2010, 1:39:21 PM3/19/10
to web.py
i swear i saw .034 download link when i first read this - where'd it
go? i was going to download it and test Anand's benchmarking results
for templator :)

anyone have the link? bueller? bueller?

On Mar 11, 4:11 pm, kevin <kevincastigli...@gmail.com> wrote:
> thanks for the release!
>

> On Wed, Mar 10, 2010 at 10:41 PM, Anand Chitipothu <anandol...@gmail.com>wrote:
>
>
>
> > web.py 0.34 is ready for release.
>
> > Changes:
>
> > * fix: boolen test works even for sqlite results (tx Emyr Thomas for the
> > idea)
> > * fix issue with loop.xx variables in templetor (Bug#476708)
> > * hide unwanted tracebacks in debugerror
> > * display correct template line numbers in debugerror
> > * new utilities: counter, safeiter, safewrite, requeue, restack (by
> > Aaron Swartz)
> > * various form.py fixes and improvements
> > * automatically escape % characters in the db query (Bug#516516)
> > * fix non-deterministic template order (Bug#490209)
> > * attachment support for web.sendmail (tx gregglind)
> > * template.py optimizations and extension support
>
> > I'm quite excited about the template improvements and extension support.
>
> > Please test this with your software and let me know if something breaks.
>
> > Anand
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "web.py" group.
> > To post to this group, send email to we...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > webpy+un...@googlegroups.com <webpy%2Bunsu...@googlegroups.com>.

Gregg Lind

unread,
Mar 19, 2010, 3:37:09 PM3/19/10
to web.py
Anand!

Thanks for release thing. Maybe I should have poked a little
earlier.

Also, can you tag it in github? Did you decide not to use my patch to
allow filepaths as attachments?

G.

Greg Milby

unread,
Mar 19, 2010, 4:57:14 PM3/19/10
to we...@googlegroups.com
does this mean it 'is' out or 'not'? :)
if so - a link please ~
-----------------------
Visit My Sites!
http://1-4-u.info | Don't send insanely long links!
www.superantispyware.com/superantispyware.html?rid=3971 Remove All The Spyware - Not Just The Easy Ones!



To unsubscribe from this group, send email to webpy+un...@googlegroups.com.

ambre

unread,
Mar 20, 2010, 3:33:49 AM3/20/10
to web.py
Many thanks for the release.
I tested 0.34 with my software and it looks good.

Erwin

W. Martin Borgert

unread,
Mar 20, 2010, 6:01:08 AM3/20/10
to we...@googlegroups.com
On 2010-03-11 12:11, Anand Chitipothu wrote:
> web.py 0.34 is ready for release.

Just curious: When do you plan to release 0.34?
There seems to be only one open bug: 119356.

> Changes:
...

Anand Chitipothu

unread,
Mar 20, 2010, 1:50:01 PM3/20/10
to we...@googlegroups.com
> Also, can you tag it in github?  Did you decide not to use my patch to
> allow filepaths as attachments?

I decided to use it and pushed your patch.

Anand

Reply all
Reply to author
Forward
0 new messages