Re: [web2py] Re: Folder inside controller dosen't work.

2012-02-11 Thread Phyo Arkar
Sorry for my bad english and rushed post coz i am in car back to home. What i want to say is i now have 20 JSONRPC methods and going to grow to 100 or more when project is done. ,I want to separate them into each controller file , less than 20 each. On Sat, Feb 11, 2012 at 12:02 AM, Jonathan

[web2py] How to change menu colors?

2012-02-11 Thread Edward Shave
Ok, I give in Is there any easy way to change menu colors in the welcome app? If not then what is the recommended hard way? (smile)

[web2py] cPickle instead of return dict(D=D) in serverside ajax function: accessing it in View

2012-02-11 Thread Vineet
From View, I am calling server side controller function via web2py's ajax function with ':eval' So far, so good. Further I need to return a dict from this ajax controller (in addition to return js), Then access this dict in View process it. Finally, return dict to another controller for server

Re: [web2py] Re: Folder inside controller dosen't work.

2012-02-11 Thread Phyo Arkar
On Sat, Feb 11, 2012 at 2:07 AM, howesc how...@umich.edu wrote: one option working with the framework as is: - make a controller called jsonrpc with 1 method - use the first arg from the request.args to select the module to call - create a directory in modules and put all your calls in

Re: [web2py] Support for PyPy

2012-02-11 Thread Phyo Arkar
has anyone tested with Pypy 1.8 ? Seems good this time. Previous tests fails web2py , On Fri, Feb 10, 2012 at 10:05 PM, Sathvik Ponangi psath...@gmail.comwrote: Is there some way to run Web2Py on PyPy http://pypy.org?

Re: [web2py] Scheduler json string for vars parm

2012-02-11 Thread Martín Mulone
I confirm this, the book is wrong, someone can change it?. http://web2py.com/books/default/chapter/29/4#Scheduler-(experimental) 2012/2/6 Jim Steil j...@qlf.com That did it. Thanks! How do we go about getting the book updated? Page 195 is showing the syntax I was using. -Jim On

[web2py] Image from Video

2012-02-11 Thread Web2Py Freak
Dear ALL, How Can i Make Plugin Wiki Player Have an Image From the video Before its played ? Best Regards ,

[web2py] Re: How to change menu colors?

2012-02-11 Thread Web2Py Freak
Just Check the Css 'superfish.css' form the css folder in web2py/ applications/your application/static /css .. and Edit the colors Its easy :) Good luck Best Regards, Hassan ALnatour.

[web2py] DAL: select column in (a,b)

2012-02-11 Thread Ed Greenberg
I feel like I should know this. I've searched, but Google doesn't really allow for the word in as it's too short and common. I'd like to do select column in (a,b) in the dal. Any idea how? Thanks, Ed

Re: [web2py] Image from Video

2012-02-11 Thread Phyo Arkar
ffmpeg On Sat, Feb 11, 2012 at 5:42 PM, Web2Py Freak halna...@gardeniatelco.comwrote: Dear ALL, How Can i Make Plugin Wiki Player Have an Image From the video Before its played ? Best Regards ,

Re: [web2py] DAL: select column in (a,b)

2012-02-11 Thread Marin Pranjić
http://web2py.com/books/default/chapter/29/6#belongs Marin On Sat, Feb 11, 2012 at 12:34 PM, Ed Greenberg greenberg...@gmail.comwrote: I feel like I should know this. I've searched, but Google doesn't really allow for the word in as it's too short and common. I'd like to do select column

[web2py] Re: Image from Video

2012-02-11 Thread Hassan Alnatour
Whats That ? How Do i use it

Re: [web2py] Re: Folder inside controller dosen't work.

2012-02-11 Thread LightDot
Always when I deal with big projects, the first thing I do is organize a strict file structure. Not just web2py, I do similar things with photoshop layers, files on my computer, etc. It just makes life that much easier. For now, I would just reorganize your file names a bit... ie.:

Re: [web2py] Re: Folder inside controller dosen't work.

2012-02-11 Thread Phyo Arkar
Thanks, Yeah thats a lot better. I would change naming sheme that way , but still would be good to be able to use folders. On Sat, Feb 11, 2012 at 7:07 PM, LightDot light...@gmail.com wrote: Always when I deal with big projects, the first thing I do is organize a strict file structure. Not

Re: [web2py] Re: Folder inside controller dosen't work.

2012-02-11 Thread Anthony
Look interesting but that would make the service URLs a bit ugly . i would prefer each UI having its own service URL not generic single method. What i want is like this : /controllers/services/case.py /controllers/services/dashboard.py /controllers/services/result_grid.py

[web2py] Re: cPickle instead of return dict(D=D) in serverside ajax function: accessing it in View

2012-02-11 Thread Anthony
It might help if you provide a little more detail regarding what D is and what kind of processing is going on. Why do you create D in the controller but newD in the view? Does D get used anywhere before newD is created? Could you just create newD in the controller as well? Is D/newD unique per

[web2py] Re: DAL: select column in (a,b)

2012-02-11 Thread Ed Greenberg
belongs() Thanks. On Feb 11, 7:09 am, Marin Pranjić marin.pran...@gmail.com wrote: http://web2py.com/books/default/chapter/29/6#belongs Marin On Sat, Feb 11, 2012 at 12:34 PM, Ed Greenberg greenberg...@gmail.comwrote: I feel like I should know this. I've searched, but Google

[web2py] Re: Image from Video

2012-02-11 Thread Ross Peoples
ffmpeg is video encoder / decoder. You might be able to use the Python bindings for it to grab a single frame of video from the video file, and save that as a PNG or JPG. This is the project page for the ffmpeg bindings: http://code.google.com/p/pyffmpeg/ I've never done this before myself,

[web2py] Re: The web2py version

2012-02-11 Thread Alan Etkin
IS_STRONG accepts an error_message kwarg, maybe there is no default message set for the validator. On 10 feb, 21:18, Bruce Wade bruce.w...@gmail.com wrote: Yeah the None error is because we need to add an error message for IS_STRONG for some reason that validator doesn't return any message,

Re: [web2py] Re: Issue 651: strange events behaviors for grid and smartgrid

2012-02-11 Thread Manuele Pesenti
Il 10/02/2012 18:38, Massimo Di Pierro ha scritto: SQLFORM.grid has ondelete, SQLFORM(...).accept(...) does not. The book is correct. The problem is that grid uses ondelete when doing ajax delete but not when using SQLFORM(...).accept(...) my misunderstanding... sorry :) thanks Manuele

[web2py] Re: cPickle instead of return dict(D=D) in serverside ajax function: accessing it in View

2012-02-11 Thread Vineet
Thanks Anthony. Here's the explanation of what I intend to do. 1) D is a dataset (tuple of dicts) obtained from MySQL. I am using a 3rd party lib viz. 'DABO' for database interaction + business-logic tier. So, D is generated by controller function. 2) It is passed to View where HTML elements are

Re: [web2py] Re: Folder inside controller dosen't work.

2012-02-11 Thread Phyo Arkar
I forgot route.py! thats interesting I will look into it! On Sat, Feb 11, 2012 at 7:40 PM, Anthony abasta...@gmail.com wrote: Look interesting but that would make the service URLs a bit ugly . i would prefer each UI having its own service URL not generic single method. What i want is like

Re: [web2py] Re: The web2py version

2012-02-11 Thread Bruce Wade
Typing in a weak password cause it to return none IE: 11 On Sat, Feb 11, 2012 at 7:31 AM, Anthony abasta...@gmail.com wrote: On Friday, February 10, 2012 7:18:04 PM UTC-5, Detectedstealth wrote: Yeah the None error is because we need to add an error message for IS_STRONG for some reason

[web2py] Re: cPickle instead of return dict(D=D) in serverside ajax function: accessing it in View

2012-02-11 Thread Anthony
3) User interacts with HTML elements changes the data. 4) Dynamically, the dataset is altered after user-interaction with HTML elements. In that case, this part of your view won't work: {{for i in newD:}} ...processing statements... {{pass}} {{cPickle.dump(newD, open(

Re: [web2py] Re: The web2py version

2012-02-11 Thread Anthony
Typing in a weak password cause it to return none IE: 11 I cannot reproduce -- can you show some code? Does it literally display the string none IE: 11? Anthony

[web2py] Re: markmin and image width

2012-02-11 Thread Jose
Thank you. I saw it after I sent the query Jose

[web2py] Re: Questions on the scheduler

2012-02-11 Thread blackthorne
Vinicius: I don't think so, it will be stored in db.scheduler_run with status = 'FAILED' On Feb 10, 5:48 pm, Vinicius Assef vinicius...@gmail.com wrote: Yet on schedules, if my task failed or timed out, will web2py try to run it next time? On Fri, Feb 10, 2012 at 3:39 PM, Massimo Di Pierro

Re: [web2py] Re: The web2py version

2012-02-11 Thread Bruce Wade
It just displays: None I'm out right now will show the code when I get back. On Feb 11, 2012 9:35 AM, Anthony abasta...@gmail.com wrote: Typing in a weak password cause it to return none IE: 11 I cannot reproduce -- can you show some code? Does it literally display the string none IE:

Re: [web2py] Re: The web2py version

2012-02-11 Thread Bruce Wade
11 is a weak password I was suggesting to enter On Feb 11, 2012 11:48 AM, Bruce Wade bruce.w...@gmail.com wrote: It just displays: None I'm out right now will show the code when I get back. On Feb 11, 2012 9:35 AM, Anthony abasta...@gmail.com wrote: Typing in a weak password cause it to

[web2py] Re: Markmin Output Questions

2012-02-11 Thread Ross Peoples
Anyone have any thoughts on this?

[web2py] routes.py doesn't work

2012-02-11 Thread Lewis
I have followed what both the book and sample files say can be done in routes.py: default_application = 'try' default_controller = 'default' default_function = 'index' This simply doesn't work. Entering www.mydomain.com as the target url in the browser routes to the welcome app not

[web2py] Re: Image from Video

2012-02-11 Thread Hassan Alnatour
I can't Find it for python 2.7 and windows 64bit ?? What to Do ??

[web2py] Re: Image from Video

2012-02-11 Thread Ross Peoples
You would have to compile it yourself in that case. I don't know how to do that on Windows, so maybe someone else would have some tips for that.

[web2py] Re: routes.py doesn't work

2012-02-11 Thread Lewis
This doesn't work either: routers = dict( BASE = dict( default_application = 'try', ), ) I placed the above as routes.py in the web2py folder (of /var as it happens). All applications run when explicitly referenced as www.mydomain.com/try. Do I need to restart web2py? On Feb

Re: [web2py] Re: routes.py doesn't work

2012-02-11 Thread Jonathan Lundell
On Feb 11, 2012, at 12:47 PM, Lewis wrote: This doesn't work either: routers = dict( BASE = dict( default_application = 'try', ), ) I placed the above as routes.py in the web2py folder (of /var as it happens). All applications run when explicitly referenced as

[web2py] Re: routes.py doesn't work

2012-02-11 Thread Lewis
The answer appears to be: yes, you must restart web2py. That means probably the sample in my first post would also work. So, a question: Why do the dictionaries need to be nested? In other words why is the key BASE necessary? My rant on the manual still stands. Sorry to be disagreeable.

Re: [web2py] Re: routes.py doesn't work

2012-02-11 Thread Jonathan Lundell
On Feb 11, 2012, at 12:51 PM, Lewis wrote: The answer appears to be: yes, you must restart web2py. That means probably the sample in my first post would also work. So, a question: Why do the dictionaries need to be nested? In other words why is the key BASE necessary? Because the

[web2py] Re: routes.py doesn't work

2012-02-11 Thread Lewis
The answer appears to be:  yes, you must restart web2py. That means probably the sample in my first post would also work. So, a question: Why do the dictionaries need to be nested?  In other words why is the key BASE necessary? My rant on the manual still stands.  Sorry to be disagreeable.  Lots

[web2py] Re: routes.py doesn't work

2012-02-11 Thread Anthony
I have followed what both the book and sample files say can be done in routes.py: default_application = 'try' default_controller = 'default' default_function = 'index' This simply doesn't work. Entering www.mydomain.com as the target url in the browser routes to the welcome app

[web2py] Re: The web2py version

2012-02-11 Thread Niphlod
It's a bug, fixed in trunk but present in 1.99.4, in the translate() function of gluon/validators.py. On 11 Feb, 20:49, Bruce Wade bruce.w...@gmail.com wrote: 11 is a weak password I was suggesting to enter  On Feb 11, 2012 11:48 AM, Bruce Wade bruce.w...@gmail.com wrote: It just

Re: [web2py] Re: The web2py version

2012-02-11 Thread Anthony
On Saturday, February 11, 2012 2:49:05 PM UTC-5, Detectedstealth wrote: 11 is a weak password I was suggesting to enter I see. Even when I try 11, I still get the appropriate error message. Will wait to see your code. Anthony

Re: [web2py] Re: The web2py version

2012-02-11 Thread Anthony
On Saturday, February 11, 2012 4:35:25 PM UTC-5, Detectedstealth wrote: Ok just got back this is the code I am using for both password and security password (with name changed only) LABEL(SPAN(T('Password'), _title=T(Choose a safe password)), INPUT(_name='password',

Re: [web2py] Re: Questions on the scheduler

2012-02-11 Thread Brian M
Viniciusban - if a scheduler task fails or times out then no it will not be run again unless you change the status back to queued. Guess it is good because it makes you handle possible errors and prevents runaway tasks, but rather annoying during testing since you must reenable after errors or

[web2py] Re: Questions on the scheduler

2012-02-11 Thread Massimo Di Pierro
You can db(db.scheduler_run.status=='FAILED').update(status='QUEUED') and they will run again. On Feb 11, 4:58 pm, Brian M bmere...@gmail.com wrote: Viniciusban - if a scheduler task fails or times out then no it will not be run again unless you change the status back to queued. Guess it is

[web2py] Re: maybe minor bug or just documentation

2012-02-11 Thread Lewis
Thanks. I'll try those. Is there any general guidance on when an argument that is set with an assignment statement can be a list? ('always' would be an interesting answer...) On Feb 10, 11:24 am, Lewis lewis_le...@hotmail.com wrote: The model follows. Focus on the category.name field (and

[web2py] Re: The web2py version

2012-02-11 Thread Massimo Di Pierro
Can you attempt a patch? Else I can do it, but open a ticket first. Thanks. On Feb 11, 10:51 pm, Bruce Wade bruce.w...@gmail.com wrote: See attached welcome application. Downloaded fresh current stable source code from web2py, started server created a register action at the top of default.py

Re: [web2py] Dedicated IDE

2012-02-11 Thread Bruno Rocha
I am working exclusively with web2py, over 2 years (8-24 hours a day *7) plus holydays. And I never used an IDE. I use Sublime-text-2 and VIM, I have Python code completion and I have set some web2py completions for common code snippets both in VIM and Sublime-text. But, If I wanted or needed to