On Sat, Jun 16, 2012 at 1:51 AM, Ashraf Mansour <[email protected]>wrote:
> Thank you Anthony for the elegant solution. You made it possible that both > ( jquery and angular ) live together. > > I was thinking about switching totally from jquery to angular. > > is this a good strategic move? > > I would think it is a good move. See here for a neat comparison: http://paulhammant.com/2012/03/03/replacing-jquery-with-angular/ > > On Friday, June 15, 2012 6:24:13 PM UTC+3, Anthony wrote: >> >> Angular is a client-side framework, so you should be able to make it work >> with web2py. Have web2py serve the initial page (i.e., the Angular >> application), and then the Angular app would make Ajax requests to web2py. >> >> Using Angular for the views, one thing you'll miss out on is the way >> web2py automatically generates the HTML for things like forms and grids >> without you having to hand code them. To take advantage of web2py for those >> things, you could have web2py generate some of the Angular views using >> web2py templates. In that case, though, you'll have to deal with the fact >> that both Angular and web2py use {{ }} as template delimiters. However, I >> think you can configure Angular to us alternative delimiters (you can do so >> in web2py as well, but it's tricky). You could also create a special web2py >> tag that generates an Angular curly brace output: >> >> class ng(DIV): >> tag = '' >> def xml(self): >> return '{{%s}}' % super(ng, self).xml() >> >> Then in a web2py template: >> >> {{=DIV(ng('myvariable'))}} >> >> would produce an Angular template with: >> >> <div>{{myvariable}}</div> >> >> Anthony >> > On Fri, Jun 15, 2012 at 9:40 AM, Massimo Di Pierro < [email protected]> wrote: > > On Saturday, 19 May 2012 14:34:07 UTC-5, Pystar wrote: > >> I am really curious at what features to expect in web2py version 2.0 and >> when it would be released? Anyone? Massimo? > > > Here is a partial list: > - request.args(0,default=0, cast=int, url_onerror=URL(...)), thanks Anthony > - generic.ics > - generic.map > - geodal and spatialite, thanks Denes and Fran > - auth.enable_record_versioning(...db=...) > - db.table._before_insert, _after_insert, _before_update, _after_update, > _befor\ > e_delete. _after_delete > - db(...).update_naive(...) same as update but ignores > table._before_update and\ > table._after_update > - SQLFORM.smartdictform > I'm interested in hearing more about SQLFORM.smartdictform. Can you show me example usage? Thanks > - form.add_button(value,link) > - db.table.insert(uploadfield=open(....)) > - DAL BIGINT support and DAL(...,bigint_id=True) > - auth.settings.everybody_group_id > - ace text web editor in admin > - -E -b -L options for scheduler > - coffee and less support in response.fields, thanks Sam Sheftel > - ldap certificate support > - pg8000 postgresql driver support > - portable html.py > - <i> to <em> in markmin > - new admin pages: manage_students, bulk_regsiter, and progress reports > - @cache('%(name)s%(args)s%(vars)s',5) and cache.autokey > - added tox.ini, thanks Marc > - better mongodb support (still experimental) thanks Mark > - web2py.py --run_system_tests, thanks Marc Abramowitz > - teradata adapter, thanks Andrew Willimott > - experimental Sybase Adapter > - added db.table.field.avg() > - db(db.a)._update(name=db(db.b.a==db.a.id).nested_select(db.b.id)) > - new layout based on bootstrap and bootswatch > - Ukrainian translations, thanks Vladyslav Kozlovskyy > - Romanian translation for welcome, thanks ionel > - Romanian translation for welcome, thanks ionel > - support for mercurial 2.6, thanks Vlad > - GAE projections > - SQLFORM.grid(groupby=...') > - db.table.field.filter_in, filter_out >

