[web2py] Re: [SOLVED] Problem sending email with new web2py version on Apache 2.4

2017-06-07 Thread Anthony
On Wednesday, June 7, 2017 at 11:47:22 AM UTC-4, e27...@gmail.com wrote: > > Actually, we also tried a fresh install of the latest Python 2.7.13 and > that version did not work either. > Interesting. I assume there must be some way to get the SSL module working on Windows. Anthony -- Resource

[web2py] Re: [SOLVED] Problem sending email with new web2py version on Apache 2.4

2017-06-07 Thread Anthony
On Wednesday, June 7, 2017 at 11:54:06 AM UTC-4, e27...@gmail.com wrote: > > Also, Apache does intercept requests to web2py apps and runs them through > an normally installed version of Python as it is written in WSCGI > configuration of Apache > Yes, that is as expected. That's why mail didn't

[web2py] Re: [SOLVED] Problem sending email with new web2py version on Apache 2.4

2017-06-07 Thread e27gis
Also, Apache does intercept requests to web2py apps and runs them through an normally installed version of Python as it is written in WSCGI configuration of Apache We tried to force Apache to run the Web2py embedded python 2.7.9 version, which actually work to display the apps, but for some rea

[web2py] Re: [SOLVED] Problem sending email with new web2py version on Apache 2.4

2017-06-07 Thread e27gis
Also, Apache does intercept requests to web2py apps and runs them through an normally installed version of Python as it is written in WSCGI configuration of Apache We tried to force Apache to run the Web2py embedded python 2.7.9 version, which actually work to display the apps, but for some rea

[web2py] Re: [SOLVED] Problem sending email with new web2py version on Apache 2.4

2017-06-07 Thread e27gis
Actually, we also tried a fresh install of the latest Python 2.7.13 and that version did not work either. Therefore, we went back to 2.7.9. Thierry -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.c

[web2py] Re: [SOLVED] Problem sending email with new web2py version on Apache 2.4

2017-06-07 Thread Anthony
On Wednesday, June 7, 2017 at 9:52:02 AM UTC-4, e27...@gmail.com wrote: > > I have finally solved my email sending problem on port 587 with APACHE > 2.4, > > It was due to the fact that the > > > *Web2py 2.14.6, Apache 2.4.23 and my Python 2.7.10 are just incompatible > when dealing to starttls

Re: [web2py] Re: [solved] unable to install application on Windows Server and IIS

2017-05-19 Thread Carlos
Never mind, it was my fault. I was trying to create a link, and never remember the right order: ln -s name folder or ln -s folder name , and this is how I created the broken link. I create links because I have the applications folders out of the web2py/applications to make it easier to manage

[web2py] Re: [solved] unable to install application on Windows Server and IIS

2017-05-19 Thread Dave S
On Friday, May 19, 2017 at 12:33:15 AM UTC-7, Carlos Kitu wrote: > > Just to share a finding, > > I was getting crazy with a simple installation of a new application on > Windows Server and Internet Information Server. Many applications in > production with no issues, I could upload any other a

[web2py] Re: [SOLVED] Re: How to disable the calendar widget?

2016-08-21 Thread Gael Princivalle
Hi Edward. I'm trying also to use Bootstrap 3 datepicker. http://eonasdan.github.io/bootstrap-datetimepicker/ I use it for datetime, the result in the input is like: 03/09/2016 14:00 The form returns me an error as it need also the seconds like: 03/09/2016 14:00:00 The seconds for this applicati

[web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2016-06-18 Thread Abhijeet Deshani
'Row' object has no attribute 'id' can solve by using for loop for your entries,mine was solved by that. -- 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: [Solved] "file inaccessible" on GAE for error handlers

2016-05-24 Thread Mathieu Clabaut
Oups, I posted the solution a bit too quickly. It indeeds work on the local dev_appserver, but it failed when being uploaded : Error 400: --- begin server output --- Could not compile RE "/(.+?)/static/_(\\d+\\.\\d+\\.\\d+)\\/(?!error_handlers)(.+)": invalid perl operator: (?! If anybody knows

[web2py] Re: [SOLVED] Custom form not accepted (formkey missing)

2016-05-09 Thread Anthony
Note, this is not limited to SQLFORM.factory -- same issue with a plain SQLFORM. Anthony On Friday, March 11, 2016 at 8:09:50 AM UTC-5, Carlos Kitu wrote: > > Hi guys, I don't show up here too often because all the issues I find use > to be solved here. Good job. > > Today I was going nuts with

[web2py] Re: [SOLVED] Custom form not accepted (formkey missing)

2016-05-08 Thread Carlos Kitu
You are welcome. Just a way of giving back so much help received from this group. Best regards. El lunes, 9 de mayo de 2016, 1:48:34 (UTC+2), Michael Beller escribió: > > Thanks Carlos! I just came across this and your post helped me. > > On Friday, March 11, 2016 at 5:09:50 AM UTC-8, Carlos Kit

[web2py] Re: [SOLVED] Custom form not accepted (formkey missing)

2016-05-08 Thread Michael Beller
Thanks Carlos! I just came across this and your post helped me. On Friday, March 11, 2016 at 5:09:50 AM UTC-8, Carlos Kitu wrote: > > Hi guys, I don't show up here too often because all the issues I find use > to be solved here. Good job. > > Today I was going nuts with one issue, and I would li

[web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2015-08-04 Thread Anthony Smith
yes a good find I had the same thing my $ in the field names cheers -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because yo

Re: [web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2015-03-04 Thread Tom Stratton
Oddly, neither of those terms come up when you search the book online ;-) I'm glad to have this forum to find the hidden gotchas! Tom On Tuesday, March 3, 2015 at 9:13:45 AM UTC-8, mcm wrote: > > You can use rname or entity quoting to support all of the names your > chosen db engines support.

Re: [web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2015-03-03 Thread Michele Comitini
You can use rname or entity quoting to support all of the names your chosen db engines support. Those are documented in the book. 2015-03-02 19:46 GMT+01:00 Tom Stratton : > Follow up to this (and a big Thank You for saving me a lot of digging!) > > I had field names with "$" in them which cause

[web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2015-03-03 Thread Tom Stratton
Follow up to this (and a big Thank You for saving me a lot of digging!) I had field names with "$" in them which caused the same error. I believe that the rules for field names may be the same as the rules for variable names. I'm guessing that trying to reference a.b.c instead of a.b[c] is caus

[web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2015-01-12 Thread Massimo Di Pierro
Thank you. We all appreciate it. we put lots of work in it. On Monday, 12 January 2015 13:00:13 UTC-6, Dave S wrote: > > > > On Saturday, January 10, 2015 at 5:20:39 AM UTC-8, Carlos Kitu wrote: >> >> Hi, just for other developers sake to save some time. >> > [...] > >> I'm quite a new user of we

[web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2015-01-12 Thread Cássio Botaro
Show us your model. -- 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-use

[web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2015-01-12 Thread Dave S
On Saturday, January 10, 2015 at 5:20:39 AM UTC-8, Carlos Kitu wrote: > > Hi, just for other developers sake to save some time. > [...] > I'm quite a new user of web2py, and as I'm dealing with the ins and outs > of web2py, I repeatedly skipped such an obvious question and was looking > for a

[web2py] Re: [solved] Re: Facebook conect and ExtendedLoginForm()

2013-04-01 Thread ctrlSoft
hi, i try to use web2social example, but got an error, { "error": { "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.", "type": "OAuthException", "code": 191 } } i setup, in facebook apps dashboard site url http://mysite.com/w

Re: [web2py] Re: SOLVED 'efficiently search by tag' with postgres

2012-10-01 Thread Cliff Kachinske
With Postgres and Psycopg2, make sure your subquery returns more than zero records. Postgres and Psycopg2 raise an exception when the belongs set is empty. On Monday, October 1, 2012 1:35:14 PM UTC-4, Richard wrote: > > Instead passing your tag, pass an inverse tag selection where you omit you

Re: [web2py] Re: SOLVED 'efficiently search by tag' with postgres

2012-10-01 Thread Richard Vézina
Instead passing your tag, pass an inverse tag selection where you omit you tag, then use not belongs : ~link.tag_id.belongs(subquery)... Where subquery will something like that : subquery=db(~db.TAGTABLE.TAGNAME.belongs((tag1,tag2,tagEtc))).select( db.TAGTABLE.TAGNAME.id) Richard On Sat, Sep 29

[web2py] Re: SOLVED 'efficiently search by tag' with postgres

2012-09-29 Thread andrej burja
hi another question: there is number of tags: n = len(tags) and there is rows = db(data.id==link.record_id)\ (link.tag_id.belongs(subquery)).select( data.ALL, orderby=data.id, groupby=data.id, having=data.id.count()==n) so, if i have data1 with tags (news, sport) and data2 wi

[web2py] Re: [Solved] Re: update() is creating a new item

2012-06-08 Thread Anthony
> > *Yes, because the html is already ready, and have other people involved in > the project. So we're not using {{=form}}. ;)* > You can still take advantage of web2py's form processing without limiting yourself to {{=form}}. Check out http://web2py.com/books/default/chapter/29/7#Custom-forms

[web2py] Re: SOLVED Re: Inline image generation with matplotlib

2012-05-02 Thread Larry Wapnitsky
More updated code: def barPlot(data): from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure import cStringIO print data stream = cStringIO.StringIO() cx = data.keys() cy = data.values() fig

[web2py] Re: SOLVED Re: Inline image generation with matplotlib

2012-05-02 Thread Larry Wapnitsky
I'm having difficulty with this. Here is my code: def barPlot(data): from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure import cStringIO stream = cStringIO.StringIO() cx = data.keys() cy = data.values

[web2py] Re: SOLVED Re: Inline image generation with matplotlib

2012-01-16 Thread Massimo Di Pierro
def image():     return myimage() myimage returns the binary data of the image. so calling image would be the same as calling myimage. The former never calls the view. Massimo On Jan 16, 5:44 am, andrej burja wrote: > this works > controller: > def image(): >     return dict(a=IMG(_src=URL('myi

Re: [web2py] Re: [solved] Doubt about multi-tenancy

2011-12-01 Thread Vinicius Assef
Thanks, Anthony. Now, I understand better web2py multi-tenancy. On Thu, Dec 1, 2011 at 2:05 PM, Anthony wrote: > On Thursday, December 1, 2011 10:57:57 AM UTC-5, viniciusban wrote: >> >> I found the solution: >> >> http://groups.google.com/group/web2py/browse_thread/thread/38a07b7e00b789ac/6ba

[web2py] Re: [solved] Doubt about multi-tenancy

2011-12-01 Thread Anthony
On Thursday, December 1, 2011 10:57:57 AM UTC-5, viniciusban wrote: > > I found the solution: > > http://groups.google.com/group/web2py/browse_thread/thread/38a07b7e00b789ac/6bae4627c7587ddd?lnk=gst&q=tenant#6bae4627c7587ddd In fact, I don't think you specifically have to use 'ignore_tenant' -- I

Re: [web2py] Re: SOLVED join and sum - display in view

2011-10-21 Thread Anthony
On Friday, October 21, 2011 6:03:53 AM UTC-4, Martin.Mulone wrote: > > I think is row['sum'] The actual dict key is 'SUM(t_payement.f_value)', so 'sum' (in quotes) won't work in this case. It turns out that str(sum) equals 'SUM(t_payement.f_value)', though, so you can do row[str(sum)]. However,

[web2py] Re: SOLVED join and sum - display in view

2011-10-21 Thread Anthony
On Friday, October 21, 2011 5:49:50 AM UTC-4, andrej burja wrote: > > with > row[sum] > it doesn't work > ('') > > "Actually, the above will only work if the controller returns 'sum' in the > dictionary -- otherwise it will be undefined in the view." > what shoul i change in the controller? >

Re: [web2py] Re: SOLVED join and sum - display in view

2011-10-21 Thread Martín Mulone
I think is row['sum'] 2011/10/21 andrej burja > with > row[sum] > it doesn't work > ('') > > "Actually, the above will only work if the controller returns 'sum' in the > dictionary -- otherwise it will be undefined in the view." > what shoul i change in the controller? > -- http://martin.te

[web2py] Re: SOLVED join and sum - display in view

2011-10-21 Thread andrej burja
with row[sum] it doesn't work ('') "Actually, the above will only work if the controller returns 'sum' in the dictionary -- otherwise it will be undefined in the view." what shoul i change in the controller?

[web2py] Re: SOLVED join and sum - display in view

2011-10-20 Thread Massimo Di Pierro
Please use Anthony's advice: row[sum] Do not use _extra because it is deprecated and do not use row['SUM(t_payement.f_value)'] because the syntax may not work with every database engine. On Oct 20, 12:17 pm, andrej burja wrote: > this one works > > TD(row['SUM(t_payement.f_value)']) > > and

[web2py] Re: SOLVED

2011-02-23 Thread Joseph.Piron
Oups wrong place, it goes with http://groups.google.com/group/web2py/browse_thread/thread/e7bc06a9efeb76e4 On Feb 23, 11:33 am, "Joseph.Piron" wrote: > Indeed, it's really.. something. > > Let's explain with an example: > If I have an application called Alfred (mind the 'A'), and I put > 'alfred

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
Alright now I see a little better what is going. Last night I wasn't able to check what the jqgrid_editable_plugin really was. To my surprise it is a very nice web2py plugin. My appologise for pushing the jqgrid_plugin from web2py/plugins. Although a nice plugin this is a very feature rich ready pl

Re: [web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
Can you explain a liitle more? You are actually seeing two forms in the browser? If I understand you correctly upon first loading the page you get the grid and a form with default id. When you select a row in the grid the default form is not reloaded with the new id but a second form appe

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
You helped me a lot, man! i´ve tried like you suggested, i only keeped the LOAD, but it´s the same... Page is loading the Grid, underneath the Grid rises "loading" and then a new layer pops up with with the form in the default Template (Its showed twice). I´ve checked: www.web2py.com/AlterEgo/def

Re: [web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
web2py LOAD function will create generate id="target">Loading... and fills your component. I'm sorry I can't test it right now but it seems that by adding the in your view and including the LOAD you are creating two form. Maybe try remove your div and only keep the LOAD. {{extend 'layout.htm

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
I meant: The Grid is loaded with the default template and then a second layer covers it with the form and the default Template(loaded twice) ;-) On 20 Mai, 16:55, Jason Lotz wrote: > Are you using the web2py jqgrid_plugin? > > http://web2py.com/plugins/default/jqgrid > > On 05/20/2010 11:53 PM,

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
Many thanks, it go´s in the right direction now. I am using the http://app.ebansoftware.net/editable_jqgrid/default/show_example , but it is quite similar. Now the is loaded is loaded with the default template and then a second layer covers it with the form and the default Template(loaded twice)

Re: [web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
Are you using the web2py jqgrid_plugin? http://web2py.com/plugins/default/jqgrid On 05/20/2010 11:53 PM, AsmanCom wrote: can this be caused by the function, which set in /static/ plugin_editable_jqgrid/plugin_editable_jqgrid.js ?: onSelectRow: function(id){ if(id&& lastSel!=''&&

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
can this be caused by the function, which set in /static/ plugin_editable_jqgrid/plugin_editable_jqgrid.js ?: onSelectRow: function(id){ if(id && lastSel!='' && id!==lastSel){ jQuery(grid_name).restoreRow(lastSel); } lastSel=id; jQuery(grid_name).editRow(id, true, ''

Re: [web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
What do you mean the form doesn't show? Do you have a DIV for the form to load in your view? {{=LOAD('default','form',args=1,ajax=True,target='my_form')}} Does this not reload as you select a row from from the grid? On 05/20/2010 11:40 PM, AsmanCom wrote: I tried like that: View: {{=jqgr

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
I tried like that: View: {{=jqgrid_table}} jQuery(document).ready(function(){ jQuery("#grid_id").jqGrid({ onSelectRow: function(postdata) {web2py_ajax_page('get','/myapp/ default/form/'+(postdata),null,'my_form');}}); Controller: def jqgrid_table_test(): return dict(jqgrid_table=plug

Re: [web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
Try {{=jqgrid_table}} jQuery(document).ready(function(){ jQuery("#grid_id").jqGrid({ onSelectRow: function(postdata) { web2py_ajax_page('get','/myapp/default/form/'+(postdata),null,'my_form');}});




On 05/20/2010 10:45 PM, AsmanCom wrote:

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
Thanks for your effort, but it gives an empty page.. I will use two or more Grids at least one of them must keep the "editable" behaveure. But in this case it should work like your approach, controlling the form. May i missed something..? Could you tell me how to set up the form? should the view

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread Jason Lotz
You could try passing SCRIPT from the controller. ## View {{extend 'layout.html'}} This is the default/test.html template {{=plugin_editable_jqgrid(db.jqgrid_table,grid_name='jqgrid_ table',db_name='db')}} {{=script}} ## Controller def jqgrid_table_test(): script = """jQuery(document).ready(

[web2py] Re: [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-20 Thread AsmanCom
Could you help me setting this up too? This is the view: {{extend 'layout.html'}} This is the default/test.html template {{=jqgrid_table}} jQuery("#grid_id").jqGrid({ onSelectRow: function(postdata) { web2py_ajax_page('get','/myapp/default/form/'+ (postdata),null,'my_form'); }