[web2py] Re: JQuery floatThead floating table header

2019-12-09 Thread Mark
Never mind, I just found the solution. The code need to be changed to "var $table = $('table');" On Monday, December 9, 2019 at 1:42:34 PM UTC-5, Mark wrote: > > Hello, > > I try to use the following JQuery code in Web2py 2.18.3 or 2.4.5, but it > didn't work. I h

[web2py] JQuery floatThead floating table header

2019-12-09 Thread Mark
Hello, I try to use the following JQuery code in Web2py 2.18.3 or 2.4.5, but it didn't work. I hope that the table header is fixed/floating, and I am not sure if there is a better way to do it in web2py. The link to jquery.floatThead is https://mkoryak.github.io/floatThead/. Any help would be

[web2py] Azure Connection

2019-10-29 Thread Mark Billion
So, my connection string is: db = DAL('mysql://user:p...@my-server.database.windows.net/myDb',pool_size=5). I get no connectivity. Any help would be appreciated! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] ADA DECISION

2019-10-08 Thread Mark Billion
ne who got a lot of help on these forums!* *Mark* -- 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: xmlrpc python3 error

2019-10-07 Thread Mark
I submitted the bug report to the github. Thank you very much. On Sunday, October 6, 2019 at 5:29:31 PM UTC-4, Dave S wrote: > > > > On Friday, September 27, 2019 at 6:39:00 AM UTC-7, Mark wrote: >> >> I am using either Rocket or Azure, and get the same error. >

[web2py] Re: How can I disable SQLFORM.factory() form button after clicking once?

2019-09-27 Thread Mark
Change the '{{=qtnBtn}}' into 'input', it should work. I guess the reference is wrong (not dynamic). On Friday, September 27, 2019 at 2:24:43 PM UTC-4, mostwanted wrote: > > Hey @Mark, thanks for replying but none of the solutions are working! I > fixed disabled & replaced att

[web2py] Re: How can I disable SQLFORM.factory() form button after clicking once?

2019-09-27 Thread Mark
'disbled' should be 'disabled'. If it doesn't work, I think you can try to use hide(), or prop('disabled', true) On Friday, September 27, 2019 at 6:48:54 AM UTC-4, mostwanted wrote: > > I'm using SQLFORM.factory() to capture a specific detail but i want it to > be submitted once, to avoid the

[web2py] Re: xmlrpc python3 error

2019-09-27 Thread Mark
I am using either Rocket or Azure, and get the same error. Yes, there is a ticket, which I didn't realize before: Traceback (most recent call last): File "R:\web2py\gluon\restricted.py", line 219, in restricted exec(ccode, environment) File "R:\web2py\applications\myapp\models\db.py",

[web2py] xmlrpc python3 error

2019-09-26 Thread Mark
Hello, I got an error in python3.7, web2py 2.18.3. Testing the following client side code in python2.7: server = ServerProxy('https://127.0.0.1/myapp/query/call/xmlrpc', context=ssl._create_unverified_context()) server.test_xmlrpc() If web2py run in python2.7, everything is fine. If web2py run

[web2py] Re: web2py.test replacement

2018-10-12 Thread mark
https://bitbucket.org/MarkGraves/web2pytest On Friday, October 12, 2018 at 9:40:12 AM UTC-5, Bryan Chance wrote: > > Does anyone know of a web2py.test replacement? The link I see everywhere > is for what looks to be a deleted repo: > https://github.com/viniciusban/web2py.test > > -- Resources:

[web2py] Re: system project manager in web2py

2018-07-29 Thread mark
Hey Rodrigo, What are you looking for in particular? There's a number of open and closed source implementations available. On Sunday, July 29, 2018 at 2:52:19 PM UTC-5, Rodrigo attique santana wrote: > > Hi guys. > > I was looking for and found nothing about web2py project management systems.

[web2py] Re: LDAP Authentication never work

2018-07-04 Thread mark
A few thoughts: Can you connect from the server where the ldap account is located? What does that connection string look like? Looking here: https://github.com/web2py/web2py/blob/master/gluon/contrib/login_methods/ldap_auth.py It boils down to the init_ldap method and ldap.initialize() You

Re: [web2py] Re: Classes: Iteration of Row Objects & Updating

2018-06-09 Thread Mark Billion
Anthony -- I havent met you, but I certainly owe you a beer. Thank you for all of your help. On Fri, Jun 8, 2018 at 10:47 PM, Anthony wrote: > On Friday, June 8, 2018 at 5:49:07 PM UTC-4, Mark Billion wrote: >> >> Ive checked the docs and am sure I am missing it, but can

[web2py] Classes: Iteration of Row Objects & Updating

2018-06-08 Thread Mark Billion
Ive checked the docs and am sure I am missing it, but can someone please confirm or deny: If I iterate a row class attribute via another class method, updates applied by that method will will update the underlying row attribute? For example: __init__: self.dbobj =

[web2py] (commercial solicitation) web2py development projects

2018-05-29 Thread mark
Hello everyone, First off, many thanks to all the contributors here who have made web2py amazing. We (MyIRE) are currently rolling out our reproducible clinical trials platform which uses web2py. As we roll it out publicly, we're going to be looking for more talented individuals to work on

[web2py] Re: [OFF TOPIC] Telegram Group for Web2py users

2018-05-24 Thread mark
FYI That group is closed for posting. On Saturday, May 5, 2018 at 10:07:30 PM UTC-5, Massimo Di Pierro wrote: > > Thank you. > > On Wednesday, 2 May 2018 16:48:52 UTC-5, marco mansilla wrote: >> >> I know this is the main communication channel for web2py users community, >> but just in case

[web2py] Updating the default template

2018-03-10 Thread Mark Erbaugh
When I was learning web2py, I watched Massimo's DePaul course videos. I could have sworn that there was a place in there where he mentioned how to update the welcome app and save things so that those changes are reflected in new apps that are created, but I can't find it again. -- Resources:

[web2py] Search box in navbar in defaut layout.html

2018-03-10 Thread Mark Erbaugh
What is the purpose and usage of the Search box displayed in the navbar when using the default layout.html? Here's the code in layout.html: Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Backwards compatibility

2018-03-07 Thread Mark Erbaugh
blank. I solved this by adding glyhpicons.css to layout.html which uses Glyphicons Halflings font. Interestingly, the glyicons-haflings files referenced were already in the statc\fonts directory. Thanks, Mark -- Resources: - http://web2py.com - http://web2py.com/book (Documentation

[web2py] Re: Problem Pickling Session

2018-03-07 Thread Mark Erbaugh
I'm not sure this is the right way to answer Massimo's question as there appears to be no way to reply to his reply. Web2Py is 2.16.1-stable+timestamp.2017.11.14.05.54.25 I tried deleting all the files in the application (both my application and admin) sessions folders, but still have the same

[web2py] Problem Pickling Session

2018-03-06 Thread Mark Erbaugh
I installed Web2py and Apache on a Raspberry Pi using the Ubuntu installation script. That script generated a self-signed SSL certificate. If I access the app using HTTP on port 80 and HTTPS on port 443, all is fine. This app is replacing a legacy app that needs to run HTTP on port 8080. I

Re: [web2py] Re: auth.messages.subject

2018-01-25 Thread Mark Billion
> Anthony > > > On Wednesday, January 24, 2018 at 1:47:50 PM UTC-5, Mark Billion wrote: >> >> So, this does not work. Any way to set the subject line? (maybe Im just >> missing it) >> > -- > Resources: > - http://web2py.com > - http://web2py

[web2py] Re: auth.messages.subject

2018-01-24 Thread Mark Billion
Sorry, that covers gen emails not the auth section as far as I can see On Wednesday, January 24, 2018 at 1:50:04 PM UTC-5, Marcelo Huerta wrote: > > El miércoles, 24 de enero de 2018, 15:47:50 (UTC-3), Mark Billion escribió: >> >> So, this does not work. Any way to se

[web2py] auth.messages.subject

2018-01-24 Thread Mark Billion
So, this does not work. Any way to set the subject line? (maybe Im just missing it) -- 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: auth_cas redis session_filename + logout issue

2017-08-24 Thread Mark Graves
. On Fri, Aug 18, 2017 at 12:35 PM, Mark Graves <mgrave...@gmail.com> wrote: > On deeper inspection, the logout issue is strange, and related to the > redis sessions. > > auth.settings.login_form.cas_logout_url > > > is the right URL. If I visit it independently in a bro

[web2py] Re: auth_cas redis session_filename + logout issue

2017-08-18 Thread Mark Graves
sessions are used. They are created when redis sessions are not used. Is that expected behavior? It strikes me as a misconfiguration issue. On Friday, August 18, 2017 at 12:22:40 AM UTC-5, Mark Graves wrote: > > Hey everyone, > > Question / potential bug(s): > > I created the foll

[web2py] auth_cas redis session_filename + logout issue

2017-08-17 Thread Mark Graves
Hey everyone, Question / potential bug(s): I created the following to reproduce: https://bitbucket.org/MarkGraves/web2py_cas Basically, when I run that setup.sh, it sets up two apps and installs redis in virtual environments, copies in web2py, and replaces db.py with the one in the main

[web2py] Styling the Sign Up Page

2017-08-14 Thread Mark Billion
I have Jquery that works fine to style the user/login page $( document ).ready(function() { $(":submit").addClass( "btn btn-default" ); $(".btn").css('margin-right', '10px'); $(".w2p_fl").attr('align', 'right'); $( "form>table" ).prepend( '' ) }); But I cant for the life of

[web2py] redirect if registration is pending

2017-07-25 Thread Mark Billion
Dumb question and Im sure that there is an answer that Im missing, but when in doubt App requires registration to be approved and if its not, it redirects to the home screen and flashes the standard message. If I want to redirect a login where the user is pending approval to a different

[web2py] Re: web2pyslices

2017-03-31 Thread Mark Graves
I'd be happy to convert it to something. I can write a quick scraper which would maintain whatever info is publicly available and upload it as static files to github or something. On Tuesday, March 21, 2017 at 2:53:16 PM UTC-5, Massimo Di Pierro wrote: > > web2pyslices is becoming hard to

[web2py] Re: How to architect a public facing data subset

2017-01-26 Thread Mark Graves
+1 for Leonel On Wednesday, January 25, 2017 at 7:51:49 PM UTC-6, Dave S wrote: > > > > On Wednesday, January 25, 2017 at 4:31:20 PM UTC-8, Leonel Câmara wrote: >> >> web2py permissions not enough? >> >> If not, I guess you could make 2 applications which had 2 different >> users/roles in the

Re: [web2py] Re: homebrew python not working with web2py

2017-01-03 Thread Mark Graves
Those are the best kinds of bugs =) Happy New Year On Tuesday, January 3, 2017 at 9:11:31 AM UTC-6, lyn2py wrote: > > It is working now. O.O Sorry for the noise and thank you for your time > Mark. > > I blew a fuse in the house and then it worked. Prior to that I restarted

Re: [web2py] Re: homebrew python not working with web2py

2017-01-03 Thread Mark Graves
Also, under each please list the output of: import os print os.environ['PYTHONPATH'] import sys print sys.path On Tue, Jan 3, 2017 at 3:58 AM, Mark Graves <mgrave...@gmail.com> wrote: > Wait wait, whats the output of > > which python > > On Tue, Jan 3, 2017 at 3:43 AM

Re: [web2py] Re: homebrew python not working with web2py

2017-01-03 Thread Mark Graves
Wait wait, whats the output of which python On Tue, Jan 3, 2017 at 3:43 AM, Mark Graves <mgrave...@gmail.com> wrote: > did you try the downloaded via zip version? > > On Mon, Jan 2, 2017 at 9:01 AM, lyn2py <lyn...@gmail.com> wrote: > >> Nope :) >> >>

Re: [web2py] Re: homebrew python not working with web2py

2017-01-03 Thread Mark Graves
did you try the downloaded via zip version? On Mon, Jan 2, 2017 at 9:01 AM, lyn2py <lyn...@gmail.com> wrote: > Nope :) > > On Monday, January 2, 2017 at 10:55:59 AM UTC+8, Mark Graves wrote: >> >> Is it in a virtual environment? >> >> -Mark >> &

Re: [web2py] Re: homebrew python not working with web2py

2017-01-01 Thread Mark Graves
Is it in a virtual environment? -Mark On Sun, Jan 1, 2017 at 8:37 PM, lyn2py <lyn...@gmail.com> wrote: > First, it is a working folder that I've been using. It breaks the moment > when I use homebrew's version of python to start web2py. It works when I > use the system's python

Re: [web2py] Re: homebrew python not working with web2py

2017-01-01 Thread Mark Graves
at 9:02 AM, lyn2py <lyn...@gmail.com> wrote: > > > On Saturday, December 31, 2016 at 5:06:07 AM UTC+8, Mark Graves wrote: >> >> How did you install web2py? as a zip? via git? >> > > *git clone* > > >> Did you ever pip install gluon? &

[web2py] Re: Updating log on mobile device

2016-12-30 Thread Mark Graves
Or you could always use a websocket but that might be overkill On Thursday, December 29, 2016 at 1:48:06 PM UTC-6, Dave S wrote: > > > > On Thursday, December 29, 2016 at 6:25:09 AM UTC-8, Leonel Câmara wrote: >> >> I'm guessing the log entries have a created_on Field, you can >> periodically

[web2py] Re: auth groups and permission

2016-12-30 Thread Mark Graves
Depends on workflow, but Stefan was similar to what I was thinking. probably: auth.settings.create_user_groups = None Then after form submission, depending on workflow, algorithmically add the person to the group...eg. if form.vars.is_editor == True:

[web2py] Re: homebrew python not working with web2py

2016-12-30 Thread Mark Graves
How did you install web2py? as a zip? via git? Did you ever pip install gluon? Did you install web2py / python at different times? Can you try under each python version to do: import gluon.widget On Thursday, December 29, 2016 at 11:29:08 PM UTC-6, lyn2py wrote: > > I am not sure if this

[web2py] Re: Deploy with postgresql

2016-12-27 Thread Mark Graves
Hopefully this is solved, but a simple test is to use the original appconfig.ini with storage.sqlite as the connection string. That will tell you if it is a syntax problem, at least. -Mark On Monday, December 26, 2016 at 7:08:23 PM UTC-6, Ben Lawrence wrote: > > seems to be an app

[web2py] Jquery Decision Tree

2016-12-08 Thread Mark Billion
Im really looking just for some suggestions of particularly light weight ones -- 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: 50x performance improvement for web2py in TechEmpower Web Framework Benchmarks

2016-11-22 Thread Mark Graves
That is truly strange. Seems to be a distinct confound. Greatly appreciated work. On Tue, Nov 22, 2016 at 7:27 AM, Anthony <abasta...@gmail.com> wrote: > On Tuesday, November 22, 2016 at 8:16:16 AM UTC-5, Mark Graves wrote: >> >> If I'm reading that correctly, doe

Re: [web2py] Re: 50x performance improvement for web2py in TechEmpower Web Framework Benchmarks

2016-11-22 Thread Mark Graves
, Anthony <abasta...@gmail.com> wrote: > On Monday, November 21, 2016 at 2:39:21 AM UTC-5, Mark Graves wrote: >> >> This is great news! Thank you for working on this, all of you. >> >> Any ability to check out the errors? >> > > Not that I know of. No

Re: [web2py] Re: web2py react-python

2016-11-21 Thread Mark Graves
One other thing that popped into my head after reading Anthony's points about search engine indexing would be permanent URI views (theoretically), whereas with pure JS apps often my experience has been less than thrilling with the routing capacities. On Mon, Nov 21, 2016 at 3:41 PM, Anthony

[web2py] web2py remote access

2016-11-21 Thread Mark C
Hello. I've installed web2py on rhel 6 and have successfully connected to the admin interface (ssh tunneling), but was interested in calling controllers over port 80 from remote machines. Just testing around now, so ssl is not required. Many thanks for any thoughts. I'm on the 2nd web2py

Re: [web2py] Re: web2py react-python

2016-11-21 Thread Mark Graves
Way better use case Leonel, thanks =) On Mon, Nov 21, 2016 at 3:44 AM, Leonel Câmara wrote: > José a use case may be for graceful degradation when clients don't have > javascript. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

[web2py] Re: 50x performance improvement for web2py in TechEmpower Web Framework Benchmarks

2016-11-20 Thread Mark Graves
This is great news! Thank you for working on this, all of you. Any ability to check out the errors? Would love to know what that was. On Saturday, November 19, 2016 at 2:16:18 PM UTC-6, Massimo Di Pierro wrote: > > Fantastic! Thank you Anthony, Michele, Simone, Richard, Paolo, Giovanni > and

Re: [web2py] web2py react-python

2016-11-20 Thread Mark Graves
nybody tell me one use case or explain when could this pyhon-react > setup make sense? > > Thanks > José L. > > 2016-11-20 10:25 GMT+01:00 Mark Graves <mgrave...@gmail.com>: > >> Hey everyone, >> >> I recently stumbled across this: >> >> https:

[web2py] web2py react-python

2016-11-20 Thread Mark Graves
Hey everyone, I recently stumbled across this: https://github.com/markfinger/python-react/issues/70#issuecomment-254396083 Just thought I'd share for anyone who was looking for something similar -Mark -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: Redis Session Auth Issue

2016-08-10 Thread Mark Graves
I'm an idiot. Put session below auth. Ignore. On Wednesday, August 10, 2016 at 8:13:55 PM UTC-5, Mark Graves wrote: > > Hey everyone, > > Having trouble tracking down a bug, looking for a sanity check. > > Somehow, when I turn on redis sessions, auth is not getting updated f

[web2py] Redis Session Auth Issue

2016-08-10 Thread Mark Graves
ect there with the user info in it. It just doesnt seem to be deserializing / updating auth.user from the session when the session is stored in redis. Am I missing something? It doesnt matter whether i use with_lock or not. The user is there. auth is just not being updated. -Mark -- Resources: - h

[web2py] Nginx & The Welcome App

2016-07-13 Thread Mark Billion
Nginx redirects my users from the website to the website/welcome/indexmy app is t4. Ive tried to configure the Web2py sites enabled to fix it, but it fails. Here is the w2p sites enabled fileany thoughts would be much appreciated. server { listen 80;

[web2py] Segfault/Selenium/Web2py/Permissions

2016-07-03 Thread Mark Billion
I have a script that posts data to a third party form via PhantomJS. It runs just fine on selenium in the python shell and when I run it in the W2P shell (python web2py.py -S *app* -M). The problem is that when I call it from the controller via a click, I get this traceback. I am assuming

[web2py] migrate uwsgi + nginx --> twisted

2016-06-08 Thread Mark Graves
? -Mark -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users&q

[web2py] Re: Weird form issue

2016-06-06 Thread Mark Graves
Hey Jeff, Most likely the date/time format. If you can post a sample sqlite file and SQLGRID code, happy to help. -Mark On Monday, June 6, 2016 at 12:42:16 PM UTC-7, Jeff Riley wrote: > > Sorry quick update. Rows is returning information, so I must have a > problem with my javas

Re: [web2py] Re: Weird form issue

2016-06-05 Thread Mark Graves
=) You're welcome Happens all the time to me, I find that I learn the most by listening to others. I couldn't figure it out too, so I dove in. It caused me to rethink the web2py form and db logic =) -Mark On Sun, Jun 5, 2016 at 4:36 PM, Jeff Riley <javajeff...@gmail.com> wrote: >

[web2py] Re: Weird form issue

2016-06-05 Thread Mark Graves
include some of the fields. see this repo: https://bitbucket.org/MarkGraves/service_scheduler Check out default/new_training It bugged me because the error seemed simple and I couldnt figure it out =) -Mark On Sunday, June 5, 2016 at 12:34:16 PM UTC-7, Jeff Riley wrote: > > Hello a

[web2py] Re: Is there a way to make scheduler tasks be picked by workers up even quicker?

2016-06-03 Thread Mark Smith
AYS the case) and it gets executed right away. > It'll definitely be quicker than the IPC done by the scheduler if you want > semi-realtime execution. > > On Friday, June 3, 2016 at 7:39:44 PM UTC+2, Mark Smith wrote: >> >> Thanks for the response :). I want to explain my situat

[web2py] dumbest question ever: how do you jump to line in the w2p ide

2016-06-03 Thread Mark Billion
I cant find this anywhere, but Ive seen it somewhere. Say Im editing in the admin application and want to jump to line 1000. Whats the key binding for it? Feel free to heckle as long as you also provide the answer ;) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

Re: [web2py] Re: web2py deployment: LetsEncrypt Nginx auto renew deployment script

2016-06-03 Thread Mark Graves
Anthony, Any idea if the ISRG root CA is included in browsers yet? https://community.letsencrypt.org/t/which-browsers-and-operating-systems-support-lets-encrypt/4394 This is the most recent article I could find but it is over 6 months old. -Mark On Fri, May 27, 2016 at 7:31 AM, Anthony

[web2py] Re: Is there a way to make scheduler tasks be picked by workers up even quicker?

2016-06-03 Thread Mark Smith
Thanks for the response :). I want to explain my situation a bit more if that's alright with you Niphlod (I'm a newbie at web dev haha). You're right, I think I can use a simple ajax request to do it instead, however I think the task may run a bit slower/make the UI a bit unresponsive? From my

[web2py] Re: Append fields within form, iteratively add fields inside form, List:string append, custom forms

2016-06-02 Thread Mark Graves
, Otherwise, you can store it server side, let me know if you want to chat about this offline. -Mark On Friday, May 27, 2016 at 2:22:16 PM UTC-7, Ron Chatterjee wrote: > > Running into some issues and hoping community help out with thoughts. How > do I append to list:string and using fo

[web2py] Is there a way to make scheduler tasks be picked by workers up even quicker?

2016-06-02 Thread Mark Smith
So I've been struggling with this issue for a while. Here's the scenario: The user selects their desired options and then clicks submit. The javascript then sends a POST request to a controller that adds a task to the task database. The javascript then polls every second to check on the

Re: [web2py] Re: web2py deployment: LetsEncrypt Nginx auto renew deployment script

2016-05-27 Thread Mark Graves
Thank Niphlod and Anthony. I agree. The technology is not quite mainstream enough to really rely on yet. -Mark On Thu, May 26, 2016 at 6:13 AM, Niphlod <niph...@gmail.com> wrote: > better than http, for sure. Better than self-signed, an order of > magnitude. But still I'd go for 6

[web2py] web2py deployment: LetsEncrypt Nginx auto renew deployment script

2016-05-25 Thread Mark Graves
of the status of LetsEncrypt for a production database despite its early status? Thanks! -Mark -- 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: Computed DAL Values On Insert

2016-05-09 Thread Mark Billion
Yep On Monday, May 9, 2016 at 12:19:13 PM UTC-4, Niphlod wrote: > > are all of the required fields of "storage_string()" supplied ? > > On Monday, May 9, 2016 at 5:25:21 PM UTC+2, Mark Billion wrote: >> >> When I do an insert the computed values

[web2py] Re: non W2p form insert

2016-05-09 Thread Mark Billion
d', 'somefield2' : 'cdef', '*contents*': 'wxyz'} > > trying to do db.sometable.validate_and_insert(**request.vars) > > will give you the exact same error ("Field *contents *does not belong to > the table") > > > > On Monday, May 9, 2016 at 3:11:51 PM UTC+2, Mark Bill

[web2py] Computed DAL Values On Insert

2016-05-09 Thread Mark Billion
When I do an insert the computed values dont updatethoughts? def storage_form_controller(): x = request.vars.client sl_dict = { 'client':request.vars.client, 'kind': request.vars.kind, 'others_with_access': request.vars.others_with_access,

[web2py] non W2p form insert

2016-05-09 Thread Mark Billion
Dumb question and even though I have rtmed I cannot seem to find what I am sure is right in front of me. I have a form that sends back data ordered by table name and I want to do something like validate_and_insert(**request.vars) That being said, this doesnt work Locals: eld : fields

[web2py] Re: Weird Javascript Behavior -- 2 clicks to fire (Sorry, Dont know where else to turn)

2016-05-02 Thread Mark Billion
this seems really hacky and Im all ears as to why this is wrong but it does work like a charm On Friday, April 29, 2016 at 9:48:47 PM UTC-4, Stuart Rolinson wrote: > > Hi Mark, > > Can you pull together a simple example showing this with your HTML, CSS > and Javascript. I under

[web2py] Weird Javascript Behavior -- 2 clicks to fire (Sorry, Dont know where else to turn)

2016-04-29 Thread Mark Billion
Here's the script. When I click it on load, works like a charm. When I click it via a dynamically created element, the first click sees the actual html shift (kind of stretch and go back). It does however work on the second click consistently. $(document).on('click', '.iframe_add',

[web2py] Re: Execution of import statements

2016-04-29 Thread Mark Billion
u have > > > import a > blablabla > import b > blablabla > import a > > the second "import a" statement is executed, but is a no-op. > > On Friday, April 29, 2016 at 1:20:59 AM UTC+2, Mark Billion wrote: >> >> I understand that the whole default.p

[web2py] Execution of import statements

2016-04-28 Thread Mark Billion
I understand that the whole default.py file is executed on each request to a function internal to it. But does it import if the statement evaluates to false? For example if default.py has: Function x(): If 1==2: Import a Does a get imported every time function x is called? --

[web2py] Re: SQLFORM return javascript on accept

2016-04-28 Thread Mark Billion
="300" scrolling="yes" id="myFrame">'); }); On Wednesday, April 27, 2016 at 6:15:43 PM UTC-4, Leonel Câmara wrote: > > Hey Mark, > > Use response.js for that > > If form.process().accepted: > > #dont reload

[web2py] SQLFORM emulate return false

2016-04-27 Thread Mark Billion
I want to have the SQLFORM submit, validate, and on success do absolutely nothing. It would look like an html event equivalent to: form onsubmit="myFunction(); return false;" The problem is that actually injecting return false into the form means w2p doesnt validate. Is there a simple way

[web2py] Re: Ajax Form Update (and thank you for all the help)

2016-04-27 Thread Mark Billion
, April 25, 2016 at 9:41:55 PM UTC-4, Massimo Di Pierro wrote: > > Can you show up some more code. > > On Monday, 25 April 2016 08:51:14 UTC-5, Mark Billion wrote: >> >> I have a form that is accessed through ajax and displayed in a >> modalRight now, on succe

[web2py] Ajax Form Update (and thank you for all the help)

2016-04-25 Thread Mark Billion
I have a form that is accessed through ajax and displayed in a modalRight now, on success, the modal clears and the parent page is reloaded, which then shows the data that was entered in the table. i.e., ajax_form = SQLFORM(...).process(next = URL('default', page_name)) {{for x in y:}}

[web2py] Re: Cascade is killing me

2016-04-21 Thread Mark Billion
That fixed it! On Thursday, April 21, 2016 at 3:30:39 PM UTC-4, Anthony wrote: > > Try with a fresh table and see if cascade works. > > On Thursday, April 21, 2016 at 3:27:25 PM UTC-4, Mark Billion wrote: >> >> It was added later. >> >> On Thursday, April 2

[web2py] Re: Cascade is killing me

2016-04-21 Thread Mark Billion
It was added later. On Thursday, April 21, 2016 at 3:23:19 PM UTC-4, Anthony wrote: > > Was Income_Src a reference field when you first created the table, or did > you make that change later? > > On Thursday, April 21, 2016 at 2:16:10 PM UTC-4, Mark Billion wrote: >> >&g

[web2py] Re: Cascade is killing me

2016-04-21 Thread Mark Billion
No, I mean the first one. I delete an income entry and the associated deduction entries still stick around. On Thursday, April 21, 2016 at 2:11:34 PM UTC-4, Leonel Câmara wrote: > > Do you mean you delete something in table "income" and nothing is deleted > in "deductions"? > > Or do you

[web2py] Cascade is killing me

2016-04-21 Thread Mark Billion
Parent table is income: db.define_table('income', Field('client' , requires=IS_IN_DB(db, db.client.id), writable=False), Field('source', requires=IS_IN_SET(DEBTOR_TOGGLE_NO_BOTH),)) Child Table is deductions: db.define_table('deductions', Field('client' ,

Re: [web2py] auth_user extra fields + row.to_dict()

2016-04-06 Thread Mark Graves
Ah! Of course. Thanks Anthony! I knew it was something dumb i did =) -Mark On Wed, Apr 6, 2016 at 11:35 AM, Anthony <abasta...@gmail.com> wrote: > table = db.auth_user >> fields = ['id','first_name'] >> fields.append('test_field_1') >> >> q

Re: [web2py] auth_user extra fields + row.to_dict()

2016-04-06 Thread Mark Graves
;:{"hello":False}, "second_bool":False} return response.json(profile) This returns the following JSON response: {"second_bool": false, "auth_fields": {"_extra": {"test_field_1": "T", "first_name": "Corinne&

Re: [web2py] auth_user extra fields + row.to_dict()

2016-04-06 Thread Mark Graves
Hey Anthony and Richard, Yes you are both correct. I am attempting to create a usable JSON object. The confounding details from what I can tell are: 1.) the offending method is defined in a model file, which returns a dictionary, which is then json serialized via

[web2py] auth_user extra fields + row.to_dict()

2016-04-06 Thread Mark Graves
Hey everyone, I saw a random bug in an app I'm working on, and I was wondering what the correct approach is. I have auth.settings.extra_fields["auth_user"] = [LIST_OF_FIELDS] later, I select that row and get it as a dict: row = db(db.auth_user.id == user_id).select().first().as_dict() then I

[web2py] Re: constraints

2016-02-28 Thread Mark Graves
db.define_table('table_1_name', Field('field_1_name','string')) db.define_table('table_2_name', Field('table_1_reference_field','reference table_1_name')) It looks like you defined the field as an integer field and then are attempting to redefine it as a reference field. -Mark

Re: [web2py] Re: web2py on AWS

2016-01-24 Thread Mark Graves
Can you do ps -aux and see whether you can see rocket listening on port 80? -Mark On Mon, Jan 25, 2016 at 12:44 AM, Dave S <snidely@gmail.com> wrote: > > > On Saturday, January 23, 2016 at 12:58:25 PM UTC-8, Mark Graves wrote: >> >> Re reading your answer,

[web2py] Re: web2py on AWS

2016-01-23 Thread Mark Graves
Re reading your answer, check the access logs. See if rocket is getting overwhelmed by robots or other spam traffic. consider installing ip tables if thats the case or use nginx. -Mark On Saturday, January 23, 2016 at 1:46:56 AM UTC-6, Dave S wrote: > > I'm trying to set up a demo on

[web2py] Re: web2py on AWS

2016-01-23 Thread Mark Graves
Hey Dave, Any reason why you are choosing to use the rocket server and manual install? I usually use the scripts from github as follows: (configurable, but ubuntu is easiest) 1. Create new ubuntu micro box. 2. ssh into box 3. wget

Re: [web2py] Re: multiple auth instances for one app

2015-12-22 Thread Mark Graves
Thanks Anthony. Those are the considerations I was looking for. Did you successfully implement this? -Mark On Tue, Dec 22, 2015 at 5:30 PM, Anthony <abasta...@gmail.com> wrote: > Some previous discussion: > https://groups.google.com/d/msg/web2py-developers/E9ug6m6WHhE/

Re: [web2py] Re: multiple auth instances for one app

2015-12-22 Thread Mark Graves
the encrypted database if i were to keep the encryption key(s) available. Its more from application logic security, than low level security, where two sets of users need to keep their data separate, but have access to similar functions and some shared tables. On Mon, Dec 21, 2015 at 4:37 PM, Mark

Re: [web2py] Re: multiple auth instances for one app

2015-12-21 Thread Mark Graves
I never said I was reasonable =) I'll come up with a description this evening. -Mark On Mon, Dec 21, 2015 at 12:11 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I cannot think of a reasonable use case for this. Tell us more. > > > On Saturday, 19 December 2

[web2py] multiple auth instances for one app

2015-12-19 Thread Mark Graves
Hey everyone. Interesting question here. Has anyone ever used two instances of auth in the same app, on two separate databases: eg. db1 = DAL() db2 = DAL() auth1 = Auth(db1) auth2 = Auth(db2) Would that run into any thread safety issues? -Mark -- Resources: - http://web2py.com - http

Re: [web2py] Re: Bug / Dumb Question a = b= []

2015-12-11 Thread Mark Billion
[2] [2] > > A great source of bugs if a and b are thought to be different objects. > > Ron > > > On Tuesday, 8 December 2015 07:01:36 UTC-8, Mark Billion wrote: >> >> in python 2.6, I can run a = b = [] and get the expected result. In W2P, >> when I do it, it thr

Re: [web2py] SELinux and web2py

2015-12-11 Thread Mark Graves
ect_r:etc_t /etc/passwd > > Sorry in french : > https://fr.wikipedia.org/wiki/SELinux > > I check english one and there where not this example... > > Then I don't know how you chage these exented attribute, there surely > other exented command for that > > :D > > Rich

Re: [web2py] SELinux and web2py

2015-12-10 Thread Mark Graves
Same permissions =( On Thu, Dec 10, 2015 at 7:05 PM, Mark Graves <mgrave...@gmail.com> wrote: > Its centos. I'll check that now. Its owned by apache > > On Thu, Dec 10, 2015 at 7:04 PM, Richard Vézina < > ml.richard.vez...@gmail.com> wrote: > >> with ubuntu

[web2py] SELinux and web2py

2015-12-10 Thread Mark Graves
Has anyone got any experience with selinux file permissions and web2py? Somehow my sessions are not writing for the admin app but they are for the welcome app... -Mark -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

Re: [web2py] SELinux and web2py

2015-12-10 Thread Mark Graves
na < > ml.richard.vez...@gmail.com> wrote: > >> Have you look to the welcome app user? >> >> ls -al >> >> Then >> >> chown -Rf same_welcome_app_user:same_welcome_app_user >> >> Richard >> >> On Thu, Dec 10, 2015 at 7:50

[web2py] aws s3 uploadfs

2015-12-09 Thread Mark Graves
Hey everyone, I've got an odd issue I've been experiencing. I uploaded about 10k files through the DAL into my local filesystem. Then, I s3synced them, and mounted the s3 to the uploadfs for the DAL field. The bucket and permissions for the keys and configuration works, because I accessed

  1   2   3   4   5   6   >