[web2py] Could you write the code for RESTFUL api used in the web2py app controller and in the phonegap view?

2016-03-27 Thread Rgb Aston
Please don't send me the link of the documentation. I seriously tried it but it's not working. Please write the codes finally as I have given up struggling with it. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: How did you implement chat system in your app? How's my idea?

2016-03-27 Thread pbreit
Chat can be hard. You might check out sockets: https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py And: https://groups.google.com/forum/#!topic/web2py/RFVnoCLyyjs https://groups.google.com/forum/#!topic/web2py/ABaQw0TYUsc Web2py is my "go to" framework but if you

[web2py] mouse scrolling problem on web2py pages with (ubuntu 14.04) firefox 44.0.2

2016-03-27 Thread Hrobjartur Thorsteinsson
Thank u for confirming the issue. I should be able to identify the culprit u using browser debugger. Will post back if I find the css or js line. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] [Newbie] Generally accepted method for a Select statement

2016-03-27 Thread Anthony
Your choice. If you want all records and all fields, the first is probably more common, but either way is fine. 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

[web2py] How did you implement chat system in your app? How's my idea?

2016-03-27 Thread Rgb Aston
So I have created a db table with name 'messages' and fields= message, sender, receiver,date_time where sender is auth.user_id by default and unchangeable. date_time represents when the message was sent out. So when one user opens his message view he can see all his messages (designed such a

[web2py] mouse scrolling problem on web2py pages with (ubuntu 14.04) firefox 44.0.2

2016-03-27 Thread Anthony
I think it's a problem with the new stupid.css - same problem in Firefox on Windows. -- 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

[web2py] Re: row.as_json confussion

2016-03-27 Thread Anthony
On Sunday, March 27, 2016 at 10:31:37 PM UTC-4, Alfonso Serra wrote: > > Sorted out with: > rows = db(db.mytable).select(*[db.mytable[f] for f in > db.mytable.fields[0:5]) > Yes, .select() takes field objects, not just field names. Iterating over the table object itself yields its field

[web2py] Re: row.as_json confussion

2016-03-27 Thread Alfonso Serra
Sorted out with: rows = db(db.mytable).select(*[db.mytable[f] for f in db.mytable.fields[0:5]) -- 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

[web2py] Re: DHTMLX javascript library

2016-03-27 Thread Henk huisman
Hi me again, It appears that the Timeline functionality that I was looking for is only included in the DHTMLX Pro Commercial Version which costs 490$. I have been looking into a lot of products for functionality to present resources with a scheduler/ timeline. So far I have only found

[web2py] Re: I get an error whenever I try to send an email from within web2py that doesn't seem related to the

2016-03-27 Thread Valdeck Rowe
Thanks, that helped. The message variable was causing the issue. I used attachment when I was trying to track down the payload variable. On Saturday, March 26, 2016 at 4:10:14 PM UTC-5, Anthony wrote: > > What is the value of "message", and why are you passing an empty list as > the

[web2py] Re: DHTMLX javascript library

2016-03-27 Thread Henk huisman
The view looks now as follows: {{extend 'layout.html'}} Example of scheduler scheduler.config.xml_date="%Y-%m-%d %H:%i"; scheduler.init('scheduler_here', new Date(),"month");

[web2py] Re: sidebar

2016-03-27 Thread 黄祥
pls try in your view : {{right_sidebar_enabled = True}} {{block right_sidebar}} {{include 'default/right_sidebar.html'}} {{end}} {{extend 'layout.html'}} best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] sidebar

2016-03-27 Thread Jerry Liu
Hello, Is there a way I can customize my sidebar at one place and use it on all views? Now I have my sidebar customized and displayed on index.html, but how can I let all other my views include the same sidebar? Any help? -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: In the dropdown here how to remove Profile?

2016-03-27 Thread 黄祥
in models : auth.settings.actions_disabled = ['profile'] custom_auth_table = db[auth.settings.table_user_name] custom_auth_table.first_name.readable = False custom_auth_table.last_name.readable = False custom_auth_table.first_name.writable = False custom_auth_table.last_name. writable = False

[web2py] Re: Possible Bug: Custom form rendering of auth.profile not working.

2016-03-27 Thread Stuart Rolinson
Thank you Anthony. Once the process() is removed it works correctly. On Sunday, March 27, 2016 at 9:43:22 AM UTC-7, Stuart Rolinson wrote: > > I think I may have found a bug when rendering custom auth forms using > SQLFORM. > When the auth profile form is rendered using form.custom.begin - >

[web2py] row.as_json confussion

2016-03-27 Thread Alfonso Serra
On an interactive console running: rows = db(mytable).select() rows[0].as_json() I get the expected result, an unicode string containing the row representation with the right values. On a controller or view i get a complete different thing: The result is a dictionary with a single ['_extra']

[web2py] Possible Bug: Custom form rendering of auth.profile not working.

2016-03-27 Thread Anthony
You cannot call .process() on an Auth form, as the Auth method already does that. 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

[web2py] Possible Bug: Custom form rendering of auth.profile not working.

2016-03-27 Thread Stuart Rolinson
I think I may have found a bug when rendering custom auth forms using SQLFORM. When the auth profile form is rendered using form.custom.begin - form.custom.end the hidden fields are rendered incorrectly causing the form not submit correctly. The following code works correctly: *Model*

[web2py] Re: In the dropdown here how to remove Profile?

2016-03-27 Thread Jacob Devin
also I want to remove the fields first_name and last_name. How do I do that? On Sunday, March 27, 2016 at 9:57:27 PM UTC+5:30, Jacob Devin wrote: > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] In the dropdown here how to remove Profile?

2016-03-27 Thread Jacob Devin
-- 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" group. To

[web2py] Re: Upload file using the LOAD (....., ajax = True)

2016-03-27 Thread Mike Constabel
Hello Massimo, Am Sonntag, 27. März 2016 17:18:42 UTC+2 schrieb Massimo Di Pierro: > > Hello Mike, > > could you explain your patch to web2py-developers? it is quite extensive. > > I think you misunderstood me (or I didn't explain it well). This "patch" is only a summary of what I found in

[web2py] Re: Djano channels

2016-03-27 Thread Massimo Di Pierro
The fact is webrtc is pure JS. It is from client to client. Wether you use Flask or Django or web2py or PHP or ASP to serve pages is irrelevant. Massimo On Sunday, 27 March 2016 10:05:06 UTC-5, Ron Chatterjee wrote: > > https://m.youtube.com/watch?v=uBV_KKGzNqQ > > Found that link that talks

[web2py] Re: web2py Job and Recruitment site

2016-03-27 Thread Massimo Di Pierro
Congratulations! well done. On Saturday, 26 March 2016 07:56:11 UTC-5, Francisco Tomé Costa wrote: > > Hi, > At https://www.emprego.pt we've developed a job posting site, where > candidates can create their professional profile (like LinkedIn) > https://www.emprego.pt/apresentacao and

[web2py] Re: beginners to Web2PY web framework? check this out - your first Web2PY db in 34 minutes 15 seconds

2016-03-27 Thread Massimo Di Pierro
Fantastic! On Saturday, 26 March 2016 15:05:20 UTC-5, Literate Aspects wrote: > > > https://www.udemy.com/web-engineering-with-python-and-web2py/learn/v4/t/lecture/3067796 > > This is the actual course at Lecture # 9. Start from the beginning and > enjoy. This manner of instruction is very

[web2py] Re: Upload file using the LOAD (....., ajax = True)

2016-03-27 Thread Massimo Di Pierro
Hello Mike, could you explain your patch to web2py-developers? it is quite extensive. On Saturday, 26 March 2016 13:00:25 UTC-5, Mike Constabel wrote: > > Hello all and Anthony, > > Am Freitag, 20. November 2015 07:52:05 UTC+1 schrieb Bart: >> >> Hi Anthony, >> >> This solution you mention is,

[web2py] Re: model define_table select

2016-03-27 Thread Massimo Di Pierro
Correction. replace IS_IN_DB(db_region(*db_region.post.state_id==db_region.county.state_id*) with IS_IN_DB(db_region(*db_region.county.state_id == **request.vars.state_id*) On Sunday, 27 March 2016 10:16:13 UTC-5, Massimo Di Pierro wrote: > > replace > >

[web2py] Re: model define_table select

2016-03-27 Thread Massimo Di Pierro
replace IS_IN_DB(db_region(*db_region.post.state_id==db_region.county.state_id*) with IS_IN_DB(db_region(*db_region.post.state_id==request.vars.state_id*) On Saturday, 26 March 2016 12:24:52 UTC-5, lucas wrote: > > hello one and all, > > ok, under the DAL model, say i have a county and zip

[web2py] mouse scrolling problem on web2py pages with (ubuntu 14.04) firefox 44.0.2

2016-03-27 Thread Hrobjartur Thorsteinsson
Can anyone with firefox 44.0.2 (default with ubuntu 14.04) help verify a potential bug: I get broken mouse wheel scrolling behavior on web2py with the default ubuntu 14.04 firefox v44.0.2. The mouse wheel scrolling requires many full wheel rotations to clear a single line of text. Those with

[web2py] web2py rest api endpoint gives invalid path output

2016-03-27 Thread Prakhar Agrawal
http://stackoverflow.com/questions/36235871/web2py-rest-api-endpoint-gives-invalid-path-output Can someone please look at the question posted. I have been struggling hard to get this right. Also I have observed this to be far rare "invalid path". Also can someone please direct me to where I can

[web2py] Re: beginners to Web2PY web framework? check this out - your first Web2PY db in 34 minutes 15 seconds

2016-03-27 Thread Eamonn
This is a really nice course and I hope it helps people gain an understanding of web dev and web2py. One thing to note, this course is over 12 months old without an update and has *not *evolved further. Content is good, but there is no support! On Saturday, 26 March 2016 20:05:20 UTC,

[web2py] Re: What are the platforms for free web hosting of web2py apps?

2016-03-27 Thread Eamonn
Just to follow up on Mirek;s post, the url is https://www.alwaysdata.com simple typo, seems like a good hosting solution. On Sunday, 21 February 2016 06:38:46 UTC, Rgb Aston wrote: > > Which one's the best to go for? > -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] [Newbie] Generally accepted method for a Select statement

2016-03-27 Thread Eamonn
Both of these return the same result, my question: Are they both consider equally valid or is one better than the other? The reason I ask is, the first is what I currently use, the second is from a tutorial dated 2008. def showall(): x = db(db.twitch).select() #x =

[web2py] Re: Djano channels

2016-03-27 Thread Ron Chatterjee
https://m.youtube.com/watch?v=uBV_KKGzNqQ Found that link that talks about it. But it uses flask. So for chatting use channels n realtime streaming n audio use webrtc. Learn something new everyday! Thank you massimo. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Re: Djano channels

2016-03-27 Thread Ron Chatterjee
https://m.youtube.com/watch?v=uBV_KKGzNqQ Found that link that talks about it. But it uses flask. So for chatting use channels n realtime streaming n audio use webrtc. Learn something new everyday! Thank you massimo. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

Re: [web2py] web2py Job and Recruitment site

2016-03-27 Thread Ron Chatterjee
What database you guys are using? If you dont mind asking. Also the remax, century21...logos. do you read them automatically in the table as people create their account or you make them upload a picture? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: DHTMLX javascript library

2016-03-27 Thread Leonel Câmara
Note that I never used DHTMLX I'm just looking at their documentation, it appears you can use the same URL to save and load the results using something like this instead of scheduler.load myDataProcessor = new

[web2py] Re: DHTMLX javascript library

2016-03-27 Thread Henk huisman
You're right. I changed the return in the controller to *return response.json(rows)* and now it works as expected. Thanx. Still... what to do with all that PHP the dataConnector is written in, in order to get data back tot the server Op zondag 27 maart 2016 07:56:15 UTC-4 schreef

Re: [web2py] web2py Job and Recruitment site

2016-03-27 Thread António Ramos
+1 if web2py inside!! ( you forgot to tell) 2016-03-26 10:58 GMT+00:00 Francisco Tomé Costa : > Hi, > At https://www.emprego.pt we've developed a job posting site, where > candidates can create their professional profile (like LinkedIn) >

[web2py] Re: DHTMLX javascript library

2016-03-27 Thread Leonel Câmara
Pretty sure that controller isn't returning json. -- 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

[web2py] Why does the mailing not work perfectly? What's wrong in this implementation?

2016-03-27 Thread Jacob Devin
inside view I have: http://www.google.com/jsapi?key= "> if(google.loader.ClientLocation) { visitor_lat = google.loader.ClientLocation.latitude; visitor_lon = google.loader.ClientLocation.longitude; visitor_city =

[web2py] Why I don't get an email always? What's wrong in this implementation?

2016-03-27 Thread RRR Triple
inside view I have: http://www.google.com/jsapi?key="> if(google.loader.ClientLocation) { visitor_lat = google.loader.ClientLocation.latitude; visitor_lon = google.loader.ClientLocation.longitude; visitor_city =