[web2py] Possible bug with SQLFORM.grid search and order

2023-08-01 Thread Jeff Plata
Possible bug when searching in SQLFORM.grid with order activated. To reproduce: 1. SQLFORM.grid, advanced_search = True 2. Click a column header on the grid to activate 'order' 3. Click 'search' (with or without keyword) 4. Error as follows: Traceback (most recent call last): File

[web2py] Where to read change log for web2py

2023-07-31 Thread Jeff Plata
Where to read change log for web2py? Changes from version to version or what's new. -- 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] Attribute name with a dash character using helpers

2023-07-26 Thread Jeff Plata
How do we achieve this using the BUTTON() helper I am having trouble with the "data-toggle" attribute. -- 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] Remove an element from SQLFORM.grid

2023-05-17 Thread Jeff Plata
I use the following code to hide the thead element of a grid, but I actually want to delete it. Is there a method to delete the target element? TIA. *grid.element('thead')['_hidden'] = 'hidden'* -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Is it possible to change the boolean field widget from checkbox to option with yes and no?

2023-04-04 Thread Jeff Plata
eletable=False, *onvalidation=validate_library*) return dict(grid=grid) On Tuesday, April 4, 2023 at 4:33:20 PM UTC+8 Jeff Plata wrote: > Thank you all for your suggestions. In the end, I settled for a string > field with IS_IN_SET(['yes', 'no']). > > Bootstrap toggle is nice,

[web2py] Re: Is it possible to change the boolean field widget from checkbox to option with yes and no?

2023-04-04 Thread Jeff Plata
pril 4, 2023 at 4:33:20 PM UTC+8 Jeff Plata wrote: > Thank you all for your suggestions. In the end, I settled for a string > field with IS_IN_SET(['yes', 'no']). > > Bootstrap toggle is nice, but the alignment is off, and the stubborn label > is still on the right whe

[web2py] Re: Is it possible to change the boolean field widget from checkbox to option with yes and no?

2023-04-04 Thread Jeff Plata
Or maybe I'll revert to boolean with IS_IN_SET(['yes','no']), but I'll have to do an onvalidation check so that I can assign the correct value after form post? On Tuesday, April 4, 2023 at 4:33:20 PM UTC+8 Jeff Plata wrote: > Thank you all for your suggestions. In the end, I sett

[web2py] Re: Is it possible to change the boolean field widget from checkbox to option with yes and no?

2023-04-04 Thread Jeff Plata
UTC-7 Dave S wrote: >> >> On Sunday, February 26, 2023 at 5:51:30 AM UTC-8 jeff...@gmail.com wrote: >> >> Is it possible to change the boolean field widget from checkbox to option >> with yes and no? How? >> >> >> >> I don't think

[web2py] Is it possible to change the boolean field widget from checkbox to option with yes and no?

2023-02-26 Thread Jeff Plata
Is it possible to change the boolean field widget from checkbox to option with yes and no? How? -- 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] Web2py Thumbnail App

2019-03-04 Thread Jeff Lipkowitz
Does anyone have a open source web2py application that users can upload images and select the image from a tumbnail gallery. I want to make a write up of how to make a web app hitting keras model hosted on google ml. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] looking for a web2py contractor with SOAP experience.

2016-09-26 Thread Jeff Lipkowitz
I'm looking for a web2py contractor with SOAP experience. Please send resumes and work experience examples to j...@redbrickanalytics.com -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Looking for a web2py contractor

2016-09-26 Thread Jeff Lipkowitz
Please send a email for more details On Friday, 23 September 2016 10:49:52 UTC-5, Jeff Lipkowitz wrote: > > I'm looking for a web2py contractor with SOAP experience. > > Please send resumes and work experience examples to > j...@redbrickanalytics.com > -- Resources: -

[web2py] Re: Looking for a web2py contractor

2016-09-26 Thread Jeff Lipkowitz
Looking forward! On Friday, 23 September 2016 10:49:52 UTC-5, Jeff Lipkowitz wrote: > > I'm looking for a web2py contractor with SOAP experience. > > Please send resumes and work experience examples to > j...@redbrickanalytics.com > -- Resources: - http://web2py.com - http

[web2py] Looking for a web2py contractor

2016-09-23 Thread Jeff Lipkowitz
I'm looking for a web2py contractor with SOAP experience. Please send resumes and work experience examples to j...@redbrickanalytics.com -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
Yes I do. I am not that advanced to be able to handle more than one lol. I will make that change. Thank you, Jeff Riley > On Jul 11, 2016, at 7:48 AM, Marlysson Silva <marlyss...@gmail.com> wrote: > > You use just one model.py? > if yes, change this line: > > IS_DATET

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
I have tried to get to the index page and I have gone to admin and then the database tab so I can setup the authorized user. Both give me the same error Thank you, Jeff Riley > On Jul 11, 2016, at 7:38 AM, Marlysson Silva <marlyss...@gmail.com> wrote: > > Might put on github ,

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
here is the new db.py, default.py, and index.html since that is the opening page. On Monday, July 11, 2016 at 7:31:04 AM UTC-5, Jeff Riley wrote: > > Let me attach the new code or are you able to see the git hub. If so I > will push to that. > > Thank you, > Jeff Riley > &g

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
Let me attach the new code or are you able to see the git hub. If so I will push to that. Thank you, Jeff Riley > On Jul 11, 2016, at 7:29 AM, Marlysson Silva <marlyss...@gmail.com> wrote: > > I think that I know where are missing pytz.. you put library in controller &g

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
The plugin Thank you, Jeff Riley > On Jul 11, 2016, at 7:25 AM, Marlysson Silva <marlyss...@gmail.com> wrote: > > Hm, in which file? > > You removed the pytz library or a plugin that already was in your code > previously? > > > 2016-07-11 9:19 GMT-03:00

[web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
> > I'm creating this application to demonstrate this, if you want look.. > > http://marlysson.pythonanywhere.com/timezone > > At app, the *Hour "your PC"* is datetime.now() simulating datetime of user, > just that it's datetime of the pythonanywhere. > > &g

[web2py] Re: Anyone ever done a braintree integration with web2py?

2016-07-11 Thread Jeff Lipkowitz
No, but I wonder how you would do an integration for payment. On Friday, 30 May 2014 03:19:20 UTC-5, Mark Graves wrote: > > Hey everyone, > > Using braintree to process payments in an app I'm working on. Anyone ever > done it and willing to answer a few questions? > > (I checked their

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-10 Thread Jeff Riley
Great thank you Marlysson. I will try this as soon as I can. Hopefully tomorrow. Thank you, Jeff Riley > On Jul 10, 2016, at 4:39 PM, Marlysson Silva <marlyss...@gmail.com> wrote: > > You try to make this: > > 1. Add library in the front-end to get user time

RE: [web2py] Re: Pythonanywhere Timezone

2016-07-08 Thread Jeff Riley
https://github.com/Sailor972/medicaltracker.git Sent from Mail for Windows 10 From: Marlysson Silva -- 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: Pythonanywhere Timezone

2016-07-08 Thread Jeff Riley
want timezone by any place, then I go prepare a article showing > what I made to solved this. > > Em sexta-feira, 8 de julho de 2016 09:56:48 UTC-3, Jeff Riley escreveu: >> >> Just in case anyone is wondering why I would build such a strange little >> web app, it is for my

[web2py] Re: Pythonanywhere Timezone

2016-07-08 Thread Jeff Riley
PM UTC-5, Jeff Riley wrote: > > Hello all. Me again. I have run into an interesting issue. I have > installed and followed niphlod's w2p_timezone_plugin. In order to make it > work on my local PC I need to setup my db.py as follows. > > import pytz > user_timezone = sessi

[web2py] Re: Pythonanywhere Timezone

2016-07-07 Thread Jeff Riley
Here is the code as promised for the db.py and default.py. On Thursday, July 7, 2016 at 2:19:10 PM UTC-5, Jeff Riley wrote: > > Hello all. Me again. I have run into an interesting issue. I have > installed and followed niphlod's w2p_timezone_plugin. In order to make it > work on

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-07 Thread Jeff Riley
I have that in the default.py file. I will send the code when I get to my computer. Thank you, Jeff Riley > On Jul 7, 2016, at 5:10 PM, Marlysson Silva <marlyss...@gmail.com> wrote: > > Where you are inicialize session.plugin_timezone_tx ? > > I too already had this issue

[web2py] Pythonanywhere Timezone

2016-07-07 Thread Jeff Riley
Hello all. Me again. I have run into an interesting issue. I have installed and followed niphlod's w2p_timezone_plugin. In order to make it work on my local PC I need to setup my db.py as follows. import pytz user_timezone = session.plugin_timezone_tx or 'UTC' db.define_table('events',

[web2py] Re: show_if multiple selections

2016-07-07 Thread Jeff Riley
> > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#belongs > > Em quinta-feira, 7 de julho de 2016 06:24:08 UTC-3, Jeff Riley escreveu: >> >> Hello all. I am trying to get the line below from my db.py file to >

[web2py] show_if multiple selections

2016-07-07 Thread Jeff Riley
Hello all. I am trying to get the line below from my db.py file to work. Currently it is only working for the first entry "Mood". Any ideas? db.events.event_level.show_if = ((db.events.event_type == "Mood") or (db.events.event_type == "Headache") or

[web2py] Re: Behave testing question

2016-06-23 Thread Jeff Riley
th.signature ? > > Em quinta-feira, 23 de junho de 2016 09:50:55 UTC-3, Jeff Riley escreveu: >> >> Good morning everyone. This is not really a Web2py question, but this >> group has been so helpful during my little app development. I am using >> Behave, Selenium a

[web2py] Re: Behave testing question

2016-06-23 Thread Jeff Riley
; field, which stores record IDs from the db.manufacturers table, not > manufacturer names. So, in the Behave specification, the value should be > the integer record ID associated with the "Storm Producs Inc." manufacturer. > > Anthony > > On Thursday, June 23, 20

[web2py] Behave testing question

2016-06-23 Thread Jeff Riley
Good morning everyone. This is not really a Web2py question, but this group has been so helpful during my little app development. I am using Behave, Selenium and Splinter for my automated testing of my Web2py app. I have run into a dropdown list situation where my db model (attached) is

[web2py] Re: Update Pure HTML form

2016-06-17 Thread Jeff Riley
Anthony. It was me being a complete idiot. I had not removed the HTML form tags. I have attached the code that is working perfectly now. Thank you so much for have the patience of a Saint. On Wednesday, June 15, 2016 at 8:52:22 AM UTC-5, Jeff Riley wrote: > > All. I was going t

[web2py] Re: Update Pure HTML form

2016-06-16 Thread Jeff Riley
So I need to know who to get the record ID from the database to pass to the update view. Using the form start and end calls is not working. On Wednesday, June 15, 2016 at 8:52:22 AM UTC-5, Jeff Riley wrote: > > All. I was going to link this to my "Pure HTML Form" question just

Re: [web2py] Re: Update Pure HTML form

2016-06-16 Thread Jeff Riley
Anthony thank you so very much. I will make these changes. Thank you, Jeff Riley > On Jun 16, 2016, at 11:17 AM, Anthony <abasta...@gmail.com> wrote: > > For update forms, web2py includes the record ID as a hidden field and > verifies that it matches the original recor

[web2py] Re: Update Pure HTML form

2016-06-16 Thread Jeff Riley
. On Wednesday, June 15, 2016 at 8:52:22 AM UTC-5, Jeff Riley wrote: > > All. I was going to link this to my "Pure HTML Form" question just not > sure how to do that. As you see in that question I was able to get past my > copy paste issue and get the create form to work per

[web2py] Update Pure HTML form

2016-06-15 Thread Jeff Riley
Sorry to be a pest but I really do need an answer for this one so I can finish this update form page please. -- 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] Update Pure HTML form

2016-06-15 Thread Jeff Riley
All. I was going to link this to my "Pure HTML Form" question just not sure how to do that. As you see in that question I was able to get past my copy paste issue and get the create form to work perfectly. Thank you all for the extra eyes. Now I am building the update form and I am getting

[web2py] Re: Pure HTML form

2016-06-14 Thread Jeff Riley
Oh lord folks. I had the same name for two fields. That was my only problem. Thank you all very much. On Monday, June 13, 2016 at 6:27:20 PM UTC-5, Jeff Riley wrote: > Hello all. So sorry to bother you again. Since I have to overlay form > fields on top of a canvas, I have to buil

Re: [web2py] Re: Pure HTML form

2016-06-13 Thread Jeff Riley
Dave thank you. I will check this out and see. As far as errors I am just getting the pop-up with no field showing issues. Which I am assuming is because the Web2py Ajax does not handle html form elements. Thank you, Jeff Riley > On Jun 13, 2016, at 6:47 PM, Dave S <snidely@gma

[web2py] Pure HTML form

2016-06-13 Thread Jeff Riley
Hello all. So sorry to bother you again. Since I have to overlay form fields on top of a canvas, I have to build pure HTML form elements (at least that is all I can think to do). My problem is when I submit the form I am getting errors in form even though I am filling out every field. I am

[web2py] Jquery dropdown

2016-06-10 Thread Jeff Riley
Hello all. I am trying to get Jquery to work on a dropdown. I have the tax payer example from the book working just fine. if(jQuery('#taxpayer_married').prop('checked')) But when I try to get the text of my dropdown it is not seeing it. Do I have something wrong in my syntax?

[web2py] Save Full Calendar event to Mysql

2016-06-08 Thread Jeff Riley
Hello all. Has anyone figured out how to save a Jquery Full Calendar event to their Mysql database? I know I should use the Ajax function, but I am not seeing how to get the information from the Full Calendar jquery event dialog. -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Weird form issue

2016-06-07 Thread Jeff Riley
Mark. Could you contact me at javajeff...@gmail.com. I would like to see if you could help me finish this out and what that might cost. On Monday, June 6, 2016 at 5:10:37 PM UTC-5, Mark Graves wrote: > > Hey Jeff, > > Most likely the date/time format. > > If you can post a

[web2py] Re: Weird form issue

2016-06-06 Thread Jeff Riley
Sorry quick update. Rows is returning information, so I must have a problem with my javascript. I still however cannot delete the record from the SQLgrid view. On Monday, June 6, 2016 at 2:38:03 PM UTC-5, Jeff Riley wrote: > > Now I am truly confused. I am able to submit the form and

[web2py] Re: Weird form issue

2016-06-06 Thread Jeff Riley
-5, Jeff Riley wrote: > > Hello all. I have built many forms in Web2py, but I clearly need another > set of eyes. This form only works if I display every signal field for some > reason. I am at a loss as to what I have set wrong. I will add a file > with all the relevant code.

[web2py] Re: Weird form issue

2016-06-05 Thread Jeff Riley
. On Sunday, June 5, 2016 at 6:14:35 PM UTC-5, Mark Graves wrote: > Hey Jeff, > > It looks like you created a sqlform expecting all fields, then the form > was expecting all fields back, but you only used some of them in the view, > so they were not processed. > > Specifically, the

[web2py] Weird form issue

2016-06-05 Thread Jeff Riley
Hello all. I have built many forms in Web2py, but I clearly need another set of eyes. This form only works if I display every signal field for some reason. I am at a loss as to what I have set wrong. I will add a file with all the relevant code. Thank you all very much for you help with

[web2py] Re: Localize JavaScript

2016-05-28 Thread Jeff Riley
All, Ok I think this would help my situation, but I am missing how to execute the Ajax. I have four views that contain the same javascript and would really like to move to the static js folder, but the javascript requires elements passed to the views from the controllers. The "Drawtext"

[web2py] Re: Not able to remove views folder

2016-04-27 Thread Jeff Riley
Ah great Anthony. Thank you very much for all your help with this. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you

[web2py] Re: Not able to remove views folder

2016-04-27 Thread Jeff Riley
Using 2.14.5 On Wednesday, April 27, 2016 at 8:56:48 AM UTC-5, Anthony wrote: > > Are you running an older version of web2py on PythonAnywhere? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Not able to remove views folder

2016-04-27 Thread Jeff Riley
Anthony, Sorry for the delay in getting back to you. It says... invalid view (default/index.html) On Tuesday, April 26, 2016 at 1:45:32 PM UTC-5, Anthony wrote: > > What is the exact error message? > > On Tuesday, April 26, 2016 at 2:23:51 PM UTC-4, Jeff Riley wrote: >>

[web2py] Re: Not able to remove views folder

2016-04-26 Thread Jeff Riley
/compiled/views.default.index.html.pyc file? > > Anthony > > On Tuesday, April 26, 2016 at 11:33:43 AM UTC-4, Jeff Riley wrote: >> >> Hello everyone. Has anyone run across an issue in PythonAnywhere where >> after you compile your Web2py you are able to remove the controllers an

[web2py] Not able to remove views folder

2016-04-26 Thread Jeff Riley
Hello everyone. Has anyone run across an issue in PythonAnywhere where after you compile your Web2py you are able to remove the controllers and models folders, but not the views folder. If I try to remove the views folder it is telling me it cannot find index.html. -- Resources: -

[web2py] Re: If statement in View not processing correctly

2016-04-08 Thread Jeff Riley
That is great Anthony and everyone else. Thank you very much for the fantastic help. On Friday, April 8, 2016 at 2:44:38 PM UTC-5, Jeff Riley wrote: > > Hello all. I have the following if statement in my views to try to > eliminate empty fields that are displaying "None"

[web2py] Re: If statement in View not processing correctly

2016-04-08 Thread Jeff Riley
All thank you very much for the really fast responses. It turns out I had to use the "If customer.address2 is None:" statement. The "If customer.address2:" would not work for me. Again thank you all very much. On Friday, April 8, 2016 at 2:44:38 PM UTC-5, Jeff Riley wrot

[web2py] If statement in View not processing correctly

2016-04-08 Thread Jeff Riley
Hello all. I have the following if statement in my views to try to eliminate empty fields that are displaying "None" in my views. I am not sure how to get the field value to evaluate the statement. Any help appreciated. {{if customer.address2 == "None":}} Apt/Suite: {{else:}}

[web2py] Re: Starting server in python script on Windows

2016-04-06 Thread Jeff Riley
asswd"']) On Wednesday, April 6, 2016 at 4:49:46 PM UTC-5, Jeff Riley wrote: > > Trying to run some selenium tests but not able to get the server started > from within my python script on windows. If I don't already have > web2py.exe running, it just spins in the web browser

[web2py] Starting server in python script on Windows

2016-04-06 Thread Jeff Riley
Trying to run some selenium tests but not able to get the server started from within my python script on windows. If I don't already have web2py.exe running, it just spins in the web browser. Any ideas? Code: def start_web2py_server(): #noreload ensures single process print

[web2py] Re: Image rotated

2016-04-05 Thread Jeff Riley
Sorry everyone. After running more tests, the image is getting rotated for some reason in the email. My process was to take a picture with my phone and email it to my computer. Sorry for the false alarm. On Monday, April 4, 2016 at 1:44:19 PM UTC-5, Jeff Riley wrote: > > Hello all.

[web2py] Image rotated

2016-04-04 Thread Jeff Riley
Hello all. When displaying a database stored image it is rotated -90 degs from the original. Any ideas how to rotate this back to normal? Here is the relevant code. Table: db.define_table('ball_image', Field('image_file', 'upload', uploadfield='picture_file'),

[web2py] smartgrid header sorting

2016-04-02 Thread Jeff Riley
Hello all. I have the following function to display a smartgrid. My issue is I am not able select a header to sort. It gives me a 404. @auth.requires_login() def manage_sheets(): if 'new' in request.args: redirect(URL('new_sheet', args=[session.cust_id])) elif 'edit' in

[web2py] displaying none

2016-04-02 Thread Jeff Riley
What have I done wrong with represent. it is still displaying none. Field('bridge', 'string', length=5, represent=lambda v, r: '' if v is None else v), -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Record version query

2016-04-01 Thread Jeff Riley
So sorry. I found it. I did not realize current_record was what I was looking for. On Friday, April 1, 2016 at 8:12:10 PM UTC-5, Jeff Riley wrote: > > All, So I have out smarted myself. I want to return all versions of a > specific sheet from sheet_archive. Sheet_archive is a Web2

[web2py] Record version query

2016-04-01 Thread Jeff Riley
All, So I have out smarted myself. I want to return all versions of a specific sheet from sheet_archive. Sheet_archive is a Web2py record version table. I was expecting the archive table to have the sheet.id column, but it appears it does not. So I am wondering how I would return all

[web2py] Re: Date picker format

2016-03-30 Thread Jeff Riley
ient side and not in validator. There is no > reason for the server to even know what the client representation of dates > is. > > On Tuesday, 29 March 2016 12:44:54 UTC-5, Jeff Riley wrote: >> >> Mr. Pierro. I am embarrassed that was so easy. >> >> On Monday, Ma

[web2py] Re: Date picker format

2016-03-29 Thread Jeff Riley
Mr. Pierro. I am embarrassed that was so easy. On Monday, March 28, 2016 at 11:09:32 PM UTC-5, Massimo Di Pierro wrote: > > look into views/web2py_ajax.html > > On Monday, 28 March 2016 16:09:39 UTC-5, Jeff Riley wrote: >> >> Hello everyone. I have the following fi

[web2py] Date picker format

2016-03-28 Thread Jeff Riley
Hello everyone. I have the following field defined. Field('due_date', 'date', requires = IS_DATE(format=T('%m-%d-%Y'))), The date picker that comes up with this field is setting the date to -MM-DD which is conflicting with the format I have defined above when I his submit. How to I get

[web2py] Re: Constant login request on PythonAnywhere

2016-03-28 Thread Jeff Riley
ession cookies is getting passed back and > forth. > > On Monday, March 28, 2016 at 3:16:32 PM UTC-4, Jeff Riley wrote: >> >> Just an update. I have installed FireFox and it is not giving me the >> same problems. It lets me stay logged in until I tell it to log me out.

[web2py] Re: Constant login request on PythonAnywhere

2016-03-28 Thread Jeff Riley
Just an update. I have installed FireFox and it is not giving me the same problems. It lets me stay logged in until I tell it to log me out. This has to be some setting in both IE 11 and Chrome that I just cannot find. On Monday, March 28, 2016 at 12:06:54 PM UTC-5, Jeff Riley wrote

[web2py] Constant login request on PythonAnywhere

2016-03-28 Thread Jeff Riley
Hello all. I have deployed on PythonAnywhere and everything is working except anytime I leave the browser window to go to another tab or do something else on the computer I have to log back in to my application. It is doing this with every browser I have tried (IE 11, Chrome) except Windows

[web2py] TAG.button style

2016-03-20 Thread Jeff Riley
Hello all, I have defined the following TAG.button in a SQLFORM. These are working great, but they are ugly. Is there an attribute to set within TAG.button that will make the buttons use the same default Web2py style? form=SQLFORM(db.sheet, this_sheet, buttons =

[web2py] Re: URL parsing in controller

2016-03-19 Thread Jeff Riley
trouble understanding how to grab the customer id and the sheet id. Thank you, Jeff Riley -- 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: URL parsing in controller

2016-03-19 Thread Jeff Riley
Thank you all very much. This worked. args=[request.args(2),request.args(5)] On Friday, March 18, 2016 at 5:08:15 PM UTC-5, Jeff Riley wrote: > > Ah you are totally correct. The controller is default and manage_customers > is the function. I am still getting used to these c

[web2py] Re: URL parsing in controller

2016-03-19 Thread Jeff Riley
Sorry, edit is the function. This URL does not call view. -- 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: URL parsing in controller

2016-03-19 Thread Jeff Riley
trouble understanding how to grab the customer id and the sheet id. Thank you, Jeff Riley -- 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

Re: [web2py] Re: URL parsing in controller

2016-03-19 Thread Jeff Riley
trouble understanding how to grab the customer id and the sheet id. Thank you, Jeff Riley > On Mar 18, 2016, at 3:58 PM, Dave S <snidely@gmail.com> wrote: > > > >> On Friday, March 18, 2016 at 1:18:23 PM UTC-7, webm...@trytha.com wrote: >> Maybe somethin

[web2py] Re: URL parsing in controller

2016-03-18 Thread Jeff Riley
Ah you are totally correct. The controller is default and manage_customers is the function. I am still getting used to these constructs. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] URL parsing in controller

2016-03-18 Thread Jeff Riley
Hello All, I am pulling my hair out. I am trying to redirect the view button on a smartgrid. I can get the button to redirect to the view I want, but I cannot parse the URL correctly to get the correct sheet id. Here is my controller @auth.requires_membership('manager') def

[web2py] SQLFORM.smartgrid displaying links

2016-03-15 Thread Jeff Riley
Hello all, I have the following SQLFORM.smartgrid defined. form = SQLFORM.smartgrid(db.customer, linked_tables=['address', 'sheet', 'sheet_archive'], searchable= dict(customer=True, address=False, sheet=True), create=True, paginate=20,

[web2py] Re: Change Grid Add Button URL

2016-03-13 Thread Jeff Riley
On Sunday, March 13, 2016 at 7:04:56 PM UTC-5, Jeff Riley wrote: > > Hello everyone, > > I am so close to having my project finished. I need to be able to > override the URL in the SQLFORM.grid 'Add Record' button. I also have the > added problem in that I have linked

[web2py] Change Grid Add Button URL

2016-03-13 Thread Jeff Riley
Hello everyone, I am so close to having my project finished. I need to be able to override the URL in the SQLFORM.grid 'Add Record' button. I also have the added problem in that I have linked tables in my grid and would like to override their add buttons also. I have gone through almost all

[web2py] Re: SQLFORM.factory + Multiple Tables + Upload Field + GAE Blob Problem

2013-01-01 Thread Jeff Kusi
Is there any update on this bug? I am also experiencing it. I am using the workaround suggested by JungHyun Kim I am using 2.3.2. On Monday, August 20, 2012 12:49:14 PM UTC-4, JungHyun Kim wrote: Hello! I have a problem with upload field. I tried to upload a file through one form with

[web2py] REST API no matching pattern

2012-12-30 Thread Jeff Kusi
I followed the example for the REST API (multiple times actually). However I keep getting ***no matching pattern* every time. In fact it looks like the auto pattern is not generating because when I navigate to api/patterns.json, I see {content: auto} instead of the beautiful rendering of

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-26 Thread Jeff Kusi
I have a question about security (it may be unfounded), Isn't server-side interpretation more secure? Especially when business logic that doesn't pass as controller code is embedded into the view code. Brython would exposed such code to a front-end user. What are your thoughts? On Saturday,

[web2py] AttributeError: type object 'Field' has no attribute 'Method'

2012-12-24 Thread Jeff Kusi
I am attempting to use the virtual Methods of the dal but I am running into this issue. Here's my code db.define_table('Posts', db.Field('zipcode'), db.Field.Method('distance',lambda row, loc_zip=3:abs(row .zipcode-loc_zip)) ) But I am running

[web2py] Re: AttributeError: type object 'Field' has no attribute 'Method'

2012-12-24 Thread Jeff Kusi
, 2012 8:24:02 AM UTC-5, DenesL wrote: Hi Jeff, I believe you need web2py 2.3.1 or higher for that. On Monday, December 24, 2012 1:36:25 AM UTC-5, Jeff Kusi wrote: I am attempting to use the virtual Methods of the dal but I am running into this issue. Here's my code db.define_table

[web2py] Re: janrain logs in but stuck on login screen

2012-12-07 Thread Jeff Kusi
Could somebody address this issue please? Mine is also doing the same thing. here's how my config looks: --- from gluon.tools import Auth, Crud, Service, PluginManager, prettydate auth = Auth(db) from gluon.contrib.login_methods.rpx_account import RPXAccount

[web2py] Re: import error debian package

2011-06-09 Thread Jeff Elkner
We copy the math_quiz directory and all its contents from a source install of web2py, where it works, to the application directory of a user created by the debian package, where it gives the error above. Three of us have confirmed this on three separate installations. We are pretty confident

[web2py] Re: OpenERP like widgets

2011-03-25 Thread jeff
Some elements about what you are asking about : - The company behind OpenERP (Tiny) wrote the OpenERP client/web server with another (french) company and I guess that the reason they didn't do that on their own is that this is a huge work. - Both clients (the web server you want to rewrote and the

[web2py] Re: T-Shirts web2py

2011-01-29 Thread jeff
How about : Build th web! (AND GET A LIFE) On Jan 26, 3:24 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: How about get it done! or build the web! get the things done seems too long. I would buy some T-shirts. :-) On Jan 26, 2011, at 7:28 AM, Bruno Rocha wrote: I dont like

[web2py] Re: Running PHP on top of Web2Py

2011-01-08 Thread jeff
I had another idea which is a simplification on my first one : an action acting like a proxy on the php server. I just wrote a little POC that seems to work. Here are the few lines to put in a controller: import urllib def make_get_stuff(an_url): def get_stuff():

[web2py] Re: Running PHP on top of Web2Py

2010-12-30 Thread jeff
This is very interesting and could make me save (or waste) a lot of time : I have to move a website from PHP to web2py. The website is small and not really dynamic : the content is in tables and so but the site will be extended (in web2py) and can be see as a static website (but with ugly urls

[web2py] Re: Run Web2py as a Service? on Ubuntu Lucid?

2010-12-18 Thread jeff
When I had this kind of problem, I removed the --quiet and -- background in the /etc/init.d/web2py file (line 65 and 67 of your 3rd file). I was then able to get some error messages when doing /etc/init.d/ web2py start In my case, it helped me to find a stupid error I did. Good luck. On Dec

[web2py] Re: Display IS_IN_SET() label

2010-08-25 Thread jeff
Wuth SQLFORM.factory, the way to do that is to use the default arg the Field. On 25 août, 02:58, annet annet.verm...@gmail.com wrote: In a controller I defined a form: form=SQLFORM.factory(Field('bedrijf',requires=IS_IN_SET([2,3,4,5,6,7],labels=['Fitnesscentrum','Fysiofitnesscentrum','Personal

[web2py] Re: SOAP Access

2010-07-24 Thread Jeff S
So far, SUDS is working okay. I think I'll stay with it unless I really have problems with it. Thanks all!

[web2py] Re: book revision

2010-07-24 Thread Jeff S
For new users like me, downloadable packed applications would be great with each examples in the book. A few times, the examples were not showing correctly online and the cutpaste on IE browser is not providing the line feed and carriage return showing online. Although, the packed applications

[web2py] Re: Wiki in Chap 3 of Documentation

2010-07-23 Thread Jeff S
You can attach the w2p package if you want to, but I modified the def bg_find() as you did and now it's working as expected. Thank you, Jeff

[web2py] Wiki in Chap 3 of Documentation

2010-07-21 Thread Jeff S
Does someone have an uploadable version of the wiki application found in chapter 3? The search page does not work on my computer, but I can't understand why. My best guess would be a security feature in Internet Explorer, but I would like to exclude the possibility of an error in my code. The

  1   2   >