Re: [web2py] signed URL - please help test it!

2011-05-21 Thread BearXu
This is like the channel API in the app engine. Hope that rocket can support long pool in the future. On 22 May 2011 08:47, Massimo Di Pierro wrote: > There is something new and potentially very important for web2py. > Example: > > @auth.requires_login() > def index(): >     link = A('click me',_

Re: [web2py] Re: response.js - Not Executing. (I think)

2011-05-21 Thread David J.
Thanks Massimo. Fantastic! It works; Thank you so much; I was scratching my head trying to figure it out; Have a great night; By the way do you have any Ajax polling examples anywhere? Thanks. On 5/21/11 10:46 PM, Massimo Di Pierro wrote: My bad. I introduced a bug in 1.95.1. I just fixed

[web2py] Re: response.js - Not Executing. (I think)

2011-05-21 Thread Massimo Di Pierro
My bad. I introduced a bug in 1.95.1. I just fixed it in trunk. You need replace line 522-3 in main.py with http_response.headers['web2py-component- command'] = \ response.js.replace('\n','') On May 21, 9:27 pm, "David J." wrote: > I made a po

[web2py] response.js - Not Executing. (I think)

2011-05-21 Thread David J.
I made a post on Friday regarding some inter-component communications; I see I had few responses; so I thought maybe to try again. I was following the video on how to use web2py for components; It seems like after the form is submitted; the table is not updated. I think the problem is with the

[web2py] signed URL - please help test it!

2011-05-21 Thread Massimo Di Pierro
There is something new and potentially very important for web2py. Example: @auth.requires_login() def index(): link = A('click me',_href=URL('callback',user_signature=True)) return dict(link=link) @auth.requires_signature() # NEW!! def callback(): return dict(hello='hello world')

Re: [web2py] sincronizar datos entre app local -> app internet --> app remota

2011-05-21 Thread luis diaz
disculpa amigo. siempre escribo a la lista correspondiente o en tal caso tradusco con google.. sorry friend. always write to the list or in this case Translates to google ..

Re: [web2py] Re: how to adjust timezone for request.now ?

2011-05-21 Thread danto
2011/5/21 pbreit : > This is the best answer I've seen: > http://stackoverflow.com/questions/117514/how-do-i-use-timezones-with-a-datetime-object-in-python > > It can get complicated so make sure you need it. i thought i would be easy when I read massimo saying something about it massimo@ https:/

[web2py] Re: pythonanywhere

2011-05-21 Thread Massimo Di Pierro
I agree but what web2py provides a built-in distributed spreadsheet. You can have unlimited number of cells, and you can use python in the cells. The spreadsheet lives in cache ram but can be stored in db. It is not an app but a tool you can use to build apps. On May 20, 12:04 pm, António Ramos w

Re: [web2py] Re: pythonanywhere

2011-05-21 Thread António Ramos
No, maximo said Do you know you can can do it with web2py, right? That is not right! Just want to get your atention to that great tool. The best tools i have found are made with python do you know GNS3 for CISCO routers emulators? its also a great tool! like resolversystems and of course WEB2

Re: [web2py] vps hosting: vps.net or linode?

2011-05-21 Thread Dr Schmulge
I happy 2y. with linode. 2011/5/19 Carlos : > Hi, > What do you recommend for vps hosting?. > I was pretty sure going with vps.net, but there have been several bad > experiences out there that make me nervous. > For reference: http://thepcspy.com/read/why-i-cant-recommend-vpsnet/ > I am now undeci

[web2py] ssl on gae

2011-05-21 Thread RipRyness
"If you are serving your app off of a Google Apps domain, you must direct all secure traffic through your app's appspot domain." I'd like to be able to do this on a per page or a per controller basis. I'm assuming I'd need to put something in routes.py for this? An example of how I might do this w

[web2py] Re: Prepopulate forms with AJAX

2011-05-21 Thread blackthorne
For this, I need to a record from a DB to a page using AJAX so that it populates an existing form I can do it already if i just have to return a value such as dog.name but I need to return a row like "dog" would can I return a full row from the controller ? Example: def ajaxgetissue(): name =

Re: [web2py] Consuming a web2py web service in C#?

2011-05-21 Thread Alexei Vinidiktov
What's the actual code you are using to call a web2py json-rpc service? On Sat, May 21, 2011 at 4:23 AM, Matt wrote: > Anyone using web2py as the web service and then consuming the service > via json-rpc in C#? I imagine this is possible, but seem to have quite > some time trying to get this to

[web2py] when to use CRUD versus SQLFORM

2011-05-21 Thread apple
Can you do everything using CRUD that you can do with SQLFORM? Under what circumstances would you choose SQLFORM rather than CRUD?

[web2py] Re: class example on book

2011-05-21 Thread luifran
I put the following code and it works fine: === controller === class MyClass(object): z = 2 def __init__(self, a, b): self.x = a self.y = b def add(self): return self.x + self.y + self.z def index(): myinstance = MyClass(3, 4) add = myinstance.add()

[web2py] Prepopulate forms with AJAX

2011-05-21 Thread blackthorne
hi, here's my problem. I have a database with security issues I found in the past and I want to be able to fill new ones based on it. the idea was to fill one input field "title" with a word that could exist in a previous inserted item. A select box would show up with top 5 possibilities, just lik

Re: [web2py] Re: pythonanywhere

2011-05-21 Thread Andrew Thompson
On 5/20/2011 1:04 PM, António Ramos wrote: Sorry maximo but resolversystems product is much more than your spreadsheet. They are in the business of making spreadsheet related products, therefore there product does lots of spreadsheet related goodies. web2py being able to emulate a spreadsheet

[web2py] Re: Size of the list:string input box

2011-05-21 Thread Anthony
On Saturday, May 21, 2011 3:56:13 AM UTC-4, max wrote: > > I am using the list string to enter data where the number of input > texts. > Can I customize the size of the input boxes in one form because i am > inserting large texts? > Can't use the type 'text' because the number of entries is

[web2py] Re: [web2py-users-brazil:2025] web2py wallpaper

2011-05-21 Thread Bruno Barbosa
Excelent! I saved here. =) # --- # Bruno Barbosa # Web Developer - Linux user and Free Software Enthusiast # http://algoritmizando.com # http://twitter.com/bruninbsb # --- 2011/5/21 Bruno Rocha > Hi all, I just installed

[web2py] Re: class example on book

2011-05-21 Thread Anthony
I think you want: self.x,self.y = a,b When you get a Python error, try the code in a Python shell first so you can easily see whether the problem is web2py-specific or just a Python issue. Anthony On Saturday, May 21, 2011 6:00:02 AM UTC-4, 黄祥 wrote: > hi, > > is there any class example

Re: [web2py] Re: class example on book

2011-05-21 Thread Stifan Kristi
thank you for your replied luifran, but, it's not working, any example or url maybe? thank you very much before On Sat, May 21, 2011 at 7:26 PM, luifran wrote: > In the view must be for example {{=add}} > > On 21 mayo, 12:00, 黄祥 wrote: > > hi, > > > > is there any class example on book or appli

[web2py] jquery id using python variable

2011-05-21 Thread 黄祥
hi, is it possible to use jquery id using python variable? e.g. {{=DIV(A(T('Post a Comment'), _href = '#'), _id = '%s' % page.id)}} === 1 === jQuery('#%s' % page.id).click(function() { jQuery('.form').slideToggle('slow'); }); === 2 === jQuery('#{{=page.id

[web2py] Re: class example on book

2011-05-21 Thread luifran
In the view must be for example {{=add}} On 21 mayo, 12:00, 黄祥 wrote: > hi, > > is there any class example on book or appliances, so that i can learn > from it? > i've already tried the simple things what written on book, but got an > error. do you have any hints or solutions? > thank you so much

Re: [web2py] sincronizar datos entre app local -> app internet --> app remota

2011-05-21 Thread José Luis Redrejo Rodríguez
Estimado Luis: esta es una lista de correo en inglés, para que puedan entender lo que dices debes dirigirte en ese idioma. Dear Luis: this is an english mail list. You have to use english to be understood by the list members. Regards. El día 21 de mayo de 2011 02:18, Luis Díaz escribió: > sal

[web2py] Visual Report Generator

2011-05-21 Thread luifran
I can use visual report generator with web2py? which?

Re: [web2py] web2py wallpaper

2011-05-21 Thread Martín Mulone
Great!. 2011/5/21 Jason (spot) Brower > Fun thanks! > > > On Sat, May 21, 2011 at 10:55 AM, Bruno Rocha wrote: > >> Hi all, I just installed a fresh Ubuntu 11.04 and finished the >> customization (I will give a chance to Unity). I missed some web2py >> wallpaper, so I created a very simple one b

[web2py] class example on book

2011-05-21 Thread 黄祥
hi, is there any class example on book or appliances, so that i can learn from it? i've already tried the simple things what written on book, but got an error. do you have any hints or solutions? thank you so much before e.g. === controller === class MyClass(object): z = 2 def __init__(s

[web2py] SQLFORM update problem

2011-05-21 Thread Marin
Hi, I have an id field which is not named 'id'. Here's a part of definition: Category = db.define_table('category', Field('myid', 'id'), Field('id', 'integer'), Field('parent_id', 'integer') ... I want to make SQ

Re: [web2py] Re: I found this poll

2011-05-21 Thread Sebastian E. Ovide
On Sat, May 14, 2011 at 6:49 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > No and it will not. > > That does not mean there will not a web3py that is not backward > compatible and has major redesign. No hurry anyway. > > > I look forward for it. Any plans ? -- Sebastian E. Ovide

Re: [web2py] web2py wallpaper

2011-05-21 Thread Jason (spot) Brower
Fun thanks! On Sat, May 21, 2011 at 10:55 AM, Bruno Rocha wrote: > Hi all, I just installed a fresh Ubuntu 11.04 and finished the > customization (I will give a chance to Unity). I missed some web2py > wallpaper, so I created a very simple one based on the new Ubuntu's > wallpaper. > > If it int

[web2py] web2py wallpaper

2011-05-21 Thread Bruno Rocha
Hi all, I just installed a fresh Ubuntu 11.04 and finished the customization (I will give a chance to Unity). I missed some web2py wallpaper, so I created a very simple one based on the new Ubuntu's wallpaper. If it interest for someone, here is a screenshot http://is.gd/zmNnlh Download High res

[web2py] Size of the list:string input box

2011-05-21 Thread max
I am using the list string to enter data where the number of input texts. Can I customize the size of the input boxes in one form because i am inserting large texts? Can't use the type 'text' because the number of entries is not previuosly known.

[web2py] Re: persistence of inherited tables in the same function.

2011-05-21 Thread james c.
Thanks Bruno, I'll give it a try. regards, james On May 20, 10:50 am, Bruno Rocha wrote: > I recommend you to set your own names for migration files, it will turn it > easy to migrate. > > db_define_table('tablename',Field('...'), migrate='mycustomname.table') > -- > Bruno Rocha > [ About me:http