[web2py] Re: DAL select id in list

2014-05-17 Thread lucas
thanx anthony. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" g

Re: [web2py] web2py conference - online talks

2014-05-17 Thread Anthony
Note, there's also a potentially suprerior alternative to Underscore.js called Lo-Dash , which can be used as a drop-in replacement (though has additional features as well). Anthony On Saturday, May 17, 2014 5:22:06 PM UTC-4, Carlos Zenteno wrote: > > I played with a couple

Re: [web2py] web2py conference - online talks

2014-05-17 Thread Carlos Zenteno
I played with a couple of the ractive.js tutorials and it looks nice to speed up DOM manipulation specially in phones. Also found Cordova which seems awesome to access all the phone features. Can anybody tell me a little about underscore.js? Seems like a copy of jQuery or Prototype but withou

[web2py] Re: Live data

2014-05-17 Thread Jesse Ferguson
Brilliant! I skipped that part of the book thinking it was about loading in java helpers or extending web2py somehow... Just read the LOAD docs and i think it is exactly what I needed. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] Re: Live data

2014-05-17 Thread Niphlod
start with LOAD(..., timeout=60*1000, times='infinity') On Saturday, May 17, 2014 4:15:14 AM UTC+2, Jesse Ferguson wrote: > > I'm building a single page app with a lot of data from the database > displayed, I would like to have it auto-refresh or update the tables with > the newest informa

[web2py] Re: Setting up wiki is not as simple as stated in default.py

2014-05-17 Thread Anthony
> I thought I was administrator at the time and it didn't automatically > set up those groups. > You have to be logged into the admin app at the time. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://c

[web2py] Re: Setting up wiki is not as simple as stated in default.py

2014-05-17 Thread Rufus
Thanks for the tips Anthony! After I added the groups wiki_editor and wiki_author and put my signon into those groups, the wiki started working (it appears I have a bit more to learn about how the wiki works now that it's working), but I thought I was administrator at the time and it didn't auto

Re: [web2py] web2py conference - online talks

2014-05-17 Thread António Ramos
Also client side code enables apps to cache when offline. See pouchdb for example Em 17/05/2014 16:54, "weheh" escreveu: > I like the idea of serving only small JSON snips to the client. Yah, I'm > beginning to see how it could work better/faster. > > -- > Resources: > - http://web2py.com > - htt

Re: [web2py] web2py conference - online talks

2014-05-17 Thread weheh
I like the idea of serving only small JSON snips to the client. Yah, I'm beginning to see how it could work better/faster. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Re

[web2py] Re: Component error SQLFORM with record

2014-05-17 Thread LaDarrius Stewart
FYI took your concept and changed it around a bit for anyone else that might have been trying. links = [lambda row: BUTTON('Profile',_onclick="ajax('%s', [], 'ab');" % URL('default', 'companypage.load', args=[row.id]), **{'_data-toggle': 'collapse', '_data-target' : '#ab', '_class' : 'accordion-

[web2py] Re: Component error SQLFORM with record

2014-05-17 Thread LaDarrius Stewart
Thank you Anthony this is much better greatly appreciated. On Saturday, May 17, 2014 9:27:35 AM UTC-5, Anthony wrote: > > It's still not quite clear what's going on, but this approach seems > unnecessarily indirect (i.e., copying the row ID to an input field, and > then using the ajax function t

[web2py] Re: DAL select id in list

2014-05-17 Thread Anthony
db(db.customers.id.belongs([4,101,14,3,12,19,98])).select() On Saturday, May 17, 2014 6:57:51 AM UTC-4, lucas wrote: > > how do i do something like: > > db(db.customers.id in [4,101,14,3,12,19,98]).select() > > ? > > thanx in advance, lucas > -- Resources: - http://web2py.com - http://web2py.co

Re: [web2py] web2py conference - online talks

2014-05-17 Thread Anthony
> > In general, when looking at angular.js and ractive.js doc, it seems like > there's a push to move more functionality to the client side. This seems > counterproductive for a couple of reasons. The clients are far less capable > than the server ... think cell phone ARM processor with a few M

[web2py] Re: Component error SQLFORM with record

2014-05-17 Thread Anthony
It's still not quite clear what's going on, but this approach seems unnecessarily indirect (i.e., copying the row ID to an input field, and then using the ajax function to send that value to a function that returns a component, which then calls another function to produce a form). Instead, why

Re: [web2py] web2py conference - online talks

2014-05-17 Thread weheh
Massimo, thanks for the pointer to ractive.js and comments about Angular.js. I still don't see much more I need that isn't provided by web2py components and some simple js scripts or jQuery routines. Angular somehow didn't pass my sniff test. Seemed like it was going to get out of hand too qui

[web2py] Re: Setting up wiki is not as simple as stated in default.py

2014-05-17 Thread Anthony
>From the book: At this point no page has been created and in order to create pages you > must be logged-in and you must be member of a group called "wiki_editor" or > "wiki_author". If you are logged-in as administrator the "wiki_editor" > group is created automatically and you are made a memb

[web2py] Re: Component error SQLFORM with record

2014-05-17 Thread LaDarrius Stewart
FYI Inside the new method i added i tried a=int(request.vars.id) to see if I could produce the same list error and it does as well. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

[web2py] Re: Component error SQLFORM with record

2014-05-17 Thread LaDarrius Stewart
Thanks Massimo for shining light on the situation. After your reply i went ahead and tried b = int(a) and received an error. TypeError: int() argument must be a string or a number, not \'list\'\n' So after that I started fresh with a new database since the previous database had imported data. I

[web2py] DAL select id in list

2014-05-17 Thread lucas
how do i do something like: db(db.customers.id in [4,101,14,3,12,19,98]).select() ? thanx in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues)

[web2py] Re: Custom login form error

2014-05-17 Thread 'sasogeek' via web2py-users
So do I return response.flash or I return session.flash? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscr