[web2py] Re: D3.js calling Json in View

2014-05-26 Thread thehuman trashcan
, May 23, 2014 10:04:17 PM UTC+10, thehuman trashcan wrote: In my impatience I just quickly edited the file. data.dashboard_data is all that was needed. I have managed to leave Scheme=true. I don't fully understand how data.dashboard_data converts my dictionary to an array, but I

[web2py] Re: D3.js calling Json in View

2014-05-23 Thread thehuman trashcan
Thank you so much Andrew - you have given me plenty to work on... When I'm back I'll give these a go and let you know how I get on. Many thanks again On Friday, 23 May 2014 05:41:16 UTC+1, Andrew W wrote: Also, try scheme='https' in your case. See Core chapter of book. -- Resources: -

[web2py] Re: D3.js calling Json in View

2014-05-23 Thread thehuman trashcan
In my impatience I just quickly edited the file. data.dashboard_data is all that was needed. I have managed to leave Scheme=true. I don't fully understand how data.dashboard_data converts my dictionary to an array, but I will be looking into this to understand. In any case, thank you ever so

[web2py] Re: D3.js calling Json in View

2014-05-22 Thread thehuman trashcan
Hi Andrew, The URL line now says: d3.json({{=URL('default', 'dashboard_data.json', scheme=True, host=True)}} , function (data) { This doesn't make the information come back though. Does it matter that I am using pythonanywhere - it looks like they have https:// in place? Thanks!! On

[web2py] Re: D3.js calling Json in View

2014-05-21 Thread thehuman trashcan
Hi Andrew, The JSON output is attached (I just grabbed the first 250 lines of some public data). My controller code: def dashboard_data(): dashboard_data = db().select(db.com_house_stock.CompanyNumber, db.com_house_stock.IncorporationDate, db.com_house_stock.CompanyCategory,

[web2py] D3.js DC.js Crossfilter.js - table not showing

2014-05-20 Thread thehuman trashcan
Hi, I am trying to follow the example at: https://leanpub.com/D3-Tips-and-Tricks/read#leanpub-auto-crossfilter-dcjs-and-d3js-for-data-discovery In db.py I have created a database and put in some data In my controller I created a query, and created a JSON view for the data returned (the view

[web2py] D3.js calling Json in View

2014-05-20 Thread thehuman trashcan
Hi, I am following the instructions at: https://leanpub.com/D3-Tips-and-Tricks/read#leanpub-auto-crossfilter-dcjs-and-d3js-for-data-discoveryand trying to put this into web2py. I created the database in the db.py, populated it with some data. I have created a controller which queries the

[web2py] Re: D3.js calling Json in View

2014-05-20 Thread thehuman trashcan
activity in the browser developer tools, do you see an Ajax request successfully pulling in that JSON? If all that works, then the problem must be either with the format of the JSON or with your D3 code. Anthony On Tuesday, May 20, 2014 9:08:34 AM UTC-4, thehuman trashcan wrote: Hi, I am

[web2py] Re: Is anyone working on a two-step login for auth? (Sometimes called two factor authentication)

2014-04-29 Thread thehuman trashcan
Thanks for working on this! I think it is important and look forward to implementing it. All the best On Monday, 28 April 2014 04:10:07 UTC+2, pallav wrote: For anyone wondering on the status, my code causes the unit tests for web services to break. I plan on looking into it over the next

[web2py] Re: Best approach to using the DAL with external data sources that will go into multiple tables?

2014-04-09 Thread thehuman trashcan
Hi, I am totally new to programming, but in a bid to improve, I am trying to answer any question I reckon I can add value on..so...!.. I would probably define two tables: *Sources data* This table details each of your 38 sources and gives them an ID, you can give them a name, detail the