[web2py] Re: Can't access .pem file from web2py controller?

2015-03-24 Thread LoveWeb2py
Please disregard. I was opening the file instead of directing it to the path. Complete user error here *embarrassed face* On Tuesday, March 24, 2015 at 7:18:34 AM UTC-4, LoveWeb2py wrote: Hello, I'm trying to run a quick check on user access with our company server. If I run the script

[web2py] Re: scheduler_run records desapeared

2015-03-24 Thread Manuele Pesenti
Il 24/03/15 12:12, Manuele Pesenti ha scritto: How is it possible? bingo! Beware that if the task has no return values, it is removed from the scheduler_run table as soon as it is finished.[cit. 1] so I have to investigate why the function executed in my task is not returning the expected

[web2py] Re: WEB2PY Certificate ?

2015-03-24 Thread Ron Chatterjee
Massimo, On that note. I have seen some of that lecture and it seems very undergrad level. Is there a grad level course that you can offer where we can go through each API (or the most important one). Lets create few stand alone code and go line by line to understand how the framework is made?

Re: [web2py] Re: format='%(name)s' )

2015-03-24 Thread Richard Vézina
You may replace Field('product', db.product), by Field('product', 'reference product'), It may help and it is a better practice. Richard On Mon, Mar 23, 2015 at 9:16 AM, KPlusPlus khalid.s.almur...@gmail.com wrote: Thanks for noticing that , I've fixed it , but the problem still persist and

[web2py] Can't access .pem file from web2py controller?

2015-03-24 Thread LoveWeb2py
Hello, I'm trying to run a quick check on user access with our company server. If I run the script normally I can make the query fine, but when I use web2py I get an Errno 336265218 _ssl.c: 341 SSL routines:SSL_CTX_use_PrivateKey_file:system lib mypemfile = '/etc/mypath/to/key.pem' In

[web2py] scheduler_run records desapeared

2015-03-24 Thread Manuele Pesenti
Hi! I have to debug a strange situation in witch it seams the scheduler worker remove the scheduler_run record just after it completes successfully the task. So I got a scheduler_task record with a status equal to COMPLETED and no scheduler_run record assigned to it. How is it possible? Thank you

[web2py] Re: returning data to web page div (Partly Solved)

2015-03-24 Thread Garry Smith
Thanks for all your replies, will take a look at this and see if it will work for what I'm trying to do. Thanks again On Tuesday, 24 March 2015 01:59:09 UTC, Dave S wrote: On Monday, March 23, 2015 at 6:44:15 PM UTC-7, Dave S wrote: [...] Looking again at URL:

[web2py] Re: pyquery, pyjs and web2py

2015-03-24 Thread Derek
http://www.rapydscript.com/ This one seems to be pretty good too. On Tuesday, March 24, 2015 at 12:46:21 AM UTC-7, Massimo Di Pierro wrote: This is the last one I have seen: http://apppyjs.appspot.com/ Anyway, to echo Niphlod. Programming with these systems is a nightmare because you get

[web2py] Re: Uncaught InvalidStateError: Failed to set the 'value' property on 'HTMLInputElement': This input ele

2015-03-24 Thread weheh
Bump with edits. -- 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] Re: last minute web2py hackaton

2015-03-24 Thread Derek
I did find a new bug (well, not really a bug but a documentation error that didn't reflect the code in one of the examples) and fixed it in a pull request. Anyway, should have at least a week's notice if you want to pull people into a competition. On Friday, March 20, 2015 at 8:41:16 AM

[web2py] Re: Replacing template engine

2015-03-24 Thread Ron Chatterjee
Web2py template is the best you have out there. you will be silly to look for something else. My opinion. On Monday, March 23, 2015 at 11:05:19 PM UTC-4, Massimo Di Pierro wrote: yes. the sandbox prevents the code in templates from accessing the file system. What I am saying is that it is

[web2py] Re: SQLFORM.factory adding dynamic form

2015-03-24 Thread Ramkrishan Bhatt
I am looking from templating genrated form through SQLFORM.factory is possible that we can clone of address table Multiple time like one person can have multiple address using add address button. Than submit all together with bulk insert. -- Resources: - http://web2py.com -

[web2py] Best method for storing images from base64 data?

2015-03-24 Thread Donald Salisbury
Hi there, I have an image sharing app, and am looking for advice on how to implement our image storage in fast (enough) and scalable way that will allow for client-side editing. I want to reduce large images uploaded client side before sending them to the server. Currently our app

[web2py] Git Clone : Seems bad first page

2015-03-24 Thread Vikash Sharma
Hi , I have cloned src today from git and found this page. Is this new design or commit by mistake? https://lh6.googleusercontent.com/-tQJEK-ma7I8/VRGuc3pRIFI/SYY/5-CUnfMS4S8/s1600/web2py%2Badmin%2Bpage.PNG -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)

[web2py] Re: WEB2PY Certificate ?

2015-03-24 Thread KPlusPlus
Massimo should Think of Starting a software company/organization :D What if we could have Several Levels of Certificate ? of course it will push web2py forward On Tuesday, March 24, 2015 at 7:19:23 PM UTC+3, Massimo Di Pierro wrote: No. Perhaps there should be. But not yet. On Tuesday, 24

[web2py] [Web2py] redirect doesn't work with 'tab' as var name

2015-03-24 Thread Phillip Parente
In controller, redirect is not working with 'tab' as var name: redirect(URL('mycontroller', 'index', vars={'tab':'DF03'})) is not working redirect(URL('mycontroller', 'index', vars={'tab2':'DF03'})) works fine Is that a bug? Phillip -- Resources: - http://web2py.com -

[web2py] define_table argument is not a Field or Table. (Table Subclass)

2015-03-24 Thread Val K
Hi! I try to define subclass of Table: model.py: - db=DAL('sqlite://...') from dal.objects import Table , Field class my_tab(Table): def __init__(self, db, tablename, *fields, **args): fields=( Field('num', 'integer'),

[web2py] Re: WEB2PY Certificate ?

2015-03-24 Thread Massimo Di Pierro
Looks like you did. :-O Anyway, the point of a university is that we do not usually teach courses about specific technologies. We use specific technologies to serve more abstract purposes. For example I teach CSC438 which is about the internal design of web frameworks and I use web2py as one

Re: [web2py] Git Clone : Seems bad first page

2015-03-24 Thread Kiran Subbaraman
That's the new welcome app, with bootstrap3 support. Please do suggest / contribute improvements, as you see them. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Wed, 25-03-2015 12:06 AM, Vikash Sharma wrote: Hi , I have cloned src today

[web2py] Re: last minute web2py hackaton

2015-03-24 Thread Massimo Di Pierro
I agree. Next time we will plan better On Tuesday, 24 March 2015 18:49:42 UTC-5, Derek wrote: I did find a new bug (well, not really a bug but a documentation error that didn't reflect the code in one of the examples) and fixed it in a pull request. Anyway, should have at least a week's

Re: [web2py] Re: Ractive example

2015-03-24 Thread Massimo Di Pierro
I think for starters trying integrate a different layout and writing instructions about how to do that would help a lot. On Tuesday, 24 March 2015 15:37:53 UTC-5, Richard wrote: Would help too! On Tue, Mar 24, 2015 at 4:31 PM, Tim Richardson t...@growthpath.com.au wrote: this seems like

[web2py] Re: [Web2py] redirect doesn't work with 'tab' as var name

2015-03-24 Thread Massimo Di Pierro
Definitively not a bug in web2py. Add a print request.env.path_info in your app to see what is really going on. On Tuesday, 24 March 2015 22:14:54 UTC-5, Phillip Parente wrote: In controller, redirect is not working with 'tab' as var name: redirect(URL('mycontroller', 'index',

[web2py] Re: define_table argument is not a Field or Table. (Table Subclass)

2015-03-24 Thread Massimo Di Pierro
Try import DAL and Field from gluon instead of dal.objects On Tuesday, 24 March 2015 22:14:49 UTC-5, Val K wrote: Hi! I try to define subclass of Table: model.py: - db=DAL('sqlite://...') from dal.objects import Table , Field class my_tab(Table):

[web2py] Re: Git Clone : Seems bad first page

2015-03-24 Thread Massimo Di Pierro
it should not look like that. Either a css is missing or your browser is caching some old style file (most likely). Try force a reload and check the JS console for errors. On Tuesday, 24 March 2015 22:14:49 UTC-5, Vikash Sharma wrote: Hi , I have cloned src today from git and found this

[web2py] Re: get controller instance at runtime

2015-03-24 Thread Michel Krav
No, you wouldn't do getattr(request.controller, index). index is the value of request.controller, not an attribute. So, you literally just use request.controller, all by itself -- that stores the string name of the current controller. Anthony On Tue, Mar 24, 2015 at 6:37 AM, Michel Krav

[web2py] Re: WEB2PY Certificate ?

2015-03-24 Thread Ron Chatterjee
We should clone you saying!? lol. jk:-). Would be nice to have an advance course like that. Someone should write to the dean and sign me up. On Tuesday, March 24, 2015 at 12:19:23 PM UTC-4, Massimo Di Pierro wrote: No. Perhaps there should be. But not yet. On Tuesday, 24 March 2015

[web2py] Re: Table Migration on GAE

2015-03-24 Thread Massimo Di Pierro
I spoke too soon. Please wait I post a new version for testers. I will email this list. Then try: db = DAL('google:sql://[app-name]:[db-name]/[table-name]') ... auth.settings.extra_fields['auth_user'] = [Field('username_fb', length=128, default=, unique=True, writable=False, readable=False)]

[web2py] Re: Table Migration on GAE

2015-03-24 Thread Sébastien Loix
Thank you for the answer. Could you explain a bit more the there are no migrations on GAE, is it only for the actual version and the fixed version will solve it? I realised that I am using the 2.10.0-beta version of web2py. The one downloaded from the main download page. Thanks for the help El

[web2py] redirect with var name 'tab' doesn't work

2015-03-24 Thread Phillip Parente
Hello Guys, redirect with var name 'tab' doesn't work: redirect(URL('mycontroller', 'index', vars={'tab':'DF03'})) Is that a bug? redirect(URL('mycontroller', 'index', vars={'tab_with_another_string':'DF03'})) works fine! Thanks, -- Resources: - http://web2py.com -

[web2py] Re: Page hangs when calling subprocess.check_call from within web2py

2015-03-24 Thread Toby
Good idea to look through uwsgi.log. The problem was harakiri on a process after 60 seconds. There was an entry in the log along the lines of HARAKIRI ON WORKER 4 (pid: 2557, try: 1). To fix, I increased harakiri to 120 in /etc/uwsgi/web2py.xml. That created a new problem which showed up in

[web2py] Re: WEB2PY Certificate ?

2015-03-24 Thread Massimo Di Pierro
No. Perhaps there should be. But not yet. On Tuesday, 24 March 2015 08:40:40 UTC-5, Ron Chatterjee wrote: Massimo, On that note. I have seen some of that lecture and it seems very undergrad level. Is there a grad level course that you can offer where we can go through each API (or the

[web2py] Re: redirect with var name 'tab' doesn't work

2015-03-24 Thread Massimo Di Pierro
I am pretty sure the redirect works. Something bad happens your action when you have request.vars.tag. Cannot say without looking at the code. On Tuesday, 24 March 2015 11:18:06 UTC-5, Phillip Parente wrote: Hello Guys, redirect with var name 'tab' doesn't work:

[web2py] Re: scheduler_run records desapeared

2015-03-24 Thread Niphlod
def myfunc(): do_something doesn't return anything def myfunc(): do_something return 1 returns something On Tuesday, March 24, 2015 at 2:44:26 PM UTC+1, Manuele wrote: Il 24/03/15 12:12, Manuele Pesenti ha scritto: How is it possible? bingo! Beware that if the task

[web2py] Re: Page hangs when calling subprocess.check_call from within web2py

2015-03-24 Thread Toby
On Tuesday, March 24, 2015 at 8:07:45 PM UTC, Niphlod wrote: seems the right job for the scheduler :-P Yeah, maybe you're right. Basically my program generates a large image for a user which takes about 1 min. I want to show please wait on the web-page while it's generating, then show

Re: [web2py] Re: Ractive example

2015-03-24 Thread Richard Vézina
Would help too! On Tue, Mar 24, 2015 at 4:31 PM, Tim Richardson t...@growthpath.com.au wrote: this seems like a true path to the future for web2py and I will help, after I understand what you are doing ... On Tuesday, 24 March 2015 18:41:56 UTC+11, Massimo Di Pierro wrote: W3 stands for

[web2py] Re: Page hangs when calling subprocess.check_call from within web2py

2015-03-24 Thread Niphlod
On Tuesday, March 24, 2015 at 9:34:41 PM UTC+1, Toby wrote: On Tuesday, March 24, 2015 at 8:07:45 PM UTC, Niphlod wrote: seems the right job for the scheduler :-P Yeah, maybe you're right. Basically my program generates a large image for a user which takes about 1 min. I want to

[web2py] Validator for field X or Y but not both

2015-03-24 Thread Phil Hughes
I have a record with two reference links -- to two different tables. The validation I want is that one and only one of the two references are filled in. Cleary I can just brute force this when processing the form but I wonder if I am missing a way to do this in the model. -- Resources: -

[web2py] Re: Page hangs when calling subprocess.check_call from within web2py

2015-03-24 Thread Niphlod
seems the right job for the scheduler :-P On Tuesday, March 24, 2015 at 6:10:15 PM UTC+1, Toby wrote: Good idea to look through uwsgi.log. The problem was harakiri on a process after 60 seconds. There was an entry in the log along the lines of HARAKIRI ON WORKER 4 (pid: 2557, try: 1). To

[web2py] Re: Ractive example

2015-03-24 Thread Tim Richardson
this seems like a true path to the future for web2py and I will help, after I understand what you are doing ... On Tuesday, 24 March 2015 18:41:56 UTC+11, Massimo Di Pierro wrote: W3 stands for my lack of creativity in coming up with good names. ;-) Eventually it will be renamed. It is not

[web2py] Re: Table Migration on GAE

2015-03-24 Thread Massimo Di Pierro
1) there are no migrations on GAE, web2py will still create .table files but they serve no purpose. 2) GAE support is broken in 2.9.12. It works in trunk pydal and we will released a fixed version this week On Monday, 23 March 2015 21:53:04 UTC-5, Sébastien Loix wrote: Hi, I am having

[web2py] Re: WEB2PY Certificate ?

2015-03-24 Thread Massimo Di Pierro
Yes. http://www.cdm.depaul.edu/ipd/Programs/Pages/WebDevelopmentwithPython.aspx I teach it and it is basically a course on web2py. Problem is, I am too busy to teach it and I have not been teaching it in one year. Anyway, past lectures are all online. I am considering automating the

[web2py] Re: Ractive example

2015-03-24 Thread Massimo Di Pierro
W3 stands for my lack of creativity in coming up with good names. ;-) Eventually it will be renamed. It is not finished but at a very good stage. The nice part if the fact that the view uses a combination of web2py template {% ... %} and ractive {{ ... }}, form styles are defined clients-side,

[web2py] Re: pyquery, pyjs and web2py

2015-03-24 Thread Niphlod
every bit of code you need to run on the client side should be in javascript. you can code everything else in python. BTW: that's really not the direction web development is taking though :-P On Tuesday, March 24, 2015 at 2:32:25 AM UTC+1, Ron Chatterjee wrote: I don;t know much javascript

[web2py] Unittest GET request

2015-03-24 Thread James O' Driscoll
All, I am trying to unittest a GET request, I have had no problem testing all my other functions which were POST requests. I have a simple function, that takes two vars; a file name and a path and then downloads the file. def file_downloader(): if request.vars: filename =

[web2py] Re: pyquery, pyjs and web2py

2015-03-24 Thread Massimo Di Pierro
This is the last one I have seen: http://apppyjs.appspot.com/ Anyway, to echo Niphlod. Programming with these systems is a nightmare because you get errors in the compiled JS and you still need to understand it. JS is a functional language and not a procedural one. Using Python or Ruby or other