[web2py] Re: where is facebook class GraphAPI() ?

2011-06-11 Thread Anthony
Now fixed in the book, with link to the Python SDK. On Saturday, June 11, 2011 2:55:04 AM UTC-4, Anthony wrote: > It appears the book is incorrect. I think you're looking for Facebook > python-sdk (https://github.com/facebook/python-sdk), not pyfacebook. > > Anthony > > On Saturday, June 11, 2

[web2py] Re: where is facebook class GraphAPI() ?

2011-06-11 Thread Luis Goncalves
Awesome! Thank you! Will check it out! Luis.

[web2py] Web2py's editor abort and communication error

2011-06-11 Thread Phyo Arkar
It seems web2py editor's ajax save functtion abort too fast , abort and connection timeout within 1-2 seconds which is unrealistic . Especially working over online , to the office machine from home. Can we increase timeout value? like 60 secs or more. It is unrelaistic to work online especially co

Re: [web2py] Web2py's editor abort and communication error

2011-06-11 Thread Phyo Arkar
Is there also normal save , not ajaxed one? I think i remember having one long before. doClickSave comes from where? On Sat, Jun 11, 2011 at 2:04 PM, Phyo Arkar wrote: > It seems web2py editor's ajax save functtion abort too fast , abort and > connection timeout within 1-2 seconds which is unrea

[web2py] FixComputerpProblemsSite Surely Knows How to Fix Computer Problems!

2011-06-11 Thread fix computer problems
I was having problems with my laptop before. Good thing * FixComputerpProblemsSite* helped me fix it. And they are really the experts when it comes to solving any computer related issues. They can easily fix computer problems without breaking a sweat.

Re: [web2py] Re: ajax is not working in components

2011-06-11 Thread Stifan Kristi
thank you so much for corrected my mistook code, anthony, but the results is same now the blog comment show appears loading... First time my incorrect code show the blog comment form page appears loading... and then right now the blog comment show. actually i come from the simple things one (witho

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-11 Thread Pierre Thibault
2011/6/11 Alessandro Iob > Hi Pierre, > > I'll send a test application to Anthony this weekend. > > I've experienced the same problem under OS X (with a case-insensitive file > system) when I've changed the case from "Castalia" to "castalia": > web2py tried to include the controllers from old "Ca

Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-11 Thread Caleb Hattingh
On 11 June 2011 11:42, Pierre Thibault wrote: > 2011/6/11 Alessandro Iob > >> Hi Pierre, >> >> I'll send a test application to Anthony this weekend. >> >> I've experienced the same problem under OS X (with a case-insensitive file >> system) when I've changed the case from "Castalia" to "castalia

[web2py] genrate daily value form for a month

2011-06-11 Thread max
I am trying to generate a custom form depending on he month for user to add values to each day key is there any idea how to do it dynamically?

[web2py] Re: Web2py and PyScripter debugging

2011-06-11 Thread Dmitriy
Here it is: 1. Download the latest web2py sources http://web2py.com/examples/default/download 2. Create the following 'web2py_no_threads.py' file at the web2py directory: ### web2py_no_threads.py ### from wsgiref.simple_server import make_server, demo_app from gluon.main import wsgibase httpd =

Re: [web2py] Re: ajax is not working in components

2011-06-11 Thread Anthony
Try getting rid of the "hidden" in your component target name. The target name is used as a CSS div id, and I don't think you can have multiple CSS ids for a single HTML element. Anthony On Saturday, June 11, 2011 5:39:42 AM UTC-4, 黄祥 wrote: > thank you so much for corrected my mistook code,

Re: [web2py] Re: Social network plug-in

2011-06-11 Thread Tito Garrido
+1 On Sat, Jun 11, 2011 at 12:47 AM, Luis Goncalves wrote: > Ciao Massimo! > > Is it now available somewhere for download? It will be very useful!!! > > Thanks, > Luis. > -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___

Re: [web2py] Script TDD in web2py

2011-06-11 Thread Pierre Thibault
2011/6/10 contatogilson...@gmail.com > Hello guys, > > I started to create a script to test the scripts that use the library > unittest projects web2py. I usually like this: > > - I create the folder *tests* in the project; > - Inside the tests folder create two folders: *models* and *controllers

Re: [web2py] Script TDD in web2py

2011-06-11 Thread contatogilson...@gmail.com
How to tests with web2py. Need importing gluon libs. _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/6/11 Pierre Thibault > 2011/6/10 contatogilson...@gmail.com > > Hello guys, >> >> I started to create a script to test the scripts that u

Re: [web2py] Script TDD in web2py

2011-06-11 Thread contatogilson...@gmail.com
Show an example of how you use py.test to perform unit tests on the model layer and controller. _ *Gilson Filho* *Web Developer http://gilsondev.com*

[web2py] Re: db.define_tables

2011-06-11 Thread Vineet
Anil, In the View, 1) After the submit button, you have {{= I wonder how it did not give a syntax error. Remove it. 2) You have {{=display_string}} after FORM end tag. Change it to {{=display_msg}} Like this, it worked correctly on my PC. Cheers, Vineet ==

Re: [web2py] Script TDD in web2py

2011-06-11 Thread Pierre Thibault
2011/6/11 contatogilson...@gmail.com > Show an example of how you use py.test to perform unit tests on the model > layer and controller. > > _ > *Gilson Filho* > *Web Developer > http://gilsondev.com* > > I have nothing concrete yet. I am just thinking

Re: [web2py] Script TDD in web2py

2011-06-11 Thread contatogilson...@gmail.com
Yes, I understand. But the issue is the use of the gluon. Perform tests is fine, the problem is to run the same tests using the libraries and gluon. Therefore it has to import them. Hence the creation of this script. _ *Gilson Filho* *Web Developer http:/

Re: [web2py] My talk at ChiPy about new features

2011-06-11 Thread Ovidio Marinho
Helo Massimo, you can provide the applications that example? Ovidio Marinho Falcao Neto ovidio...@gmail.com 88269088 Paraiba-Brasil 2011/6/11 Massimo Di Pierro > http://blip.tv/carlfk/new-web2py-features-5264464 > > This talk was k

Re: [web2py] My talk at ChiPy about new features

2011-06-11 Thread Ovidio Marinho
I can not get into the administrative interface Traceback (most recent call last): File "/home/www-data/web2py/gluon/restricted.py", line 181, in restricted exec ccode in environment File "/home/www-data/web2py/applications/apppos/models/db.py"

[web2py] Re: My talk at ChiPy about new features

2011-06-11 Thread Massimo Di Pierro
Do you have the latest web2py? On Jun 11, 2:23 pm, Ovidio Marinho wrote: > I can not get into the administrative interface > > Traceback (most recent call last): > >   File "/home/www-data/web2py/gluon/restricted.py", line 181, in restricted > >     exec ccode in environment > >   File "/home/www

Re: [web2py] Re: My talk at ChiPy about new features

2011-06-11 Thread Ovidio Marinho
I did the update and gave crash web2py 196.4, my version is 195.1 Ovidio Marinho Falcao Neto ovidio...@gmail.com 88269088 Paraiba-Brasil 2011/6/11 Massimo Di Pierro > Do you have the latest web2py? > > On Jun 11, 2:23 pm, Ovidio Mari

[web2py] Re: My talk at ChiPy about new features

2011-06-11 Thread Massimo Di Pierro
Are you saying it crashes with 1.96.4? It should not. What is the traceback? On Jun 11, 2:54 pm, Ovidio Marinho wrote: > I did the update and gave crash web2py 196.4, my version is 195.1 >         Ovidio Marinho Falcao Neto >              ovidio...@gmail.com >                      88269088 >    

Re: [web2py] Re: My talk at ChiPy about new features

2011-06-11 Thread Ovidio Marinho
no, it does not crash, I could not upgrade to the version in web2py 196.4 Ouvir Ovidio Marinho Falcao Neto ovidio...@gmail.com 88269088 Paraiba-Brasil 2011/6/11 Massimo Di Pierro > Are you saying it crashes with 1.96.4? It should n

Re: [web2py] Re: My talk at ChiPy about new features

2011-06-11 Thread Ovidio Marinho
the option to upgrade the web2py is giving error. not upgraded to the new version. Ouvir Ovidio Marinho Falcao Neto ovidio...@gmail.com 88269088 Paraiba-Brasil 2011/6/11 Ovidio Marinho > no, it does not crash, I could not upgrade

[web2py] Re: My talk at ChiPy about new features

2011-06-11 Thread cjrh
On Jun 11, 5:29 pm, Massimo Di Pierro wrote: > http://blip.tv/carlfk/new-web2py-features-5264464 > > This talk was kind of improvised. During the talk I discovered a bug > in 1.96.4 and it is fixed in trunk. Nice talk. I need to look at ".load" more.

[web2py] Re: My talk at ChiPy about new features

2011-06-11 Thread cjrh
Also, how are plugins version-controlled? They're not part of the web2py source repository as far as I can see.

Re: [web2py] Script TDD in web2py

2011-06-11 Thread Pierre Thibault
2011/6/11 contatogilson...@gmail.com > Yes, I understand. But the issue is the use of the gluon. Perform tests is > fine, the problem is to run the same tests using the libraries and gluon. > Therefore > it has to import them. Hence the creation of this script. > > The code to start web2py is in

[web2py] Re: My talk at ChiPy about new features

2011-06-11 Thread Massimo Di Pierro
plugin_wiki is version control under cube2py. Eventually all of them should be under une bug plugins project. On Jun 11, 3:59 pm, cjrh wrote: > Also, how are plugins version-controlled?  They're not part of the web2py > source repository as far as I can see.

Re: [web2py] how to use this ajax upload script with web2py?

2011-06-11 Thread Dr Schmulge
Take a slice ) http://web2pyslices.com/main/slices/take_slice/103 2011/6/11 danto : > http://valums.com/ajax-upload/ > > It's supposed to be a ready-to-use asyncronous upload (could be a widget, > later) with load indicator, but I don't know how to integrate with my form. > In fact, I get no error

Re: [web2py] Re: Social network plug-in

2011-06-11 Thread Stifan Kristi
thank you so much for your shared, massimo.

[web2py] Re: My talk at ChiPy about new features

2011-06-11 Thread Luther Goh Lu Feng
On Jun 11, 11:29 pm, Massimo Di Pierro wrote: > http://blip.tv/carlfk/new-web2py-features-5264464 > > This talk was kind of improvised. During the talk I discovered a bug > in 1.96.4 and it is fixed in trunk. Since it is possible to use DAL as outside of web2py, does it deserve an entry in http

[web2py] Re: My talk at ChiPy about new features

2011-06-11 Thread Massimo Di Pierro
I think so. WOuld you kindly app a link to the file in the mercurial repo? On Jun 11, 5:40 pm, Luther Goh Lu Feng wrote: > On Jun 11, 11:29 pm, Massimo Di Pierro > wrote: > > >http://blip.tv/carlfk/new-web2py-features-5264464 > > > This talk was kind of improvised. During the talk I discovered a

[web2py] How to access facebook graph of logged in user

2011-06-11 Thread Luis Goncalves
I've been trying to use OAuth2.0 and the facebook module to allow a user to login to my site, and then use the facebook API to obtain info about them via GraphAPI. The web2py manual (8.1.6, subsection "OAuth2.0 and facebook") describes two methods, the first to "login to your own app", the seco

Re: [web2py] Script TDD in web2py

2011-06-11 Thread contatogilson...@gmail.com
So when you create the script makes available for us to test and to use =) _ *Gilson Filho* *Web Developer http://gilsondev.com* 2011/6/11 Pierre Thibault > 2011/6/11 contatogilson...@gmail.com > >> Yes, I understand. But the issue is the use of the

Re: [web2py] Re: ajax is not working in components

2011-06-11 Thread Stifan Kristi
thank you so much for your hints, anthony, i've already move out the hidden class div but got the same results, the components show as a loading i don't know where is the problem.

Re: [web2py] Script TDD in web2py

2011-06-11 Thread Pierre Thibault
2011/6/11 contatogilson...@gmail.com > So when you create the script makes available for us to test and to use =) > > Well, it is better than I thought. I don't even need such a script! Sorry to say that. :-) I can start web2py from Eclipse with code coverage. After that I can start, also from E

Re: [web2py] Re: ajax is not working in components

2011-06-11 Thread Anthony
On Saturday, June 11, 2011 8:47:05 PM UTC-4, 黄祥 wrote: > > thank you so much for your hints, anthony, i've already move out the hidden > class div but got the same results, the components show as a loading > i don't know where is the problem. > I'm not sure exactly where your problem is. T

[web2py] Create tables with models in subfolders

2011-06-11 Thread contatogilson...@gmail.com
When I put the scripts of a particular model in a subfolder, it does not create tables in the database when I run web2py. I have not disabled the migrate. By default it is not true? app/ models/ tests/ tests.py validators.py

Re: [web2py] Create tables with models in subfolders

2011-06-11 Thread Bruno Rocha
Models on subfolders will run only if it matches the requested URL All models under /models/ will be executed on every request, but models under /models/tests/ will run only if your url matches http://domain:8000/yourapp/tests/ and if you have a controller named tests.py On Sun, Jun 12, 2011 at

Re: [web2py] Script TDD in web2py

2011-06-11 Thread anil manikyam
> *i want to update last row in a table in web2py how?* -- @n!l m@n!ky@m

Re: [web2py] Re: Web2py and PyScripter debugging

2011-06-11 Thread anil manikyam
*i want to update last row in a table in web2py how?* -- @n!l m@n!ky@m

Re: [web2py] FixComputerpProblemsSite Surely Knows How to Fix Computer Problems!

2011-06-11 Thread anil manikyam
*i want to update last row in a table in web2py how?* -- @n!l m@n!ky@m

[web2py] How to implement a "fail whale" for a web2py website?

2011-06-11 Thread Luis Goncalves
Is there an easy/straightforward way to implement a "fail whale" for a web2py website? I've noticed strange errors (some sort of timeout) when uploading files (running on Amazon ec2), and of course, the site is in beta and bad things may happen. I'd like to have a graceful landing page the us

Re: [web2py] Script TDD in web2py

2011-06-11 Thread Pierre Thibault
2011/6/12 anil manikyam > > > >> *i want to update last row in a table in web2py how?* > > > -- > @n!l m@n!ky@m > Hi Anil, I think this is a bit out of subject. Please, open a new conversion with a new subject. -- A+ - Pierre My blog and profile (http://pierrethibault.posterous

[web2py] list:string and Update form

2011-06-11 Thread Oscar
Hi, I have a model using a list:string field called type. Validation for type field: IS_IN_SET({'finished':T('Finished'),'service':T('Service')}, zero=T("-- Choose Type Of The Product --"))), So, when I create an update form using SQLFORM it shows the form fine but, the dropdown thats belong to

[web2py] Re: How to implement a "fail whale" for a web2py website?

2011-06-11 Thread Massimo Di Pierro
Look into the routes.examples.py and router.examples.py for onerror parameters: routes_onerror = [ (r'init/400', r'/init/default/ login'), (r'init/*', r'/init/static/ fail.html'), (r'*/404', r'/init/static/ cantfind.html'), (r'*/*', r'/init/error/ index'), ] '*/*' means catch

Re: [web2py] FixComputerpProblemsSite Surely Knows How to Fix Computer Problems!

2011-06-11 Thread pbreit
Can you provide mor detail about what you are trying to do and show us the code that you have written to try and do it?

[web2py] Python and Web2py dictionary behavior

2011-06-11 Thread pbreit
I am newish to Python and I think spoiled by Web2py. Is it correct that Web2py's dictionaries are enhanced to support "dot notation"? And the dot notation has the additional benefit of not erroring if it's referencing a non-existing key? I'm passing a dictionary to a module and am wondering how

Re: [web2py] how to use this ajax upload script with web2py?

2011-06-11 Thread danto
2011/6/11 Dr Schmulge > Take a slice ) > http://web2pyslices.com/main/slices/take_slice/103 > omg, ty! :)