[web2py] Import module problem

2016-01-08 Thread Alessio Varalta
Hi i have created a module in module/download_pdf/pdf_user where i implemente the class userpdf the problem is that when is save the file i received this No module named ecc.. and i have a problem to import...I don't understand the problem -- Resources: - http://web2py.com -

Re: [web2py] Import module problem

2016-01-08 Thread Manuele Pesenti
Il 08/01/16 09:03, Alessio Varalta ha scritto: > Hi i have created a module in module/download_pdf/pdf_user where i > implemente the class userpdf the problem is that when is save the file > i received this No module named ecc.. and i have a problem to > import...I don't understand the problem

[web2py] Re: ipython notebook and web2py

2016-01-08 Thread pepper_bg
Sorry to resurrect an older thread, do let me know if I should create a new one. I had this perfectly working as described in this thread. Then I upgraded to Jupyter and things fell apart. The thing just doesn't have profiles, startup folders, none of the way iPython Notebook used to set

[web2py] Re: SQLFORM grid returns a error : query object has no attribute _tablename

2016-01-08 Thread Ron Chatterjee
Responding to this old post. query = db.Project.created_by == auth.user_id; if_author = lambda row: (row.created_by==auth.user_id) #grid = SQLFORM.smartgrid(db.Project, constraints={'db.Project':query},editable=if_author,deletable=if_author,details=True,create=False,csv=False)

[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-08 Thread José Eloy
Thanks Niphlod for your answer. I'm very newbie creating SSL certificates. How can create my first certificate using OpenSSL in PEM format? Thanks in advanced -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] smartgrid and grid using query

2016-01-08 Thread Ron Chatterjee
query = db.Project.created_by == auth.user_id; if_author = lambda row: (row.created_by==auth.user_id) #grid = SQLFORM.smartgrid(db.Project, constraints={'db.Project':query},editable=if_author,deletable=if_author,details=True,create=False,csv=False) #doesn't work grid =

Re: [web2py] Re: why you should upgrade to web2py 2.13.4

2016-01-08 Thread Niphlod
the admin app comes with web2py. ALL of the admin app, not just static files. On Friday, January 8, 2016 at 5:46:30 PM UTC+1, Richard wrote: > > There is another component in the issues... I am still under bootstrap 2 > and new welcome is under bootsrap3, so many issues would come from there >

[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-08 Thread Niphlod
private key openssl.exe genrsa 1024 >> pkey.key self-signed cert openssl.exe req -new -x509 -nodes -sha1 -days 1825 -key pkey.key > cert.cer or, all in one line openssl.exe req -x509 -newkey rsa:1024 -keyout pkey.key -out cert.cer -days 1825 On Friday, January 8, 2016 at 8:19:13 PM UTC+1,

[web2py] Re: SQLFORM grid returns a error : query object has no attribute _tablename

2016-01-08 Thread Anthony
Instead of {'db.Project': query}, it should be {'Project': query}. db.Project is a Table object, but "Project" is the table name. Anthony On Friday, January 8, 2016 at 2:12:17 PM UTC-5, Ron Chatterjee wrote: > > Responding to this old post. > > > query = db.Project.created_by ==

[web2py] Re: ipython notebook and web2py

2016-01-08 Thread Ron Chatterjee
This is great Anthony. For documenting code and standalone application. Nice! On Friday, January 8, 2016 at 1:56:26 PM UTC-5, pepper_bg wrote: > > Sorry to resurrect an older thread, do let me know if I should create a > new one. I had this perfectly working as described in this thread. Then I

[web2py] Re: smartgrid and grid using query

2016-01-08 Thread Anthony
Answer here: https://groups.google.com/d/msg/web2py/xwgJekXOyzY/78Jrj_3iEwAJ On Friday, January 8, 2016 at 2:18:47 PM UTC-5, Ron Chatterjee wrote: > >query = db.Project.created_by == auth.user_id; > > if_author = lambda row: (row.created_by==auth.user_id) > #grid =

[web2py] Re: Have a more complex organize of controller files

2016-01-08 Thread Alessio Varalta
Ok. I love web2py and i create a big managment program for a client. I think that the best point is that is simple. Only this last point for me is not so good because for example now I use the module and class but i have a controller with 10 functions and if i think in future to add new

[web2py] +Add Record in smartgrid

2016-01-08 Thread Ron Chatterjee
having create=True in smartgrid creates and button +Add Record which allows users to create new tables. Any parameter I can pass to smartgrid that will change the wording +Add Record to +Add Projects or +Add New Member...or whatever user specify? Ofc I can do it externally in my view

[web2py] Re: +Add Record in smartgrid

2016-01-08 Thread Anthony
Unfortunately, that's hard coded. You can do: grid = ... addspan = grid.element(_title='Add record to database') addspan[0] = 'Add Projects' addspan['_title'] = 'Add project to database' Anthony On Friday, January 8, 2016 at 5:17:17 PM UTC-5, Ron Chatterjee wrote: > > having create=True in

[web2py] web2py session disable

2016-01-08 Thread T.R.Rajkumar
I have in my routes.py in web2py folder the following. routes_in = ( ('/ts2', '/web_ts2_site/home/home'), ) routes_out = () Now I want to disable session for web_ts2_site app. If I add the below it gives error. How to go about that? routes_in = [('/web_ts2_site', '/web_ts2_site',

[web2py] Re: web2py session disable

2016-01-08 Thread Niphlod
umh. that route looks extremely weird. you need to rewrite something ( 'a' to 'b' ) if you want to use routes. On Friday, January 8, 2016 at 12:00:17 PM UTC+1, T.R.Rajkumar wrote: > > I have in my routes.py in web2py folder the following. > routes_in = ( > ('/ts2',

Re: [web2py] Re: server function not triggered in some cases

2016-01-08 Thread Vid Ogris
It is external process 2016-01-08 11:04 GMT+01:00 Niphlod : > you're missing the point. the "calculation" is running inside the web2py > environment or on an external process ? > > > On Thursday, January 7, 2016 at 8:58:04 PM UTC+1, Yebach wrote: >> >> The calculation runs on

[web2py] Re: ipython notebook and web2py

2016-01-08 Thread wwwgong
This integration is very useful, Thank you Anthony! On Friday, January 8, 2016 at 3:49:33 PM UTC-5, Ron Chatterjee wrote: > > This is great Anthony. For documenting code and standalone application. > Nice! > > On Friday, January 8, 2016 at 1:56:26 PM UTC-5, pepper_bg wrote: >> >> Sorry to

[web2py] Re: Have a more complex organize of controller files

2016-01-08 Thread Anthony
On Friday, January 8, 2016 at 6:58:11 PM UTC-5, Alessio Varalta wrote: > > Ok. I love web2py and i create a big managment program for a client. I > think that the best point is that is simple. Only this last point for me is > not so good because for example now I use the module and class but i

Re: [web2py] issue with change log in github

2016-01-08 Thread Niphlod
at last I'm not the only one to complain on web2py's messy release procedure. -- 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

[web2py] Re: Deploying in Windows server and SSL (no IIS)

2016-01-08 Thread Niphlod
if it's an internal app, don't use http . if you need https, you'd better explore a deployment behind iis. rocket can serve https, but you can't tune which algorithm it uses, and by default it uses a weak one. if you still want to go down that road (that IMHO is useless) you need to create a

[web2py] Re: server function not triggered in some cases

2016-01-08 Thread Niphlod
you're missing the point. the "calculation" is running inside the web2py environment or on an external process ? On Thursday, January 7, 2016 at 8:58:04 PM UTC+1, Yebach wrote: > > The calculation runs on the same server. When user starts a calculation a > function creates a txt file and puts

Re: [web2py] Import module problem

2016-01-08 Thread Alessio Varalta
Thanks..I have a big problem :) One day I programmer in Rails, another in web2py and another with Java and sometimes is diffcult :) On Friday, 8 January 2016 09:59:07 UTC+1, Manuele wrote: > > Il 08/01/16 09:03, Alessio Varalta ha scritto: > > Hi i have created a module in

Re: [web2py] issue with change log in github

2016-01-08 Thread Richard Vézina
:D Sometimes a man as to do what he has to do I guess... Richard On Fri, Jan 8, 2016 at 5:06 AM, Niphlod wrote: > at last I'm not the only one to complain on web2py's messy release > procedure. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book

[web2py] Re: generic.html issue

2016-01-08 Thread Annet
Hi Anthony, Thanks you for your reply and explaining how the genric views work. The mail was send from a local request, which explains the behaviour. In production this wouldn't have happened. Best regards, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: why you should upgrade to web2py 2.13.4

2016-01-08 Thread Richard Vézina
Hello, Just notice that db password shows up in clear text in traceback in 2.13.4 Richard On Thu, Jan 7, 2016 at 12:38 PM, Richard Vézina wrote: > I know... I have to migrate over SQLFORM.grid, but I need to customise > search feature to do so in order to not

Re: [web2py] Re: what is difference between ajax() and web2py_component() ?

2016-01-08 Thread Ariya Owam-aram
Thank you, Ariya เมื่อ วันศุกร์ที่ 8 มกราคม ค.ศ. 2016 10 นาฬิกา 46 นาที 04 วินาที UTC+7, Anthony เขียนว่า: > > .load is just a convention to help distinguish from a full HTML page, but > you can use any extension you want. In some cases, the same controller > might be used as both a component

Re: [web2py] Re: why you should upgrade to web2py 2.13.4

2016-01-08 Thread Richard Vézina
I think I found the issue... At least one part of it... Appadmin rely on layout.html, that for some reason (because mine is customize), it doesn't work anymore properly with my own customize version... Richard On Fri, Jan 8, 2016 at 10:25 AM, Richard Vézina wrote:

Re: [web2py] Re: why you should upgrade to web2py 2.13.4

2016-01-08 Thread Richard Vézina
There is another component in the issues... I am still under bootstrap 2 and new welcome is under bootsrap3, so many issues would come from there since I didn't copy all js and css files from welcome static/... And would need to put them aside for appadmin only... Richard On Fri, Jan 8, 2016 at

Re: [web2py] Re: why you should upgrade to web2py 2.13.4

2016-01-08 Thread Richard Vézina
I am investigating but Admin app seems buggy... It through errors into other app errors folder when we try to edit files of a give app, controllers, models files... Richard On Fri, Jan 8, 2016 at 10:07 AM, Richard Vézina wrote: > Hello, > > Just notice that db

Re: [web2py] Re: server function not triggered in some cases

2016-01-08 Thread Niphlod
so what's the issue with web2py if your external process sometimes drops dead ? who starts the external process ? On Friday, January 8, 2016 at 12:32:20 PM UTC+1, Yebach wrote: > > It is external process > > 2016-01-08 11:04 GMT+01:00 Niphlod : > >> you're missing the point.