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

2011-06-10 Thread Anthony
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, 2011 2:40:25 AM UTC-4, Luis Goncalves wrote: > This seems like a silly question, but I can't figure it out! > > Trying to fo

[web2py] Re: BUG causes all error tickets to be unknown

2011-06-10 Thread selecta
I created a bug report, would be good if someone could confirm this bug http://code.google.com/p/web2py/issues/detail?id=301

[web2py] Re: IS_IN_SET validator not working as expected

2011-06-10 Thread selecta
On Jun 10, 2:21 pm, Ross Peoples wrote: > I'm sure you've already considered this, but maybe use a checkbox instead, yes but this is a question of style an readability, radioboxes with text are just far more descriptive an a single small checkbox > as it's specifically designed to handle true/fa

[web2py] where is facebook class GraphAPI() ?

2011-06-10 Thread Luis Goncalves
This seems like a silly question, but I can't figure it out! Trying to follow the example in the book to use openAuth2.0 and facebook's graphAPI, we need to from facebook import GraphAPI as suggested, I installed pyfacebook first via apt-cache search pyfacebook --> apt-get install pytho

Re: Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-10 Thread Caleb Hattingh
On 11 June 2011 04:55, Pierre Thibault wrote: > 2011/6/9 Pierre Thibault >> >> 2011/6/9 >>> >>> On , Anthony wrote: >>> > Do you have an app to reproduce the problem? I created an app named >>> > "Castalia" (note the capitalization) with a module >>> > /modules/selfgroup/castalia/config.py, whi

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

2011-06-10 Thread Anthony
I think you're specifying the target div name in the wrong place. Instead of: {{=LOAD('default', 'blog_comment_show.load', args = page.id, ajax = True)}} {{=LOAD('default', 'blog_comment_add.load', args = page.id, target = 'comments_%s hidden' % page.id, ajax = True)}} I think you want: {

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

2011-06-10 Thread Stifan Kristi
yes, i have. def blog_comment_show(): return __show_2(blog, blog_index, blog_comment, blog_comment_blog_id, blog_comment_active) @auth.requires_login() def __show_2(table_0, index_link, table_1, field, active): page = table_0(request.args(0)) or redirect(URL(index_link)) results = db(

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

2011-06-10 Thread Anthony
Do you have a blog_comment_show() action in your controller? On Friday, June 10, 2011 10:58:56 PM UTC-4, 黄祥 wrote: > thank you so much for your hints, anthony, but, pardon me, the results on > the form components is loading..., the page didn't show an error, but keep > loading..., is there some

[web2py] Re: Social network plug-in

2011-06-10 Thread Luis Goncalves
Ciao Massimo! Is it now available somewhere for download? It will be very useful!!! Thanks, Luis.

[web2py] Re: Howto prepopulate a sqlform's drop-down field

2011-06-10 Thread tomt
Hello again, I withdraw my question as I managed to get the obvious working: form.vars.cpaid = 6 # or whatever id is required I failed to get this working earlier, so I mistakenly assumed that the solution was more complex. I must have made some dumb mistake that disabled proper operation. So

Re: [web2py] Re: preview image from video file

2011-06-10 Thread Stifan Kristi
how to integrate web2py with ffmpeg? i mean when users uploaded the video, web2py can automatic reproduce the image and store it in the database. is there any way to do this? thank you so much.

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

2011-06-10 Thread Stifan Kristi
thank you so much for your hints, anthony, but, pardon me, the results on the form components is loading..., the page didn't show an error, but keep loading..., is there something i missed in my code? e.g. *=== controller ===* blog = db.blog blog_comment = db.blog_comment blog_comment_blog_id = d

Re: Re: Re: [web2py] Re: web2py 1.96.4 is OUT

2011-06-10 Thread Pierre Thibault
2011/6/9 Pierre Thibault > 2011/6/9 > >> On , Anthony wrote: >> > Do you have an app to reproduce the problem? I created an app named >> "Castalia" (note the capitalization) with a module >> /modules/selfgroup/castalia/config.py, which I think is the same structure >> and naming as Alessandro's

[web2py] Re: preview image from video file

2011-06-10 Thread Massimo Di Pierro
are these video in static or uploaded by users? On Jun 10, 5:00 pm, Sahil Arora wrote: > Thanks for the help. I got the image from the video. Can u help me with the > video streaming part. I could not get a good tutorial for this. > > On Sat, Jun 11, 2011 at 12:59 AM, Massimo Di Pierro < > > mass

[web2py] Howto prepopulate a sqlform's drop-down field

2011-06-10 Thread tomt
Hi, I've written a controller to add a record using sqlform, and I want to prepopulate several of the fields. I've had some success using form.var.field = x, but I haven't been able to prepopulate the one field that uses a dropdown list. In the controller I listed below, I have success on the 'd

[web2py] Re: ajax is not working in components

2011-06-10 Thread Anthony
Maybe try having the post comment action return some JS via response.js that calls the web2py_component JS function to update the list component: def post_comment(): # do some stuff response.js='web2py_component(action="%s",target="%s")' % (URL('list_comments.load'), 'comment_list')

[web2py] ajax is not working in components

2011-06-10 Thread 黄祥
hi, is ajax can work in components? i mean let say that i separated the comment into 2 components, 1 for list of view comments and the other is form to post the comment. i have a problem when i post the comment using the form, the data that have been posted is not directly change on list of commen

[web2py] implement public, password protected and private view for user

2011-06-10 Thread 黄祥
hi, i want to learn and implement public, password protected and private view for user, is there anyone know how to do that? thank you so much before e.g. === model === db.define_table('files', Field('title', label = T('Title') ),

[web2py] web2py book changelog?

2011-06-10 Thread niknok
Is there like a change log for the web2py book where I can view what's been added or modified recently? /r

[web2py] Script TDD in web2py

2011-06-10 Thread 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*; For now, I have done is to test the model layer

[web2py] Decorated Profiler - New Profiling library for python (thread, greenthread and WSGI friendly)

2011-06-10 Thread Dragonfyre13
I'm currently using this on a few of my projects, and decided to throw it up on bitbucket for others who might want to use it (and tell me areas I need to work on). It's pretty solid, again I'm using it already where I work, and it's got a pretty decent web based reporting and control interface. De

Re: [web2py] Re: preview image from video file

2011-06-10 Thread Sahil Arora
Thanks for the help. I got the image from the video. Can u help me with the video streaming part. I could not get a good tutorial for this. On Sat, Jun 11, 2011 at 12:59 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > http://linuxers.org/tutorial/how-extract-images-video-using-ffmpeg

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

2011-06-10 Thread 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 errors on console (as the author say after set debug: true) but still my upload fails. I can tested

Re: [web2py] Re: New Features in Book

2011-06-10 Thread Pierre Thibault
I can talk about the features that I implemented. Just ask. We could be documentation driven: The developer writes the feature he is going to implement, we write the tests (tests driven) and then he writes the implementation. This process will creates the documentation we need for the book. --

[web2py] Re: Anyone interested in an AJAX version of CRUD?

2011-06-10 Thread pbreit
Here's a trick from HTML5 Boilerplate for Jquery. I presume it could be modified for UI (or any library). window.jQuery || document.write("