Re: [web2py] Module error

2020-12-07 Thread Warwick JC
I had the same issue with pygal. After putting the pygal moduIe in the modules folder all was sorted. On Mon, Dec 7, 2020, 18:43 Gaël Princivalle wrote: > That's crazy for sure. > The modules are in the modules folder . > I don't understand why they don't appear in the modules list and why > the

Re: [web2py] Module error

2020-12-07 Thread Warwick JC
Easier and crazy way I do is install the requests module in modules folder or site packages. On Mon, Dec 7, 2020, 16:51 Gaël Princivalle wrote: > > Hello. > > Moving an app to another server I've this error: > No module named > applications.myapp.modules.requests > > Of course I've the modules

[web2py] How to customize email settings.

2020-12-02 Thread Warwick JC
I recently successfully used the configured email settings as follows: mail = auth.settings.mailer mail.settings.server = 'smtp.gmail.com:587' mail.settings.sender = 'usern...@gmail.com' auth.settings.registration_requires_verification = True I noted that the email arrived with the sender name in

Re: [web2py] web2py 2.21.1 is OUT

2020-11-28 Thread Warwick JC
Thank you for your great product. Regards On Sat, Nov 28, 2020, 07:22 Massimo Di Pierro wrote: > > Hello everybody, > > first of all my apologies to you all. I have been absent from this list > for some time, mostly because busy with py4web. > > I made a new release (2.21.1) of web2py which incl

[web2py] Hide multiple controller names and functions.

2020-11-23 Thread Warwick JC
Following on this , is there a way one can do the same with multiple controllers and thier functions? For me it only works for one controller. Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github

Re: [web2py] Anyone in or near Barcelona?

2020-10-16 Thread Warwick JC
I once had a project with: nick.d.kreiss...@gmail.com Then he was in Barcelona On Thu, Oct 15, 2020, 15:43 i.r...@appichar.com.au wrote: > Hi - I'm looking for someone based in or around Barcelona with > Python/web2py experience who might be able to help with a couple of > projects I've built /

[web2py] How to shorten URL name for web2py with multiple controllers

2020-08-06 Thread Warwick JC
Hello. I only note that this works only for the index page. routers = dict( # base router BASE=dict( default_application='init', ), # app specific router rivelar=dict( default_controller='default', default_function='index' ) ) I would also like to sho

[web2py] making url shorter in web2py and google appengine

2020-08-06 Thread Warwick JC
Hello, I followed this example on URL shortening. I wonder how can I do with multiple controllers in the app. Will the example below be pythonic? routers = dict( BASE = dict( default_

Re: [web2py] Re: How do I prevent going back to previous page after user is logged out?

2020-08-03 Thread Warwick JC
Thanks guys. They both work well. Regards On Mon, Aug 3, 2020, 21:01 Rahul wrote: > Another simple way is -- > To pop out session variables like in code below for all the login session > variables and redirect the user wherer-ever you want them to be. > This way since no valid session exists th

Re: [web2py] Re: How do I prevent going back to previous page after user is logged out?

2020-08-02 Thread Warwick JC
Hi Thanks for this. I put these functions in the model.py, I hope its correct. def __on_login(): redirect(URL('index')) return None def __on_logout(): redirect(URL('index')) return None On Fri, 31 Jul 2020 at 11:49, 'Annet' via web2py-users < web2py@googlegroups.com> wrote: > Wh

Re: [web2py] Re: login expiration time

2020-07-28 Thread Warwick JC
nt into > your website, e.g. advertisements. > > The iframe allows a method of ceding control of a portion of your screen > to be taken over and used by 'someone else' e.g. perhaps a credit card > payment gateway, a PDF viewer, or simply pages from other websites. > >

[web2py] How do I prevent going back to previous page after user is logged out?

2020-07-27 Thread Warwick JC
I have a page that when logging in from a previous logout, the login page redirects back to the same page. I want to have a default redirect to the index page instead. Using auth.settings.login_next = URL('default','index') does not help. 1. Is there a better way out in js or some form o

Re: [web2py] Re: login expiration time

2020-07-25 Thread Warwick JC
24 July 2020 23:21:03 UTC+3, Warwick JC wrote: > > Thanks. > Is it wrong to have iframe pages from the same app? > Regards > > On Fri, 24 Jul 2020 at 15:20, villas wrote: > >> If you are using an iframe to display a page from the same app, I have >> the impression

Re: [web2py] Re: login expiration time

2020-07-24 Thread Warwick JC
Thanks. Is it wrong to have iframe pages from the same app? Regards On Fri, 24 Jul 2020 at 15:20, villas wrote: > If you are using an iframe to display a page from the same app, I have > the impression that your design might be wrong. You will probably find a > better way after you give this a

[web2py] login expiration time

2020-07-23 Thread Warwick JC
Hello. I have a web2py html page (e.g. idex.html) that has another page in iframe within the app. After session timeout, I get redirected back to the login page which works at the iframe page and not the main page. I used this in the model.py: auth.settings.expiration = 1800 The problem is

Re: [web2py] Any alternative to installing web2py on laptop

2020-07-19 Thread Warwick JC
I also just use a local folder to run Web2py. You can still use the laptop by downloading the source file and unpacking it to a local folder. Regards On Mon, Jul 20, 2020, 08:32 AGRogers wrote: > Sure. pythonanywhere.com is where I started. > > Maybe it can run from a USB stick? I think it is pr

Re: [web2py] Re: I broke something

2020-05-25 Thread Lovedie JC
I got several such errors in p3. Changing to: Except Exception as e: Works for me. On Tue, Jun 18, 2019, 19:19 Jim S wrote: > Isn't that an old except syntax that is not supported in Python 3? > > I'm thinking it should be: > > except Exception as e: > > > ...but, I'm no expert in 2 to 3 changes

Re: [web2py] Re: web2py and ubuntu 20lts

2020-05-01 Thread Lovedie JC
On system restart, the previous pyc files for python 2+ were deleted and it works OK. Let me observe for now. Regards On Fri, May 1, 2020, 11:26 Lovedie JC wrote: > Let me try > > On Fri, May 1, 2020, 11:00 Clemens > wrote: > >> Hi Maurice, >> >> obvious

Re: [web2py] Re: web2py and ubuntu 20lts

2020-05-01 Thread Lovedie JC
Let me try On Fri, May 1, 2020, 11:00 Clemens wrote: > Hi Maurice, > > obviously you're trying to execute your pythone-2-compiled code with > python 3 (Ubuntu 20 default). Have a try recompiling it with python 3.x. > > Does this solve the problem? > > Regards > Clemens > > On Friday, May 1, 202

Re: [web2py] Android and ios aops

2020-04-24 Thread Lovedie JC
Thanks. I had seen the SL4A some time ago but couldn't trace the instructions on how to do it. I'm more interested in a Google play store product though. Regards On Fri, Apr 24, 2020, 17:45 Christian Varas wrote: > Hi, i did this in android some years ago, you can run web2py using SL4A > and ins

Re: [web2py] Re: Getting an error that ends in "No driver of supported ones %s is available" % str(self.drivers) RuntimeError: No driver of supported ones ('psycopg2',) is available

2020-04-18 Thread Lovedie JC
I once had the same error, Updated Web2py then copied the psycopg2 in the modules folder. It worked for me. Regards On Sat, Apr 18, 2020, 19:09 Valdeck Rowe wrote: > So I checked gluon/contrib and it wasn't there, so I moved it into > gluon/contrib. Restarted nginx. Still getting the same error.

Re: [web2py] Which 4 or 2?

2020-04-18 Thread Lovedie JC
Check out the video tutorials on vimeo as well. They're great Regards On Sat, Apr 18, 2020, 11:11 David Swarbrick wrote: > Thank you for the encouragement, and the really useful resources > identified. > > I think I have to work through the book, and where something really is not > understandabl

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Lovedie JC
ense? > > -Jim > > > On Thu, Apr 2, 2020 at 12:45 PM Jim Steil wrote: > >> Same effects, yes, but what error messages are you seeing in the console? >> >> -Jim >> >> On Thu, Apr 2, 2020 at 9:55 AM Lovedie JC wrote: >> >>> I did that,

Re: [web2py] Re: jQuery not working with web2py

2020-04-02 Thread Lovedie JC
I did that, without the layout.html but still getting the same effects. Regards On Thu, Apr 2, 2020, 17:42 Jim S wrote: > You are including layout.html at the top of your code snippet. > > I would suggest that you test this all by itself (remove the include of > layout.html) before trying to int

Re: [web2py] web2py 2.19.1 is OUT

2020-03-21 Thread Lovedie JC
I've updated it. Flawless 👍 Good work. Much appreciated. Regards On Sun, Mar 22, 2020, 04:28 Christian Varas wrote: > Thanks! 🎉🎉🎉🎊 > > El El sáb, 21 de mar. de 2020 a la(s) 18:52, Massimo Di Pierro < > massimo.dipie...@gmail.com> escribió: > >> Sorry it took so long. >> >> Web2py 2.19.1 is final

Re: [web2py] Re: py4web posting to db

2020-03-04 Thread Lovedie JC
I just found out that the error was because I was having a null variable instead of an image in one of the lines. I still can't figure out how I can't have the Field(author, reference auth_user work. On Wed, Mar 4, 2020, 13:30 Maurice Waka wrote: > I've done some look up into the code, did some

Re: [web2py] Re: p4web auth issues

2020-02-23 Thread Lovedie JC
Thanks. Before you replied I had tried : user = auth.get.user()[first_name] With an error.. 'first_name' is not defined Regards On Mon, Feb 24, 2020, 02:02 Val K wrote: > `auth` in py4web is no the same as in web2py > to get user-record you should > ... > def index(): > user = auth.get_user

Re: [web2py] Re: ERROR on Request

2020-02-21 Thread Lovedie JC
Thanks. I switched to it. Regards On Fri, Feb 21, 2020, 06:58 Massimo Di Pierro wrote: > in py4web request is the bottlepy request. > https://bottlepy.org/docs/dev/api.html#the-request-object > There is no now. > > You can use datetime.timetime.now() > > On Tuesday, 18 February 2020 08:34:51 UTC

Re: [web2py] web2py Newbie

2020-02-09 Thread Lovedie JC
Probably your default python is 2.7. You need to download the latest Web2py. Use python 3 since we are moving from python 2.7 For example, in terminal use : >>cd web2py Then once in the folder: >>python3 web2py.py Support for python 2.7 ended. Regards On Mon, Feb 10, 2020, 08:58 Tim Polimeni wrot

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

2020-01-23 Thread Lovedie JC
Is there a problem with @auth_has _permission? I intend to use it. Regards On Thu, Jan 23, 2020, 18:57 Jim S wrote: > You'll be fine with the new system I believe as long as you're not > currently using @auth.has_permission. While you can do it with py4web it > is more challenging than in web2p

Re: [web2py] No driver of supported ones ('psycopg2',) is available

2020-01-20 Thread Lovedie JC
I had to copy it, the folder to Web2py modules folder for it to work. You can also copy to Web2py site packages folder. Regards On Mon, Jan 20, 2020, 20:53 'Annet' via web2py-users < web2py@googlegroups.com> wrote: > Last week I upgraded my development environment from Mac OS X Mavericks - > Pyth

Re: [web2py] runing my app from python 2.7.5 to 3.5.9

2019-12-30 Thread Lovedie JC
Most functions/modules will work. Some may require some code changes such as print in 2.7 is: 'print variable' But in 3.6 is a function as: 'print (variable)' Some module are deprecated or changed to different folders Depending on your needs. I did change to 3.6 with minimal changes to code.

Re: [web2py] Database drivers available does not show psycopg2

2019-12-21 Thread Lovedie JC
Had the same issues. Found out that python was looking for the drivers in anaconda folder instead. Had to rename anaconda. Still then same problems persisted with python 3.6. I had to download the psycopg2 and put the folder in site packages or modules folder. Problem solved. Regards On Fri, Dec 2

Re: [web2py] No Column error

2019-11-30 Thread Lovedie JC
Yes I did. Thanks for the help On Sat, Nov 30, 2019, 07:45 Dave S wrote: > > > On Friday, November 29, 2019 at 1:06:01 AM UTC-8, Lovedie JC wrote: >> >> I think my error was due to a reserved name. I had a field called >> timestamp that was leading to the error. &

Re: [web2py] No Column error

2019-11-29 Thread Lovedie JC
I think my error was due to a reserved name. I had a field called timestamp that was leading to the error. Now works well. On Wed, Nov 27, 2019, 19:01 Maurice Waka wrote: > I got this error after installing psycopg2 > > > > Traceback (most recent call last): > File "/home/mauricewaka/web2py/gl

Re: [web2py] a first py4web video tutorial - running on pythonanywhere.com

2019-09-26 Thread Lovedie JC
Great news. Py4web for mobile? On Mon, 23 Sep 2019, 08:35 Massimo Di Pierro wrote: > https://youtu.be/Wxjl_vkLAEY > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/lis

Re: [web2py] Re: How do I solve this error: NameError: name 'person_id' is not defined in KPax2

2019-09-12 Thread Lovedie JC
Auth.iser.id works. Just the cPickle issues. Maybe I'll be on and off asking more about it. Regards On Thu, 12 Sep 2019, 09:16 Massimo Di Pierro wrote: > wow that is a very old app. It has some good ideas but it also has bugs. > It was a proof of concept. I believe person_id in that context sho

Re: [web2py] Re: How do I solve this error: NameError: name 'person_id' is not defined in KPax2

2019-09-11 Thread Lovedie JC
I got this from web2py appliances apps. Just trying it out. Regards On Wed, 11 Sep 2019, 11:04 Dave S wrote: > > > On Tuesday, September 10, 2019 at 1:31:11 PM UTC-7, Maurice Waka wrote: >> >> I'm trying out a surveys app from KPax2/surveys/take_survey.. >> >> >> but got this error: >> Traceback

Re: [web2py] Re: How to get rid if the /init/default/ in the URL?

2019-09-03 Thread Lovedie JC
Ok. I meant hide them. Regards On Tue, 3 Sep 2019, 10:06 Dave S wrote: > > > On Saturday, August 31, 2019 at 4:58:49 AM UTC-7, Maurice Waka wrote: >> >> Hi >> This is a very good discussion. >> I followed it and it worked for me. >> However, I have multiple controllers with different views, How

Re: [web2py] How do I solve the login issue

2019-07-13 Thread Lovedie JC
Hi. I had to remove and reinstall Google Chrome. Works for now. On Fri, 12 Jul 2019, 23:37 Maurice Waka wrote: > I recently upgraded to the latest version of web2py, > Today after restarting my system I have not been able to login to the > admin interface after countless attempts, repeat downloa

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Lovedie JC
How do I show them. I can see them in the folders but can't show them. On Thu, 11 Jul 2019 at 17:27, Jim Steil wrote: > Can you show: > > /etc/nginx/sites-enabled/web2py > > and > > /etc/uwsgi/web2py.ini > > -Jim > > On Thu, Jul 11, 2019 at 9:21 AM Lovedi

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Lovedie JC
Web2py works well on the local machine. But when I follow the steps shown on the links, I get the error message. On Thu, 11 Jul 2019 at 17:13, Jim Steil wrote: > Does it work on your local Ubuntu install? > > -Jim > > On Thu, Jul 11, 2019 at 9:08 AM Lovedie JC wrote: > &

Re: [web2py] Re: How to solve the OSError: [Errno 9] Bad file descriptor error

2019-07-11 Thread Lovedie JC
I'm using Ubuntu 18.04 web2py, python 3.6. I was trying to deploy to digital Ocean On Thu, 11 Jul 2019, 16:28 Jim Steil wrote: > On Windows? Linux? Digital Ocean? > > On Thu, Jul 11, 2019 at 8:26 AM Maurice Waka > wrote: > >> The problem is with the welcome app. I haven't tried any other app.

Re: [web2py] please help testing web3py

2019-07-10 Thread Lovedie JC
Using ubunut 18.04lts, we are getting: Error Ticket: module 'jwt.exceptions' has no attribute 'InvalidSignatureError' Traceback (most recent call last): File "/home/mauricewaka/web3py/web3py/core.py", line 280, in load self.local.data = jwt.decode(token_data, self.secret, algorithms=[self.a

Re: [web2py] please help testing web3py

2019-07-09 Thread Lovedie JC
Working for me but getting 40 Errors on myapp, _scaffolding. On Tue, 9 Jul 2019, 15:51 Carlos Costa wrote: > I was able to install, start and create app without problems on Ubuntu 19.4 > > Em ter, 9 de jul de 2019 às 09:43, Jim Steil > escreveu: > >> Works for me now. I deleted myapps and retr

Re: [web2py] Generating graph with chartjs

2019-06-11 Thread Lovedie JC
I'm following this discussion. Does the chart have a print to image(jpg, png, svg) or pdf? Hicharts does a nice job. Regards On Tue, 11 Jun 2019, 19:25 Dave S wrote: > > > On Sunday, June 9, 2019 at 3:06:01 PM UTC-7, Christian Varas wrote: >> >> II have this site www.climbersoul.cl using AdminLT

Re: [web2py] A schedule automatic delete from Database

2019-06-10 Thread Lovedie JC
Welcome On Mon, 10 Jun 2019, 17:45 mostwanted wrote: > Thanks alot @Lovedie JC, I get now, i figured out how to use it. > > On Monday, June 10, 2019 at 11:27:27 AM UTC+2, Lovedie JC wrote: >> >> Further more the request.now which works with the time the item is posted &g

Re: [web2py] A schedule automatic delete from Database

2019-06-10 Thread Lovedie JC
achieve this with your algorithm?? > > On Sunday, June 9, 2019 at 11:47:53 AM UTC+2, Lovedie JC wrote: >> >> import datetime >> >> yesterday = request.now - datetime.timedelta(days=1) >> db(db.post.modified_on < yesterday).delete() >> >> I hope t

Re: [web2py] A schedule automatic delete from Database

2019-06-10 Thread Lovedie JC
t; On Sunday, June 9, 2019 at 11:47:53 AM UTC+2, Lovedie JC wrote: >> >> import datetime >> >> yesterday = request.now - datetime.timedelta(days=1) >> db(db.post.modified_on < yesterday).delete() >> >> I hope this helps. You can work around it but work

Re: [web2py] A schedule automatic delete from Database

2019-06-09 Thread Lovedie JC
ards On Sun, 9 Jun 2019 at 12:41, Lovedie JC wrote: > Had one, let check my archives. > > On Sun, 9 Jun 2019, 09:47 mostwanted wrote: > >> Is there a way to schedule an automatic deleting of content from database >> on a specified date? I have an application that I want

Re: [web2py] A schedule automatic delete from Database

2019-06-09 Thread Lovedie JC
Had one, let check my archives. On Sun, 9 Jun 2019, 09:47 mostwanted wrote: > Is there a way to schedule an automatic deleting of content from database > on a specified date? I have an application that I want to delete posts > when we reach specified dates. If anyone is familiar with this, your

Re: [web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread Lovedie JC
I tried with www.web2py.com/AlterEgo/default/show/252 I have to keep refreshing the page for the form to reappear. On Sun, 26 May 2019, 14:43 Lovedie JC wrote: > Hi Dave. I have struggled with this for long but never got a good answer. > Do you have an example where in the view page: >

Re: [web2py] Re: Web2py: Update table content after submit action

2019-05-26 Thread Lovedie JC
Hi Dave. I have struggled with this for long but never got a good answer. Do you have an example where in the view page: {{=form}} in the primary page is used but the page is not refreshing On Sun, 26 May 2019, 11:16 Dave S wrote: > > > On Saturday, May 25, 2019 at 6:59:44 PM UTC-7, Cristina Sig

Re: [web2py] Custom validator that avoids saving duplicate / similar values on a database with custom forms

2019-05-20 Thread Lovedie JC
IS_NOT_IN_DB() On Mon, 20 May 2019, 10:07 mostwanted wrote: > I have a custom form that allows users to save information on what they > are selling but the problem is that at times customers save similar items > names and during a search by buyers the buyer gets a duplicate name > results, what

Re: [web2py] Re: The support of MongoDB is still experimental?

2019-04-10 Thread Lovedie JC
hout any issue? > Do you recommend it? > > > > quarta-feira, 10 de Abril de 2019 às 04:33:32 UTC+1, Lovedie JC escreveu: >> >> I use mongodb. It works well. I think digital Ocean.com implements it >> nicely >> >> On Wed, 10 Apr 2019, 02:09 João Matos wrote:

Re: [web2py] Re: The support of MongoDB is still experimental?

2019-04-09 Thread Lovedie JC
I use mongodb. It works well. I think digital Ocean.com implements it nicely On Wed, 10 Apr 2019, 02:09 João Matos wrote: > Thanks Anthony. Who can confirm this? Is ti Massimo or is there another > person in charge of MongoDB in web2py? > > > terça-feira, 9 de Abril de 2019 às 23:59:36 UTC+1, An

Re: [web2py] Error when deleting items

2019-03-19 Thread Lovedie JC
Any help on this? On Mon, 18 Mar 2019, 00:31 Maurice Waka wrote: > This is my simple code when using to delete items from my database. > > grid = SQLFORM.grid(db.answered.author == auth.user.id, editable=False > , searchable=False, details= False, fields=None, csv=None, links=None, > create=

Re: [web2py] Re: Error accessing app edit

2019-03-17 Thread Lovedie JC
Python 3. I moved to python 3 Regards On Mon, 18 Mar 2019, 05:49 Massimo Di Pierro wrote: > This says you are using python 3. Is your app build for python 3 or python > 2? > > > On Sunday, 17 March 2019 08:01:07 UTC-7, Maurice Waka wrote: >> >> When clicking on the edit button for my app, I get

Re: [web2py] Re: request.requires_https() Python 3 bug

2019-03-15 Thread Lovedie JC
You could backup the web2py folder, the try the new web2py 2.18.4 then revert in case it doesn't work. Life is about taking risks. Regards On Sat, 16 Mar 2019, 01:08 Yi Liu wrote: > Thanks for replying. Sorry, Massimo, I am reluctant to upgrade on my > server. I experience a major bug on my loca

Re: [web2py] Re: how to use a user specific form input

2019-03-06 Thread Lovedie JC
Ok. I the first example after I logged in several users, I noticed that they share the same table result. Meaning that when one user updates, everyone else sees the data. I want the privacy of a user having his/her own result. On Wed, 6 Mar 2019, 17:49 Leonel Câmara wrote: > Do you mean you want

Re: [web2py] Re: web2py 2.18.3 is OUT

2019-03-04 Thread Lovedie JC
Nice. Thanks for the bug fixes. Any info on the xml()? Regards On Mon, 4 Mar 2019, 14:58 Kevin Keller wrote: > Thanks! > > Its so cool seeing this moving along so quickly. > > There is one thing about this release that is still bothering me, which I > tried to fix myself, but to no avail. > The

Re: [web2py] Re: Web2py version 2.18.2 Communications Error when in Admin.

2019-03-03 Thread Lovedie JC
Same to me and I have to save se3times and even merge the documents for it ot finally save. Regards On Sun, 3 Mar 2019, 13:20 Kevin Keller wrote: > The same here with python 3.7.1 on Windows10 latest Web2py from git from > this morning. > Pressing the save button twice brings up the merge dialog

Re: [web2py] Re: dict values error in python 3.6

2019-02-28 Thread Lovedie JC
Ok on p2. But I'm shifting to p3. 6 On Thu, 28 Feb 2019, 13:54 Kevin Keller wrote: > Seems a python3 vs python2 related error? > > > https://stackoverflow.com/questions/17431638/get-typeerror-dict-values-object-does-not-support-indexing-when-using-python > > Can you try to run your app with pyth

Re: [web2py] Re: 2.18.1 is OUT

2019-02-24 Thread Lovedie JC
Having trouble with download page: See attached. On Mon, 25 Feb 2019 at 07:57, Alex Glaros wrote: > am 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/lis

Re: [web2py] Re: Xml use in python 3.6

2019-02-24 Thread Lovedie JC
I tried with the new updated web2py 2.18 but still get the same issue. Any help as to how to use xml here (also with yatl)? Regards On Thu, 21 Feb 2019 at 10:55, Massimo Di Pierro wrote: > The issue is fixed in https://github.com/web2py/yatl and it will go away > in web2py as soon as we switch >

[web2py] "xml() in python 3.6 · Issue #2096 · web2py/web2py" https://github.com/web2py/web2py/issues/2096

2019-02-18 Thread Lovedie JC
"xml() in python 3.6 · Issue #2096 · web2py/web2py" https://github.com/web2py/web2py/issues/2096 -- 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 recei

Re: [web2py] Error importing csv file in python3.6

2019-02-11 Thread Lovedie JC
Works. But I can't access the data. On Mon, 11 Feb 2019, 21:02 sandeep patel In fact, this is an open issue > for the same problem. You > can check that as well > > On Mon, Feb 11, 2019 at 11:27 PM sandeep patel > wrote: > >> I had the same issue. I

Re: [web2py] Re: Admin /default error

2019-02-03 Thread Lovedie JC
Something in the vews folder was the problem. After copying one item at a time and leaving out some layout templates, I don't have an issue any more. I still don't know what was the issue and hope it won't resurface. Regards On Mon, 4 Feb 2019, 09:34 Yi Liu This seems to be a typical py2 py3 tr

Re: [web2py] Making my binary standalone apps function faster

2018-12-31 Thread Lovedie JC
I'm an amateur but learned that using gpu, docker platforms work well. Of course some good coding. On Mon, 31 Dec 2018, 09:09 mostwanted Hi guys, I develop a-lot of stand alone apps with web2py but my problem is > that i find the performing slower, every-time there is data entry or a > query it t

Re: [web2py] Creating charts and trends from db

2018-12-21 Thread Lovedie JC
Let me countercheck. On Fri, 21 Dec 2018, 12:32 sandeep patel @Maurice > This code is working good. you can check here > . > It would be easy to inspect the problem if you can show your controller > code what you have written. > > Thanks > > > On Fri,

Re: [web2py] Web2py- PayUMoney Secure Online Payment Gateway.

2018-12-16 Thread Lovedie JC
What about python 2.7 compatibility On Sat, 15 Dec 2018 at 15:02, Arindam Dasgupta wrote: > Hi sandeep, > At last I have figured it out myself and the python version is now 3.6.0 > And after this change your payumoney app is also running. :-) > Thanks. > > [image: image.png] > > On Sat, Dec 15,

Re: [web2py] Unable to display dropdown lists in forms

2018-12-04 Thread Lovedie JC
I have done something like that. Let me retrieve it in 3hrs On 4 Dec 2018 5:17 PM, "Ben Duncan" wrote: I was working on trying to figure out the EXACT same thing ! Thanks .. *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Tue, Dec

Re: [web2py] mobile responsive table

2018-12-01 Thread Lovedie JC
I. Changed the table position to static then added : @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { #table { display: block; } On Wed, 28 Nov 2018, 19:24 I'd like to have this table to fit in any media screen including ipad and > mobile phone

Re: [web2py] Re: MongoDB

2018-11-19 Thread Lovedie JC
t 8:22:21 AM UTC-5, Lovedie JC wrote: >> >> I've gone through the code and I haven't done any caching in selects but >> still getting the message. >> >> On Mon, 12 Nov 2018, 18:04 Leonel Câmara wrote: >> >>> Don't use cache and cacheable

Re: [web2py] Re: MongoDB

2018-11-19 Thread Lovedie JC
I've gone through the code and I haven't done any caching in selects but still getting the message. On Mon, 12 Nov 2018, 18:04 Leonel Câmara Don't use cache and cacheable in your selects. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/we

Re: [web2py] '<'

2018-11-14 Thread Lovedie JC
I used to get such esp. when on of my files was corrupted in the databases. I'd reinstall web2py or delete all files in the databases folder and copy back to the databases folder from a back up folder. Hope this helps On Mon, 12 Nov 2018 at 22:35, mostwanted wrote: > I'm pulling my hairs out ove

Re: [web2py] Re: Problem with starting project

2018-11-08 Thread Lovedie JC
Last time I had the same but noted that the appconfig pt was not in the private folder. Once I moved bit the the error disappears. On Thu, 8 Nov 2018, 11:24 Dave S > > On Wednesday, November 7, 2018 at 10:06:31 PM UTC-8, Константин Комков > wrote: >> >> I downloaded web2py, deleted old and instal

Re: [web2py] Re: Error with datetime.

2018-11-07 Thread Lovedie JC
When using sqlite, I don't get the errors, but using Mongodb brings up the same error. On Thu, 8 Nov 2018 at 06:43, Maurice Waka wrote: > I'm still getting the same error when changing the dates. > > On Thu, Nov 8, 2018 at 2:27 AM 黄祥 wrote: > >> from error traceback seems like must convert the

Re: [web2py] Re: Implementing a chat room?

2018-11-07 Thread Lovedie JC
https://github.com/rpedroso/w2pchat On Thu, 8 Nov 2018 at 03:45, pbreit wrote: > Have a look at: > > https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py

Re: [web2py] Re: No module named states

2018-10-26 Thread Lovedie JC
That is python 2.7, web2py 2.17.2 On Sat, 27 Oct 2018, 00:36 Lovedie JC wrote: > Latest of both. > > On Fri, 26 Oct 2018, 23:31 Dave S wrote: > >> >> >> On Friday, October 26, 2018 at 6:05:03 AM UTC-7, lbjc...@gmail.com wrote: >>> >>> I have a mo

Re: [web2py] Re: No module named states

2018-10-26 Thread Lovedie JC
Latest of both. On Fri, 26 Oct 2018, 23:31 Dave S wrote: > > > On Friday, October 26, 2018 at 6:05:03 AM UTC-7, lbjc...@gmail.com wrote: >> >> I have a module with this: from gluon.contrib.states import * >> >> Getting the above error. >> >> Regards >> > > Which version of web2py and of python?

Re: [web2py] Re: mobile friendly login page

2018-10-25 Thread Lovedie JC
Thanks. It looks lovely. Let me try it. On Thu, 25 Oct 2018, 18:14 Christian Varas wrote: > Sorry the image in the previous mails is broken, here is it: > https://imgur.com/a/I1SsGlp > > Cheers > Chris. > > El jue., 25 oct. 2018 a las 10:57, Lovedie JC () > escribió:

Re: [web2py] Re: mobile friendly login page

2018-10-25 Thread Lovedie JC
Works good. How about app buttons in a single line/row? Regards On Thu, 25 Oct 2018 at 16:22, sandeep patel wrote: > @lbjc > Add some margin between the buttons. > you can try this. Add this in user.html file > > .btn{ > margin-left: 10px; > margin-top: 10px; > } > > > Best/ > SP > >

Re: [web2py] Re: reference gives error table company has no column named....

2018-10-25 Thread Lovedie JC
with the > table using the same name will it not throw the *table exists *error? > > On Thursday, October 25, 2018 at 11:13:31 AM UTC+2, Lovedie JC wrote: >> >> I used to get that. Delete the db from the database folder or rename it >> brhe refresh or restart web2py. >>

Re: [web2py] Re: reference gives error table company has no column named....

2018-10-25 Thread Lovedie JC
I used to get that. Delete the db from the database folder or rename it brhe refresh or restart web2py. On Thu, 25 Oct 2018, 09:36 mostwanted wrote: > When i do all this it gives me error saying table Customer exists! > > On Friday, August 31, 2018 at 2:53:18 AM UTC+2, Anthony wrote: >> >> fake

Re: [web2py] Re: Current.db

2018-10-13 Thread Lovedie JC
n import current > > current.db = db > current.auth = auth > > _() > > > Remember's the book says: don't import current into module level code. > > On Oct 12 2018, at 12:04 pm, Lovedie JC wrote: > > > Yes. > from gluon import * >

Re: [web2py] Re: Current.db

2018-10-12 Thread Lovedie JC
I just discovered that. Thanks for the help. But will let you know in case it appears again. On Sat, 13 Oct 2018, 00:42 Yoel Benitez Fonseca wrote: > h! > > > On Oct 12 2018, at 5:33 pm, Lovedie JC wrote: > > > Here is the origin of the problem. > I have two apps, I n

Re: [web2py] Re: Current.db

2018-10-12 Thread Lovedie JC
Here is the origin of the problem. I have two apps, I noticed that one function was using data from a db of another app. When I changed that, to pick data from the apps db that's when the error started. when using back the previous db the error is not there. I have tried to make several changes in

Re: [web2py] Re: Current.db

2018-10-12 Thread Lovedie JC
Yes. from gluon import * from gluon import current, DAL,field On Fri, 12 Oct 2018, 18:58 Leonel Câmara wrote: > Did you import current from gluon before doing that? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source c

Re: [web2py] Re: Current.db

2018-10-12 Thread Lovedie JC
I have it (current.db=db) in my model. But still got the error.i even tried to create another table but with the same error. On Fri, 12 Oct 2018, 18:31 Leonel Câmara wrote: > For current.db to work you need to put it there in a model file or > someplace else. You need do do something like curren

Re: [web2py] Re: Python loop brings an error

2018-09-17 Thread Lovedie JC
When I restart the app rhea,error disappears briefly then recurs. On Sep 12, 2018 1:30 AM, "Leonel Câmara" wrote: > I haven't tried it, but are you using global variables inside your > controller file? You could easily be always using the same results list > which you are always appending to. >

Re: [web2py] Re: Python loop brings an error

2018-09-11 Thread Lovedie JC
Yes. Am importing a function from a model. On Wed, 12 Sep 2018, 01:30 Leonel Câmara wrote: > I haven't tried it, but are you using global variables inside your > controller file? You could easily be always using the same results list > which you are always appending to. > > -- > Resources: > - h

Re: [web2py] Python loop brings an error

2018-09-11 Thread Lovedie JC
Anyone who's tried this to get the errors? Am desperate for a solution. On Sat, 8 Sep 2018, 21:45 wrote: > AM trying out a now game that involves a continuous input of data with an > instant display to the user of an image or data from the db. > How ever, when trying out a small bit of code, be

Re: [web2py] AttributeError: 'DAL' object has no attribute 'definitions'

2018-09-03 Thread Lovedie JC
Had to clean up cache, restart web2py. It's OK now. On Sun, 2 Sep 2018, 20:16 Maurice Waka wrote: > rows = db(db.definitions.definitions).select() > File "/usr/local/lib/python2.7/dist-packages/pydal/base.py", line 669, in > __getattr__ > return BasicStorage.__getattribute__(self, key) > Attr

Re: [web2py] Re: Form submit takes too long

2018-09-02 Thread Lovedie JC
Am using sqlite.storage On Sun, 2 Sep 2018, 21:03 justice Nanhou wrote: > Hallo Maurice, > > it is know issue for all application and all framworks. > which database are you using ? > - my first attempt will be to try to add indexes in the post and answers > Table on the field author. > - second

Re: [web2py] Re: Form submit takes too long

2018-09-02 Thread Lovedie JC
Yes. Been away. But I am looking into this. I'll let you know the results. Regards On Sun, 2 Sep 2018, 21:03 justice Nanhou wrote: > Hallo Maurice, > > it is know issue for all application and all framworks. > which database are you using ? > - my first attempt will be to try to add indexes in t

Re: [web2py] Access new values in last rowid

2018-08-24 Thread Lovedie JC
r = [request.vars.mssage] should be [request.vars.replies] On Fri, 24 Aug 2018 at 19:27, wrote: > We are a team of newbies in web2py trying out something new. If we insert > into a database an item, and let modules access the new values it does not > work properly as expected. > The code below:

Re: [web2py] Re: access id of newly inserted text

2018-08-20 Thread Lovedie JC
> On Monday, August 20, 2018 at 8:47:17 AM UTC-4, Lovedie JC wrote: >> >> Message inserted but id is blank >> > > It's not possible for the id to be blank. Are you saying: > > id = row.id > > throws an exception? How are you determining that "

Re: [web2py] Re: access id of newly inserted text

2018-08-20 Thread Lovedie JC
Message inserted but id is blank On Mon, 20 Aug 2018, 15:45 Anthony wrote: > Is the problem that you are not getting the id of the latest insert, or > that you are getting the correct record, but no message is being inserted? > > Also, no reason to use if/else in the controller if you are simply

Re: [web2py] Re: multiple controllers with one view

2018-08-20 Thread Lovedie JC
Thanks. This is good On Mon, 20 Aug 2018, 15:16 Anthony wrote: > def conversations(): >> row = db(db.post.author== auth.user.id).select(db.post.id, db.post. >> convo, orderby=~db.post.id, limitby=(0,1)).first() >> id = row.convo if row else None >> return dict(id=id) >> >> >> with th

  1   2   >