[web2py] 500 Internal Server Error under CentOS Apache and Web2py 2.9.5

2014-04-20 Thread lucas
Order Allow,Deny Allow from all CustomLog /var/log/httpd/access_log common ErrorLog /var/log/httpd/error_log ...EOF here is my /etc/httpd/conf.d/welcome.conf file: BOF... Options -Indexes ErrorDocument 403 /error/noindex.html ...EOF thanx for your help in advance, lucas -

[web2py] Re: 500 Internal Server Error under CentOS Apache and Web2py 2.9.5

2014-04-22 Thread lucas
d i got the essential interface running fine. so i guess it was that easy. cool. thanx, 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 t

[web2py] Re: google analytics

2014-05-06 Thread lucas
if we are using the analytics.min.js one, do we include the "UA-" in the response.google_analytics_id string variable under menu.py? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issue

[web2py] DAL select id in list

2014-05-17 Thread lucas
how do i do something like: db(db.customers.id in [4,101,14,3,12,19,98]).select() ? 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: DAL select id in list

2014-05-17 Thread lucas
thanx anthony. -- 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" g

[web2py] get value of value attribute of input of SQLFORM

2014-06-10 Thread lucas
so i have an SQLFORM and if i drill down enough i get the INPUT object: uform[0][0][1] where uform is an SQLFORM object. but how can i read the value of the value attribute? thanx in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] Re: get value of value attribute of input of SQLFORM

2014-06-10 Thread lucas
under the TD. i had a brainy storm. thanx, 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 subscri

[web2py] how to test for right_sidebar block not empty in view

2014-06-17 Thread lucas
something like if response.right_sidebar: was correct, but it excepts out. 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) --- You received

[web2py] Re: how to test for right_sidebar block not empty in view

2014-06-17 Thread lucas
ok, yes, i agree, but how to test of the right_sidebar is empty or not under layout.html? -- 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 th

[web2py] Re: how to test for right_sidebar block not empty in view

2014-06-17 Thread lucas
no, oh no, i didn't want how to access the enabled, right_sidebar_enabled, variable. what is the variable named for the block of text or tagged html text itself? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https:

[web2py] truly global/single instance variable

2014-07-26 Thread lucas
each user. in the interest of efficiency and lower memory usage, how can i create a single variable that loads a single instance of this list of lists that all users and all sessions use? thanx in advance and have a great day. lucas -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: truly global/single instance variable

2014-07-26 Thread lucas
matter the number of users or sessions? thanx, 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

[web2py] Re: more buttons on the SQLFORM, how to add them into templates using form custom layout ...?

2014-07-31 Thread lucas
, _value='Complex Timesharing/Split Arrangements', _style="width:410px;"), INPUT(_type='submit', _name='summary', _value='Analyses Summary', _style="width:410px;")]) and then under the view: {{=DIV(sform.custom.submit[0], sform.custom.sub

[web2py] client browser small screen detect

2014-08-17 Thread lucas
in an iPod or iPhone versus the larger screens of like a iPad. the small screens really squish crap together and i would like to adjust for that better. thanx in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] 2.9.11 migration from 2.9.5

2014-12-31 Thread lucas
er at mydomain.com Port 443 any migration advice please? 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) --- You received this message becaus

[web2py] 2.9.11 migration

2015-01-01 Thread lucas
. -- Apache/2.2.15 (CentOS) Server at mydomain.com Port 443 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) --- You received this

[web2py] question, kind of general

2015-02-03 Thread lucas
also, if i setup cron to run this code, where is it best located so that the rest of the site doesn't suffer from servicing client requests? thanx in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source cod

[web2py] Re: question, kind of general

2015-02-04 Thread lucas
serve up the client HTTP requests. i can use regular linux cron in the future to run these console python scripts. always pushing the limits. thanx, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] import gluon.tools under private modules

2015-02-10 Thread lucas
hey everyone, i am writing a private module, like dude.py under applications/app/private. how do i access the web2py library like from gluon.tools import Mail and have it run properly under the private module? thank you in advance, lucas -- Resources: - http://web2py.com - http

[web2py] Re: import gluon.tools under private modules

2015-02-11 Thread lucas
well when i try to import a file.py from the private folder in a controller file, web2py throws back that it can't import the file. how come? On Tuesday, February 10, 2015 at 9:55:58 PM UTC-5, Leonel Câmara wrote: > > You can do exactly that. > -- Resources: - http://web2py.com - http://web2py

[web2py] Re: import gluon.tools under private modules

2015-02-11 Thread lucas
yes it is under the /opt/web-apps/web2py/applications/afs/private folder. what i really want to do is run this private module as a python script under bash console. because if i try to run it under the controller, it will consume all of the CPU and leave the main website locked until the proce

Re: [web2py][Javascript] Massimo here searching for some javascript devs ready to port web2py in JS

2015-03-01 Thread lucas
you know ya'll, none of that is funny at all. and april is soon to be on us again. -- 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 mes

[web2py] two (or more) applications using the same database

2015-03-05 Thread lucas
in both db.py files, one under each application? other things to consider? 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) --- You

[web2py] Re: two (or more) applications using the same database

2015-03-05 Thread lucas
wouldn't SQL based be better? especially with searching through indexes. like i use postgresql and i wouldn't mind sticking with that. lucas On Thursday, March 5, 2015 at 9:39:21 PM UTC-5, Ron Chatterjee wrote: > > Once solution I can think of, you can save them all on a csv f

Re: [web2py] Re: two (or more) applications using the same database

2015-03-08 Thread lucas
yes, that is working great. the migrate parameter is very good. thanx, 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

Re: [web2py] Re: two (or more) applications using the same database

2015-03-12 Thread lucas
ame)) KeyError: 'Cannot resolve reference county in cases definition' when i try to recompile the code. so what am i doing wrong in this field definition. thanx in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/

Re: [web2py] Re: two (or more) applications using the same database

2015-03-12 Thread lucas
yes, wouldn't DAL need to if it allows for connection(s) to multiple databases in the first place? lucas On Thursday, March 12, 2015 at 10:22:32 AM UTC-4, Anthony wrote: > > Are you trying to have a table in one database (DAL instance) reference a > table in a separate database?

Re: [web2py] Re: two (or more) applications using the same database

2015-03-12 Thread lucas
i thought that could be a connection or association that web2py can make internally but above the database limitations. that should be doable no? On Thursday, March 12, 2015 at 11:03:07 AM UTC-4, Anthony wrote: > > On Thursday, March 12, 2015 at 10:46:05 AM UTC-4, lucas wrote: >

[web2py] SQLFORM question of formstyle and hidden inputs

2015-04-02 Thread lucas
that these hidden inputs do not show up in the final html page? doesn't web2py need these using the divs style also? 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/web

[web2py] Re: SQLFORM question of formstyle and hidden inputs

2015-04-02 Thread lucas
omg, i am a dumba$$. they are there, they are under a different div south of the submit. it escaped my eye. sorry anthony. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] SQLFORM.factory edit existing record(s) in multiple tables

2017-02-23 Thread lucas
hat the db.case.update(**db.case._filter_fields(from.vars)) will update the proper record when it returns from being edited. or if factory doesn't inherently fill the fields if the record exists, then we have to do a whole bunch through old-fashioned code? just looking for advice, thanx in a

[web2py] Re: SQLFORM.factory edit existing record(s) in multiple tables

2017-02-24 Thread lucas
I figured, but wasn't sure. I'm doing it the old fashioned way. thanx Massimo. -- 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 messag

[web2py] run-time test if DAL field allows None, null, or empty

2017-03-07 Thread lucas
'name', length=25) so, I'm looking for a universal solution no matter how the field is defined. thank you in advanced, Lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] Re: run-time test if DAL field allows None, null, or empty

2017-03-07 Thread lucas
maybe this can be added to the Fields object as a property in the future. thanx Anthony. 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] DAL select inner join to straight field list instead of multiple dicts per table

2017-04-07 Thread lucas
not duplicate themselves? 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) --- You received this message because you are subscribed to

[web2py] auth_user email rename name to data attribute

2017-04-11 Thread lucas
7;t seem to work. it is still somehow auto filling. I was going to rewrite the onclick of the submit button to get jQuery to search and replace those data inputs with the name variables to the values still get to the server ok. suggestions please? thanx in advance. lucas -- Resourc

[web2py] Re: auth_user email rename name to data attribute

2017-04-13 Thread lucas
ded. I used the load function because it runs after the ready function and I believe definitely after the autocomplete overwrites the input value. you can do the same thing with the password input also. that is the only universal way of doing it that I can come up with. Lucas -- Resources: - http://

[web2py] best way to disable "Save Password" alert in browser

2017-04-17 Thread lucas
to a wrong password if the user doesn't type in a new password. any ideas on how to either keep the password input to type="password" and still disable the alert, or how to process the input with type="text" in either javascript or onvalidation of the form.process? tha

[web2py] decode/encode password

2017-04-18 Thread lucas
el of control, then please tell me how to decode and encode the passwords under web2py. thank you and sincerely, 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 I

[web2py] Re: decode/encode password

2017-04-19 Thread lucas
s and not create a potential security problem. thanx again, 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 yo

Re: [web2py] How to set Reset password key programmatically?

2017-04-19 Thread lucas
what is "web2py_uuid()" in the above best answer? also maxtime, is that a date time stamp for sometime in the future of when you want the key to expire? thank you. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] how to reset_password_key programmatically?

2017-04-20 Thread lucas
change their password? like I get that I can send the user an email notice with a link, which has an expiration date/time built into it, to the "user/change_password" screen but how do I set that up in code? thank you in advance. lucas -- Resources: - http://web2py.com - http://web2p

[web2py] Re: how to reset_password_key programmatically?

2017-04-20 Thread lucas
ate your Changed Email/Password" auth.default_messages['reset_password'] = "Login User/Email and/or Password have changed for your XYZ account. Click on the link: %(link)s to reset your password. Please choose a different password then used prior hand." pretty smooth and I

[web2py] btw: great job

2017-04-22 Thread lucas
power, and scalability. sincerely, 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

[web2py] postgres 8, psycopg2, text datatype limit of 32k.

2017-05-31 Thread lucas
s are 1GB. so what would cause this limit? 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) --- You received this message because you a

[web2py] Re: postgres 8, psycopg2, text datatype limit of 32k.

2017-06-01 Thread lucas
yes, thank you, it all connects now. 1073741824 = 2**30 = 1GB. thank you again, 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

[web2py] postgres field optimization smallint

2017-12-06 Thread lucas
hey one and all, i would like to make some fields of type smallint, which postgresql allows. is there a way to do this under the DAL in the model file, under the Field designator? thank you in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: postgres field optimization smallint

2017-12-07 Thread lucas
i went with the Custom Field Type of SQLCustomType. just stuck it right in the db.py DAL file. sweet, 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

[web2py] generic.xml not recursive?

2017-12-12 Thread lucas
o and convert the nested dicts also? 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 subsc

[web2py] Re: generic.xml not recursive?

2017-12-12 Thread lucas
its weird because the nested dicts look xml parsed, and when you view it in firefox or safari, it just looks like a concatenated string of xml tags and values, and the browser doesn't parse them into individual tags and values. so i tried see what beautifulsoup did with the parsing of the nest

[web2py] Re: generic.xml not recursive?

2017-12-12 Thread lucas
ok ok, i'm a dumbbutt, i was passing a type Row instead of a pure dict. so i did xx.as_dict(), where xx is the Row object, and generic.xml parsed all of the nested dicts fine. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/w

[web2py] jquery.ajax file download

2017-12-12 Thread lucas
e(r"%s" % dct) response.headers['Content-Type'] = 'application/octet-stream; charset=us-ascii' response.headers['Content-disposition'] = 'attachment; filename=hsDNA_%s_%s_%s_IQa.%s' % (dct['locus']['chromosome'], dct

[web2py] Re: jquery.ajax file download

2017-12-13 Thread lucas
thank you for that, I just added: window.open( '{{=URL(c="dna", f="view")}}?'+jQuery.param(r) ) which includes the parameters required on the server end. works great and it is simple. Lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

[web2py] nav bar in 2.16.1

2017-12-21 Thread lucas
iving that space between the last menu item and the login item. now, i'm pretty good with css and this thing has me stumped. perhaps it has to do with bootstrap and -webkit stuff. so please offer some advice and examples, lucas -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: nav bar in 2.16.1

2017-12-21 Thread lucas
oh and i forgot to mention. if you narrow the browser window to the point that that button hides the menu, when you click on it it does do anything. that was under both safari and firefox, latest versions. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://git

[web2py] Re: nav bar in 2.16.1

2017-12-23 Thread lucas
I mean I worked like 12 hours trying to do that simple thing. On Saturday, December 23, 2017 at 1:27:29 AM UTC-5, Carlos Kitu wrote: > > Me too, with chromium and chrome as browsers. I just started with 2.16.1, > and found that out. I thought that something was wrong with my browser. > Best regar

[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) - https://co

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

2018-01-22 Thread lucas
hash_passwd is obviously not real, but what would 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://githu

[web2py] json to request.vars

2018-02-03 Thread lucas
n dict? I 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.

[web2py] Re: json to request.vars

2018-02-04 Thread lucas
the loads will convert the pure "a" json object, in the 2nd data option, to a proper addressable python dict, or as json1 variable converted with the python dict under that variable. the values of the dict still have to be processed into int or double depending on their twins on th

[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 tri

[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] language detecting

2015-06-12 Thread lucas
detect the ru language and then tell web2py to drop or cancel the sending of any subsequent page or view? i guess i want web2py to act as a backup filter to iptables. ok, thank in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] Re: language detecting

2015-06-12 Thread lucas
true, it is a weird request. but maybe so is the russians hacking away. thanx for the help, i'll drop a message in a few days if i see the analytics from russia go to zero, that would be nice. thanx again, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Document

[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 o

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

2019-05-16 Thread lucas
om the client only. I don't 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) - htt

[web2py] Re: FORM other then process & errors

2019-05-16 Thread lucas
nly used gfrm twice. so 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/web

[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 cli

[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 -- Re

[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 Wednesda

[web2py] subprocess.Popen then release

2019-05-24 Thread lucas
web2py 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 receiv

[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. -- Reso

[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) --- You

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

2019-06-07 Thread lucas
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) ---

[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
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-08-21 Thread lucas
the above in a 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

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

2020-09-01 Thread lucas
"map" instead of it used to being 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 (Sou

[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 been

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

2020-09-02 Thread lucas
as wrote: > I'm not sure 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

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

2020-09-02 Thread lucas
otto is simply 'try everything until it > works'! > 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

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

2020-09-03 Thread lucas
nd for the object 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 > B

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

2020-09-03 Thread lucas
s 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

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

2020-09-03 Thread lucas
General info: 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&

[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: SQL db select multiple inner and an left outer joins

2020-09-11 Thread lucas
n one left and does it take them in order? and does the "where" 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

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

2020-09-11 Thread lucas
s.user_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

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

2021-03-25 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(&#

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

2021-03-26 Thread lucas
ders 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 &g

[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] 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 -

[web2py] save and recover Storage as string

2021-04-23 Thread lucas
ocal) ss = eval(ss) print("3:::", 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

[web2py] Re: save and recover Storage as string

2021-04-25 Thread lucas
convertors like to and from 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, >> >&

[web2py] Re: save and recover Storage as string

2021-04-30 Thread lucas
quot;%s"' % s2) s2 = eval(s2) print("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 ea

[web2py] applications include homes directories

2021-06-08 Thread lucas
eb2py 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 &q

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

2021-09-19 Thread lucas
e 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 subsc

[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] 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] 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] import

2021-11-17 Thread lucas
mming 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/i

<    1   2   3   4   5   >