[web2py] Re: Incorrect archive/restore behavior?

2024-04-11 Thread 'jimka...@yahoo.com' via web2py-users
I've been working on this for a while now off and on and have, I believe, fixed the web2py gluon code bugs to correct this problem. I filed my fix here - https://github.com/web2py/web2py/issues/2483 <http://GitHub%20web2py%20issues> On Wednesday, January 17, 2024 at 3:28:37 PM UTC-8

[web2py] Re: Incorrect archive/restore behavior?

2024-01-17 Thread 'jimka...@yahoo.com' via web2py-users
17, 2024 at 12:59:59 PM UTC-8 jimka...@yahoo.com wrote: > Hi, > > *I believe (using python 3.11.7, web2py 2,24,1, mysql 8),* > *with web2py record versioning enabled,* > *I have verified that * > > *db.export_to_csv_file does not write table rows that have the >

[web2py] Incorrect archive/restore behavior?

2024-01-17 Thread 'jimka...@yahoo.com' via web2py-users
Hi, *I believe (using python 3.11.7, web2py 2,24,1, mysql 8),* *with web2py record versioning enabled,* *I have verified that * *db.export_to_csv_file does not write table rows that have the "is_active" field set* * to False.* *A simple test case is * 1.

[web2py] routes.py to app/controller/function/1/2/3

2021-11-01 Thread 'Annet' via web2py-users
I am developing a network application in web2py which consists of vertices and edges. Every vertex has a site which is dynamicalIy created within the init application. I added a domain and subdomains for my own domain to routes.py routers = dict( # base router BASE = dict

[web2py] Services

2021-10-29 Thread 'Annet' via web2py-users
I built a calendar application in web2py 2.20.4, the application has a calendar.py controller with functions event_list(), timetable(), coursetable() etc. The data is stored in a PostgreSQL database. What I want is to make the data in the database available to for instance a user's WP web site

[web2py] Re: sqlhtml changes for sqlform.factory, not nice, 2.15.4 versus 2.18.5

2021-10-11 Thread 'Awe' via web2py-users
the same logic was incorrectly > applied to edit fors as well? Do not remember. Please try the latest. > > > > On Saturday, 9 October 2021 at 14:14:17 UTC-7 Awe wrote: > >> Thanks for the answer >> I haven't tried the latest version and I hope this behavior doesn't >

[web2py] Re: sqlhtml changes for sqlform.factory, not nice, 2.15.4 versus 2.18.5

2021-10-09 Thread 'Awe' via web2py-users
Thanks for the answer I haven't tried the latest version and I hope this behavior doesn't change from version to version.. but. I thought / hoped a web2py developer could explain why this important/central feature was changed and how to deal with it best. Jim S schrieb am Samstag, 2. Oktober

Re: [web2py] A friend has developed a flask application and now wants to add a login and security. I would like to know if it would be feasible to convert the flask application to web2py.

2021-10-05 Thread 'Walter Okine' via web2py-users
I also agree that py4web would give much better performance. Web2py is easy so i dont think your friend will face much problem converting the application to web2py. I have converted an app I wrote in flask to web2py and was able to do so. The actual conversion i.e. database, html, css was a breeze

[web2py] Re: sqlhtml changes for sqlform.factory, not nice, 2.15.4 versus 2.18.5

2021-09-30 Thread 'Awe' via web2py-users
a bug or feature, or is there a NEW common way to have empty > readonly fields in an > edit form > > Many thanks for any help! > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com

Re: [web2py] Rocket bug in web2py 2.21.1?

2021-08-11 Thread 'jimka...@yahoo.com' via web2py-users
Thanks. Appreciated ! On Sunday, August 8, 2021 at 12:54:01 PM UTC-7 kell...@gmail.com wrote: > Use the newest version from github. > > There the issue is fixed. > > > > Am So., 8. Aug. 2021 um 21:32 Uhr schrieb 'jimka...@yahoo.com' via > web2py-users : > >>

[web2py] Rocket bug in web2py 2.21.1?

2021-08-08 Thread 'jimka...@yahoo.com' via web2py-users
Hi, Finally migrated to 2.21.1 on macOS BigSur, using Python 3.9.6 Good news is that everything so far seems to work fine but there is a puzzling Rocket issue. redownloaded 2.21.1 from the web2py site a couple of days ago, so should be up-to-date. When starting up, the following comes up

[web2py] sqlhtml changes for sqlform.factory, not nice, 2.15.4 versus 2.18.5

2021-08-04 Thread 'Awe' via web2py-users
t=" " like this, which is not very useful. Is this a bug or feature, or is there a NEW common way to have empty readonly fields in an edit form Many thanks for any help! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] form.custom.widget.image breaks in case of form.errors

2021-05-14 Thread 'Annet' via web2py-users
I have another problem with form.custom: When I browse and select an image and submit the form, if the form contains an error, the form empties the image field. So the user has to browse for the image again I don't know in which version of web2py this error was introduced, but is very annoying

[web2py] form.custom.widget.image does not show preview

2021-05-14 Thread 'Annet' via web2py-users
/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 unsubscribe from this group and stop receiving e

[web2py] Unable to handle upload

2021-04-26 Thread 'Annet' via web2py-users
rm.process().accepted: Kind regards, Annet -- 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 Goo

Re: [web2py] Custom information page after registration and hide field

2021-02-02 Thread 'brushek' via web2py-users
.py controller in directory > welcome/controllers/ and view is next to generic.html file, in > welcome/views/ directory. > Thank You for Your questions. And sorry for not RTFM :). The view is working correctly, after moving it to the default welcome/views/default directory. Will try do my be

Re: [web2py] Custom information page after registration and hide field

2021-02-02 Thread 'brushek' via web2py-users
ow ? >> >> > What directory is your view in? What controller is your function in? > hi, the function is in default.py controller in directory welcome/controllers/ and view is next to generic.html file, in welcome/views/ directory. Regards brushek -- Resources: - http://w

Re: [web2py] Custom information page after registration and hide field

2021-01-31 Thread 'brushek' via web2py-users
niedziela, 31 stycznia 2021 o 18:02:41 UTC+1 mauri...@gmail.com napisał(a): > If its about QR codes, these are what I mean't: > http://www.web2pyslices.com/slice/show/1462/qr-code-builder-with-web2py > https://github.com/minlaxz/python-qr > https://github.com/laconic75/QR-Inventory

Re: [web2py] Custom information page after registration and hide field

2021-01-31 Thread 'brushek' via web2py-users
OK, Your suggestion is to search in examples of web2py and github ? Regards niedziela, 31 stycznia 2021 o 03:48:08 UTC+1 mauri...@gmail.com napisał(a): > I thought I must have seen an example of the same from github or Web2py > examples. > Regards > > On Sun, Jan 31, 2021,

[web2py] Custom information page after registration and hide field

2021-01-30 Thread 'brushek' via web2py-users
? 2. How to add silently this motp_secret field to database during registration of new user without his interaction/knowing about it Regards brushek -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] data-w2p_remote

2021-01-21 Thread 'Annet' via web2py-users
://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 unsubscribe from this group and stop receiving emails from it, send an email to web2p

[web2py] Re: Popolate existing DB entries on Migration with values when adding new columns

2021-01-18 Thread 'Daniela Festi' via web2py-users
n command is: >> ALTER TABLE "mytest" ADD "newcolumn" CHAR(512); >> >> What I would need instead is: >> ALTER TABLE "mytest" ADD "newcolumn" CHAR(512) DEFAULT "Default text"; >> >> So my question is: How do I popula

[web2py] Popolate existing DB entries on Migration with values when adding new columns

2021-01-16 Thread 'Daniela Festi' via web2py-users
(512); What I would need instead is: ALTER TABLE "mytest" ADD "newcolumn" CHAR(512) DEFAULT "Default text"; So my question is: How do I populate existing tuples with default values when migrating? Is there an elegant, web2py supported way or do I have t

[web2py] Re: version 1.21.1 infinite loop issue

2021-01-09 Thread 'jimka...@yahoo.com' via web2py-users
No input :-( Guess we'll need to stick with 2.20.4. Don't really have a lot of time to put into the 2.21 migration, at least for now. :-( :-( On Tuesday, December 22, 2020 at 10:36:16 AM UTC-8 jimka...@yahoo.com wrote: > Sorry. The web2py version should obviously have been 2.21.1 in my mess

[web2py] Re: Can't open sqlite3 databases.

2021-01-05 Thread 'Woody' via web2py-users
I'm getting errors > opening sqlite3 databases. This is on an application that had been stable > for a long time. Is there a compatibility problem with python 3.9? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source c

[web2py] Can't open sqlite3 databases.

2021-01-03 Thread 'Woody' via web2py-users
://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 unsubscribe from this group and stop receiving emails from it, send an email

Re: [web2py] Re: Web2py with python 3.8.5

2021-01-03 Thread 'jimka...@yahoo.com' via web2py-users
Hello, > I'm trying to convert my web2py apps to Ubuntu 20.4 / apache2/wsgi using > python 3.8.5, and as I'm not an IT expert, the only way I found was to > change the import instructions in a series of modules. I am aware I > shouldn't do this, but I couldn't find any alternativ

[web2py] Re: Selecting payment method

2020-12-23 Thread 'Annet' via web2py-users
he same time? > I also need to align the buttons to the center or left but > _select='align-items:center' is not working. > Kind regards > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Re: version 1.21.1 infinite loop issue

2020-12-22 Thread 'jimka...@yahoo.com' via web2py-users
Sorry. The web2py version should obviously have been 2.21.1 in my message On Tuesday, December 22, 2020 at 10:14:26 AM UTC-8 jimka...@yahoo.com wrote: > Just trying to update to version 1.21.1 from 2.20.4. the app runs fine > under 2.20.4. > Under 1.21.1, the welcome app come

[web2py] version 1.21.1 infinite loop issue

2020-12-22 Thread 'jimka...@yahoo.com' via web2py-users
and tried tracing but it never actually seems to get into executing my default/index. Environment is MacOS 10.15.7. Python is 3.7.8. I'm doing the upgrade with web2py source. Here's the start/end of the traceback Thanks in advance Jim Traceback (most recent call last): File "/Applica

[web2py] Digitally sign URLs

2020-12-08 Thread 'Annet' via web2py-users
, Annet -- 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&q

[web2py] sessions2trash.py

2020-12-08 Thread 'Annet' via web2py-users
I used to host my web2py application at Webfaction, there I scheduled a cron job to run the sessions2trash.py script. In the end this no longer worked. Now I host my web2py application at Opalstack, and wonder how I schedule a task to run sessions2trash.py to clean up my applications. Kind

[web2py] Re: How to customize email settings.

2020-12-04 Thread 'Annet' via web2py-users
ender name in lower caps and > using the email names (e.g. if user...@gmail.com the name appears as > username and not user name). > I would like it to appear like: 'User Name' and not 'username'. > Kind regards. > -- Resources: - http://web2py.com - http://web2py.com/book (Documenta

[web2py] Re: In case of form.errors browse for image again

2020-11-11 Thread 'Annet' via web2py-users
Unable to handle upload Version web2py™ Version 2.20.4-stable+timestamp.2020.05.03.05.18.50 Traceback The upload field is in sub.update_record(**db.prm_generic._filter_fields(form.vars)) Why doesn't web2py handle this properly? KInd regards, Annet Op woensdag 11 november 2020 om 17:04:00 UTC

[web2py] In case of form.errors browse for image again

2020-11-11 Thread 'Annet' via web2py-users
again, every time one of the other fields doesn't validate. I haven't noticed this behaviour in version 2.14 of web2py, I am experiencing this behaviour in web2py 2.20. I hope there's an easy fix, for this is very annoying. Kind regards, Annet -- Resources: - http://web2py.com - http

[web2py] Re: Upload images to folder outside web2py

2020-11-09 Thread 'Annet' via web2py-users
;> I forgot to say, uploading an image works, if the folder isn't >> there it is being created, otherwise the image is uploaded >> to the folder. >> >> Best, >> >> Annet >> >> > Is this related to slashes being dropped, as in Gael's question? >

[web2py] Re: OT PollyReports generate PDF using bands from DB

2020-11-02 Thread 'DenesL' via web2py-users
es, you have things like a table of contents ... Long story >>>>> short: I like it! >>>>> >>>>> Regards >>>>> Clemens >>>>> >>>>> On Thursday, October 1, 2020 at 4:58:39 PM UTC+2 DenesL wrote: >>>>> >

[web2py] Re: Upload images to folder outside web2py

2020-11-02 Thread 'Annet' via web2py-users
I forgot to say, uploading an image works, if the folder isn't there it is being created, otherwise the image is uploaded to the folder. Best, Annet Op maandag 2 november 2020 om 16:17:48 UTC+1 schreef Annet: > > To upload images to separate folders outside web2py I set the upload &g

[web2py] Upload images to folder outside web2py

2020-11-02 Thread 'Annet' via web2py-users
To upload images to separate folders outside web2py I set the upload folder with the model definition: UPLOADSDIR = '/home/me/apps/static/' db.define_table('mytable', Field('image', 'upload', autodelete=True, uploadfolder=os.path.join( UPLOADSDIR, 'vertexID%s' % session.vertexID

[web2py] Re: OT PollyReports generate PDF using bands from DB

2020-11-01 Thread 'DenesL' via web2py-users
d. >>>> >>>> PollyReports is a small, light module providing a simple way to >>>> generate reports from databases using Python. >>>> >>>> Reference: https://pythonhosted.org/PollyReports/docs.html >>>> Tutorial: https://pythonhoste

[web2py] Re: OT PollyReports generate PDF using bands from DB

2020-10-31 Thread 'DenesL' via web2py-users
ps://opensource.gonnerman.org/?cat=4 >> >> I hope you find it as useful as I did. >> >> Regards, >> Denes >> >> >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht

[web2py] Re: Opalstack for ex-webfaction users or people looking for a Web2Py Web Hosting (Tutorial for Python 3 or 2.7)

2020-10-20 Thread 'Annet' via web2py-users
s MariaDB and PostgreSQL. >> It seems that it's not so easy to use PostgreSQL. >> https://groups.google.com/g/web2py/c/bc_8dg-XHpY/m/ci8A2RzzAwAJ >> I can switch my PostgreSQL DBs to MySQL, but in the connection string >> with MariaDB I have to use the standard MySQL one? >>

[web2py] Re: routes.py and root_static

2020-10-19 Thread 'Annet' via web2py-users
changes to take effect. > > Jose > > > -- 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 subscrib

[web2py] routes.py and root_static

2020-10-14 Thread 'Annet' via web2py-users
into the /applications/init/static/ Kind regards, Annet -- 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 use multiple bespoke 400 pages with error text

2020-10-14 Thread 'hyan...@googlemail.com' via web2py-users
Can I just create a custom_400.json view, and remove the .html from my line in routes.py? Thanks for any help -- 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)

[web2py] Share sessions

2020-10-13 Thread 'Annet' via web2py-users
ific order to place them in. Kind regards, Annet -- 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: web2py hosting

2020-10-13 Thread 'Annet' via web2py-users
18 months now with Opalstack and couldn´t be > happier. Running multiple web2py (and other) apps on servers in US and EU, > hosted email, etc. with the same access and levels of control I'd had on > WF. And most importantly, always the same incredible customer focus and >

[web2py] Re: web2py hosting

2020-10-10 Thread 'Annet' via web2py-users
. Last week I signed up with Opalstack, https://www.opalstack.com/ and I am glad I did, great support and a simple but powerful control panel. One of the former WF support people wrote a web2py install script which got me up and running in no time. Hope this was helpful, Annet V. Op vrijdag

[web2py] OT PollyReports generate PDF using bands from DB

2020-10-01 Thread 'DenesL' via web2py-users
/docs.html Tutorial: https://pythonhosted.org/PollyReports/tutorial.html Other features (subreports): https://opensource.gonnerman.org/?cat=4 I hope you find it as useful as I did. Regards, Denes -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: How to automatically reset or hide drop down menus in navbar

2020-10-01 Thread 'Annet' via web2py-users
his? > > TY for the help!! > > -- 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

[web2py] Re: Setting a default value for a reference field

2020-09-19 Thread 'Annet' via web2py-users
> widget=lambda field, value: SQLFORM.widgets.reference.widget(field, value, > _placeholder="Whats your place of operations?"))* > }} > > Regards; > > Mostwanted > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: sum decimal error?

2020-09-14 Thread 'DenesL' via web2py-users
for your suggestion. > I ran a test in the shell and it works: > > web2py Web Framework > Created by Massimo Di Pierro, Copyright 2007-2020 > Version 2.20.4-stable+timestamp.2020.05.03.05.18.50 > Database drivers available: sqlite3, pyodbc, imaplib, pymysql > WARNING:web2py:import IPy

[web2py] Re: sum decimal error?

2020-09-11 Thread 'DenesL' via web2py-users
Hi villas thanks for your suggestion. I ran a test in the shell and it works: web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2020 Version 2.20.4-stable+timestamp.2020.05.03.05.18.50 Database drivers available: sqlite3, pyodbc, imaplib, pymysql WARNING:web2py:import IPython

[web2py] Re: sum decimal error?

2020-09-10 Thread 'DenesL' via web2py-users
.sum() >> ss = db(ti.DocNum == doc).select(ti.ItemCode, scnqtysum, groupby = >> ti.ItemCode) >> >> and the table definition: >> db.define_table('itmscan', >> Field('DocNum', 'integer'), >> Field('ItemCode', 'string', 20), >> Field('Dscription

[web2py] sum decimal error?

2020-09-09 Thread 'DenesL' via web2py-users
ing'), Field('spcins', 'string', default=''), Field('tstamp', 'datetime'), ) I tried adding a represent to the field but it made no difference. In the code I have a sum on another decimal field from a different table just a few lines before the failing one that works just fine. That field is a

[web2py] Re: formatting a field in SQLTABLE

2020-08-24 Thread 'Annet' via web2py-users
like this in SQLTABLE ? > > > > > -- 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: Nested menu item

2020-08-18 Thread 'Annet' via web2py-users
nu item, not containing "three" in it. What's missing?? How do I > make nested sub-menu items? > > Here is the resulting html, where "three" sub-item is not even present: > > > > One > > Two > > > > > > > -- Resourc

[web2py] Re: modules: NameError("name 'reload' is not defined",)

2020-08-17 Thread 'Annet' via web2py-users
I reported the same problem some time ago. When I edit a module and save it I get this nameError. Since I am importing the modules into other applications I have to restart web2py everytime I edit a module. Further more the module are no longer compiled on first use, which I also find very

[web2py] Re: What happened to OptionsWidget

2020-08-13 Thread 'Annet' via web2py-users
://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 unsubscribe from this group and stop receiving emails from it, send an email to web2p

[web2py] What happened to OptionsWidget

2020-08-11 Thread 'Annet' via web2py-users
I coded a custom radio widget: def inlineRadioOptions(field, value, **attributes): ... attr = OptionsWidget._attributes(field, {}, **attributes) attr['_class'] = attr.get('_class', 'web2py_radiowidget') ... return TAG[''](*opts, **attr) After upgrading to web2py 20.x

[web2py] Re: A new and easier way to test your apps

2020-07-31 Thread 'Daniela Festi' via web2py-users
e calling the client.post() for login; maybe it has something to do with the _formkey - magic. HTH Daniela -- 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: How do I prevent going back to previous page after user is logged out?

2020-07-31 Thread 'Annet' via web2py-users
problem use the request object to redirect HTH, Annet -- 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] Re: Autocomplete JSON output format.

2020-07-28 Thread 'Annet' via web2py-users
gards, Annet -- 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 "web2p

[web2py] Autocomplete JSON output format.

2020-07-26 Thread 'Annet' via web2py-users
Arab Emirates", "United Kingdom", "United States"] Anyone using this js or knowing how to format the json output correctly? Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - ht

[web2py] Re: Radio Buttons basic inline editing in SQLFORM.grid

2020-07-24 Thread 'Matthew J Watts' via web2py-users
ble to help guide me further I'll be very grateful. > > > Thursday, April 25, 2019 at 9:58:22 PM UTC+1, Dave S wrote: > >> >> >> On Wednesday, April 24, 2019 at 4:16:56 PM UTC-7, Jacob wrote: >>> >>> Hello I'm still new to web2py and I'm currently wor

[web2py] Re: Having a user belong to 2 groups with different priviledges

2020-06-18 Thread 'Annet' via web2py-users
auth.has_membesrhip(Region2) and auth.has_membesrhip(HR) task ... Maybe this points you in the direction of a solution Best, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues

[web2py] Re: invalid literal for long() with base 10: when linking 2 tables

2020-06-14 Thread 'Annet' via web2py-users
, 'store_registration.contact_number', '%(contact_number)s') and then write your own ON UPDATE CACADE functions Kind regards, Annet -- 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: Bootstrap 4 and MENU helper problem

2020-06-11 Thread 'Annet' via web2py-users
Hi Val, Thanks for your reply. I'll do as you suggest. Kind regards, Annet -- 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] datatable_list = request.controller in ['network', 'calendar'] True or False

2020-06-02 Thread 'Annet' via web2py-users
In web2py 2.14 and python 2.7 the following line of code datatable_list = request.controller in ['network', 'calendar'] or request.function in ['search_group', 'search_supplier'] enabled me to do the following in an view: {{if datatable_list:}} DO SOMETHING {{pass}} In web2py 2.19

[web2py] Re: Bootstrap 4 and MENU helper problem

2020-06-02 Thread 'Annet' via web2py-users
I got a bit further solving this issue adjusting web2py-bootstrap4.js $(function() { $(".navbar-nav ul.dropdown-menu").each(function() { var toggle = jQuery(this).parent(); if (toggle.parent().hasClass("navbar-nav")) { toggle.attr(&quo

[web2py] Bootstrap 4 and MENU helper problem

2020-05-29 Thread 'Annet' via web2py-users
In Bootstrap 4 the MENU helper no longer generates the Bootstrap navbar {{=MENU(response.menu, _class='nav navbar-nav', ul_class='dropdown-menu', li_class='dropdown')}} This worked in Bootstrap 3, in Bootstrap 4 it no longer works this is what web2py generates

[web2py] Re: __pycache__

2020-05-24 Thread 'Annet' via web2py-users
Hi Jose, Thanks for your reply, the link to the discussion on stackoverflow was very helpful. Kind regards, Annet -- 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] Re: CSS URL Helper

2020-05-24 Thread 'Annet' via web2py-users
(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 unsubscribe from this group and stop receiving emails from it, sen

[web2py] Re: LOAD in web2py 2.14 and 2.19.1

2020-05-20 Thread 'Annet' via web2py-users
- 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 unsubscribe from this grou

[web2py] 2.19.1 cm-s-twilight

2020-05-19 Thread 'Annet' via web2py-users
://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 unsubscribe from this group and stop

[web2py] Re: Displaying images with their title in a for statement in an image slideshow

2020-05-19 Thread 'Annet' via web2py-users
Have a look at the html of the Bootstrap 4.5 carousel https://getbootstrap.com/docs/4.5/components/carousel/ maybe that points you in the right direction. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] LOAD in web2py 2.14 and 2.19.1

2020-05-18 Thread 'Annet' via web2py-users
After upgrading to web2py 2.19.1 and switching to python 3.7 the following no longer works. I have a controller main with an index function that builds a scaffold with header, content and footer. The index function returns a variable: content = LOAD('home', 'index', args=[vertexid, typeid

[web2py] __pycache__

2020-05-13 Thread 'Annet' via web2py-users
This morning I noticed a directory /init/__pycache__ containing the file __init__.cpython-37.pyc It caused web2py hanging on start up, after removing the directory and the file web2py did start up. I just wonder where the directory and the file came from. I don't think I compiled the init

[web2py] Re: two web2py servers and sessions in redis

2020-05-08 Thread 'Annet' via web2py-users
://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 unsubscribe from this grou

[web2py] Re: Autocomplete widget filter values

2020-05-05 Thread 'Annet' via web2py-users
or Filter to call name_autocomplete() in the jquery controller. Kind regards, Annet -- 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] Menu no longer renders {{=MENU(response.menu)}}

2020-04-30 Thread 'Annet' via web2py-users
In web2py 2.14 I had the following code in menu.py response.menu = [ (CAT(SPAN('Log in', _class="btn btn-primary")), False, URL('controlpanel', 'default', 'user', args='login', scheme=SECURESCHEME, host=CONTROLPANELDOMAIN)), (CAT(SPAN('Open account', _class="btn btn-su

[web2py] Re: Server error when accessing admin

2020-04-30 Thread 'Annet' via web2py-users
Hi Ian, I do have a copy of the script, it's a bit old, but I'll attach it anyway, maybe it's of help. Kind regards, Annet -- 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: Server error when accessing admin

2020-04-30 Thread 'Annet' via web2py-users
Why didn't you use the web2py install/unstall script that webfaction provides? It installs web2py served via nginx and uWSGI. The script mentions 2 caveats: Web2py won't work properly if it is mounted to a sub-URL like http://domain.com/web2py/. Instead, it must be mounted to the website root

[web2py] Re: How to customize "Invalid function/someview" ?

2020-04-30 Thread 'Annet' via web2py-users
://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 unsubscribe from this group and stop receiving emails from it, send an email to web2p

[web2py] parse_blob override in 2.19.01

2020-04-28 Thread 'DenesL' via web2py-users
Hi all a while back in this post https://groups.google.com/d/msg/web2py/v6bB7PHa7f8/aZjaIby1fTgJ this was said: > > web2py uses b64encode/decode to store/retrieve data in blobs. Legacy > tables probably do not do it. > > You need you make your own custom adapter to ov

[web2py] Re: Mac Catalina 10.15.4 - Cannot run web2py binary

2020-04-21 Thread 'Annet' via web2py-users
Hi Jon, When I first ran web2py using python 2.7 on Mac OS X Catalina I got this error message: DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning. please visit

[web2py] Re: Mac Catalina 10.15.4 - Cannot run web2py binary

2020-04-21 Thread 'Annet' via web2py-users
I switched to web2py source code long ago, after buying a new mac mini with Mac OS X Catalina I decided to switch to homebrew en pyenv, there are some caveats but if you've sorted these out, it all works well. Kind regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Accessing the 404 error message in a custom page

2020-04-19 Thread 'Yan Wong' via web2py-users
ustom page. It doesn't seem to exist in the request > object? > > -- 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] Accessing the 404 error message in a custom page

2020-04-19 Thread 'Yan Wong' via web2py-users
message itself ('bad values' in this case) within the custom page. It doesn't seem to exist in the request object? -- 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

[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-19 Thread 'Annet' via web2py-users
I had the same problem when installing web2py 2.19.1 on Mac OS X Catalina. I eventually solved the problem running the following code: Annets-Mini:~ me$ export PATH=/usr/local/Cellar/postgresql/12.1/bin/:$PATH Annets-Mini:~ me$ export LDFLAGS="-L/usr/local/opt/readline/lib" Annets

[web2py] Re: Open form action in new window/tab only when validation passed

2020-04-18 Thread 'Yan Wong' via web2py-users
I think I've worked out what I *want* to do, but I'm not sure if this is easy in web2py. I want to use the onsubmit handler in a form to reload the form from a .load view, but return false so that the *final* submit action is not called. Then, if the reloaded form validates, I can set

[web2py] {{block head}}{{end}}

2020-04-18 Thread 'Annet' via web2py-users
(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 unsubscribe from this group and stop receiving emails fro

[web2py] Open form action in new window/tab only when validation passed

2020-04-17 Thread 'Yan Wong' via web2py-users
I have page containing a web2py form, and the page is meant to be viewed in an iframe. However, if the form validates, I need to escape the iframe by opening the action URL in a new tab, e.g. using target="_blank" (this is a redirect to a PayPal payments page, which is why it wil

[web2py] Standard way of removing X-Powered-By: web2py http header?

2020-04-12 Thread 'Yan Wong' via web2py-users
I'm a bit disappointed that web2py by default sets `X-Powered-By: web2py` in the http header, thus making it easier for web-scanning tools to detect the software running behind a web site, and allow more targetted attacks. Is there an easy config option to efficiently turn this off for all

[web2py] auth.settings.extra_fields and on_define

2020-04-11 Thread 'Annet' via web2py-users
Is it possible to add the keyword argument on_define to auth.settings.extra_fields['auth_user'] Kind regards, Annet -- 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] Re: web2py 2.19.1 is OUT

2020-04-10 Thread 'Annet' via web2py-users
In this version of web2py I have the following lines of code in db.py from gluon.contrib.appconfig import AppConfig configuration = AppConfig(reload=True) When I add code to a module file and save the file I get the following error: nameError(“name ‘reload’ is not defined”) Why do I get

[web2py] on_define and IS_IN_DB()

2020-04-10 Thread 'Annet' via web2py-users
://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 unsubscribe from this group and stop

[web2py] configuration.take() or configuration.get() and pool_size = 0 error

2020-04-08 Thread 'Annet' via web2py-users
In the online verson of the book it says: a_config_value = myconf.take('example_section.example_key', cast=int) http://web2py.com/books/default/chapter/29/13/deployment-recipes#AppConfig-module In the db.py file in web2py 2.19 it says: migrate_enabled=configuration.get('db.migrate') What

Re: [web2py] web2py 2.19.1 is OUT

2020-03-24 Thread 'jim kaubisch' via web2py-users
Hi Nico, Just want to make sure I understand. You say 'web2py 2.19.1 binaries come "with embedded Python 2.7.16 or 3.7.4" ' ?? My reading is that one MUST get web2py source in order to use other versions of Python? Am I understanding correctly? We are on macOS Catalina, py

[web2py] Rocket error

2020-03-18 Thread 'Annet' via web2py-users
In web2py 2.18.5 on Mac OS X Catalina I get the following error in the terminal: ERROR:Rocket.Errors.Thread-10:Traceback (most recent call last): File "/Users/me/web2py/gluon/rocket.py", line 1288, in run self.run_app(conn) File "/Users/me/web2py/gluon/rocket.py", l

  1   2   3   4   5   6   7   8   9   10   >