[web2py] Re: where is the path specified that points to python.exe
sys.executable should be your friend. Le samedi 26 novembre 2022 à 08:42:52 UTC+1, alexg...@gmail.com a écrit : > where is the path specified that points to python.exe? > > Am using Windows source code for For Python 3.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 received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/d1e8f3a6-8da2-4a84-ba5c-75a0bdb7fb8en%40googlegroups.com.
Re: [web2py] Re: Issue password in plain text before sending when login in the website via HTTPS
Hello, It is a big question, and does not concern only web2py. You can find people asking the same general question in StackOverflow. And the aswers are generic : The most important is the TLS communication. https://security.stackexchange.com/questions/110415/is-it-ok-to-send-plain-text-password-over-https (and see linked duplicate questions) Do you know any website that does hash the password client-side ? Arglanir Le mardi 22 novembre 2022 à 01:20:06 UTC+1, silvia...@gmail.com a écrit : > Thank you, but do you have any suggestions what to do cause our > cybersecurity officer keeps complaining about that wo I need change some > settings in web2py or do you have an idea how I can sort it out ? > > Kind regards > > Am Di., 22. Nov. 2022 um 02:23 Uhr schrieb Christian Varas < > chriii...@gmail.com>: > >> Hi, >> It's OK, it's the way it works, If you put s local proxy like burp and >> then you go and capture traffic, it is ok that you can see clear text data >> because burp proxy puts their own certificate between client and backend, >> because of that burp proxy can decrypt and show you clear text data. If you >> sniff with a packet capture like wireshark, you will see everything is >> encrypted. >> >> Salting your password/username before sending it is not really secure, >> because hashing the username/password before sending, would need to be >> performed in the browser via javascript and if the hash process happens in >> the client side, you can see how encryption is made and reverse it . >> >> Cheers. >> Chris. >> >> El lun, 21 nov 2022 a las 5:01, Silvian “Top 10 Answers” Cedru (< >> silvia...@gmail.com>) escribió: >> >>> Its weird why does web2py do not salt username and password before >>> sending it ? >>> >>> Silvian Cedru schrieb am Montag, 21. November 2022 um 09:25:05 UTC+7: >>> >>>> Here is a screenshot after sniffing the network and it is weird since >>>> it has HTTPS I thought you could not sniff out the password when someone >>>> logs ins so I need to salt or Hash it but I am not sure where I find the >>>> file and what to change . Would be awesome if someone could help. >>>> >>>> Silvian Cedru schrieb am Donnerstag, 17. November 2022 um 11:05:34 >>>> UTC+7: >>>> >>>>> Hello everyone , >>>>> >>>>> I just found out that when you login in my application my password >>>>> gets send in plain text even I thought it gets hashed does someone know a >>>>> solution how to salt or hash the password before sending ? >>>>> >>>>> >>>>> -- >>> 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" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+un...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/web2py/3b380bb2-b908-4e8e-be5a-bc465196c38fn%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/web2py/3b380bb2-b908-4e8e-be5a-bc465196c38fn%40googlegroups.com?utm_medium=email_source=footer> >>> . >>> >> -- >> 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" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+un...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/web2py/CA%2Bs%2BuJv2ddys7nQV5%3DCu7xbM%3DQ-vqu09%3DDL2ZMHoN2TNBYsO7A%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/web2py/CA%2Bs%2BuJv2ddys7nQV5%3DCu7xbM%3DQ-vqu09%3DDL2ZMHoN2TNBYsO7A%40mail.gmail.com?utm_medium=email_source=footer> >> . >> > -- 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" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/f5bbb64a-e5c0-4f06-bb5b-7dc529b97e45n%40googlegroups.com.
[web2py] Re: Unable to run web2py_no_console.exe (v2.14.6)
In the meantime I have updated my launching script in order to start web2py.exe minimized, if web2py_no_console.exe does not create a "web2py.pid" file. Le mardi 14 juin 2016 21:21:22 UTC+2, Arglanir a écrit : > > Thank you. As I said, web2py.exe works. > The goal is to deploy web2py on Windows computers that may not have any > Python installed. So web2py.py will not be executable on them. > > Am I the only one that has this problem ? I reproduced this problem on a > laptop using Windows 7 I think. > > Le mardi 14 juin 2016 13:10:45 UTC+2, Marlysson Silva a écrit : >> >> Try to download the source version of code, there are a file .py that >> it's possible executable from terminal without problems , and still can to >> see the code of framework , the windows version just have .exe and the code >> (framework) stay obfuscated. >> >> >> Em segunda-feira, 13 de junho de 2016 17:23:19 UTC-3, Arglanir escreveu: >>> >>> Hello everyone, >>> I just unpacked the last version into an empty folder. Then I try to >>> launch using a command line: >>> >>>- web2py_no_console.exe >>>- web2py_no_console.exe -p 8003 >>>- web2py_no_console.exe -p 8003 -i 0.0.0.0 >>>- web2py_no_console.exe -p 8003 -i 0.0.0.0 -a -l >>>web2py.log -d web2py.pid >>> >>> But everytime I see in the process manager that this program stops after >>> 1 or 2 seconds. >>> If I go to the URL where it's supposed to be accessible, there is no >>> response as is to be expected. >>> The files web2py.log and web2py.pid are not produced. >>> >>> Web2py.exe by the way works totally as expected. >>> >>> What can I do in order to get more information on this problem? >>> >>> I use Windows 10 professional 64 bits. >>> >>> (Note that I have also no tested every release since the start of >>> web2py... the last time I tried it and it worked was with web2py version... >>> 2.2.1 (-: ) >>> >> -- 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" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Unable to run web2py_no_console.exe (v2.14.6)
Thank you. As I said, web2py.exe works. The goal is to deploy web2py on Windows computers that may not have any Python installed. So web2py.py will not be executable on them. Am I the only one that has this problem ? I reproduced this problem on a laptop using Windows 7 I think. Le mardi 14 juin 2016 13:10:45 UTC+2, Marlysson Silva a écrit : > > Try to download the source version of code, there are a file .py that it's > possible executable from terminal without problems , and still can to see > the code of framework , the windows version just have .exe and the code > (framework) stay obfuscated. > > > Em segunda-feira, 13 de junho de 2016 17:23:19 UTC-3, Arglanir escreveu: >> >> Hello everyone, >> I just unpacked the last version into an empty folder. Then I try to >> launch using a command line: >> >>- web2py_no_console.exe >>- web2py_no_console.exe -p 8003 >>- web2py_no_console.exe -p 8003 -i 0.0.0.0 >>- web2py_no_console.exe -p 8003 -i 0.0.0.0 -a -l >>web2py.log -d web2py.pid >> >> But everytime I see in the process manager that this program stops after >> 1 or 2 seconds. >> If I go to the URL where it's supposed to be accessible, there is no >> response as is to be expected. >> The files web2py.log and web2py.pid are not produced. >> >> Web2py.exe by the way works totally as expected. >> >> What can I do in order to get more information on this problem? >> >> I use Windows 10 professional 64 bits. >> >> (Note that I have also no tested every release since the start of >> web2py... the last time I tried it and it worked was with web2py version... >> 2.2.1 (-: ) >> > -- 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" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Unable to run web2py_no_console.exe (v2.14.6)
Hello everyone, I just unpacked the last version into an empty folder. Then I try to launch using a command line: - web2py_no_console.exe - web2py_no_console.exe -p 8003 - web2py_no_console.exe -p 8003 -i 0.0.0.0 - web2py_no_console.exe -p 8003 -i 0.0.0.0 -a -l web2py.log -d web2py.pid But everytime I see in the process manager that this program stops after 1 or 2 seconds. If I go to the URL where it's supposed to be accessible, there is no response as is to be expected. The files web2py.log and web2py.pid are not produced. Web2py.exe by the way works totally as expected. What can I do in order to get more information on this problem? I use Windows 10 professional 64 bits. (Note that I have also no tested every release since the start of web2py... the last time I tried it and it worked was with web2py version... 2.2.1 (-: ) -- 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" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Bypassing Opening Dialog in Windows Binary Startup
I have a custom starting script that I can share: @echo off rem Some variables... set PORT=8002 set pidfile=web2py.pid set mycommand=web2py_no_console.exe set adminpassword=your_password set urltodisplay=http://127.0.0.1:%PORT%/ rem Restarting Web2Py? if exist %pidfile% ( echo Stopping currently running Web2py... call __STOP.cmd # killing it ) rem Starting Web2Py ? netstat -an | FINDSTR :%PORT% | FINDSTR LISTENING ECHO . ECHO Port %PORT% is already in use. Please change starting script and relaunch it. start notepad %0 Pause EXIT 1 rem Starting Web2Py ? start %mycommand% -i 0.0.0.0 -p %PORT% -a %adminpassword% -d %pidfile% -l web2py.log rem Waiting then display page echo Server is starting, please wait... ping -n 4 127.0.0.1 NUL rem launching page start %urltodisplay% echo If application is not starting, please visit %urltodisplay% echo Otherwise feel free to close this window... pause -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: 2.4.7 problems
Hello everyone, I encountered this problem on 2.2.1 myself, so I checked the trunk source code and it has not moved a lot since. I investigated this problem and found the bug, and thus the correction: https://code.google.com/p/web2py/issues/detail?id=1736#c1 You can now correct if for next version :-) You're welcome. Le lundi 21 octobre 2013 02:11:32 UTC+2, Mark Li a écrit : I've just encountered this problem myself, and I opened a ticket about this since I couldn't find one already posted. http://code.google.com/p/web2py/issues/detail?id=1736thanks=1736ts=1382314136 -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Creating a form using a for loop
I think your compilation error comes from the fact that in Python you cannot have a variable name starting with a number. Try changing the field names of Evaluation table to letter_1_1A... Then remember that only one form can be submitted in HTML, so your controler will be called only for one submitted form, not all. Le samedi 2 mars 2013 07:26:18 UTC+1, Anthony Bond a écrit : I've been working with web2py for about two months now. I've figured out how to do a lot of awesome things with it; however, the problem I'm having now has me stumped. I'm working on an application that allows a user to submit a self-evaluation, based on criteria that the user will find on a page. I have a table with 33 rows of of criteria. The table contains a column which hosts the criteria, pre-formatted in HTML. Each HTML section contains a table the gives the users the criteria for each of six levels - these individual tables are almost large enough to take up the entire content section of the webpage, so I've placed them all in a jQuery accordion. Below each table, I've placed a drop down list, where the user can select what criteria they feel as though they've met. I've added a small screenshot to show the look and feel I'm trying to achieve (and currently have). The problem I'm having is getting the values of those drop down lists back from the database. Currently, I iterate through the table containing the HTML using a for loop, tacking a drop down list at the end of each. Right now, I'm unable to get the data back from the page. Here is my code: def Take_Eval(): user = db(db.Person.auth_userUserId == auth.user.id).select().first().PersonId table = db(db.PageContent.ContentId 0).select() submit = INPUT(_name='submit', _type='submit') formlist = [] for row in table: newForm = FORM(H2(row['ContentDescription'], _style=padding-left: 10px;), DIV(XML(row.ContentHTML), BR(), P(SELECT(OPTGROUP(OPTION('Does not Attempt', _value=0), OPTION('Developing', _value=1), OPTION('Progressing', _value=2), OPTION('Established', _value=3), OPTION('Advanced', _value=4), OPTION('Master', _value=5)), _id=row['QuestionNumber']), _style='text-align: center;'))) formlist.append(newForm) for form in formlist: if form.accepts(request, session): response.flash = 'Profile Saved Successfully on ' + str(time.strftime(%Y-%m-%d %H:%M:%S, time.localtime())) #db.Evaluation.insert(PersonBeingEvaluated, PersonEvaluating, EvalDate ,1_1A ,1_1B ,1_2 ,1_3 ,1_4 , 1_5, 1_6, 2_1, 2_2A , 2_2B, 2_3A ,2_3B ,2_4 ,2_5 ,3_1 , 3_2 , 3_3, 3_4, 3_5A, 3_5B, 3_6, 3_7, 3_8, 3_9A, 3_9B, 3_9C, 4_1, 4_2, 4_3A, 4_3B, 4_4, BeliefsScore, CharacterScore) redirect(URL('default', 'index')) elif form.errors: response.flash = 'Profile could not be submitted. Please try again later. ' db.Evaluation.insert(PersonBeingEvaluated=user, PersonEvaluating=0, EvalDate=datetime.now(), 1_1A = formlist[0].vars.1_1A, 1_1B = formlist[1].vars.1_1B, 1_2 = formlist[2].vars.1_2, 1_3 = formlist[3].vars.1_3, 1_4 = formlist[4].vars.1_4, 1_5 = formlist[5].vars.1_5, 1_6 = formlist[6].vars.1_6, 2_1 = formlist[7].vars.2_1, 2_2A = formlist[8].vars.2_2A, 2_2B = formlist[9].vars.2_2B, 2_3A = formlist[10].vars.2_3A, 2_3B = formlist[11].vars.2_3B, 2_4 = formlist[12].vars.2_4, 2_5 = formlist[13].vars.2_5, 3_1 = formlist[14].vars.3_1, 3_2 = formlist[15].vars.3_2, 3_3 = formlist[16].vars.3_3, 3_4 = formlist[17].vars.3_4, 3_5A = formlist[18].vars.3_5A, 3_5B = formlist[19].vars.3_5B, 3_6 = formlist[20].vars.3_6, 3_7 = formlist[21].vars.3_7, 3_8 = formlist[22].vars.3_8, 3_9A = formlist[23].vars.3_9A, 3_9B = formlist[24].vars.3_9B, 3_9C = formlist[25].vars.3_9C, 4_1 = formlist[26].vars.4_1, 4_2 = formlist[27].vars.4_2, 4_3A = formlist[28].vars.4_3A, 4_3B = formlist[29].vars.4_3B, 4_4 = formlist[30].vars.4_4, BeliefsScore = formlist[31].vars.BeliefsScore, CharacterScore = formlist[32].vars.CharacterScore) return locals() The code is not letting me compile due to a syntax error on the area I've highlighted above. I'm okay with not using a form, or a bunch of forms, as long as I can get the values from the drop down list back to the controller when the submit button is clicked. I originally looped through the table in the view to make the display. Each drop down has a unique name that I'd be able to access in the controller, but I haven't been able to figure out how to do that only after post back. I appreciate any guidance that could be given. Thanks! -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com.
[web2py] Re: applying BEAUTIFY to UL in controller
I think the goal of BEAUTIFY() helper is to nicely display python lists and dicts. See documentation in html.py : class BEAUTIFY(DIV): example:: BEAUTIFY(['a', 'b', {'hello': 'world'}]).xml() 'divtabletrtddiva/div/td/trtrtddivb/div/td/trtrtddivtabletrtd style=font-weight:bold;vertical-align:tophello/tdtd valign=top :/tdtddivworld/div/td/tr/table/div/td/tr/table/div' turns any list, dictionary, etc into decent looking html. Two special attributes are :sorted: a function that takes the dict and returned sorted keys :keyfilter: a funciton that takes a key and returns its representation or None if the key is to be skipped. By default key[:1]=='_' is skipped. It is not very clear what you want to beautify. If your objects hits_xxx_yy are lists or tuples, I would only expand them in the UL: UL(*hits_xxx_yy,_class='hfm') Le vendredi 14 décembre 2012 18:09:36 UTC+1, praveen krishna a écrit : Hi, One of my form returns UL .I want to apply BEAUTIFY helper on this ,what is the possible syntax. part of code where I like to apply BEAUTIFY return DIV(form,UL((hits_forward_mismatch),_class = 'hfm'),UL((hits_loc_forward),_class='hlf'),UL((hits_loc_backward),_class='hlb')) --