[web2py] Does anyone have a stripe connect demo or example for web2py?

2022-04-02 Thread Andrew E.
Hello, I am looking to see if anyone has an example of using the stripe connect api with a Web2py project and can share it. I might be asking for to much but I thought I would try my luck. Thanks all in advance, Web2py is truly a great platform. *cheers Andrew -- Resources: - http

[web2py] Web2py Scheduler, db query is not executing.

2021-10-05 Thread Andrew
Hello, I am trying to run a database query using the web2py scheduler, but for some reason I can't get the query to commit. I've tested the function in a controller to see that it works, and I'm pretty sure the scheduler is running correctly because I have a scheduler_worker with the status of

[web2py] Re: How to import 'configuration' into a module

2020-12-08 Thread Andrew Rogers
I found the answer 2 seconds after I posted the question which I did 20 minutes after looking through a lot of pages and code. from gluon.contrib.appconfig import AppConfig from gluon.tools import Auth configuration = AppConfig() On Tuesday, 8 December 2020 at 23:34:30 UTC+10 Andrew

[web2py] How to import 'configuration' into a module

2020-12-08 Thread Andrew Rogers
://web2py.readthedocs.io/en/latest/index.html Thanks Andrew -- 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

[web2py] How to move the location of the checkbox labels in SQLform

2020-11-28 Thread Andrew Rogers
Is there an easy way to reposition the labels for checkboxes? I would like to show them on the left side in the same way as the other controls. I posted to StackOverflow as well.

Re: [web2py] web2py 2.21.1 is OUT

2020-11-28 Thread Andrew Rogers
Yes, thank for web2py. It has been great. Plan to make my next app in py4web and then look at migrating my first one across. On Saturday, 28 November 2020 at 20:18:37 UTC+10 lbjc...@gmail.com wrote: > Thank you for your great product. > Regards > > On Sat, Nov 28, 2020, 07:22 Massimo Di Pierro

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2020-11-06 Thread Andrew Rogers
This still seems like a problem. In my case I had forgotten to create a password after installing web2py on Debian. I assume it was throwing an error on: raise HTTP(200, T('admin disabled because no admin password')) After I created a password this error went away: *Internal Server Error*

[web2py] IS_IN_DB always applies the common_filter even when I ask it not to (FIXED)

2020-10-06 Thread Andrew Rogers
t i was going about this the wrong way so if there is a different way i should have been doing this please let me know. Cheers Andrew -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/iss

Re: [web2py] Re: Mobile and Tablets detection

2020-10-03 Thread Andrew Rogers
}> *request.env.http_user_agent *gives me: 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1' Is there any trick to getting that emulation working correctly in Chrome? Andrew FYI, this is what I get when us

Re: [web2py] Re: Reloading modules

2020-08-19 Thread Andrew Rogers
any thoughts on the right way to do this i would be love to hear them. Cheers Andrew On Friday, 11 May 2012 at 02:25:34 UTC+10 howesc wrote: > yes, sorry, i meant in development time. > > in one project i moved models to modules and shaved about 33% off of the > GAE production

[web2py] Re: Under what circumstances would db.define_table() return None

2020-07-17 Thread Andrew Rogers
define_table('DatabaseModel', Field('TableName')) > > for t in db.tables: > dbmemo.DatabaseModel.update_or_insert(TableName=t) > > > On Wednesday, 15 July 2020 07:45:36 UTC+1, Andrew Rogers wrote: >> >> This code working fine but now it fails because t

[web2py] Under what circumstances would db.define_table() return None

2020-07-15 Thread Andrew Rogers
This code working fine but now it fails because the db.define_table() returns None. table = db.define_table('DatabaseModel', Field('TableName')) # This is not working now for t in db.tables: table.update_or_insert(TableName=t) The only thing that I think I have changed that might have

[web2py] Re: belongs to one table but not the other ...

2020-07-15 Thread Andrew Rogers
Try adding a '~' in front of it. db(~(db.cart.id.belongs(another_table_select))).select(db.cart.id) See: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=lazy#Logical-operators On Wednesday, 15 July 2020 13:12:53 UTC+10, Vlad wrote: > > I have the following

Re: [web2py] My attempt at integrating datatables.net and web2py

2020-07-06 Thread Andrew Rogers
https://www.youtube.com/watch?v=5KlaPmr0GGs <https://www.youtube.com/watch?v=5KlaPmr0GGs=youtu.be> Just a disclaimer again, i have been coding web technologies for a few months. So the code can be improved a lot. If you have some suggestions I would love to hear them. Cheers Andrew On Thursday,

[web2py] Re: Is there a way to cache images from "download" function?

2020-06-25 Thread Andrew Rogers
Hi I tried this from the book, but got an error: @cache.action(time_expire=874, cache_model=cache.ram, session=True, vars=True, public=True) So i tried the ideas in this post and they had miscellaneous errors. I thought things have probably changed since 2014. Then i started removing

[web2py] Re: How to debug appadmin CSV uploading

2020-05-01 Thread Andrew Rogers
Can't help you Jon sorry. I tried to upload a while back but got a different issue (see https://groups.google.com/forum/#!topic/web2py/03-7xKAioD8) So maybe that feature has fallen into disuse? On Friday, 1 May 2020 16:57:38 UTC+10, Jonsubs wrote: > > Hi everyone, > I'm trying to upload a

[web2py] Re: The virtual fields are not accessible until I convert my records to a list

2020-05-01 Thread Andrew Rogers
Ugg, I'm a goose. Silly mistake. It works exactly as it should. Sadly i dont. On Saturday, 2 May 2020 00:09:50 UTC+10, Andrew Rogers wrote: > > (I posted this question here as well: > https://stackoverflow.com/questions/61544049/the-virtual-fields-are-not-accessible-until-i-convert-m

[web2py] The virtual fields are not accessible until I convert my records to a list

2020-05-01 Thread Andrew Rogers
(I posted this question here as well: https://stackoverflow.com/questions/61544049/the-virtual-fields-are-not-accessible-until-i-convert-my-records-to-a-list ) The book here gives this example for

[web2py] Re: Visual Studio Code

2020-05-01 Thread Andrew Rogers
Thanks for the reminder re the intellisense. Do you think it still works fine? I tried to out just now and had some issues. But the problem may well be me and not it. On Friday, 1 May 2020 19:55:39 UTC+10, villas wrote: > > Further to Andrew's reply you could also try these ideas: > > >

Re: [web2py] Re: Why would new code be ignored and old code be executed?

2020-05-01 Thread Andrew Rogers
Hi again I am having a similar problem again. I havent compiled the app - i have learnt from that mistake, thanks. I am now trying to import some of my custom functions from other python files in the same app. After i got an __init.py__ file in place i was able to see and use my imported

[web2py] How do I hide automatically generated child columns in web2py's SmartGrid?

2020-04-24 Thread Andrew Rogers
(I also asked this question here https://stackoverflow.com/questions/61402508/how-do-i-hide-child-columns-in-web2pys-smartgrid ) I love the way web2py smartgrid creates automatic child links to referenced tables. But i can't find how to customise them. I want to show only some of the child

[web2py] Re: Why do my questions never show up?

2020-04-21 Thread Andrew Rogers
to go through quickly. I am not sure how many people watch https://stackoverflow.com/ . I know Anthony does and he has been really helpful recently... and for the last 10 years it seems. Maybe try there as well? Cheers Andrew On Tuesday, 21 April 2020 15:28:20 UTC+10, Jon Paris wrote: > &

[web2py] Re: py4web - Deployment on GCloud (aka Google App Engine)

2020-04-17 Thread Andrew Willimott
Hi Jacinto, I haven't got to the db stage yet, just a simple Hello World to get py4web working. I'll post when I get there. On Friday, April 17, 2020 at 10:43:46 AM UTC+12, Jacinto Parga wrote: > > Hi Andrew, > > How did you connect with Datastore. I mean, how did you

[web2py] Re: Field('upload') : problem with file name

2020-04-15 Thread Andrew Rogers
>>> Field(name, 'upload', size=200) I think 'size' should be 'length'. The latter worked for me and the former didn't. On Monday, 20 July 2015 16:24:24 UTC+10, Massimo Di Pierro wrote: > This is handled by web2py. The filenames are truncated according to the > size of the uploadfield. This

[web2py] Re: New-py4web-group

2020-04-12 Thread Andrew W
Excellent, thanks Massimo. On Sunday, March 29, 2020 at 8:46:26 AM UTC+13, Massimo Di Pierro wrote: > > We ave a new group for py4web questions and discussions: > > https://groups.google.com/forum/#!forum/py4web > > Please also use it for pydal, yatl, and pluralize questions. > For web2py

[web2py] py4web - Deployment on GCloud (aka Google App Engine)

2020-04-12 Thread Andrew W
it : gcloud app deploy app.yaml --promote I'm ready to build out my first py4web app ! Might be worth adding this to the script and/or documentation. Regards Andrew W -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: Cool "formstyle" trick w/Python lambda

2020-03-19 Thread Andrew Rogers
Thanks. That helped me too! But i have no idea how it did it. Need to read up on widgets. All i wanted to do was add the "readonly" attribute to a form field. I thought the following would have worked (from the book). Is it intended to add attributes? If you need to add custom attributes to

Re: [web2py] Re: SQLFORM grid process not working

2020-03-06 Thread Andrew Rogers
> > Many thanks to you guys for answering so many user questions. I am finding >> it really helpful. >> > Cheers Andrew -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com

[web2py] Re: Why would new code be ignored and old code be executed?

2020-03-06 Thread Andrew Rogers
Thanks for your advice Val. I will try your suggestion... and google search a little to see what it does I dont think i had two servers running but i will look out for that in the future. It seems that the Module i added was the main problem. I moved all the code into the Controller and

[web2py] Re: Image upload error when using smarthumb

2020-03-05 Thread Andrew Rogers
I had trouble with the above code. Perhaps it was because i am using the uploadseparate =true parameter which means images get dropped into different folders. Or perhaps because i don't know what i am doing. Anyhow, the code below works for me. I had to manipulate the thumbnail filename a lot

[web2py] Why would new code be ignored and old code be executed?

2020-03-05 Thread Andrew Rogers
Everything has been good for days. But I have had this happen multiple times in the last few hours. I make changes to a module or controller file, save it, refresh the app but the old code still runs. I was working in both the IDE that comes with web2py and Visual Studio Code. I eventually

[web2py] I think the language code for Malay in the default install of web2py is wrong

2020-03-05 Thread Andrew Rogers
for Myanmar... which is where i live. This is just an FYI for those people in charge of the distributions. Thanks Andrew -- 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] Importing a CSV file from the Database form fails

2020-03-05 Thread Andrew Rogers
ort' button in the same area. But it fails with: unable to parse csv fileiterator should return strings, not bytes (did you open the file in text mode?) × What am i doing wrong? Thanks Andrew -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web

[web2py] Re: web2py with js framework

2020-02-19 Thread Andrew Rogers
I've been using Vue for just 30 mins and web2py for not much longer. I just wanted to get something really, really simple working. All i did was added this to index.html. I am sure this is bad practice - just a first step to trying to understand how things fit together. Thanks to Mirek's tip

[web2py] Re: Web2py or py4web for a brand new project

2020-01-14 Thread Andrew Rogers
Hi Is the documentation for web2py still mostly relevant for py4web? Thanks Andrew On Thursday, 12 December 2019 20:47:05 UTC+6:30, icodk wrote: > > Should I use Web2py or py4web for a brand new project ? > What is still missing from py4web ? > Can I debug with pycharm ?

[web2py] Re: Web2py or py4web for a brand new project

2020-01-14 Thread Andrew Rogers
Thanks for that info. I am about to start a new project which is also my first. So i would like to go with py4web. But i am nervous about not having good documentation for py4web. Is the old documentation and videos etc that you have made (which are great - thanks) still mostly relevant? On

Re: [web2py] Re: Graph Model (proposal to contribute)

2017-02-28 Thread Andrew Willimott
Hi Donald, yes I have , and I have been meaning to some changes (to minimise the overlap in names).Sorry, been busy lately, I'll get on to updating Welcome. My plan is to leave the existing graph code as is until everyone is ok with it. Thanks for following up. -- Resources: -

[web2py] Re: plugins

2017-02-12 Thread Andrew Andreyev
When I click on this link I get: Internal errorTicket issued: unrecoverable On Saturday, March 12, 2011 at 1:18:26 AM UTC+10:30, Massimo Di Pierro wrote: > > I did a very poor job at keeping track of community created plugins. >

[web2py] Re: Forms suddenly not working!

2017-01-31 Thread Andrew Buchan
OK, silly me, never thought to check if it works on another browser, which it does, so I guess I'll just try donating my cookies to the dev/null cookie monster :-D Thanks for chipping in, I was panicking slightly... On Tuesday, January 31, 2017 at 3:06:27 PM UTC, Andrew Buchan wrote: > >

[web2py] Re: Forms suddenly not working!

2017-01-31 Thread Andrew Buchan
cookie going back and forth as > expected? > > Anthony > > On Tuesday, January 31, 2017 at 10:06:27 AM UTC-5, Andrew Buchan wrote: >> >> Hi, I just updated an application hosted on pythonanywhere, and the forms >> are no longer working. >> >> Even the logi

[web2py] Forms suddenly not working!

2017-01-31 Thread Andrew Buchan
Hi, I just updated an application hosted on pythonanywhere, and the forms are no longer working. Even the login form (default, unaltered), doesn't seem to work. When I hit submit the page simply reloads, with no error messages. Same goes for all my very simple forms. - There are no errors in the

[web2py] Re: web2py 2.13.1 is OUT

2017-01-29 Thread Andrew Buchan
Thanks for the clarification. It makes sense to to use the same behaviour as a w2p file deploy, though it would be good if it said so somewhere, and also that this should only be used for first time deployments, accidentally point this to an app that already exists and you risk serious

[web2py] Re: web2py 2.13.1 is OUT

2017-01-27 Thread Andrew Buchan
eferably on the same page as the form itself. Andrew. On Friday, December 18, 2015 at 6:31:38 AM UTC, Massimo Di Pierro wrote: > > CHANGELOG > > ## 2.13.1 > > > - fixed oauth2 renew token, thanks dokime7 > > - fixed add_membership, del_membership, add_membership Integr

[web2py] Linking Auth with another table to store additional info about user

2016-12-21 Thread Andrew Toole
of fields which will be empty for most users. Is this the best approach or is there another approach? Are there more advanced example applications available somewhere? Thanks, Andrew -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2p

Re: [web2py] Re: Graph Model (proposal to contribute)

2016-11-20 Thread Andrew Willimott
Thanks Donald, I'll do another round of improvements and then create a PR. it does need to handle larger models better and I'll improve the code layout too. I'm also learning the d4 differences and there are a lot of future options with using d3. web2py with a d3 interactive front end is

Re: [web2py] Re: Graph Model (proposal to contribute)

2016-11-16 Thread Andrew Willimott
Here's a start: https://github.com/willimoa/welcome_d3 > -- 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

Re: [web2py] Re: Graph Model (proposal to contribute)

2016-10-24 Thread Andrew Willimott
Has anyone else tried visualising the models with d3js ? I have a mockup working using the force layout. I'd suggest this is a better long term approach than relying on graphviz being installed. (Graphviz has some good layouts though). I can send cleaned up code as a candidate to add to

Re: [web2py] Re: save the original value of one field in another field

2016-07-11 Thread Andrew Ziem
Anthony, The _before_insert works perfectly. Thank you. Andrew On Sun, Jul 10, 2016 at 9:53 PM, Anthony <abasta...@gmail.com> wrote: > Here's a potentially better option that will work even in appadmin and > doesn't require an extra callback if you need to do an insert followed by

[web2py] Set Scheduler Run Timeout on Try Except

2016-05-25 Thread Andrew Evans
a value has been met I would like to remove the users scheduled task. if views >= amount: update the db remove scheduler_task I am not sure how to do this or if timing out the scheduler is the best practice and would appreciate any help. *cheers Andrew -- Resources: - http://web2py.

[web2py] _lastsql is commented out

2016-05-20 Thread Andrew Willimott
Hi, Are we still intending to keep _lastsql functionality. It's not working in the new pydal and I see its commented out. Was this intentional ? Thanks Andrew W -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: Sublime Text? Plugins?

2016-02-28 Thread Andrew Buchan
As an aside, no editor or IDE will provide auto proper complete on your db object (e.g you type db. and it shows you your tables and just your tables, then db.my_table. and it shows you your fields) without a hack. I made this https://github.com/andyhasit/web2py_intellisense to provide auto

Re: [web2py] AppConfig documentation?

2016-02-14 Thread Andrew Buchan
Hi Nico, Thanks for that! I suppose this should really go into the web2py book, we can't expect people to read the source for something as basic (i.e. not an advanced feature or special use case) as this. I'm happy to go into github and create a pull request, I'm just not sure where we should

[web2py] AppConfig documentation?

2016-02-13 Thread Andrew Buchan
Hello, Newer versions of web2py seem to use an AppConfig object in the model, but I can't find any documentation for how this works anywhere in the manual... Where am I supposed to create this file? What do I call it? What should I put in there? Thanks. -- Resources: - http://web2py.com -

Re: [web2py] Re: Can we use a web2py app on Android mobile?

2016-01-12 Thread Andrew Buchan
id app >> >> Il giorno lunedì 11 gennaio 2016 13:17:14 UTC+1, Andrew Buchan ha scritto: >>> >>> Just to butt-in on what Richard said: >>> >>> "But this kind of app are often not that interresting from user stand >>> point... I mean you don

[web2py] Re: Can we use a web2py app on Android mobile?

2016-01-11 Thread Andrew Buchan
Just to butt-in on what Richard said: "But this kind of app are often not that interresting from user stand point... I mean you don't have a good mobile app user experience with them most of the time because they to simple that you can just access the real web app and it could be even

Re: [web2py] Re: The .represent() method and export_to_csv

2015-10-12 Thread Andrew Webster
Thanks Leonel On 12 Oct 2015 13:41, "Leonel Câmara" wrote: > export_to_csv_file is actually a method of Rows, when you call render you > get a generator that returns the representation for each row, that's not a > Rows instance. > > You can actually just use

[web2py] How to start a web2py application on another ser

2015-10-01 Thread Chris Andrew
Hi guys, I currently have two systems that have web2py installed on them. System 1 has app1 installed on web2py and System 2 has app2 installed. Is it possible for me to call functions of app2 which is on System 2 using app1 which is on System1? They are both connected to my home network. Thank

[web2py] Re: Weird problems with scheduler on OSX

2015-09-14 Thread Andrew W
Late to this as I haven't run the scheduler on my mac before. The script runs fine. I'm getting the same python error. Running 2.12.3 Stable. Andrew W On Monday, March 9, 2015 at 10:59:36 AM UTC+13, Niphlod wrote: > > try this script and see if it fails. it's the boiled down version o

[web2py] Re: .ninja tld and IS_URL() returning invalid

2015-02-04 Thread Andrew
Looking at the IS_URL() method and to help diagnose this issue, I hope I am not wrong to believe I should provide the code referenced in this project. http://www.techshinobi.com/index.php/quick-code-dump-seishin-ca/ Thanks Andrew -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: .ninja tld and IS_URL() returning invalid

2015-02-04 Thread Andrew
Yes I will do so! Thank you :-) -- 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

[web2py] .ninja tld and IS_URL() returning invalid

2015-02-04 Thread Andrew
There seems to be an issue (for me anyway) with the IS_URL() validator and the .ninja TLD with my current 2.9.12-stable+timestamp.2015.01.17.06.11.03 web2py. Here is a service I have set up today where I noticed this issue. http://seishin.ca -- Resources: - http://web2py.com -

Re: [web2py] Re: Cheap trick to achieve intellisense/autocompletion

2014-12-15 Thread Andrew Buchan
Excellent, glad someone is using it. Thanks for the heads up on the typo, it's not the version I'm actually using which is why I'll have missed it. Fixed now. What IDE are you using btw? On Mon, Dec 15, 2014 at 8:41 PM, Alex mrauc...@gmail.com wrote: thanks! seems to work fine so far. You've

[web2py] Cry About Crypt [Web2py Project]

2014-12-14 Thread Andrew
and then issue a manual command to input and send the key to your registered email address. Successful approval and application by the file holder grants you access to the uploaded contents. If you run in to errors or inaccessibility please feel free to respond to me directly *cheers Andrew

[web2py] Cheap trick to achieve intellisense/autocompletion

2014-12-10 Thread Andrew Buchan
Hi all, I've found a way to get code completion on global objects such as request, response and db (with all your table definitions and fields!) in IDEs which provide code completion. I've been using this for a while now and have to say it really does speed up my web2py development, so thought

[web2py] Bitnami vote

2014-12-10 Thread Andrew Buchan
Hi, For those of you who don't know Bitnami, it is ridiculously easy way to deploy all sorts of apps on the cloud. Miles easier than Heroku in my opinion (which is an opinion). Bitnami works with stacks which are preconfigured environments and bundled software that you download, run as a vm,

[web2py] 2 factor auth doesn't seem to take effect.

2014-12-07 Thread Andrew
Following the information in the web2py book I have attempted to enable 2 factor authentication. It does not seem to be working though. I have set up a group with the role of web2py Two-Step Authentication I assign users to this with auth.settings.create_user_groups = False

Re: [web2py] Re: Subclassing IS_IN_SET - one piece missing.

2014-12-02 Thread Andrew Buchan
) (gr.role == 'roletest') ) Field('a_field', requires=IS_IN_DB(theset, 'auth_user.id', '%(first_name)s - %(last_name)s')) On Monday, December 1, 2014 4:04:32 PM UTC+1, Andrew Buchan wrote: Hi, I wanted to create a validator which creates a dropdown of users in a certain auth group

[web2py] Subclassing IS_IN_SET - one piece missing.

2014-12-01 Thread Andrew Buchan
Hi, I wanted to create a validator which creates a dropdown of users in a certain auth group. I figured I could shortcut this by inheriting from IS_IN_SET, see class below. This works fine for SQLFORMS in create mode (drop dow with just what I want to see) and for read-only mode (I see the

[web2py] Re: Custom validator - pass record id to validator for update operations

2014-12-01 Thread Andrew Buchan
Hi Clara, I think (someone please correct me if I'm wrong -- and have a look at my other question posted just after this :D) that the validator has no access to the record. But because you can set the validator on a field at any time, one solution is to chang your validator class so it knows

[web2py] Re: Web2py web mapping capabilities

2014-09-16 Thread Andrew W
You could also use d3.js with web2py, using geojson and topojson for display. See d3js.org -- 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: dynamically add rows to html table

2014-09-08 Thread Andrew Buchan
Hi, If you mean adding rows to the TABLE object it's as simple as: table1 = TABLE() table1.append(TR()) If you are asking about how to make the button do it, your best bet is to use an ajax call to rebuild the table and send it to a div. Make sure your table is in a div with a set id. Create

[web2py] Re: a proposal for form improvement

2014-09-08 Thread Andrew W
Sounds like I need to improve my JS skills. A Plugin or a Module ? which is better for this type of thing ? On Friday, September 5, 2014 3:56:23 PM UTC+10, Massimo Di Pierro wrote: Please find attached a welcome4.zip with contains the following files: controllers/default.py

[web2py] Re: scheduler new feature: task dependencies

2014-08-06 Thread Andrew W
Sounds great. Looking forward to testing it out. Thanks Andrew W -- 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

[web2py] Re: scheduler new feature: task dependencies

2014-08-06 Thread Andrew W
AM UTC+10, Andrew W wrote: Sounds great. Looking forward to testing it out. Thanks Andrew W -- 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] Social auth with google- userinfo endpoint deprecated.

2014-07-31 Thread Andrew
it and it wont work from Sep 1st. https://developers.google.com/+/api/auth-migration#timetable. Please let me know if an updated version of the snippet is available or any pointers to the changes i need to make to the code snippet. Thanks a lot for your guidance. -Andrew -- Resources: - http

[web2py] Files failing to upload because of encryption taking place?

2014-06-30 Thread Andrew Evans
Hello I am building a simple file encryption software and I am facing issues with files larger than 200KB not being fully uploaded but resulting in success. I am running nginx server / web2py. However I am pretty sure it's configuration is set up correctly Perhaps some one could take a look at my

[web2py] When to use jQuery.ajax or $.web2py.component ?

2014-06-30 Thread Andrew W
Hello, I've been looking into the use of callbacks and components to make a more dynamic app. I revisited the reddit_clone app from web2py training videos and noticed that is uses the following: jQuery.ajax({method:'post',url:'{{=URL(comm_vote_callback)}}', Trying to understand the rule

[web2py] Re: When to use jQuery.ajax or $.web2py.component ?

2014-06-30 Thread Andrew W
of reddit_clone as an example. Regards Andrew W On Tuesday, July 1, 2014 1:40:17 PM UTC+10, Anthony wrote: The jQuery ajax method can be used but is not web2py specific. web2py components provide some additional functionality and convenience. See the documentation: http://web2py.com/books

[web2py] Display returned objects from load(ed) component when calling URL from Ajax

2014-06-24 Thread Andrew Evans
Hello I am facing a problem with returned output from a controller not displaying when being called from a link using the ajax() function inside a LOAD(ed) component. *index* div id=status/div div id=file_list {{=LOAD('default', 'file_list.load', ajax=False)}} /div --

Re: [web2py] Re: Authorized File Download Error

2014-06-24 Thread Andrew Evans
Amazing! Thank you very much. On Tue, Jun 24, 2014 at 10:49 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: This line db.personal_uploads.file_upload.authorize = lambda record: auth.is_logged_in() and (record.members.contains(auth.user_id)) should be

[web2py] Re: Trying to use the LOAD helper, if a button is clicked

2014-06-20 Thread Andrew W
Thanks. -- 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: Trying to use the LOAD helper, if a button is clicked

2014-06-18 Thread Andrew W
Hi, trying to find out more about $.web2py.component, but it's not in the book. Chapter 11 mentions web2py_ajax_component but it isn't mentioned in Chapter 12 as indicated. An old reference perhaps. Anthony, I don't understand If you want to dynamically add a component in the browser, you

[web2py] Re: Brainstorming

2014-06-17 Thread Andrew W
I want to use the template capabilities of web2py for server side script generation, not just html. From my brief look at the ractive website I'm wondering if it is any better than what web2py does now. Do I really want a js library for this for server side templating. I could use node but

[web2py] Re: {{=XML(data)}} for javascript variable issue

2014-06-12 Thread Andrew W
Yes. Add a script section -- 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] json to D3 graph

2014-06-11 Thread Andrew W
What else is in your view? Is the code inside a script? What if you just returned dict( flare=flare) in your controller? -- 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] Re: json to D3 graph

2014-06-11 Thread Andrew W
output to be return locals(). 3. In your view , in the script add: {{from gluon.serializers import json}} var flare = {{=XML(json(flare))}} I think web2py is a good data provider for d3 apps On Thursday, June 12, 2014 2:49:32 AM UTC+10, Richard wrote: Andrew, When I respond

[web2py] Re: json to D3 graph

2014-06-11 Thread Andrew W
P..S. The above uses the approach of the generic.json files. Refer to: http://web2py.com/books/default/chapter/29/10/services?search=serializers and the generic.json code. On Thursday, June 12, 2014 8:20:04 AM UTC+10, Andrew W wrote: This may not be the crucial hint, but I noticed that your

[web2py] Re: Simple loan system for library

2014-05-23 Thread Andrew W
Hi John, One step at a time, looking at your database model, how does 'copies' relate to a book ? You are missing a foreign key reference. Are there any other attributes that a copy may have ? On Saturday, May 24, 2014 7:30:35 AM UTC+10, john smith wrote: I'm trying to create library

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

2014-05-23 Thread Andrew W
, Andrew W wrote: Also, try scheme='https' in your case. See Core chapter of book. -- 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

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

2014-05-22 Thread Andrew W
I'm not at a desktop machine so I'll be brief. D3 expects an array, you have provided a dict. When you reference data such as in the foreach, try data.dashboard_data which will reference the array. Syntax is probably not quite correct. Also, if you're not sure add console.log stmts to show the

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

2014-05-22 Thread Andrew W
Also, try scheme='https' in your case. See Core chapter of book. -- 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

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

2014-05-21 Thread Andrew W
In the URL() call, add scheme=True, host=True. -- 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] Re: D3.js calling Json in View

2014-05-20 Thread Andrew W
I use this technique regularly. Show the controller code and/or json output and I'll have a look. -- 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

Re: [web2py] Re: RFC: web2py-based workflow engine

2014-04-18 Thread Andrew W
Thanks. That's a .net solution so not quite the web2py solution I was looking for. -- 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] Dynamic, User customisable DAL connection parameters

2014-04-08 Thread Andrew W
be called if the session.localconn variable is already set. Any comments on this apprach ? Thanks Andrew W -- 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

[web2py] Incompatibility with web2py's calendar.js and d3.js

2014-02-09 Thread Andrew W
Andrew W -- 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

[web2py] Re: Incompatibility with web2py's calendar.js and d3.js

2014-02-09 Thread Andrew W
Update: I applied a fix from the d3 post by adding this to my script and uncommenting calendar.js: Date.prototype.setFullYear = Date.prototype.__msh_oldSetFullYear; This works. Should this fix be incorporated into web2py ? Will it break calendar.js in web2py ? Andrew W -- Resources

[web2py] Detecting OS issue

2014-01-13 Thread Andrew Evans
Hello I am trying to figure out how to detect if a computer is running Windows or Macintosh then load the appropriate files and if any other system Linux/Mobile etc then load the other files The reason for this is I am using Google Earth in a project and I want to load Google Maps if it is not

Re: [web2py] Re: How to add users to a table row by request

2014-01-12 Thread Andrew Evans
Excellent! Thank you Anthony this solved my problem. Also thank you for the clear explanations :-) *cheers On Sun, Jan 12, 2014 at 6:05 AM, Anthony abasta...@gmail.com wrote: If these groups are for the purpose of controlling access to resources, you might consider using the built-in

[web2py] Re: how to custmize the layout in web2py

2013-12-15 Thread Andrew W
And adding to what Anthony said, look at this web2py tutorial site which builds the ui from scratch. http://killer-web-development.com/section/4/2 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

  1   2   3   4   5   6   7   8   >