[web2py] Re: reCAPTCHA link in online web2py book

2024-01-28 Thread lucas
anyone on this, at all? On Monday, January 22, 2024 at 9:01:02 AM UTC-5 lucas wrote: > hello one and all, > > the link for reCAPTCHA, or, " > http://web2py.com/books/default/reference/29/recaptcha;, under the online > web2py book, " > http://web2py.com/books/default/

[web2py] reCAPTCHA link in online web2py book

2024-01-22 Thread lucas
the latest version of web2py, 2.27.1? is it still free? is it still good to use? thank you, lucas -- 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) --- Yo

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

2023-10-18 Thread lucas
web2py gid = web2py socket = /run/uwsgi/web2py.sock chown-socket = web2py:nginx chmod-socket = 660 vacuum = true thank you for your help. lucas On Tuesday, October 17, 2023 at 3:43:31 AM UTC-4 Tom Clerckx wrote: > Maybe you should review the 'high calculation/high plotly' pages for > memory usag

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

2023-10-16 Thread lucas
3:48:34 iquanta.info systemd[1]: Stopped uWSGI Emperor service. Oct 16 13:48:34 iquanta.info systemd[1]: uwsgi.service: Consumed 10.241s CPU time. with not much to say under the nginx logs. so, does anyone know what i can be dealing with? thank you in advance, lucas -- Resources: - http

[web2py] Re: after Lost Password onaccept

2023-03-23 Thread lucas
thank you, that worked great. both suggestions. lucas On Thursday, March 23, 2023 at 8:00:11 AM UTC-4 Leonel Câmara wrote: > It's auth.settings.reset_password_onaccept > > However you can also simply use auth.settings.login_after_password_change > = False to force the user to

[web2py] after Lost Password onaccept

2023-03-22 Thread lucas
t that one. thank you in advance, lucas -- 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] Re: how to point web2py to python3.9 not python3.8?

2022-11-30 Thread lucas
. lucas [Unit] Description=uWSGI Emperor service [Service] ExecStartPre=/usr/bin/bash -c 'mkdir -p /run/uwsgi; chown web2py:nginx /run/uwsgi' ExecStart=/usr/local/bin/uwsgi --emperor /etc/uwsgi/sites Restart=always KillSignal=SIGQUIT Type=notify NotifyAccess=all [Install] WantedBy=multi

[web2py] Re: how to point web2py to python3.9 not python3.8?

2022-11-30 Thread lucas
er error trace files. On Tuesday, November 29, 2022 at 10:58:57 PM UTC-5 lucas wrote: > hello one and all, > > i just upgraded my centos8stream server from python3.8 to python3.9 > running nginx1.14 and uwsgi2.0.21 and web2py2.22.5. > > when i restart web2py it says it is still ac

[web2py] how to point web2py to python3.9 not python3.8?

2022-11-29 Thread lucas
, lucas -- 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

Re: [web2py] DAL join field access

2022-09-10 Thread lucas
yes, that worked perfectly. thank you massimiliano. lucas On Saturday, September 10, 2022 at 12:43:30 PM UTC-4 Massimiliano wrote: > Hi, > > I'm not sure to have understand correctly your question, but maybe you > need to use aliases: > > fields = [ > db.tab

[web2py] DAL join field access

2022-09-10 Thread lucas
the field values by like db.table1.id or db.table2.last_name? is there a way to collapse the fields so that we can just use id or last_name, especially when we're certain that the fields are unique when we collapse when we specify the fields under the select? thank you in advance, lucas -- Resources

Re: [web2py] Re: pbkdf2(1000,20,sha512)$etc... in v2.22.5

2022-08-19 Thread lucas
, not web2py interface [or application], how do i take a regular string and convert it into the password that is stored in the password in the auth_user table under web2py version 2.22.5?" lucas On Thursday, August 18, 2022 at 4:51:41 PM UTC-4 Jim S wrote: > I must be misunderstandin

Re: [web2py] Re: pbkdf2(1000,20,sha512)$etc... in v2.22.5

2022-08-18 Thread lucas
ok, that sets up the web2py environment. i'm asking how to reproduce or generate the hashed key from regular text within a separate shell script. lucas On Thursday, August 18, 2022 at 8:53:38 AM UTC-4 Jim S wrote: > It should be the same as auth.settings.hmac_key, probably set in db

[web2py] Re: pbkdf2(1000,20,sha512)$etc... in v2.22.5

2022-08-18 Thread lucas
n Wednesday, August 17, 2022 at 9:01:32 PM UTC-5 lucas wrote: > >> hello one and all, >> in linux/bash script code, not web2py interface, how do i take a regular >> string and convert it into the password that is stored in the password in >> the auth_user table unde

[web2py] Re: gmail smtp and password retrieval

2022-08-17 Thread lucas
i am using web2py 2.22.5 using the wsgihandler.py handler and nginx under centos 8 stream all current and updated and rebooted. i don't understand all of the stuff from massimo On Wednesday, August 17, 2022 at 8:54:22 PM UTC-4 lucas wrote: > i'm wondering. do i have to retrieve or gener

[web2py] pbkdf2(1000,20,sha512)$etc... in v2.22.5

2022-08-17 Thread lucas
hello one and all, in linux/bash script code, not web2py interface, how do i take a regular string and convert it into the password that is stored in the password in the auth_user table under web2py version 2.22.5? thank you in advance, lucas -- Resources: - http://web2py.com - http

[web2py] Re: gmail smtp and password retrieval

2022-08-17 Thread lucas
i'm wondering. do i have to retrieve or generate the 16 digit password from the app itself. cuz i don't know how to do that since it is purely a linux console only interface. On Wednesday, August 17, 2022 at 12:18:16 PM UTC-4 lucas wrote: > nope, and i regenerated a new password j

[web2py] Re: gmail smtp and password retrieval

2022-08-17 Thread lucas
August 17, 2022 at 6:12:50 PM UTC+2 lucas wrote: > >> nope, that didn't work either. uhm. >> >> On Wednesday, August 17, 2022 at 12:08:12 PM UTC-4 Clemens wrote: >> >>> Hmm, should work, since it's the right port for ssl. Maybe setting tls >>>

[web2py] Re: gmail smtp and password retrieval

2022-08-17 Thread lucas
> > Clemens > > On Wednesday, August 17, 2022 at 5:57:56 PM UTC+2 lucas wrote: > >> oh, so the latter is still not sending the Lost Password. >> >> On Wednesday, August 17, 2022 at 11:54:38 AM UTC-4 lucas wrote: >> >>> ok, i turned on 2-step verification, gen

[web2py] Re: gmail smtp and password retrieval

2022-08-17 Thread lucas
oh, so the latter is still not sending the Lost Password. On Wednesday, August 17, 2022 at 11:54:38 AM UTC-4 lucas wrote: > ok, i turned on 2-step verification, generated 1 password for "App > passwords" that gave me a 16 character string which i copied into the > pass

[web2py] Re: gmail smtp and password retrieval

2022-08-17 Thread lucas
ljrsdeyj16' tls= true ssl= true where i changed the login string so i didn't give away my security. so what do you think? lucas On Wednesday, August 17, 2022 at 11:34:58 AM UTC-4 Clemens wrote: > Generate an app password, as follows: > https://support.google.com/mail/ans

[web2py] gmail smtp and password retrieval

2022-08-17 Thread lucas
hey one and all, on May 5th, 2022, gmail imposed the 2 step verification on its smtp service. how do we configure web2py to still use our gmail accounts to send smtp for password retrieval. thank you in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation

[web2py] import

2021-11-17 Thread lucas
on my web2py website and i don't want any accessing packages like os or sys. thank you in advance and have a great day, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

[web2py] response.flash disabled for only @media print { }

2021-11-15 Thread lucas
hello one and all, curiosity? is there a way to disable the response.flash div but only for the @media print { } section under web2py 2.21.1? thank you in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: message in register form

2021-10-25 Thread lucas
yes, that worked very nicely. thank you. On Monday, October 18, 2021 at 10:29:24 AM UTC-4 A3 wrote: > You can edit the view: default/user.html > > add some html code like you would do in a standard html doc > > Op maandag 11 oktober 2021 om 20:49:45 UTC+2 schreef lucas:

[web2py] message in register form

2021-10-11 Thread lucas
hello one and all, how can i add a simple message to the /user/register form? just plain text with a link in there also. thank you in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] html helper: CODE (scroll or word-wrap)

2021-09-19 Thread lucas
the latter two possibilities? thank you in advance, lucas -- 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] applications include homes directories

2021-06-08 Thread lucas
directory also? lucas -- 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 "w

[web2py] Re: save and recover Storage as string

2021-04-30 Thread lucas
3:::", s2, type(s2)) print(s2.happy) exit() where we replace the "" with ")" at the end and eval does the rest. thank you for your help. i think __repr__ should be updated to my suggestion above so its easier to convert to and from string for easier db storage of

[web2py] Re: save and recover Storage as string

2021-04-25 Thread lucas
m json, wouldn't it make sense to and from string for storage? thank you again, lucas On Sunday, April 25, 2021 at 3:07:29 AM UTC-4 snide...@gmail.com wrote: > On Friday, April 23, 2021 at 9:43:19 AM UTC-7 lucas wrote: > >> hello one and all, >> >> i'd like to save and rec

[web2py] save and recover Storage as string

2021-04-23 Thread lucas
quot;, ss, type(ss)) exit() with output: 1::: 2::: Traceback (most recent call last): File "./web2py_Storage.py", line 17, in ss = eval(ss) File "", line 1 ^ SyntaxError: invalid syntax any ideas how to make this work smoothly? thank you in advance, lucas --

[web2py] anywhere.py rocket admin on port 80 no ssl

2021-04-16 Thread lucas
maybe a common question. how do i allow access to the admin interface on regular port 80 and without ssl? i have web2py running on a little local raspberry pi, behind firewalls, and i'm not concerned with security. thank you in advance, lucas -- Resources: - http://web2py.com - http

[web2py] request.headers

2021-03-28 Thread lucas
hello one and all, simple question. is there a variable that returns the http headers coming into a function from the client, like request.headers? the request.env is a bit mixed with other stuff besides the headers that come in from the client. thanx in advance, lucas -- Resources

[web2py] Re: login to my web2py website with python 3 requests

2021-03-26 Thread lucas
headers through the session. I am able to login now under python and it is working great. thank you again in advance and I love web2py and python. Lucas On Friday, March 26, 2021 at 2:54:04 AM UTC-4 lucas wrote: > I'm trying to login to my own web2py website using requests in python > 3.

[web2py] login to my web2py website with python 3 requests

2021-03-26 Thread lucas
I'm trying to login to my own web2py website using requests in python 3.9.2. I can't seem to do it. my code is below. may you please review and let me know what I'm overlooking? thank you in advance, Lucas cookie = MozillaCookieJar('cookies') if os.path.exists('cookies'): cookie.load

[web2py] Re: SQL db select multiple inner and an left outer joins

2020-09-11 Thread lucas
r_id), db > .class_groups.on(db.class_groups.id == db.class_group_users.class_group_id > ), db.classes.on(db.classes.id == db.class_groups.class_id), etc..] > > > -Jim > > > On Friday, September 11, 2020 at 10:48:16 AM UTC-5, lucas wrote: >> >> hey Jim S, and ot

[web2py] Re: SQL db select multiple inner and an left outer joins

2020-09-11 Thread lucas
here" part of the sql statement go under the db() part? lucas On Friday, September 11, 2020 at 10:19:02 AM UTC-4 Jim S wrote: > This may make me sound like a horrible developer, but I never use INNER > joins. And when I say never, I mean NEVER. I have nothing against them, &

[web2py] SQL db select multiple inner and an left outer joins

2020-09-11 Thread lucas
various obvious ways but it either crashes the server with 502 or gives the wrong results. thanx in advance, lucas select c.title, c.subtitle, cg.id, cg.name, u.last_name, u.first_name, l.user_id, l.date_generated, l.date_completed, l.lab_manual, l.lab from classes c inner join class_gr

[web2py] Re: response.meta.keywords of type "map"

2020-09-03 Thread lucas
response.meta is a Storage object which is really just a > special web2py dict. > In other words, this: response.meta.keywords = 'my key word string' > would be equivalent to this: response.meta['keywords'] = 'my key word > string' > > > > > > O

[web2py] Re: response.meta.keywords of type "map"

2020-09-03 Thread lucas
8.2 server. BUT on the old centos 7.6 it returns the proper string of keywords. On Thursday, September 3, 2020 at 6:52:07 AM UTC-4 lucas wrote: > maybe i didn't explain what happened here. i've been running web2py on a > centos 7.6 server with python 2.7.5. i created a brand new server with > cen

[web2py] Re: response.meta.keywords of type "map"

2020-09-03 Thread lucas
ct to change type so much is confusing. and map isn't a real thing in python because when i read about it, it always points to type dict. On Wednesday, September 2, 2020 at 10:58:00 PM UTC-4 lucas wrote: > > no, i tried all those tests. when i simply do return > BODY(type(response.me

[web2py] Re: response.meta.keywords of type "map"

2020-09-02 Thread lucas
'! > You may wish to read up about the map function and iterators if this is a > new concept. > > > On Wednesday, 2 September 2020 at 16:16:09 UTC+1 lucas wrote: > >> very simply, i'm trying to add keywords of type string to the >> response.meta.keywords, which used to be of t

[web2py] Re: response.meta.keywords of type "map"

2020-09-02 Thread lucas
ure what you are doing exactly but you seem to have created a map > iterator. Maybe you could convert that to a list? You might be able to > work with it more easily. Something like this: > list( response.meta.keywords ) > > > > On Wednesday, 2 September 2020 at 1

[web2py] Re: response.meta.keywords of type "map"

2020-09-02 Thread lucas
in fact, when i inspect the head of the final html in the browser, w2p doesn't return a string at all, in fact it returns a reference to an object: On Tuesday, September 1, 2020 at 10:03:28 PM UTC-4 lucas wrote: > hello one and all, > > its been a while since i've bee

[web2py] response.meta.keywords of type "map"

2020-09-01 Thread lucas
eing a string. i'm obviously concatenating strings above. what the heck is type "map" and how's that work with keywords? lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issue

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-08-21 Thread lucas
bash window, it starts fine and the server is accessible via the chromium browser. when I try to put it in /etc/rc.local the command will not run when I reboot. any suggestions on that latter point. thanx in advance and have a great day, Lucas -- Resources: - http://web2py.com - http://web2py

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread lucas
i haven't until you just mentioned it. there is an emperor.uwsgi.service file. its contents are: [Unit] Description = uWSGI Emperor After = syslog.target [Service] ExecStart = /usr/local/bin/uwsgi --ini /etc/uwsgi/web2py.ini RuntimeDirectory = uwsgi Restart = always KillSignal = SIGQUIT Type

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread lucas
well isn't python opened with either nginx (nginx.service) or uwsgi (emperor.uwsgi.service) with systemctl. I've been trying to find that script to change the python to python3.5. but I can't seem to find it under either of those two or under web2py. -- Resources: - http://web2py.com -

[web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-06-07 Thread lucas
is the secret spot. i'm using nginx 1.10.3 and uwsgi 2.0.14 and the wsgihandler.py properly, etc. lucas -- 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: web2py on Raspbian and Python 2 or 3?

2019-06-04 Thread lucas
so, what is the best way to direct web2py to use the python3 instead of the default python/python2.7? -- 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: subprocess.Popen then release

2019-05-24 Thread lucas
yeah, I thought of doing it as a scheduled task, but its really best to be triggered by a web2py event and then collect data off of an a2d convertor and populate a db with pure data. so that's why it isn't a true daemon, but I might go in that direction and just have crond trigger it. --

[web2py] subprocess.Popen then release

2019-05-24 Thread lucas
or the server, or any of that kind of mess like that. thank you in advance, Lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

[web2py] Re: Https Apache Problem

2019-05-22 Thread lucas
Massimo is very correct on using nginx. I used apache for decades and nginx is simpler to configure and serves up http requests at twice the speeds. literally what used to be an average of 100-120ms under apache, changed to 40-55ms under nginx for the same exact code under web2py. On

[web2py] web2py on Raspbian and Python 2 or 3?

2019-05-22 Thread lucas
ally, what would it take to get web2py to use the python 3 that is already native on raspbian? the reason is because the adafruit ads1115 analog-to-digital library only runs on python 3 and I'd like web2py to access the board directly. thank you in advance and have a good day. Lucas -- Resourc

[web2py] Re: !web2py, but i'm asking someone's help with aws-sdk-js.

2019-05-17 Thread lucas
actually Dave S, your indirect answer led me to a place of where not to go at all, which was the server-side node.js. believe it or not. because it led me to a place where i actually needed to be. and i conjured the final code after about 44 hours of toil. it works freaking great, pure

[web2py] Re: FORM other then process & errors

2019-05-16 Thread lucas
I renamed one of the gfrm in code and then added the forename under all of the form process es just to solidify it down. thank you for your help. Lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: !web2py, but i'm asking someone's help with aws-sdk-js.

2019-05-16 Thread lucas
understand why its so hard to find examples when s3 been around longer then 2006. so, I'm hoping to get guidance from my peers on web2py google groups. Lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source cod

[web2py] !web2py, but i'm asking someone's help with aws-sdk-js.

2019-05-15 Thread lucas
hello one and all, i'm in a nightmare trying to upload files via pure client-side javascript to aws s3 using, i guess, aws-sdk-js. perhaps someone out there who's done this can have a discussion with me and i don't know where else to go. i know this isn't web2py but i'm in the weeds on this

[web2py] block entire app

2019-05-13 Thread lucas
lines of code also. basically, how to gracefully shutdown an entire app? thank you in advance, lucas -- 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] FORM other then process & errors

2019-05-12 Thread lucas
Tests Errors' else: response.flash = 'ok' I believe I learned that there are only the process-accepted and errors sections. but I have a condition where its going under the else section where ok is. what are the causes of a FORM going into that area? thank you in advance, Lucas

[web2py] session id under db.py

2019-05-01 Thread lucas
t to think about this right now. just reporting. thank you in advance, lucas -- 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 b

[web2py] Re: auth_user change field order

2019-04-22 Thread lucas
ok, i finally found what was wrong. i didn't realize there were two such settings. i was using the profile_fields and testing it on the register screen. so, i have this now under the db.py model: auth.settings.register_fields = ['prefix_title', 'first_name', 'last_name', 'gender',

Re: [web2py] Re: 2.18.5 LI(_class="dropdown-divider") bug?

2019-04-12 Thread lucas
lor: #f0c36d; } and it works perfectly and looks beautifully. thanx to mweissen his suggestion, it worked pretty well also. qed, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

[web2py] Re: 2.18.5 LI(_class="dropdown-divider") bug?

2019-04-11 Thread lucas
ok, i tried it without the appends, instead just direct: response.menu[1][3] = [ (T('Dashboard'), False, URL('main', 'students')), A('', _class="divider"), (T('Assessments'), False, None), (T('History'), False, None), (T('Join a Class'), False, None)

[web2py] Re: 2.18.5 LI(_class="dropdown-divider") bug?

2019-04-11 Thread lucas
alright, so just to be absolutely sure. i copied the layout.html and the default/index.html files from the 2.18.5 welcome app and stuck them in the proper places in my app. i still get the same error. i do NOT get the error if i comment out the separator line, as commented below. here is

[web2py] Re: 2.18.5 LI(_class="dropdown-divider") bug?

2019-04-11 Thread lucas
web2py™ Version 2.18.5-stable+timestamp.2019.04.08.04.22.03 Python Python 2.7.5: /usr/bin/uwsgi (prefix: /usr)Traceback 1. 2. 3. 4. 5. 6. 7. 8. Traceback (most recent call last): File "/opt/web2py_apps/web2py_2-18-5/gluon/restricted.py", line 219, in restricted exec(ccode, environment)

[web2py] Re: 2.18.5 LI(_class="dropdown-divider") bug?

2019-04-11 Thread lucas
attached and thank you. and for the record, I've tried everything I can think of the for the past few days. and if it turns out I'm just a dumb butt, then I'm going to be really pissed at myself. lol. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: 2.18.5 LI(_class="dropdown-divider") bug?

2019-04-10 Thread lucas
oh yes I agree with you. I think you're referring to the 3 in "response.menu[1][3].append". the list to append to the submenu is the 4th element, so the 3 is correct. On Wednesday, April 10, 2019 at 3:41:08 PM UTC-4, Anthony wrote: > > Indexing is zero-based in Python, so the index of the

[web2py] Re: 2.18.5 LI(_class="dropdown-divider") bug?

2019-04-10 Thread lucas
t/chapter/29/05/the-views?search=data-#HTML-helpers > > DIV('text', _data-role='collapsible') >> >> will not work because "_data-role" includes a hyphen, which will produce >> a Python syntax error. >> > > Check the solutions suggested. > > > >

[web2py] 2.18.5 LI(_class="dropdown-divider") bug?

2019-04-09 Thread lucas
appends, the appends of the tuples work but the append with the LI bugs like hell. thanx in advance, Lucas -- 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: auth_user change field order

2019-04-08 Thread lucas
and i also update web2py from 2.17 to 2.18.5, just in case. On Monday, April 8, 2019 at 10:20:27 AM UTC-4, lucas wrote: > > i tried this before and after auth.define_tables and it had no effect: > > auth.settings.profile_fields = ['prefix_title', 'first_name', 'last_name', > 'gend

[web2py] Re: auth_user change field order

2019-04-08 Thread lucas
i tried this before and after auth.define_tables and it had no effect: auth.settings.profile_fields = ['prefix_title', 'first_name', 'last_name', 'gender', 'birthdate', 'zip', 'email'] -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: auth_user automatically lowercase all email fields

2019-04-08 Thread lucas
students log into this site i've had. and they type all kinds of crazy stuff. i don't want to preserve what the students type because students are inconsistent when they login. so i want to force it to lowercase so at least i know what is definitely stored in the db. -- Resources: -

[web2py] auth_user automatically lowercase all email fields

2019-04-08 Thread lucas
ate). thank you in advance. lucas -- 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 Gro

[web2py] auth_user change field order

2019-04-08 Thread lucas
E')), comment='Enter your Gender.'), Field('input_date', 'date', comment="format -MM-DD", requires=NE, default=datetime.date.today(), writable=False, readable=False) ] thank you in advance. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] web2py docker

2019-01-10 Thread Lucas Manoel
I created a image on docker that have web2py How do i put my application at applications web2py folder? -- 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] Recover images web2py

2019-01-10 Thread Lucas Manoel
i have a image uploaded, how do i recover it on html? Any idea? -- 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

Re: [web2py] Re: Future of web2py

2018-11-20 Thread Fernando Lucas
Did you think about the JS framework, https://aurelia.io/? Thank's Fernando Lucas Em seg, 29 de mai de 2017 às 20:29, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > My plan is this > > It is based on bottle + gevent + gunicorn + rethinkdb + pydal + vue.js + >

[web2py] Re: admin IDE for general use

2018-11-18 Thread lucas
oh, and btw, I have the whole server running off of a $35 Raspberry Pi 3b+, with PostGreSQL 9, Web2Py 2.17.2, and Nginx. I tricked the wifi of my institution to let the raspberry access and even though its a local address, students can access their code and view their results from whatever

[web2py] Re: admin IDE for general use

2018-11-18 Thread lucas
uot;# -*- coding: utf-8 -*-\nimport mcp\n\ndef index():\n\treturn BODY(\"testing 1 2 3\")"}} {{=form.custom.end}} and it is working really nicely. thank you for the help and suggestions and guidance. I hope the code above will help some other professors show the importance

[web2py] Re: admin IDE for general use

2018-11-14 Thread lucas
well, I know that web2py is reading a py/txt file and uploading that into CodeMirror when the page is loaded to be edited under admin. then when saved it writes it back to the file to update it. I'd like to get the py/txt from a text field in PostgreSQL table. and then when its saved, it

[web2py] Re: admin IDE for general use

2018-11-14 Thread lucas
even with different set, get, and save methods? Lucas -- 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] admin IDE for general use

2018-11-14 Thread lucas
know how to implement the admin IDE outside of actually being a web2py regular admin. please advise, thank you, Lucas -- 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

Re: [web2py] DAL unique on multiple fields

2018-10-14 Thread lucas
I didn't think so, so I was making sure. I added it under onvalidation under the controller. and also added it to the Postgres database as a custom index. thank you for verifying with me. Lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] DAL unique on multiple fields

2018-10-14 Thread lucas
hello one and all, is there a DAL level way to impose a constraint on a single table but unique on multiple fields within that single table? thanx in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] SQLFORM element(s) (delete or remove)

2018-10-11 Thread lucas
hello one and all, the API is tough to navigate. so, i'll ask. SQLFORM element and elements is very powerful. along with update, insert, and append. but how do you delete an element, or multiple elements, under an element that you found? thank you in advance, lucas -- Resources: - http

[web2py] IS_IN_SET boolean force to SELECT

2018-10-11 Thread lucas
hello one and all, i'm using 2.17.2. under the db DAL, i have a boolean field that defaults to a checkbox under SQLFORM.grid. how do i change that under Field to default to a SELECT instead of a INPUT(_type="checkbox")? thank you in advance, lucas -- Resources: - http://web2py.

[web2py] Re: return binary

2018-06-14 Thread lucas
thank you, that would be wonderful. where do I open the ticket? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you

[web2py] Re: return binary

2018-06-13 Thread lucas
so this is what i got working wonderfully but using psycopg2 directly instead of the DAL. AGAIN, i would love to convert this back to the DAL for seemlessness and grace. def getbinary(): try: c = psycopg2.connect("dbname='tms' host='%s' user='%s' password='%s'" % ('localhost',

[web2py] Re: return binary

2018-06-13 Thread lucas
PostGreSQL 9 which stores the png as direct raw non-escaped hex. AND i am trying a direct sql select by using psycopg2 right now. because using the DAL has been annoying. but i'd love to use it if i could. so i'm open to DAL methods. -- Resources: - http://web2py.com -

[web2py] Re: return binary

2018-06-13 Thread lucas
so, i've figured out that the entire blob stream is not being fully retrieved, only 29 of the 5513 bytes are being retrieved: in my debugging: here is an experimental / expanded of the above function::: table, id, field, stream, and d are all working. but the d[field] under

[web2py] return binary

2018-06-13 Thread lucas
arious "things" to try to get it to display properly under the browser. i have a test png in the database and under postgresql it is confirmed to be 5513 bytes long in hex format. can anyone suggest proper working code? i believe the problem is in the getbinary function. thank you in

[web2py] setup-web2py-nginx-uwsgi-centos7.sh

2018-02-19 Thread lucas
inx/conf.d files, one for each domain pointing to the proper domain and web2py application, along with the changes in nginx.conf file? i've read a lot but it is hard to make sense since uWSGI and web2py are in the mix now also. thank you, lucas -- Resources: - http://web2py.com - http://web2p

[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-16 Thread lucas
alright, well this has me thinking towards a whole new http server. i just might do it very soon, especially since it just a yum/rpm package on centos already. thank you all for your input. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-10 Thread lucas
better use nginx to serve web2py, found a lot of problem when using apache with web2py is it really much much better? in what ways? why would I change? Lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] only static files forbidden on centos 7.4 apache 2.4

2018-02-10 Thread lucas
hey all, setting up a new server on centos 7.4 and apache 2.4. web2py is running fine for i get the welcome content but none of the files under static are coming down to the client. please makes suggestions. thank you. lucas here is my default.conf file where you'll see i've tried a bunch

[web2py] Re: json to request.vars

2018-02-04 Thread lucas
: 'application/json'" returned no data under request.vars or request.post_vars. so, i believe i go with the working model of JSON.stringify on the client side with loads on the server side. makes sense and i believe a solid solution. lucas -- Resources: - http://web2py.com - http://w

[web2py] json to request.vars

2018-02-03 Thread lucas
understand that it might break http post rules or something, and when I do send a json dict, request.vars flattens the whole array into keys with flattened strings instead of addressable indexes/keys. ok, let me know and thank you in advance. Lucas -- Resources: - http://web2py.com - http

[web2py] how to hash the a users password in bash script

2018-01-22 Thread lucas
ould I replace it with so that when harry types in the 'dude man' password, web2py hashes it properly and logs in old harry? thank you in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google

[web2py] Re: nav bar in 2.16.1

2017-12-23 Thread lucas
as I reported when the screen isn't wide enough, it will default to the pull down button, that doesn't work in safari or Firefox. it also doesn't work on iOS. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

  1   2   3   4   5   >