web2py 2.4.2 is OUT

730 views
Skip to first unread message

Massimo Di Pierro

unread,
Mar 3, 2013, 10:38:19 PM3/3/13
to web...@googlegroups.com
The book will be out shortly describing this version.
I am sure there are some corners to iron but I could not wait any longer.

Changelog:

- 2D GEO API: geoPoint, getLine, geoPolygon
- support for 'json' field type in DAL
- schema export with db.as_json/as_xml, thanks Alan
- graph representation of models
- admin based on bootstrap, thanks Paolo
- support for semantic versioning
- new bootstrap based admin, thanks Paolo
- improved scheduler (and change in scheduler field names), thanks Niphlod
- graphiz support added to adm, thanks Jose
- on_failure in grid
- db.table.field.abs()
- better wiki
- geoPoint, getLine, geoPolygon
- better reporting of 500 ajax errors
- better grid
- improved/fixed mongodb support
- improved parse_as_rest(patterns=...), thanks Denes
- improved IMAP DAL support, thanks Alan
- improved security when cookies in sessions
- Row.as_xml, as_json, as_dict, as_yaml thanks Alan
- smarted custom_import
- setup-ubuntu-12-04-redmine-unicorn-web2py-uwsgi-nginx.sh
- added support for motor and pulsar servers, thanks Niphlod
- added json-rpc2 support
- added pypyodbc.py driver
- allow auth.settings.ondelete='CASCADE'
- new syntax IS_EXPR(lambda value: ...
- using google for QR codes (although Graph API will be deprecated in 2015)
- upgraded fpdf to 1.7.1
- bug fixes (including issues with calendar.js and archive tables)

Alfonso de la Guarda

unread,
Mar 3, 2013, 11:13:00 PM3/3/13
to web...@googlegroups.com
Hi!

Great job!

Looks faster, tomorrow I have to show a project based on web2py and
take the opportunity to do so with this new version... i will give
some datails later...


Saludos,

--------------------------------
Alfonso de la Guarda
Twitter: @alfonsodg
Redes sociales: alfonsodg
Telef. 991935157
1024D/B23B24A4
5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Alec Taylor

unread,
Mar 3, 2013, 11:17:40 PM3/3/13
to web...@googlegroups.com
Looking good, especially the new serialisation and 2d geospatial

Monte Milanuk

unread,
Mar 4, 2013, 12:09:22 AM3/4/13
to web...@googlegroups.com
So... running 2.3.2 on Windows 7 and Ubuntu 12.10... on both when I click the 'Check for Upgrades' button in the admin dashboard, I get a message 'Unable to check for upgrades' that replaces the button, and is a link to web2py.com.

Is that the expected behavior?

黄祥

unread,
Mar 4, 2013, 12:46:34 AM3/4/13
to web...@googlegroups.com
no, same like in the newest version when click check for upgrade have the same result :

Version 2.4.2 stable (2013-03-04 03:26:21)

if you want to try newest version, please download it from website.

Massimo Di Pierro

unread,
Mar 4, 2013, 1:58:19 AM3/4/13
to web...@googlegroups.com
That is not the expected behavior.
I will check what is going on but the more info you can provide the better.

Paolo valleri

unread,
Mar 4, 2013, 2:50:31 AM3/4/13
to web...@googlegroups.com
Good works, I will try it later today.
I don't know if you have already discussed about that, just in case, I would suggest to start the use of git tags so it will be easier to update web2py and keep track of the different releases.

Paolo

Niphlod

unread,
Mar 4, 2013, 4:16:40 AM3/4/13
to web...@googlegroups.com
until tags are pushed to the main repo, tags are here ... in the evening I'll add the 2.4.2 tag.

Phyo Arkar

unread,
Mar 4, 2013, 7:13:09 AM3/4/13
to web...@googlegroups.com
Never update to new version , ever , before you are about to show something to your client, or Boss.

I had learnt several lessons , in hard ways..

Make sure everything is safe before you do.

Alan Etkin

unread,
Mar 4, 2013, 8:10:17 AM3/4/13
to web...@googlegroups.com
> using google for QR codes (although Graph API will be deprecated in 2015)

What to do then? Is there any other core feature that relies in Graph API?

Niphlod

unread,
Mar 4, 2013, 9:26:31 AM3/4/13
to web...@googlegroups.com
multiple options:
- someone will make available a service
- you make your own QRs (plenty of libs out there)

samuel bonilla

unread,
Mar 4, 2013, 9:33:50 AM3/4/13
to web...@googlegroups.com
+10

good job.

Monte Milanuk

unread,
Mar 4, 2013, 9:45:48 AM3/4/13
to web...@googlegroups.com
Well, I get the same thing as the other poster:

Version 2.3.2 (2012-12-17 15:03:30) stable

only I don't have 2.4.2.  Same laptop, dual-booting Windows 7 Pro and Ubuntu 12.10 desktop, python 2.7.3 on both... running web2py from a folder in the user's home directory via the built-in web server (rocket 1.2.6) on the localhost (127.0.0.1) interface.  Not sure what else would be common between the two besides my router/firewall and ISP... never been a problem before.

Massimo Di Pierro

unread,
Mar 4, 2013, 11:11:27 AM3/4/13
to web...@googlegroups.com
we are using hg tags, git tags, and semantic versioning.

Niphlod

unread,
Mar 4, 2013, 11:13:34 AM3/4/13
to web...@googlegroups.com
git tags are not published https://github.com/web2py/web2py/tags ..... did you issue git push --tags ?

Niphlod

unread,
Mar 4, 2013, 3:07:46 PM3/4/13
to web...@googlegroups.com
ps: version check fails because it expects

version (date) stable/dev

instead of the current format

Version 2.4.2 (stable) 2013-03-04 03:26:21

Tito Garrido

unread,
Mar 4, 2013, 7:16:42 PM3/4/13
to web...@googlegroups.com
Is SQLFORM.grid translatable now? :)

Thanks!

Tito


--
 
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______

Derek

unread,
Mar 5, 2013, 12:27:09 PM3/5/13
to web...@googlegroups.com
Tried to 'graph models' on a windows machine, old apps get the error:

invalid function (appadmin/graph_model)

Created a new app from the wizard, clicked 'graph models'

pygraphviz library not found

Tried to install pygraphviz on Windows (after installing Graphviz), get this message:

Your Graphviz installation could not be found.

And the reason why:

3) You are using Windows
   There are no PyGraphviz binary packages for Windows but you might be
   able to build it from this source.  See
   http://networkx.lanl.gov/pygraphviz/reference/faq.html

So, can we have it disable the 'graph models' if you are running on Windows?

Thanks!

LightDot

unread,
Mar 5, 2013, 12:48:27 PM3/5/13
to web...@googlegroups.com
I know of some users that made it work on windows, so it wouldn't be enough to just check the OS. Also, if the button is hidden in case the lib import fails, then new users would never see it and be reminded that they can install the library and use it.

In both cases, the button serves a cause, IMHO.

Regards,
Ales

Derek

unread,
Mar 5, 2013, 2:16:34 PM3/5/13
to web...@googlegroups.com
Eh, I'd rather have it not shown unless it actually does something. It's poor software design if you have a button which just gives you an error message.

Paolo Caruccio

unread,
Mar 5, 2013, 3:21:55 PM3/5/13
to web...@googlegroups.com
I solved in this way: https://groups.google.com/d/msg/web2py/6obMbP6OY6A/PAI5wStWFIQJ

Maybe it helps you too.

Tim Richardson

unread,
Mar 5, 2013, 5:57:50 PM3/5/13
to web...@googlegroups.com


On Tuesday, 5 March 2013 07:07:46 UTC+11, Niphlod wrote:
ps: version check fails because it expects

version (date) stable/dev

instead of the current format

Version 2.4.2 (stable) 2013-03-04 03:26:21

Is there a quick fix for this (ie a change to 2.3.2)?

Ralo Tannahill

unread,
Mar 5, 2013, 6:21:03 PM3/5/13
to web...@googlegroups.com
+1 for web2py!!

In the admin interface I can see:

Version 2.4.2 stable (2013-03-04 03:26:21)

Running on %s

%s should be information about the server type, version..., right? I'm using Centos 6, nginx+uwsgi. Maybe web2py expects some wsgi variables and nginx+wsgi locks them? were can I look for more info?

Regards

Tim Richardson

unread,
Mar 5, 2013, 6:41:22 PM3/5/13
to web...@googlegroups.com
Thanks for 2.4.2. I manually updated on Windows and my apps are all working (although for a couple I needed to delete the scheduler tables and update some queries to new field names, where I had things to monitor jobs ... I look forward to using the new scheduler features).

Niphlod

unread,
Mar 6, 2013, 4:22:52 AM3/6/13
to web...@googlegroups.com
there's a scheduler monitor plugin too.

Alec Taylor

unread,
Mar 6, 2013, 5:21:24 AM3/6/13
to web...@googlegroups.com
For Windows PyDot is the native Python solution; which unlike
PyGraphViz; doesn't require C extensions built.

Will have a go at abstracting the implementation so either can be used
first chance I get (probably not starting for another 7 days)

António Ramos

unread,
Mar 6, 2013, 5:35:41 AM3/6/13
to web...@googlegroups.com
Why dont you use a javascript library for the graph? 
This way you dont have problems with with windows/linux 



2013/3/6 Alec Taylor <alec.t...@gmail.com>

Phyo Arkar

unread,
Mar 6, 2013, 7:23:58 AM3/6/13
to web...@googlegroups.com
D3.js is far better than pydot , pygraphviz .

Alec Taylor

unread,
Mar 6, 2013, 7:34:51 AM3/6/13
to web...@googlegroups.com
TBH: They're all lacking.

The best option would be to get model import with wwwsqldesigner working:
https://github.com/ondras/wwwsqldesigner

Using just JavaScript, it currently allows you to visually design your
database schemas.

At the moment it only supports export to web2py DAL; but if someone
can add in import from web2py that would be the optimal solution :)

Paolo Caruccio

unread,
Mar 6, 2013, 9:06:30 AM3/6/13
to web...@googlegroups.com
It uses javascript libraries and it is simple to implement.
I didn't tested extensively so please report your feedback. 

Adnan Smajlovic

unread,
Mar 6, 2013, 11:46:55 AM3/6/13
to web...@googlegroups.com
Thanks for a new version. Will upgrade production tonight or tomorrow morning :)


--
 


Marco Túlio Cícero de M. Porto

unread,
Mar 6, 2013, 1:54:47 PM3/6/13
to web...@googlegroups.com
When using the "New application wizard", cannot add new input row for new tables at "Step 2: Tables" neither by clicking on the plus signal nor by pressing ENTER. 

Same happens on "Step 3: Fields for table "auth_user" (1 of 1)" and on "Step 4: Pages".

Besides that, seems to be working properly...

Thanks for the new version!

Cheers!
Marco Tulio



2013/3/6 Adnan Smajlovic <adnan.s...@gmail.com>
--
 
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
[]'s
Marco Tulio

Fernando Lucas

unread,
Mar 6, 2013, 2:26:52 PM3/6/13
to web...@googlegroups.com
I had the same problem. In the Wizard 2.4.2 the buttons [+] end [-] don't work.

Thanks, thanks for the new version.
Fernando Lucas



2013/3/6 Marco Túlio Cícero de M. Porto <mtcp...@gmail.com>

Paolo Caruccio

unread,
Mar 6, 2013, 3:50:41 PM3/6/13
to web...@googlegroups.com
just submitted a proposal patch on issue tracker https://code.google.com/p/web2py/issues/detail?id=1358

Massimo Di Pierro

unread,
Mar 10, 2013, 10:31:04 AM3/10/13
to web...@googlegroups.com
This should now be fixed. Can you check?

Marco Túlio Cícero de M. Porto

unread,
Mar 10, 2013, 2:20:01 PM3/10/13
to web...@googlegroups.com
Hi,

I just tested and it still doesn't work.

Windows XP
Python 2.7.3
Web2py - Current (2.4.2 2013-03-04 03:26:21)  (Stable)
Browsers: Internet Explorer 8, Chrome (Version 25.0.1364.160 m), Firefox (19.0.2).

I haven't tested on other versions of Windows (such as Vista and 7 for ex) and also on Linux, once I'm not at home. But as soon as I can I'll try on other OS.

Cheers,
Marco Tulio


2013/3/10 Massimo Di Pierro <massimo....@gmail.com>
--
 
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
[]'s
Marco Tulio

Monte Milanuk

unread,
Mar 10, 2013, 3:27:12 PM3/10/13
to web...@googlegroups.com
Not working here, in either Win7 / Chrome or Ubuntu 12.10 / Chromium.


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/74_Ye8RO54E/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

Luc Chase

unread,
Apr 8, 2013, 1:35:14 AM4/8/13
to web...@googlegroups.com
+ and - definitely don't work on 

(2, 4, 6, 'stable', datetime.datetime(2013, 4, 6, 17, 37, 38))

--
Luc.

Marco Túlio Cícero de M. Porto

unread,
Apr 8, 2013, 8:34:09 AM4/8/13
to web...@googlegroups.com
worked for me


2013/4/8 Luc Chase <l...@lucchase.com>
--
 
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
[]'s
Marco Tulio
Reply all
Reply to author
Forward
0 new messages