[web2py] Re: Online Book Typo

2011-11-06 Thread mikech
In the section Scheduler: It provides a *standrad* mechanism for creating and scheduling tasks. The first argument of the Scheduler class must be the database to be used by the scheduler to communicate with the workers. This can be the db of the app or another* dedictade* db,perhaps one

[web2py] Re: Please help me understand how 'lambda row, rc' works

2011-11-06 Thread Stefaan Himpe
tomt wrote: I wanted to implement the 'extracolumns' feature of SQLTABLE and the example provided in the source code is: :param extracolums = [{'label':A('Extra',_href='#'), 'class': '', #class name of the header 'width':'', #width in pixels or %

[web2py] patch for web2py socket timeout

2011-11-06 Thread fox
Hi all, we're developing a web2py application over a non reliable network connection and we encountered some problems with file uploading that made us going crazy. We had the same error as:

[web2py] After modifying routes.py, GAE still routing to Welcome rather than my app

2011-11-06 Thread Spring
Hi there, I'm facing a problem with GAE deployment. GAE still routes to Welcome rather than my app when hitting www.myapp.com. And because I skipped the Welcome app in app.yaml, it gives invalid request. Tried manually to go to www.myapp.com/myapp/default/index, still invalid request. Things seem

[web2py] Re: Online Book Typo

2011-11-06 Thread Massimo Di Pierro
Thanks. Massimo On Nov 6, 2011, at 1:17 AM, mikech wrote: In the section Scheduler: It provides a standrad mechanism for creating and scheduling tasks. The first argument of the Scheduler class must be the database to be used by the scheduler to communicate with the workers. This can

Re: [web2py] patch for web2py socket timeout

2011-11-06 Thread Jonathan Lundell
On Nov 6, 2011, at 3:42 AM, fox wrote: we're developing a web2py application over a non reliable network connection and we encountered some problems with file uploading that made us going crazy. We had the same error as:

Re: [web2py] After modifying routes.py, GAE still routing to Welcome rather than my app

2011-11-06 Thread Jonathan Lundell
On Nov 6, 2011, at 5:28 AM, Spring wrote: I'm facing a problem with GAE deployment. GAE still routes to Welcome rather than my app when hitting www.myapp.com. And because I skipped the Welcome app in app.yaml, it gives invalid request. Tried manually to go to

[web2py] Re: Displaying custom error message instead of the ticketing system

2011-11-06 Thread Sathvik Ponangi
I'm using Web2py 1.99.2(Stable) on Google AppEngine (SDK v1.5.5) for Python 2.5

[web2py] Displaying custom error message instead of the ticketing system

2011-11-06 Thread Sathvik Ponangi
Hello all, How do I display a custom error message instead of the ticket-issued screen? I've tried using the default routes.py, by setting : routes_onerror = [(r'*/*',r'/init/static/error.html')] Thanks in advance. With Regards, Sathvik

[web2py] Attribute of HTML element: define in controller

2011-11-06 Thread Vineet
In View, dataTables.net table is rendered. It is using 'sAjaxSource'. In each row, Add / Edit links are required in the last column. Empty table structure is defined in View. Table data is populated via sAjaxSource (controller action). relevant code in that server-side controller function -- (pl.

Re: [web2py] patch for web2py socket timeout

2011-11-06 Thread fox91
2011/11/6 Jonathan Lundell jlund...@pobox.com I'm curious: what was the threshold that made your case work? Did you need all of the 300 seconds? Well, with tor hidden service we tried at first with 600 seconds, then with 10, 60 or 120 but we got some timeouts so we chosen 300 seconds. Maybe

[web2py] Re: Attribute of HTML element: define in controller

2011-11-06 Thread Anthony
On Sunday, November 6, 2011 11:01:50 AM UTC-5, Vineet wrote: lnk_elmt = a href='%s' Edit /a % {{=URL(('empmast', 'emp_edit'))}} You're using view syntax in a controller. No need for the {{=...}} (you've also got an extra set of parentheses inside URL). Just do: 'a href=%s Edit

[web2py] Re: Attribute of HTML element: define in controller

2011-11-06 Thread Vineet
Great! It worked. Thanks Anthony. I've been hunting on this since past few hours. --- Vineet On Nov 6, 9:36 pm, Anthony abasta...@gmail.com wrote: On Sunday, November 6, 2011 11:01:50 AM UTC-5, Vineet wrote:             lnk_elmt = a href='%s' Edit /a % {{=URL(('empmast', 'emp_edit'))}}

[web2py] Re: question about include file

2011-11-06 Thread apple
I have done view source in the browser and looked line by line and the two versions are identical. How is it possible to have two identical html source files that produce different results? Is there some header that is not visible in the browser view source? I have also simplified to the view

Re: [web2py] patch for web2py socket timeout

2011-11-06 Thread Phyo Arkar
I think this is the problem that plaguing my JSON Responses. When large data is responded over slow link it got timeout suddenly in the middle. Thanks a lot for the patch fox! On Sun, Nov 6, 2011 at 11:03 PM, fox91 fox1...@gmail.com wrote: 2011/11/6 Jonathan Lundell jlund...@pobox.com I'm

[web2py] Problem with using a method from a module

2011-11-06 Thread Sathvik Ponangi
Hi, I'm using Web2py (1.99.2_Stable) on GAE (1.5.5). I have the following class in a module named commons.py: class FileSystem(): def get_file(self, bash): return db(db.files.bash==bash).select().first() I'm trying to invoke this method from my controller as: import

[web2py] Re: Problem with using a method from a module

2011-11-06 Thread Sathvik Ponangi
The code works fine when the class is a part of the controller itself, but not as a module...

[web2py] Re: Usability: SQLFORM.grid column order with foreign table

2011-11-06 Thread luismurciano
Hi Cliff. Our friend Hosoda Kenji has a awesome collection of web2py plugins http://dev.s-cubism.com/web2py_plugins you could use Solid Form, it's allows you to place fields in any order you want. All plugins are well documented and has examples. Enjoy :D

[web2py] Re: Displaying custom error message instead of the ticketing system

2011-11-06 Thread Massimo Di Pierro
http://web2py.com/book/default/chapter/04?search=onerror On Nov 6, 9:18 am, Sathvik Ponangi psath...@gmail.com wrote: Hello all,  How do I display a custom error message instead of the ticket-issued screen? I've tried using the default routes.py, by setting : routes_onerror =

[web2py] Re: patch for web2py socket timeout

2011-11-06 Thread Massimo Di Pierro
In trunk! Thank you. On Nov 6, 5:42 am, fox fox1...@gmail.com wrote: Hi all, we're developing a web2py application over a non reliable network connection and we encountered some problems with file uploading that made us going crazy. We had the same error

[web2py] Re: Problem with using a method from a module

2011-11-06 Thread Massimo Di Pierro
Are you sure this is exactely your code? commons.FileSystem().get_file(Testing).split(,) On Nov 6, 11:57 am, Sathvik Ponangi psath...@gmail.com wrote: Hi,  I'm using Web2py (1.99.2_Stable) on GAE (1.5.5). I have the following class in a module named commons.py: class FileSystem():    

[web2py] new web site

2011-11-06 Thread Massimo Di Pierro
We have a new web site http://web2py.com/new_examples Please check it out before we replace the old one.

Re: [web2py] we need some good web2py quotes ....

2011-11-06 Thread Vinicius Assef
As a freelancer, I invest time learning tools and techniques. It's worth seeing my 3 years old codes running today without no modification. Backwards compatibility is a great feature you should try for yourself. -- Vinicius Assef. 2011/11/4 Massimo Di Pierro massimo.dipie...@gmail.com: more

[web2py] Re: Displaying custom error message instead of the ticketing system

2011-11-06 Thread Anthony
Is there an actual '/init/static/error.html' file in your GAE installation of web2py? On Sunday, November 6, 2011 10:18:29 AM UTC-5, Sathvik Ponangi wrote: Hello all, How do I display a custom error message instead of the ticket-issued screen? I've tried using the default routes.py, by

Re: [web2py] new web site

2011-11-06 Thread António Ramos
nice layout 2011/11/6 Massimo Di Pierro massimo.dipie...@gmail.com We have a new web site http://web2py.com/new_examples Please check it out before we replace the old one.

[web2py] Re: new web site

2011-11-06 Thread Gour
On Sun, 6 Nov 2011 12:02:23 -0800 (PST) Massimo Di Pierro massimo.dipie...@gmail.com wrote: We have a new web site http://web2py.com/new_examples Please check it out before we replace the old one. Congratulations! It looks beautiful. Sincerely, Gour -- The senses are so strong

Re: [web2py] Re: nyroModal

2011-11-06 Thread Russell McMurray
Hi Kenneth, nyroModalRemove() is a standard nyroModal call. What version of nyroModal are you using? I'm using 1.6.2, which I see has been replaced by version 2, so maybe the call is depreciated? My only other thought is...are you opening nyroModal in an iframe? I initiate the modal window

[web2py] question: why changing js\jquery.dropdown.js to replace $ with jQuery?

2011-11-06 Thread Carlos
Hi, Just a quick question: why have you changed \applications\welcome\static\js\jquery.dropdown.js, replacing all occurrences of $ with jQuery?. Thanks, Carlos

Re: [web2py] question: why changing js\jquery.dropdown.js to replace $ with jQuery?

2011-11-06 Thread Ovidio Marinho
you ask who? Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com ovidiomari...@itjp.net.br ITJP - itjp.net.br 83 8826 9088 - Oi 83 9334 0266 - Claro Brasil

[web2py] Re: data from request.vars

2011-11-06 Thread petrasadi
The strftime() function didn't work for me, but the I solved the problem using the sample function. Thank you for your replies.

Re: [web2py] question: why changing js\jquery.dropdown.js to replace $ with jQuery?

2011-11-06 Thread Bruno Rocha
It is for avoid confllicts, $ and jQuery has same purpose, and the use of jQuery is recommended to avoid conflicts with another JS frameworks. -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] Re: new web site

2011-11-06 Thread Pystar
+1 awesome, very professional looking On Nov 6, 9:36 pm, Gour g...@atmarama.net wrote: On Sun, 6 Nov 2011 12:02:23 -0800 (PST) Massimo Di Pierro massimo.dipie...@gmail.com wrote: We have a new web site    http://web2py.com/new_examples Please check it out before we replace the old

[web2py] Re: new web site

2011-11-06 Thread LightDot
I like it! Layout is nice, content categorization is similar to the existing one, which wasn't bad. It's a very nice evolution, not a revolution, and that's a positive thing. Looks polished and it's giving a good impression about the web2py project. Just a couple of things I noticed: - main

Re: [web2py] Facebook Auth password cleanup

2011-11-06 Thread Tito Garrido
Hey! What did you change on Michele's facebook api? Thanks Tito On Mon, Sep 5, 2011 at 9:10 AM, Bruno Rocha rochacbr...@gmail.com wrote: Hi, I am using Michele's Facebook API, works like a charm (with few modifications) But, every time an existing user signin-in the password is cleaned,

Re: [web2py] question: why changing js\jquery.dropdown.js to replace $ with jQuery?

2011-11-06 Thread Carlos
Hi Bruno, I know that $ and jQuery are the same, but my question is more about why to change these external (jQuery plugin) files, which we would need to update every time the next version comes out, and the same for all other jQuery plugins?, or I guess it's just this one because it's

[web2py] Re: new web site

2011-11-06 Thread Joseph Jude
Just a personal opinion: web2py should come out of the shadows of django. Two of the three quotes are directed towards django.

[web2py] Re: Please help me understand how 'lambda row, rc' works

2011-11-06 Thread tomt
Thanks for your response. Using your suggestion of implementing a controller helped me to see that defining the 'content' statement in extracolumns causes SQLTABLE to pass the current record and rc(rowcount) to be used by a controller or function, that can then be used by the A() helper. - Tom

[web2py] Unable to write to file error in GAE

2011-11-06 Thread Joseph Jude
Hi, I get the below error in GAE. Unable to write to file /base/data/home/apps/s~123-check/1.354481446592778594/applications/init/languages/pl-pl.py In fact it is repeated for other languages too. Please note that I'm not using any translations (my guess is some of the gluon tools may be using

[web2py] Re: new web site

2011-11-06 Thread Anthony
On Sunday, November 6, 2011 8:22:43 PM UTC-5, Joseph Jude wrote: Just a personal opinion: web2py should come out of the shadows of django. Two of the three quotes are directed towards django. Agree. We shouldn't use quotes that mention Django or other frameworks by name.

Re: [web2py] new web site

2011-11-06 Thread Andrew Thompson
Is the content being pulled from existing data, or was it re-entered?In the third-party code section of the staff page, the markdown2 link is old, they moved to github. The feedparser website is 410 Gone(not sure how long, or if it moved). The fcgi.py link is dead as well.Can someone else check

[web2py] Re: data from request.vars

2011-11-06 Thread Vineet
Sometimes it is better to brew the wine at home. ;-) Vineet On Nov 7, 3:09 am, petrasadi petras...@gmail.com wrote: The strftime() function didn't work for me, but the I solved the problem using the sample function. Thank you for your replies.

[web2py] Re: Online Book Typo

2011-11-06 Thread mikech
I would be glad to help clean up the book if you need it. Otherwise I will post the issues here. Mike

[web2py] Re: Online Book Typo

2011-11-06 Thread mikech
Further down in the chapter on scheduler there are these paragraphs. Once a task exists (there is a record in the scheduler_talk table), is QUEUED, and is ready (*mmeets* all the conditions specified in the record) it can be picked up by a worker. As soon as a worker is available it picks the

[web2py] Re: Online Book Typo

2011-11-06 Thread mikech
One more thing: As soon as a worker is available it picks the first ready task schduled to run - As soon as a worker is available it picks the first scheduled task that is ready to run.

[web2py] Re: Unable to write to file error in GAE

2011-11-06 Thread Massimo Di Pierro
Can you give us the complete traceback? On Nov 6, 7:48 pm, Joseph Jude ceph...@gmail.com wrote: Hi, I get the below error in GAE. Unable to write to file /base/data/home/apps/s~123-check/1.354481446592778594/applications/init/lan guages/pl-pl.py In fact it is repeated for other languages

[web2py] Re: new web site

2011-11-06 Thread Massimo Di Pierro
The layout is derived from this April's fool joke they played on us: http://web2pyramid.pylonsproject.org/ The content is the same the old site. The quotes are taken from twitter #web2py. Massimo On Nov 6, 9:03 pm, Andrew Thompson andre...@aktzero.com wrote: Is the content being pulled from

Re: [web2py] Re: Displaying custom error message instead of the ticketing system

2011-11-06 Thread Sathvik Ponangi
@Massimo: I've tried it with routes_onerror = [('*/*', '/init/static/error.* *html')] in routes.py it still shows me a ticket. @Anthony: Of course, I can access it directly at http://localhost:8080/init/static/error.html On Mon, Nov 7, 2011 at 2:03 AM, Anthony abasta...@gmail.com wrote: Is

Re: [web2py] Re: Displaying custom error message instead of the ticketing system

2011-11-06 Thread Sathvik Ponangi
Restarting my AppEngine server has fixed this issue. Thank you all for your help. On Mon, Nov 7, 2011 at 10:05 AM, Sathvik Ponangi psath...@gmail.com wrote: @Massimo: I've tried it with routes_onerror = [('*/*', '/init/static/error.**html')] in routes.py it still shows me a ticket. @Anthony:

Re: [web2py] Re: Problem with using a method from a module

2011-11-06 Thread Sathvik Ponangi
Dear Massimo, Restarting AppEngine seems to have fixed this as well. But now I get an error saying that NameError: global name 'db' is not defined How do import db.py onto the module? With Regards, Sathvik On Mon, Nov 7, 2011 at 1:28 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote:

Re: [web2py] Re: new web site

2011-11-06 Thread Bruno Rocha
At the footer you forgot to mention the Portuguese user group, also I miss the links in side navigation bar of current website.

Re: [web2py] Re: Problem with using a method from a module

2011-11-06 Thread Bruno Rocha
On Mon, Nov 7, 2011 at 2:55 AM, Sathvik Ponangi psath...@gmail.com wrote: Dear Massimo, Restarting AppEngine seems to have fixed this as well. But now I get an error saying that NameError: global name 'db' is not defined How do import db.py onto the module? You cant import db onto a

Re: [web2py] GAE Python 2.7 update

2011-11-06 Thread Jonathan Lundell
On Nov 5, 2011, at 5:24 PM, Massimo Di Pierro wrote: I know I said otherwise before but perhaps we should continue to default to 2.5 until App Launcher supports 2.7 I have, btw, some changes to gaehandler.py. For example, GAE+2.7 now has cPickle, and GAE+2.5 already aliases it, so that logic

[web2py] Re: After modifying routes.py, GAE still routing to Welcome rather than my app

2011-11-06 Thread Spring
Hi Jonathan, I checked the debug logs on GAE as you suggested, and here is the detail after I hit www.mydomain.com: 2011-11-06 22:35:29.090 /favicon.ico 404 22ms 0cpu_ms 0kb W 2011-11-06 22:35:29.090 Static file referenced by handler not found: applications/go2chongqing/static/favicon.ico

[web2py] web(2/3)-based CMS (was Re: Mixing/supporting CMS with Web2py)

2011-11-06 Thread Gour
On Fri, 4 Nov 2011 10:38:06 -0700 (PDT) Massimo Di Pierro massimo.dipie...@gmail.com wrote: i Dear Massiomo, perhaps we should make a list of desired features. After I put some more thought into it, I've arrived at the conclusion that, imho, Concrete5 (http://www.concrete5.org/) is,

[web2py] web2py with SAE Python

2011-11-06 Thread chinakr
SAE means Sina App Engine, which is a public cloud computing platform like GAE. It's the most mature and famous public cloud in China, where people can't access GAE freely. SAE only supports PHP in the last 3 years. Recently, SAE started internal testing with Python support, with code name SAE