Re: [web2py] Re: Web2py application running very slow on rocket server in production mode

2015-07-11 Thread Ramashish Gaurav
Hello Dave, Problem is now solved. A security certificate for the application had to be added in SELinux. Thanks for your interest. Regards, Ramashish On Friday, July 10, 2015 at 11:17:11 PM UTC+5:30, Dave S wrote: > > > > On Friday, July 10, 2015 at 10:34:15 AM UTC-7, Dave S wrote: >> >> >> >

Re: [web2py] Re: Web2py application running very slow on rocket server in production mode

2015-07-11 Thread Ramashish Gaurav
Hello Richard ! The OS is RHEL 4.0 . And web2py version was 2.11.x ... The latest one. However theproblem was figured out by one of my mentors. It was because the application was blocked in SELinux. As he said it is necessary to add a security certificate for the application in SELinux. Howev

Re: [web2py] Re: Video tutorial example download

2015-07-11 Thread joseph simpson
Check out Github.. I remember a repository with much of the example code from the videos.. It has been a while since I looked.. If you can not find the code on Github, write back and I will take some time to look.. Have fun, Joe On Fri, Jul 10, 2015 at 10:44 AM, Dan Hett wrote: > Anyone els

Re: [web2py] Re: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1145: ordinal not in range(128)

2015-07-11 Thread Ben Lawrence
Or just sudo apt-get install python-psycopg2 as Massimo said, web2py will use psycopg2 before looking for pg8000 :-)great!! On Monday, June 22, 2015 at 10:13:15 PM UTC-7, Paolo Valleri wrote: > > Hi Ben, the latest web2py download doesn't include the fix yet. You have > to either manuall

Re: [web2py] Layout.html — Ajax & Direct URL

2015-07-11 Thread Anthony
On Saturday, July 11, 2015 at 5:10:32 PM UTC-4, PRACHI VAKHARIA wrote: > > > > > Dear Anthony, > > That was not only insightful and helpful, but it also solved my problem. I > used the third solution recommended, since it keeps the view files intact > and independent. > *Thank you very much.* >

[web2py] Re: "distinct" based on more than 1 field

2015-07-11 Thread pang
El domingo, 28 de junio de 2015, 10:06:53 (UTC+2), Davy Jacops escribió: > > Villas's solution works indeed, and I can build an SQLTABLE based on the > rows now. > Thank you. (orderby is not required) > > Consequence is that SQLFORM.grid or smart grid cannot be used in this case? > (since there i

[web2py] Re: Python DocX , paragraph formating

2015-07-11 Thread Anthony
For questions that are not specific to web2py, you might have more success on Stack Overflow or a forum dedicated to the specific library/topic of your question. In this case, it appears that replacing the text of an entire paragraph removes the Run-level formatting (though not the paragraph-le

[web2py] Re: Linux, connect to MSSQL 2012, LD_library_path (venv)

2015-07-11 Thread achristoffersen
I tried to add pypyodbc.conf "/etc/ld.so.conf.d/pypyodbc.conf" sudo vim /etc/ld.so.conf.d/pypyodbc.conf > I added this: /home/andreas/web2py_project/venv/local/lib/python2.7/site-packages/ > and ran sduo ldconfig > env | grep -i ld_library but still no cigar: "env | grep -i ld_library" r

[web2py] Re: Really Weird DB Bug?

2015-07-11 Thread Robert Porter
Ok, here's a better comma-delimited separator that looks for trailing and following spaces: submitted_tags = [x.strip() for x in str(XML(request.vars['submitted_tags'], sanitize=True)).lower().split(',')] On Thursday, 9 July 2015 16:32:28 UTC-7, Robert Porter wrote: > > Program is acting like t

[web2py] Re: Video tutorial example download

2015-07-11 Thread Dan Hett
Anyone else? Massimo? On Thursday, 9 July 2015 18:32:28 UTC-5, Dan Hett wrote: > > Maybe I am missing this somewhere, but is there a download link for the > code examples from the Web2py video courses created in 2013 that are on the > Web2py website? > > -- Resources: - http://web2py.com - ht

[web2py] Re: How to implement Gmail Authentication

2015-07-11 Thread Do-Yang Kim
Hi. I'm a newbie trying web2py. I get this error when I try above code *Cannot import module 'applications.admin.modules.oauth2'* I'm assuming that I don't have oauth2 library set up in the module section. How can I fix this? On Thursday, April 9, 2015 at 7:30:46 AM UTC-5, piero crisci wrote

Re: [web2py] Re: prettydate ago is not translated

2015-07-11 Thread Maxim Hrustalev
To translate prettydate output you have to pass translation function as argument: prettydate(my_date, T=T). On Wednesday, July 8, 2015 at 12:40:55 AM UTC+3, icodk wrote: > > Thanks for your help. > My editor (web2py web interface, Notepad++,Visual Studio) should be able > to find 'ago' in any s

[web2py] Re: redirecting app to another server

2015-07-11 Thread ari
simple. in case of emergency, i want to reuse the old app. and for each function inside each controller, to make at the begining an redirect(URL()) it's like solving the problem by creating another.the simple way is to redirect the app with an simple setting..and so on vineri, 10 iulie 2015, 0

[web2py] Python DocX , paragraph formating

2015-07-11 Thread M S Pangtey
Hi, I am facing problem in formatting Docx file using python docx library. I am able to replace some paragraph text but not able to maintain text font and font weight. Below is the pseudo code for this from docx import Document # read doc file doc = Document(file name) # now I need to replace

[web2py] Linux, connect to MSSQL 2012, LD_library_path (venv)

2015-07-11 Thread achristoffersen
Trying to connect to mssql In models/px.py I have: import pypyodbc > px = DAL('mssql4://username:password@url,portnumber/databasename') > In controlers/default.py I have return px.executesql('SELECT top 1 * FROM table;') > I get this ticket: > 'ODBC Library is not found. Is > LD_LIBRARY_PAT