[web2py] admin interface wrong on 2.8.2

2013-12-02 Thread lucas
-downs and stuff. i just get straight html text without the java scripting side of it. am i missing another js file that i should copy? it does work with the "python web2py.py" interface, but not with apache. so what would be the difference in that? thanx again, lucas -- Resourc

[web2py] login crash under 2.8.2

2013-12-03 Thread lucas
of this points to my code, so i believe it is in web2py. or, do i have to adjust something in my code to compensate for the update. i have cleared all sessions and copied the web2py.js appadmin.html and appadmin.py into my applications and made the appropriate changes in apache config files as

[web2py] Re: login crash under 2.8.2

2013-12-03 Thread lucas
oh, btw, the above does not happen under "python web2py.py" but only under the apache umbrella. 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] Re: login crash under 2.8.2

2013-12-03 Thread lucas
yes it was/is with 2.8.2, but running only under apache, it is fine with "python web2py" AND i did erase all session files, as in "rm -rf sessions/*" which is a hard remove in linux. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

Re: [web2py] Re: login crash under 2.8.2

2013-12-04 Thread lucas
any ideas on this exception and trace? a little anxious about it because my site is essentially offline. 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] Re: login crash under 2.8.2

2013-12-06 Thread lucas
does anyone else have this problem, or is it only me? is there at least acknowledgement that is is a problem, or is my sanity not in check? should i change my programming approach in some way or am i missing a handler or loading of a handler? just waiting on some expert advice. -- Resources

[web2py] Re: login crash under 2.8.2

2013-12-11 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"

[web2py] splitting fields from one table across two functions/views

2013-12-12 Thread lucas
ng i tried was the fields option on SQLFORM, but that didn't seem to work. suggestions? 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) --- Y

[web2py] Re: login crash under 2.8.2

2013-12-23 Thread lucas
sorry i dropped off the map for a while. my server had a hard hardware crash and i have been managing its replacement. i think the processor or motherboard went bad because the memory and HD are testing out ok. i actually decided to goto amazon's EC2 and i am using centos 6,4 under that. it

[web2py] Re: login crash under 2.8.2

2013-12-23 Thread lucas
oh yeah, i forgot to mention. i am running multiple domain names and i am using VirtualHost under apache to redirect to the proper web2py application. could that be the problem? i am using the session as files, i like that better then the DB option because, well, i just like it because it is

[web2py] Re: splitting fields from one table across two functions/views

2013-12-23 Thread lucas
ok, here is the snippets of code: @auth.requires_login() def worksheet0(): chkSession() msg = "" cidi = args_to_int(0) #case id tCase = db.cases tSheet = db.case_worksheets sCase = db(tCase.id==cidi).select().first() now = datetime.datetime.utcnow() if not sCase or

[web2py] Re: splitting fields from one table across two functions/views

2013-12-23 Thread lucas
de reveals the problem in my approach. thanx 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 (Report Issues) --- You received th

[web2py] Re: splitting fields from one table across two functions/views

2013-12-23 Thread lucas
yes, i thought those lines did absolutely nothing, however, when the simplest most stripped down code doesn't work and you start adding code in the hope something will provide a solution. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2p

[web2py] Re: login crash under 2.8.2

2013-12-24 Thread lucas
ok, so centos 6x is the way to go for the most stable, reliable, etc., in excellence of computing? that is what you are saying, because i really love centos and have been using it for years. but i have been doubting my httpd.conf setups for a while because all of those settings and then add in

[web2py] Re: splitting fields from one table across two functions/views

2013-12-24 Thread lucas
stom.widget.i2}} {{=sform.custom.submit}} {{if sform.errors: =sform.errors pass}} {{=sform.custom.end}} #end which is just the opposite of test1a. try it without the fields option under SQLFORM. you will see the wiping or nulling of the other fields' data. with the fields o

[web2py] Re: login crash under 2.8.2

2013-12-24 Thread lucas
betting on the right horse. lucas On Tuesday, December 24, 2013 9:47:19 AM UTC-5, LightDot wrote: > > Ok, so you're using one mod_wsgi / web2py instance and map virtualhosts > into specific apps within. Looks like a neat solution, but it seems to be > problematic in the same way Leo

[web2py] db select of certain id

2014-01-01 Thread lucas
how would you syntax this out properly? qGrp = db(db.auth_group.id in (4,6)).select() so i only want to pull records with the id of 4 and 6. thanx in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: db select of certain id

2014-01-01 Thread lucas
very sweet, 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 received this message because you are subscribed to the Google

[web2py] login_onaccept redirect and _next in URL

2014-01-04 Thread lucas
essed by the user so i can redirect properly? 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 becau

[web2py] Re: login_onaccept redirect and _next in URL

2014-01-04 Thread lucas
ok, i answered my own question. under the check_login function, i was able to access the request.env.query_string to see the next, after login, URL and i was able to redirect appropriately. sweet. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] convert dict to gluon.dal.Row

2014-01-05 Thread lucas
hey everyone, what is the best way to convert a dict with appropriate key names to a row of a table? 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

[web2py] outer join? i guess

2014-01-06 Thread lucas
ct(tUser.id, tUser.email, tCmp.ALL, orderby=tCmp.company_name, left=tUser.on((tCmp.id==tUser.company_id) & (tUser.id==auth.user.id))) but why? anyway, if anyone could help me get the right select statement, i would be grateful, thanx in advance. lucas -- Resources: - http://web2py.com -

[web2py] Re: outer join? i guess

2014-01-06 Thread lucas
, without the db(), pulls all companies regardless whether there is a user affiliation or not, the the db() section filters that further. is that logic correct or not? lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: outer join? i guess

2014-01-07 Thread lucas
did, things are much clearer now. 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 you are subscribed t

[web2py] auth_group/membership auto assign and disable sign up?

2015-11-04 Thread lucas
to create new login users. in which case, when he does, how do i direct web2py code to default the new login to assign that new member, under auth_member to the group_id of 3, which is Personnel? thank you in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (D

[web2py] Re: auth_group/membership auto assign and disable sign up?

2015-11-04 Thread lucas
i don't understand the myconf.take function. can you explain that? is it new to web2py? 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_group/membership auto assign and disable sign up?

2015-11-04 Thread lucas
oh, ok, yes, a config file, i get it. nice. i might use that new feature now. thank you for that. lucas On Wednesday, November 4, 2015 at 11:26:40 PM UTC-5, 黄祥 wrote: > > oopss, sorry, my bad. > the recent web2py version is adapted appconfig to store configuration like > (

[web2py] blocking all access but america

2015-11-10 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"

[web2py] ajax need to return 4 values

2015-11-14 Thread lucas
hello one and all, how do i run an ajax function under an onchange of a select where the return 4 values will be going to 4 separate other inputs of type text, select, or textarea? thank you in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: ajax need to return 4 values

2015-11-15 Thread lucas
ok, i went with qQuery.getJSON. here is how i did it and it works great. JSON trading is cool. just for sharing: under the default controller's function, i have a section where i implement the javascript/jQuery code via an onchange of a select input. the select input is meant to prepopulate

[web2py] how to SQLFORM via ajax?

2015-11-15 Thread lucas
return frm so, as i said the form pulls up fine and fills in the DIV. but when i submit the form, it all just sort of goes blank. i would like it to commit the insert/edit to the database and then clear the form under the DIV, maybe leave a message of success under the response.flash or th

[web2py] Re: how to SQLFORM via ajax?

2015-11-15 Thread lucas
hey anthony, thanx for the rapid response. i don't quite get it. will you point in the direction so i can understand the implementation better? thank you. you know, i really love programming in web2py. i have a few years under my belt and it really is an excellent system.

[web2py] Re: how to SQLFORM via ajax?

2015-11-16 Thread lucas
. and when i add a new record, it does actually work. however, i can not see how to change the args value of the LOAD function from other areas of the page. you see now i have it hardcoded at -1. so how can i affect that args value from somewhere else in the page and then have it RELOAD the co

[web2py] Re: how to SQLFORM via ajax?

2015-11-16 Thread lucas
i don't think any of those videos will answer my question. so how can i affect that args values of the LOAD from somewhere else in the page, without reloading the page, itself, and then have it only RELOAD the contents of the DIV? -- Resources: - http://web2py.com - http://web2py.com/book (Do

[web2py] Re: how to SQLFORM via ajax?

2015-11-16 Thread lucas
thank you anthony, that did it. it is working great. 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

[web2py] Re: exporting to csv

2015-11-17 Thread lucas
nice job, any idea how to make it a tab delimited file instead of comma? 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

Re: [web2py] Re: exporting to csv

2015-11-19 Thread lucas
yes, thank you, that works great. you know i tried to see all of that in the source code api, but i couldn't find the source code api anymore. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] how come i can't TD append?

2015-11-21 Thread lucas
in_fn.append(_disabled='disabled') where the error comes in on the last line and is: TypeError: append() got an unexpected keyword argument '_disabled' anyway to make this happen and thank you in advance, lucas -- Resources: - http://web2py.com - http://web

[web2py] how come i can't INPUT append?

2015-11-21 Thread lucas
in_fn.append(_disabled='disabled') where the error comes in on the last line and is: TypeError: append() got an unexpected keyword argument '_disabled' anyway to make this happen and thank you in advance, lucas -- Resources: - http://web2py.com - http://web

[web2py] Re: how come i can't INPUT append?

2015-11-21 Thread lucas
and you would delete the attribute altogether by? in_fn['_disabled'] = '' or, does that simply set the attribute to empty string? lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code

[web2py] jQuery.ajax

2015-12-14 Thread lucas
", method: "GET", timeout: packetTimeout}).done().fail(...) so the ajax always fails. it is just a simple text file on a web server, you can try it, just returns a bit of text. how come ajax doesn't pull it and how can i make it pull it? thanx, lucas -- Resources:

[web2py] Re: jQuery.ajax

2015-12-14 Thread lucas
ok, i think i figured it out. i just had to go with the " /Lukacs/misc/fscj.txt <http://web.fscj.edu/Lukacs/misc/fscj.txt>" part for the url because there are some rules where there are no cross-domain references made. alright, lucas -- Resources: - http://web2py.com - http:/

[web2py] best advice on customer/client picklist popup.

2016-01-17 Thread lucas
2py/jQuery libraries we currently use in web2py v2.12 or v2.13 for maintenance and simplicity. so what is the best and most simple method to do this? thanx in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source cod

[web2py] Re: best advice on customer/client picklist popup.

2016-01-17 Thread lucas
oh, i forgot to mention, that i know how to do an ajax query and pass post variable to it using web2py. i don't know the best javascript/jQuery method for creating and displaying the proper HTML code and inputs/buttons/and such, and then pass the result back to the main parent page. -- Resou

[web2py] Re: boolean DAL field giving error under 2.5.1

2016-01-18 Thread lucas
so, if you add update=False to the field definition, shouldn't the unchecked checkbox put in a value of false in the db? because i am still getting errors upon updating. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

[web2py] Re: best advice on customer/client picklist popup.

2016-01-18 Thread lucas
and help. 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-us

[web2py] print landscape

2016-01-31 Thread lucas
is there anyway to direct the printer to print the webpage in landscape using only HTML, CSS, and/or jQuery, native to our current version of web2py v2.12 or v2.13? thanx in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] input class="integer" interrupt

2016-02-11 Thread lucas
ts final value back in the original integer input that the c was typed in. make sense? 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 Iss

[web2py] Re: print landscape

2016-03-23 Thread lucas
t: right; } } where div.rt is the rotated page when it is sent to the printer but not to the screen and div.top1 and div.top2 are two divs embedded within div.rt. very tedious to get right, but i got it to work. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] model define_table select

2016-03-26 Thread lucas
nt='city'), Field('post', length=11, requires=NE, comment='zip or postal code'), see what i am trying to do in the bold? i am trying to limit the counties listed in the subsequent SQLFORM select/options to only those counties that are in the state. when i

[web2py] Re: model define_table select

2016-03-28 Thread lucas
into the db.py module. so i changed the request.vars into session, like session.state_id = state_id, and that worked great. i am always amazed of how fast and efficiently i can get things done using web2py. it really is a wonder and wonderful. thanx massimo. lucas On Sunday, March 27, 2016 at

[web2py] Fields question

2016-03-28 Thread lucas
function name under the mcp module. 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 subs

[web2py] Re: Fields question

2016-03-28 Thread lucas
thanx anthony, you're a expert on those lambda functions. 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] bug? menu v2.14.3

2016-03-29 Thread lucas
now in my main app, the branching is fine. so i don't think it is a problem on the server/web2py part, but probably in the static/css or static/js files probably. i'm not exactly sure how those menu work, but i love when they do. so, just informing, let me know. thanx in advance, lucas

[web2py] advice: multiple tables on a single form

2016-03-30 Thread lucas
nx 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 (Report Issues) --- You received this message because you are subscribed to the G

[web2py] Re: advice: multiple tables on a single form

2016-03-30 Thread lucas
yes, that will work quite well. not perfectly because i do have one table that requires two parallel entries, but this certainly does give an excellent jump start. thanx anthony, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] create single row of field names without values or None values?

2016-04-01 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"

[web2py] Re: bug? menu v2.14.3

2016-04-01 Thread lucas
still no one to weigh in on this one? am i the only one? i feel so lonely and i am not sure what to do with myself. sorry, just kidding. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com

[web2py] Re: create single row of field names without values or None values?

2016-04-01 Thread lucas
ok, so how do i instantiate a Row() object. please include the proper import syntax. 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

[web2py] Re: create single row of field names without values or None values?

2016-04-01 Thread lucas
i think i figured it out. should be: from dal import Row ... row = Row() i know basic, but sometimes it is hard what modules to import when reading the API docs. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: how to find and reference field names in tables

2016-04-01 Thread lucas
ok cool, so now we know how to iterate through the fields of a table. how can we grab or get the db.py default value for each field also? thanx lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: bug? menu v2.14.3

2016-04-01 Thread lucas
yeah probably, cuz when i upgraded an app, i usually kept the same css and js and such. so i thought i would over write them from example after i copied my old app over. not a good idea. so really, are we getting rid of more than 2 levels in the menu? or is that just temporary? lucas

[web2py] get field default value?

2016-04-01 Thread lucas
ok cool, so now we know how to iterate through the fields of a table. how can we grab or get the db.py default value for each field also? thanx lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: create single row of field names without values or None values?

2016-04-01 Thread lucas
"If that import fails in the web2py environment, you may have bigger problems than instantiating a Row. ;-)" what do you mean by that? lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.go

[web2py] Re: bug? menu v2.14.3

2016-04-03 Thread lucas
what could be their reason to get rid of a good function or feature? -- 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] XHR application/json scraping

2016-04-12 Thread lucas
the replicate the environment. perhaps something with the XMLHttpRequest cross-domain thing, but this isn't a cross domain? or, HTTP Authentication, but Part 1 loads fine, but not Part 2? so some advice is appreciated. thanx in advance, lucas #part 1 #establish connection and sess

[web2py] Re: XHR application/json scraping

2016-04-14 Thread lucas
ok, so after a week of zero success trying everything i can think of, i decided to try using the requests method instead of the above urllib2 method. it worked like a charm and it was less complicated code. i replicated the above method but in requests as shown below. requests is probably do

[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) - http://github.com/web2py/w

[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://

[web2py] return binary

2018-06-13 Thread lucas
args[2]] response.headers['Content-Type'] = 'image/png' return response.write(data, escape=True) where you can see i experimented with various "things" to try to get it to display properly under the browser. i have a test png in the database and under postgre

[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 stream.write(d[field

[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 - http://web2py.com/bo

[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', 'use

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

[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://we

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

[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

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://githu

[web2py] admin IDE for general use

2018-11-14 Thread lucas
s I don't 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/issu

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

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

[web2py] Re: admin IDE for general use

2018-11-18 Thread lucas
).width() - 36, jQuery(window).height() - ( jQuery('div#form').offset().top + jQuery('div#form').height()) - jQuery( 'footer').height() - 12); }); {{end}} {{=form.custom.begin}} Project Title:{{=form.custom.widget.title }}Share Code?{{=form.custom.widge

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

[web2py] auth_user change field order

2019-04-08 Thread lucas
comment='Your Zip or Postal Code.'), Field('gender', length=6, default='FEMALE', requires=IS_IN_SET(('FEMALE','MALE')), comment='Enter your Gender.'), Field('input_date', 'date', comment="format -MM-DD&

[web2py] auth_user automatically lowercase all email fields

2019-04-08 Thread lucas
(update). 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 Googl

[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: - http://

[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 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', 

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

2019-04-09 Thread lucas
opdown-divider"))" line in which case the exception is: "IndexError: list index out of range". I can not for the life of me figure out why all the other appends, the appends of the tuples work but the append with the LI bugs like hell. thanx in advance, Lucas -- Resources

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

2019-04-10 Thread lucas
ooks/default/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 solut

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

[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) - http://github.

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

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

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

2019-04-12 Thread lucas
] where the DIV is added with the class to style it nicely, in which in my css file I added: div.dropdown-menu div.dropdown-divider { width: 100%; height: 4px; margin: 3px 0px; background-color: #f0c36d; } and it works perfectly and looks beautifully. thanx to mweissen his suggestion

[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', 'birthdate

[web2py] session id under db.py

2019-05-01 Thread lucas
n all is good again. i don't remember a lag like this in previous versions. but i could be mistaken. and i'm not sure what to think about this right now. just reporting. thank you in advance, lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://git

[web2py] FORM other then process & errors

2019-05-12 Thread lucas
e.flash = 'Generated 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

[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

<    1   2   3   4   5   >