[web2py] web2py 2.25.1 - bug when running interactive shell?

2023-10-27 Thread Tom Clerckx
I believe web2py/gluon/shell.py", line 238 should use os.path.*abspath* instead of *absdir*? Unpacked and ran a clean version of web2py: command: python web2py.py -B -S welcome -M web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2023 Version 2.25.1-stable+timestamp.2023.10.08.1

[web2py] Re: app not loading external python library

2023-10-27 Thread Tom Clerckx
I think this is the same issue as was discussed a few months ago: See this thread: https://groups.google.com/g/web2py/c/xYVWpDGLuzY/m/t9sBabWOAgAJ Seems some issue between the custom importer and the urllib3 module. Can you try once more, but also explicitly pip install *urllib3_secure_extra *i

[web2py] Re: uwsgi with web2py hard crash/locking with nginx

2023-10-17 Thread Tom Clerckx
Maybe you should review the 'high calculation/high plotly' pages for memory usage? As the 'OOM killer' kicked in, it looks like the process is using too much memory. One thing to verify this is to monitor the VmRSS of the processes involved (VmRSS is one of the fields in the output when you do

[web2py] Re: Error importing pydal running from PyCharm

2023-09-29 Thread Tom Øyvind Hogstad
I actually solved it myself. Pycharm with old settings that included gluon as an external library injected gluon into the path. Then web2py html.py was picked up instead of the new python3 html.py Clearing my old .idea file and setting up a new solved it. Tom Ø. fredag 29. september 2023 kl. 19

[web2py] Error importing pydal running from PyCharm

2023-09-29 Thread Tom Øyvind Hogstad
Hi, when running my web2py app from pycharm I get an error importing pydal. The directory is a full source download, so the full dal package is included. When I run direct from command line It works. I'm working in MacOS Ventura on a Macbook Air M2. *Commandline* *tom@Tom-sin-MacBook-Air

Re: [web2py] Why am I getting "unable to import requests" in web2py even though requests is accessible directly through python

2023-05-30 Thread Tom Clerckx
l=2, ) So there is no real need for urllib3_secure_extra (as is shown in the plain python shelll), but somehow in the web2py shell, this dependency comes back. Tom. On Tuesday, May 30, 2023 at 5:55:26 PM UTC+2 Massimiliano wrote: > Just tried and it works flawless! :-) > > Il giorno mar 30

Re: [web2py] Why am I getting "unable to import requests" in web2py even though requests is accessible directly through python

2023-05-27 Thread Tom Clerckx
mport fails. Have you also tried with a virtualenv? Regards, Tom. On Saturday, May 27, 2023 at 2:38:28 PM UTC+2 Massimiliano wrote: > I'm also using pyenv and having the same paths order, ma importing > requests is working with no problem, on macos and on linux. > > Have you al

Re: [web2py] Why am I getting "unable to import requests" in web2py even though requests is accessible directly through python

2023-05-27 Thread Tom Clerckx
See below. In both tests the requests library is in the last element of the path. TEST1, plain python shell - import OK (test) tclerckx@stark:~/temp/test$ python Python 3.10.6 (main, Jan 14 2023, 23:48:13) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more informatio

[web2py] Re: Why am I getting "unable to import requests" in web2py even though requests is accessible directly through python

2023-05-26 Thread Tom Clerckx
Good point, I'm curious as well. I did a few experiments and I noticed that: Running a virtualenv built on python *2.7.18* and using web2py (python2 version) "Version 2.24.1-stable+timestamp.2023.03.23.05.07.17", the import goes *OK *within a web2py shell. Running a virtualenv built on python *

[web2py] Re: Web2py deployment on a local so all computers in the network can acess it

2022-08-24 Thread Tom Clerckx
Not sure what information you're looking for. There is no dependency on having an internet connection to deploy your web2py service. With respect to deployment itself, you can follow the deployment recipes in the web2py manual. Tom. On Wednesday, August 24, 2022 at 11:49:13 AM UTC+2 s

[web2py] Re: Bug in gluon/scheduler.py

2022-08-20 Thread Tom Clerckx
wrote: > On Monday, August 8, 2022 at 3:50:26 AM UTC-7 Tom Clerckx wrote: > >> Version: >> Version 2.22.5-stable+timestamp.2022.06.04.18.13.51 >> >> There is a problem with the calculation of next_run_time in >> gluon/scheduler.py at line 1024 >> >> It ca

[web2py] Bug in gluon/scheduler.py

2022-08-08 Thread Tom Clerckx
Version: Version 2.22.5-stable+timestamp.2022.06.04.18.13.51 There is a problem with the calculation of next_run_time in gluon/scheduler.py at line 1024 It calculates: steps = secondspassed // task.period + 1 However, there is no check done for task.period being 0 This can cause the following

[web2py] About migrate and fake_migrate

2022-03-16 Thread Tom Clerckx
I was a bit confused about the explanation of the fake_migrate option in the web2py documentation. After some experimenting, I wrote up the following information for myself, just sharing it here with you. Maybe someone can merge this information in the web2py documentation, if you think it cont

[web2py] Re: Why web2py App performance has degraded all of sudden with SQLLITE

2021-11-08 Thread Tom Clerckx
Hi Sandeep, A bit a late reply, but it may be useful for someone later-on. I recently had the exact same issue, quite suddenly, things started to become slow. Here's what I did to solve it: *First thing to do:* make a backup of your project! *Second thing* to do is to vacuum your db, which doe

[web2py] Re: "Invalid email" when requesting password reset

2021-10-05 Thread Tele Tom
itive: table_user.email.requires.insert(0, IS_LOWER())" Is the best solution to simply enter the email address for login in lower case? Is it possible to edit that line of code in tools.py? I realize your post is 4 years old. Maybe this bug has been fixed. best, Tele Tom On Thursday, November 30,

[web2py] Re: SQLFORM.grid and user_signature - unexpected behavior

2021-05-24 Thread Tom Clerckx
Can someone confirm my reasoning... or correct it if it's wrong? Thanks, Tom. On Monday, May 10, 2021 at 3:22:24 PM UTC+2 Tom Clerckx wrote: > I was running into some issue with SQLFORM.grid and after going through > the code, I realized that the grid does not include reques

[web2py] SQLFORM.grid and user_signature - unexpected behavior

2021-05-10 Thread Tom Clerckx
I was running into some issue with SQLFORM.grid and after going through the code, I realized that the grid does not include request.vars when calculating the URL signature (ref: v2.21.1, gluon/sqlhtml.py @ 2440). Please correct me if I would be wrong,... else it may be useful to add somethi

Re: [web2py] Re: Update dropdown list in SQLFORM.grid based on selection in another dropdown list

2020-11-25 Thread Tom Clerckx
Thanks for sharing this. Best regards, Tom. On Wednesday, November 25, 2020 at 4:44:40 AM UTC+1 roge...@gmail.com wrote: > Glad you got it working. > > I send javascript from my controller back to the view for some custom > control widgets. That sounds similar to what you want

[web2py] Re: Update dropdown list in SQLFORM.grid based on selection in another dropdown list

2020-11-20 Thread Tom Clerckx
form-events onchange/onselect/...) could be achieved when e.g. creating the form, so that you can do it in python instead of having to add the javascript functions. On Friday, November 13, 2020 at 3:53:23 PM UTC+1 Tom Clerckx wrote: > Hi, > > Considering the sample code below. > I h

[web2py] Update dropdown list in SQLFORM.grid based on selection in another dropdown list

2020-11-13 Thread Tom Clerckx
Hi, Considering the sample code below. I have manually populated the books table with a number of books for different genres. Now I can create an entry in the shelves table, using the SQLFORM.grid The shelve_items will be shown as a dropdown list with the books that I've added What I would like

Re: [web2py] Re: web2py ajax function in py4web

2020-11-09 Thread Tom Campbell
Also, Stifan, could you post a few use cases? py4web includes vue.js by default and I am trying to understand the most common use cases of this for documentation purposes. I am guessing: - Instant form update on client side when a value is changed (for example, a star rating or even a compli

[web2py] TOMORROW: Talk to py4web's creator! Live Chat with Massimo DiPierro discussing py4web live 7/25/2020 10am PST

2020-07-24 Thread Tom Campbell
The hardest working man in the web framework business will be here for you to answer questions via interactive text. There will be a copy of the transcript available on FreeNode, plus I'll attempt to put together a polished version in article form. So the inevitable mistakes in my transcript wi

[web2py] Massimo discussing py4web live 7/11/2020 10am PST on freenode

2020-07-12 Thread Tom Campbell
No login needed. Text-based. https://webchat.freenode.net/#py4web -- 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 ar

[web2py] Re: Tables in Appadmin/index have disappeared

2019-08-14 Thread Tom Campbell
If you can imagine a version of the old song "Strumming My Pain" but about programming ("I felt he'd found my letters and read each one out loud"), yeah, you just told the story of my programming life too. I feel for you! Also you still have hair so that's good -- Resources: - http://web2py.com

[web2py] Re: web2py scripts (homemade task queues) and python2 compatibility

2019-07-16 Thread Tom Clerckx
That's clear, thanks for the update. On Tuesday, July 16, 2019 at 6:48:41 PM UTC+2, Leonel Câmara wrote: > > You're right, you must use the print function because web2py now has a " > from __future__ import print_function" which forces you to use the print > function even in python2 > -- Resour

Re: [web2py] web2py scripts (homemade task queues) and python2 compatibility

2019-07-11 Thread Tom Clerckx
Anyone else that can shed some light on this? On Friday, July 5, 2019 at 3:01:11 PM UTC+2, Tom Clerckx wrote: > > Hi Nico, > > I tried explicitly with python2.7, by executing: > python2.7 web2py.py -S examples -M -R > applications/examples/private/script01.py > > On a

Re: [web2py] web2py scripts (homemade task queues) and python2 compatibility

2019-07-05 Thread Tom Clerckx
on must be used. Or am I missing something/making a mistake? Best, Tom. On Thursday, July 4, 2019 at 10:45:30 PM UTC+2, Nico Zanferrari wrote: > > Hi Tom, > > even the latest 2.18.5 version of web2py is still fully compatible with > Python 2.7. > > I think you're runn

[web2py] web2py scripts (homemade task queues) and python2 compatibility

2019-07-04 Thread Tom Clerckx
Can anyone confirm that backward compatibility with python2 is broken with respect to web2py scripts (or homemade task queueus)? I just downloaded version "2.18.5-stable+timestamp.2019.04.08.04.22.03" and it looks like the python3 print() function must be used. Is there any plan to fix this? If

[web2py] Re: Thank you Web2py community - I have completed a live application, ViewBase.com, using Web2py

2019-04-05 Thread Tom Campbell
Amazing piece of work. Congratulations! -- 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] Git: save init application as separate repo from web2py, and exclude the init directory?

2019-03-17 Thread Tom Campbell
My (soon to be production) code is in the application named init. Obviously init is surrounded by the web2py installation itself. We will want to preserve the working version of web2py in a git repo since it's likely we will update web2py separately from the init app. I assume the best practice is

[web2py] .gitignore and just backing up one application

2019-02-18 Thread Tom Campbell
Want to get version control right for this one. It will be just one item in the /applications directory, the /applications/init project. Some questions. - Is there any reason to backup more than just /applications/init? I assume it is best simply to note the version of /web2py I'm using an

[web2py] Is there such a thing as a reliable, managed web2py/PostgreSQL host with good support?

2019-02-16 Thread Tom Campbell
Need managed, reliable hosting for a mission critical app that hits the eBay API at specified times. It's a generic CRUD app except that scheduled tasks (written in Go) must be run with 1 second accuracy, no more than 200/second at peak times. I am a pretty terrible sysadmin so my strong prefer

[web2py] Can we commit the codes from web2py to Git

2018-09-03 Thread Tom Campbell
Yes it works fine with Git. In fact... https://github.com/web2py -- 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

[web2py] Re: Unable to override Bootstrap in layout.html

2018-05-03 Thread Tom Campbell
On Thursday, May 3, 2018 at 9:30:56 PM UTC-7, pbreit wrote: > > I think the property you want is background-color > Not sure what you mean... the bootstrap source at https://github.com/twbs/bootstrap/blob/v4-dev/dist/css/bootstrap.css defines attributes like this: .navbar-dark .navbar-brand {

[web2py] Re: "Installed applications" list now missing my applications

2018-05-03 Thread Tom Campbell
Thanks for the response! Seemed that way to me too, but that wasn't the issue (because the list of applications was unique). I solved it the old-fashioned way--git pull on web2py itself -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] Unable to override Bootstrap in layout.html

2018-05-03 Thread Tom Campbell
Goal is to change the color, size, and eventually default font of Bootstrap 4 navbar. The following seemed to have no effect in web2py-bootstrap4.css (not the final colors! Just wanted contrasting ugly ones to make sure the experiment worked!) file: web2py-bootstrap4.cs .navbar-dark { c

[web2py] SOLVED: Where does configuration.get() look for files? Or does it?

2018-05-03 Thread Tom Campbell
Ah. It's AppConfig (see http://web2py.com/books/default/chapter/29/13/deployment-recipes?search=AppConfig#AppConfig-module). The values are stored in .ini format in the /private directory, which is not supposed to be part of the Git repo. On Thursday, May 3, 2018 at 1:40:44 AM UTC-7

[web2py] Where does configuration.get() look for files? Or does it?

2018-05-03 Thread Tom Campbell
Trying to set up the mailer for Gmail. After a spell a way from web2py I see code like this in db.py mail.settings.login = configuration.get('smtp.login') 1. What is "configuration.get()"? I'm assuming it's a function that reads a file with configuration info? When I searched the web2py source <

[web2py] SQLite data file in production-backing up

2018-05-03 Thread Tom Campbell
SQLite is more than enough for my needs, I think. In the best of worlds we will have no more than a few thousand customers after we get up and running. But I'm not sure what to do about the database file, which is of course unencrypted. I will place it in a directory that is not accessible to w

[web2py] Re: Compile controller and module files only

2017-10-09 Thread Tom Clerckx
Update: It works fine on the latest web2py release - that works for me. Thanks. On Monday, October 9, 2017 at 10:26:20 AM UTC+2, Tom Clerckx wrote: > > That does not seem to work for me I'm getting an "invalid view" error > after removing the compiled view files..

[web2py] Re: Compile controller and module files only

2017-10-09 Thread Tom Clerckx
October 6, 2017 at 4:10:57 AM UTC-4, Tom Clerckx wrote: >> >> Is it possible to compile an application, but keep the views and the CSS >> 'uncompiled'? >> The idea is that other people can change the look and feel without having >> access to the code of the

[web2py] Compile controller and module files only

2017-10-06 Thread Tom Clerckx
Is it possible to compile an application, but keep the views and the CSS 'uncompiled'? The idea is that other people can change the look and feel without having access to the code of the controllers and the models. Best regards, Tom. -- Resources: - http://web2py.com - http://web2p

[web2py] Suggestion to add in documantation about reference fields

2017-05-24 Thread Tom Clerckx
The web2py documentation indicates that a reference field has the following default validator: IS_IN_DB(db, table.field, format) I suggest the default validator to be described as: IS_IN_DB(db, table._id, table._format) If you use any other field besides *table._id* in the validator, this cause

[web2py] Re: Things to do to secure server running purely web2py?

2017-02-16 Thread Tom Campbell
As usual the web2py book has tons of great info in the Deployment chapter. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.co

[web2py] Re: Why doesn't web2py create a PostgreSQL database automatically (curiosity, not criticism)

2017-02-16 Thread Tom Campbell
Thanks, Stifan, you rock as always. I thought I had tried & failed with this but I trust you on these matters more than myself. Can't wait to get to my db machine to re-test -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Why doesn't web2py create a PostgreSQL database automatically (curiosity, not criticism)

2017-02-16 Thread Tom Campbell
As a database admin newb last year I had trouble deploying a PostgreSQL site because I forgot that "real" DBMSes require you create a database first, unlike SQLite. So I was trying to create tables in a nonexistent database. Is there some reason web2py doesn't just create a PostgreSQL database

Re: [web2py] Re: custom form default value

2016-12-21 Thread Tom Schuerlein
Thank you, I was completely unaware that this syntax was needed. I will never get those 2 hrs of my life back, but thanks to you I will sleep well tonight!!! You are THE BOSS. On Wed, Dec 21, 2016 at 5:52 AM, Anthony wrote: > > id="sample_sample_name" class="text" value={{=

[web2py] custom form default value

2016-12-20 Thread Tom Schuerlein
Hi: I am trying to write a fairly simple custom update form as shown below. The application is used in a lab to track "jobs" which consist of many samples each. The sample names are often more than one word. I am writing a page to edit the existing data base entry. However, when I set the

[web2py] custom forms

2016-11-07 Thread Tom Schuerlein
I am new to Web2Pyl. I am looking for a help building a custom form. Specifically how to pass db fields to the HTML View when building the code. I've been looking for a tutorial on building custom forms with no luck. I need to be able to have several input fields on one row; with a mixture o

[web2py] Re: LOAD with ajax=True not working with SSL

2016-05-28 Thread Tom Øyvind Hogstad
ons unless the site use SSL ... Still works in Safari on IOS so it's not really an issue. :-) Tom Ø. fredag 27. mai 2016 14.33.43 UTC+2 skrev Niphlod følgende: > > check your SSL virtual server stanza: there's probably something different > in it. From web2py standpoint, http or

[web2py] LOAD with ajax=True not working with SSL

2016-05-27 Thread Tom Øyvind Hogstad
Hi I enabled SSL on my site and a web2py form.grid embedded in a page using LOAD ajax=True ended up only spinning. Works fine without SSL. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

[web2py] Re: Email not working

2016-02-19 Thread Tom Russell
Yea I have the user/pw correct, the smtp settings seem pretty straight forward as well so not sure what the root cause is. On Friday, February 12, 2016 at 4:10:20 PM UTC-5, Dave S wrote: > > > > On Friday, February 12, 2016 at 12:17:57 PM UTC-8, Tom Russell wrote: >> >>

[web2py] Re: Email not working

2016-02-12 Thread Tom Russell
Yea I am not trying to blame web2py but it just seems I am not having any luck getting an email to send. I am using a smtp interface on the other side. I am just at a loss as to what the issue is and how to solve it. Thanks, Tom On Friday, February 12, 2016 at 2:40:43 PM UTC-5, Niphlod wrote

[web2py] Email not working

2016-02-12 Thread Tom Russell
other services and nothing so far seems to work. Has anyone tried an actual mail service that works, preferably free or close to it. I am beginning to think that web2py has an issue doing this task. I really need to get past this hurtle for a product launch soon. Thanks, Tom -- Resources

[web2py] Re: Probably very naive question from new user

2016-02-10 Thread Tom Campbell
www.pyguy.com has a few beginner-level tutorials that probably answer those questions -- 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 m

[web2py] class 'psycopg2.ProgrammingError'> relation "auth_user" already exists

2016-01-29 Thread Tom Campbell
App is on pythonanywhere, using Postgres. Connect string is: db = DAL('postgres://web2pydbadmin:mypassw...@memberable-96.postgres.pythonanywhere-services.com:10096/mydatabase') Existing topics like https://groups.google.com/forum/#!topic/web2py/p740UJkR3Ao do not seem to have helpful info.

[web2py] Re: SQLFORM.factory() - Display name instead of integer for user_id?

2016-01-13 Thread Tom Campbell
On Wednesday, January 13, 2016 at 3:38:56 PM UTC-8, Tom Campbell wrote: > > Creating a custom form that relates first name and last name fields to the > db.auth_user's user_id field. In the form below the user ID shows as an > integer in the dropdown but I'd like it to s

[web2py] SQLFORM.factory() - Display name instead of integer for user_id?

2016-01-13 Thread Tom Campbell
Creating a custom form that relates first name and last name fields to the db.auth_user's user_id field. In the form below the user ID shows as an integer in the dropdown but I'd like it to show as the user's name. How do I do that? form = SQLFORM.factory( Field('fi

Re: [web2py] Email Registration

2016-01-12 Thread Tom Russell
service > use the site and the problem > > Il giorno sabato 9 gennaio 2016 22:52:17 UTC+1, Tom Russell ha scritto: >> >> Yea I have a premium account with pythonanywhere. >> >> On Saturday, January 9, 2016, Alessio Varalta wrote: >> >>> Maybe is a pr

Re: [web2py] Email Registration

2016-01-09 Thread Tom Russell
gt; Il giorno sabato 9 gennaio 2016 21:41:31 UTC+1, Tom Russell ha scritto: >> >> >> Hi, >> >> I have everything in place according to the docs to do the email >> registration process. However every time I try it in the error log it just >> says email not sen

[web2py] Email Registration

2016-01-09 Thread Tom Russell
am using web2py version 2.12.3-stable+timestamp.2015.08.19.00.18.03 on pythonanywhere. The server where the email from comes from is godaddy. Any ideas what to check for with this? Thanks, Tom -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] Re: Failing at Google Cloud SQL again: missing MySQLdb import somewhere?

2016-01-05 Thread Tom Campbell
So the problem was that on the latest OS X, libraries are now prohibited from using relative pathnames . I am testing, re-testing, and re-re-testing the document I'm writing up on every machin

[web2py] WSGI & Web2py

2016-01-04 Thread Tom Lancaster
ed a hack in the wsgihandler.py of each script to ensure they are the same. Does anyone have any good ideas as to next steps for troubleshooting? I'm running the latest version of apache on ubuntu 14.04 and the latest web2py. (On both servers). Thanks, Tom -- Resources: - http:/

[web2py] Re: Failing at Google Cloud SQL again: missing MySQLdb import somewhere?

2016-01-02 Thread Tom Campbell
Argh, I should have updated this. Thank you for answering! Adding the import to dev_appserver.py did not work. But I had to learn about pip (ahem) and imported Python-MySQL, which definitely helped (now there's another problem I'm tracking down). I am so used to web2py coming with everything it

[web2py] Failing at Google Cloud SQL again: missing MySQLdb import somewhere?

2016-01-02 Thread Tom Campbell
I think I may have lied. When I asked the question $100 reward to get a simple web2py app runnnig on GAE with Google Cloud SQL , I was either incompetent or dishonest in my answer! Masssimo asked me to document the process. I have been

web2py@googlegroups.com

2015-12-26 Thread Tom Campbell
Cleaner versions in tutorial style at pyguy and and web2pyslices . Criticism warmly welcom

[web2py] Re: datatables.net fail: "Uncaught SyntaxError: Unexpected token &" ANSWERED

2015-12-26 Thread Tom Campbell
After a day of messing this, *of course I answered it myself moments after posting!*Answer was to define columns used and to use {{=XML}} helper:a $(document).ready(function(){ $("#person-table").DataTable({ "data": {{=XML(results)}}, columns: [

web2py@googlegroups.com

2015-12-26 Thread Tom Campbell
Trying to display rows using the datatables.net DataTable() function by converting query results to JSON, but getting error "Uncaught SyntaxError: Unexpected token &". Though the raw data displays correctly in the view below, when I look at the results in the web console debugger I see that the

[web2py] Re: $100 reward to get a simple web2py app runnnig on GAE with Google Cloud SQL

2015-12-19 Thread Tom Campbell
IT WORKS! Cannot tell you what a relief that was. I will absolutely write it up in a web2pyslice, a blog post, and a book section! THANK YOU -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/we

[web2py] Re: $100 reward to get a simple web2py app runnnig on GAE with Google Cloud SQL

2015-12-18 Thread Tom Campbell
Thank you! Soon as I get back I can't wait! On Saturday, December 12, 2015 at 7:05:04 PM UTC-8, Tom Campbell wrote: > > I want to get a minimal web2py app running on Google Application Engine, > using Google Cloud SQL as the backing store. Have not succeeded. Obviously > beca

[web2py] $100 reward to get a simple web2py app runnnig on GAE with Google Cloud SQL

2015-12-12 Thread Tom Campbell
I want to get a minimal web2py app running on Google Application Engine, using Google Cloud SQL as the backing store. Have not succeeded. Obviously because I have a much bigger app running locally and want to get that up and running. If anyone can show me how to do this via Skype, a well-writte

[web2py] GAE: "UserWarning: There are too many files in your application..." Which files to hide?

2015-12-11 Thread Tom Campbell
While attempting to another GAE problem , I'm running into this GAE error: 15: UserWarning: There are too many files in your application for changes > in all of them to be monitored. You may have to restart the development

[web2py] GAE app running locally can't open Google Cloud SQL database: "Failure to connect, tried 5 times"

2015-12-11 Thread Tom Campbell
s the latest. db.py contains this code: db = DAL('google:sql://gigcity-1951:dbtest/tomsdatabase') When run, yields this web2py error: Failure to connect, tried 5 times: > Traceback (most recent call last): File > "/Users/tom/Dropbox/work/m/web2py/gluon/dal/base.py"

[web2py] GAE problems cont'd--Library not loaded: libmysqlclient.18.dylib

2015-10-23 Thread Tom Campbell
1, in File "build/bdist.macosx-10.11-intel/egg/MySQLdb/__init__.py", line 19, in File "build/bdist.macosx-10.11-intel/egg/_mysql.py", line 7, in File "build/bdist.macosx-10.11-intel/egg/_mysql.py", line 6, in __bootstrap__ ImportError: dlopen(/Use

[web2py] Re: Google Cloud SQL: Unable to connect

2015-10-23 Thread Tom Campbell
Thank you, Sébastien. I indeed had not used MySQLdb in app.yam, nor had I included credentials on the tried what you suggested and still get an error on the dev_appserver.py command line. Log files say this: ERROR2015-10-23 21:47:10,581 restricted.py:174] Traceback (most recent call last):

[web2py] Consultant needed for GAE, testing, single page app issues

2015-10-21 Thread Tom Campbell
google-app-engine-with-google-cloud-sql-and/details> in a free book on deploying web2py apps on GAE with Cloud SQL. Cheers, Tom Campbell tomcampb...@gmail.com. Seattle area. My (already) publicly available phone # is (425) 260-5292 -- Resources: - http://web2py.com - http://web2py

[web2py] Google Cloud SQL: Unable to connect

2015-10-21 Thread Tom Campbell
My app is named todo. I want to deploy it to GAE using Google Cloud SQL. Connection looks like this: if not request.env.web2py_runtime_gae: db = DAL(myconf.take('db.uri'), pool_size=myconf.take('db.pool_size', cast=int), check_reserved=['all']) else: db = DAL('google:sql://gigcity-1951:db

Re: [web2py] Re: OS X Permissions question: echo works in ../web2py but not ../web2py/applications?

2015-10-20 Thread Tom Campbell
Ah, relief. You have diagnosed the issue exactly. Thank you so much. -- 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 yo

Re: [web2py] Re: OS X Permissions question: echo works in ../web2py but not ../web2py/applications?

2015-10-20 Thread Tom Campbell
an use chmod and chown to restore those permissions. This could also > be a problem with the filesystem. Some time permissions go bad in OSX and > you have to use the Disk Utils to fix permissions and then reboot. > > > On Monday, 19 October 2015 20:53:28 UTC-5, Tom Campbell wrote: &g

[web2py] OS X Permissions question: echo works in ../web2py but not ../web2py/applications?

2015-10-19 Thread Tom Campbell
In the most recent version of Mac OS X, if I'm in the web2py directory this works fine: echo "# todo" >> README.md Yet if I'm in web2py/applications or any of its subdirectories I get a "Permission denied" error. What incredibly stupid thing am I doing wrong? -- Resources: - http

[web2py] GAE app works locally, not deployed to cloud

2015-10-16 Thread Tom Campbell
Plan is to host my app on GAE eventually. I have a small demo app named todo that works fine this way, deployed using the GAE local server: $ cd /usr/local/web2py $ python web2py.py -G GAE $ dev_appserver.py ../web2py But when I deploy it to the cloud: $ dev_appserver.py ../web2py and vist ht

[web2py] Documentation: update requires writable=False

2015-10-15 Thread Tom Clerckx
ocumentation (in the DAL chapter describing the Field constructor) - just so other people don't waste time figuring this out. Best regards, Tom. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://cod

[web2py] Re: 0.db naming convention?

2015-10-15 Thread Tom Campbell
Thank you, Leonel. AppConfig seems to be totally undocumented. Is this my cue to contribute to the docs by rooting around in the source and asking you folks stupid questions about AppConfig? -- Resources: - http://web2py

[web2py] 0.db naming convention?

2015-10-14 Thread Tom Campbell
I notice there seems to be a convention that application-specific models go in a file named 0.db. Any particular reason for that or inside info that makes it easier to work with later? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Version control: web2py and my application in separate repos?

2015-10-09 Thread Tom Campbell
Thank you, Leonel and Vincinius. So it seems that the canonical way to do this would be as follows? # Create a git repo of web2y and pydal on your local machine $ git clone --recursive https://github.com/web2py/web2py.git # Inside the web2py directory... $ cd web2py # ...check out version

[web2py] Re: Version control: web2py and my application in separate repos?

2015-10-09 Thread Tom Campbell
Me too. I have to be honest, the reason I'm using my own web2py repo is because I don't understand the WARNING: DO NOT DOWNLOAD RELEASES FROM THIS GITHUB PAGE at https://github.com/web2py/web2py/releases thing. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://

[web2py] Version control: web2py and my application in separate repos?

2015-10-09 Thread Tom Campbell
My app is under version control at Github. It will be deployed on Google App Engine. There's a chance that web2py could be updated and render some of my app's behavior unpredictable, or, more likely, GAE could screw something up and break web2py. I think the obvious choice, then, is to have a s

[web2py] Re: A helper callback not working as expected

2015-10-07 Thread Tom Campbell
Thank you, Anthony. I was working with a much older version of web2py. I updated to 2.12.3-stable and it appears to be working fine. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issu

[web2py] A helper callback not working as expected

2015-10-06 Thread Tom Campbell
I would expect this to link to default/completed. My app is named ajaxtodo. I have controller() defined in default.py. However, the A helper below only links to http://127.0.0.1:8000/ajaxtodo/default/index#null {{=A('Completed', callback=URL(c='default', f='completed'))}} How can I get that to

Re: [web2py] Re: How to demonstrate LOAD() working properly?

2015-10-02 Thread Tom Campbell
ogged in, > try visiting the link and copy-pasting from the browser URL. Or maybe > provide the example of your app by uploading it to github/bitbucket. > > > On Friday, October 2, 2015 at 7:05:24 PM UTC-4, Tom Campbell wrote: >> >> I am working on a simplified single-p

[web2py] How to demonstrate LOAD() working properly?

2015-10-02 Thread Tom Campbell
I am working on a simplified single-page app demo. I think I have it working, but I'm not sure because I need to demonstrate that only part of the page is reloading. Most of the code is shown in this post: https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.en.Pryf_O7ZHDs.O/m=m_i,t/am=Pi

[web2py] Re: console.log on page reload?

2015-10-01 Thread Tom Campbell
Thank you, Derek, but I'm still flummoxed. I added this new script tag to web2py_ajax.html: console.log('loaded ' + Date.now()) But I'm getting this message even when I use LOAD(). So I'm trying to understand whether I am placing this code in the wrong location or what, because I think it shou

[web2py] console.log on page reload?

2015-10-01 Thread Tom Campbell
Working on a single-page app and trying to ensure that only part of the page gets refreshed. Doing some tests using LOAD() that look like this: *file default/new.html:* {{extend 'layout.html'}} {{=LOAD('default', 'new.load',ajax=True)}} *file default/new.load:* {{if 'message'in globals():}} {{

[web2py] GAE/Google AppEngine problem with web2py: "Deployment successful" but GAE does not launch

2015-07-30 Thread Tom Campbell
My AppEngine ID is memberable0. I copied examples/app.example.yaml to web2py root as app.yaml Only change I made was: application: memberable0 Web2py lives in /Users/tom/Dropbox/work/m/web2py and that path shows successfully in GoogleAppEngineLauncher, which shows port 8081 for the web server

[web2py] Silly out of band question about deploying web2py

2015-06-01 Thread Tom Campbell
I am building a SaaS business and am not yet able to hire someone to do the hard stuff (which is everything but the programming). Is there some kind of managed solution I should be looking at, maybe GAE? This message by Lewis

[web2py] Replacing layout.html with an AdminLTE dashboard

2015-05-10 Thread Tom Campbell
AdminLTE is a beautiful dashboard template. Using it in my current project, and I've posted it to Github at AdminLTE-web2py . Let me know what egregious mistakes I've made. I did follow along with my tutorial to

[web2py] Re: Tutorial: Populating a Handsontable Grid using web2py

2015-05-09 Thread Tom Campbell
Done and done, Ken--another blog post floating in the wind. Fixed the CRUD thing and a few other items. PyGuy web2py Handsontable tutorial #1: Populating a Handsontable grid using web2py

[web2py] Re: Solve enconding on diferent server

2015-05-07 Thread Tom Stratton
g the source of the error. Thanks Tom > -- 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 th

[web2py] Suggested Best Practice For Participating in Web2py and Pydal?

2015-05-04 Thread Tom Stratton
for this setup and I'm looking for advice. Thanks Tom -- 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 subs

[web2py] Re: Pydal ilike search inside a list of strings?

2015-05-04 Thread Tom Stratton
- contains('%Smith') > and (for case-insensitive query) > - contains('%smith', case_sensitive=False) > > Paolo > > On Tuesday, April 28, 2015 at 9:26:24 PM UTC+2, Tom Stratton wrote: >> >> For me, with the postgres adapter, the "contains"

  1   2   3   4   >