Re: [web2py] Re: Better language support

2011-05-20 Thread Pierre Thibault
2011/5/20 mart msenecal...@gmail.com not sure if this applies, but just in case... years ago (i think 12, so this may be outdated), i worked in a localization team, (although it was a purely windows shop where words like dll was all that anyone talked about). Anyways, we adopted a method

Re: [web2py] web2py messages being copied to other (spam) groups

2011-05-20 Thread Pierre Thibault
2011/5/20 Anthony abasta...@gmail.com It appears that messages to the web2py-users group are somehow being copied to various other groups, including https://groups.google.com/group/fameisfame/search?hl=engroup=fameisfameq=web2py,

[web2py] Re: Cubrid?

2011-05-20 Thread CUBRID RDBMS
Hi Massimo, Our Python API developers have taken over testing web2py. However, they are taking a vacation from today until the end of this month. So they will not be available. Upon their arrival to work, they will provide their test results. Is that all right? Moreover, I have just uploaded

[web2py] Re: Cubrid?

2011-05-20 Thread David Marko
Great to hear. Can you create a windows binary for python 2.7. web2py is not python 3.1 ready Thanks ... David

[web2py] pythonanywhere

2011-05-20 Thread António Ramos
hello guys do you know http://www.resolversystems.com/ they have a spreadsheet with python as a scripting language. Its awsome. Please check it also they have in beta test http://www.pythonanywhere.com/ its python in the browser!

[web2py] Session ID

2011-05-20 Thread Thiago Abreu
how can I get the session id of a web2py app on Google App Engine? to make of this? or have to do differently?

[web2py] Getting started with appliances for web2py on GAE

2011-05-20 Thread Niklas Rosencrantz
Hi my web2py deployment is on app engine. I'm trying to add plug-ins/appliances using the admin area but all I get is an error message: unable to install application APP_NAME when trying to upload the package at https://my-app-deployment.appspot.com/admin/default/site Am I uploading in the wrong

[web2py] attribute content of meta tag viewport in layout.html (Welcome) should use comma separator

2011-05-20 Thread Nico de Groot
Hi all, The meta tag viewport inside the template layout.html currently (and in trunk) uses semicolons to separate and trail the arguments in the content-attribute. Throws errors in Chrome (when inspecting). Easy fixed by using comma *and* by removing trailing separator. See

[web2py] How to implement background processes elegantly..

2011-05-20 Thread Kimmo
Hi, I am using web2py as a frontend and i have a single script (myscript.py) doing all the extra calculation based on the uploaded files (unzipping zip file contents to tables, deleting other info etc.) This script contains four threads and now the problem is that these threads are accessing the

[web2py] Re: Error when going to localhost:8080 says global name 'GAEDecimalProperty' is not defined

2011-05-20 Thread Massimo Di Pierro
Please help m debug this. In gluon/dal.py there is this code: try: from new import classobj from google.appengine.ext import db as gae from google.appengine.api import namespace_manager, rdbms from google.appengine.api.datastore_types import Key ### needed for belongs \ on ID

[web2py] Re: Getting started with appliances for web2py on GAE

2011-05-20 Thread Massimo Di Pierro
Those I made should be but not tested on GAE. plugin_wiki was tested. On May 20, 4:58 am, Niklas Rosencrantz nikla...@gmail.com wrote: Hi my web2py deployment is on app engine. I'm trying to add plug-ins/appliances using the admin area but all I get is an error message: unable to install

[web2py] Re: Cubrid?

2011-05-20 Thread Massimo Di Pierro
On May 20, 3:48 am, CUBRID RDBMS kadish...@gmail.com wrote: Hi Massimo, Our Python API developers have taken over testing web2py. However, they are taking a vacation from today until the end of this month. So they will not be available. Upon their arrival to work, they will provide their test

[web2py] Re: pythonanywhere

2011-05-20 Thread Massimo Di Pierro
Do you know you can can do it with web2py, right? http://web2py.com/examples/spreadsheet On May 20, 6:55 am, António Ramos ramstei...@gmail.com wrote: hello guys do you know http://www.resolversystems.com/ they have a spreadsheet with python as a scripting language. Its awsome. Please

Re: [web2py] Re: pythonanywhere

2011-05-20 Thread Michele Comitini
To run python in the browser for real, not just a console: https://bitbucket.org/pypy/lang-js/ Or maybe this (unbelievable!): http://bellard.org/jslinux/ http://bellard.org/jslinux/tech.html Of course stability and speed can be an issue! ;-) mic 2011/5/20 Massimo Di Pierro

[web2py] Re: How to implement background processes elegantly..

2011-05-20 Thread Ross Peoples
If I am reading this properly, you want to create a new instance if db for each thread? I have never tried this before, but could you do something like this for each thread? db_thread = DAL(db._uri) for k, v in db.items(): db_thread[k] = v The idea being to using the existing db's URI

[web2py] Re: Better language support

2011-05-20 Thread mart
Hi Pierre, Agreed, and yes the money was there for the resources, but doesn't mean we were smart about it (I.e. of couple of local Japanese restaurant employees had much to do with a couple of of product releasees;) - true story) I think the issue here is not lack of knowledge on how-best-to-go-

[web2py] Re: pythonanywhere

2011-05-20 Thread mart
wow, that is pretty cool!!! also the web2py spreadsheet widget (this is the first time I see it in action) would be nice if the fields grew to accommodate size of content :) but regardless, its amazing! Mart :) On May 20, 9:09 am, Michele Comitini michele.comit...@gmail.com wrote: To run

[web2py] Inter component communication.

2011-05-20 Thread David J.
I saw the video on creating components; I tried following the steps outline there; For some reasons I must have missed a step because the message post table is not uploading; Here is the code I think is not working correctly. def reload(target): def js(form): response.js =

[web2py] Re: Windows Service Error

2011-05-20 Thread karl simon
That did the trick! I had my ssl_certificate line commented out. I also noticed that the online web2py manual has a typo. There should be double quotes at the end of the ssl_certificate and ssl_private_key so the look like this: ssl_certificate = ssl_private_key = Thanks for your help! On

[web2py] Re: Inter component communication.

2011-05-20 Thread Massimo Di Pierro
what's the view? On May 20, 9:26 am, David J. da...@styleflare.com wrote: I saw the video on creating components; I tried following the steps outline there; For some reasons I must have missed a step because the message post table is not uploading; Here is the code I think is not working

Re: [web2py] Re: Inter component communication.

2011-05-20 Thread David J.
The view is index.html {{= LOAD('default','list_post.load',ajax=True,target='list_post') }} {{= LOAD('default','post.load',ajax=True) }} On 5/20/11 10:45 AM, Massimo Di Pierro wrote: what's the view? On May 20, 9:26 am, David J.da...@styleflare.com wrote: I saw the video on creating

Re: [web2py] Re: Inter component communication.

2011-05-20 Thread David J.
The strange thing is that repsonse.flash is not executing either; I have the web2py_ajax included The components say loading when the page is loaded; so javascript is working. I am using the trunk version of web2py; I see some strange stuff so I am going to try to download again. I

Re: [web2py] Re: Inter component communication.

2011-05-20 Thread David J.
I see it was in the VERSION File; I deleted the content and updated to 1.96 Never Mind this local local local local Version 1.94.5 (2011-03-18 20:24:56) === Version 1.94.5 (2011-03-20 15:21:40) other === Version 1.95.1 (2011-05-08 02:28:27) other

[web2py] Re: Error when going to localhost:8080 says global name 'GAEDecimalProperty' is not defined

2011-05-20 Thread Arbie Samong
Hi Massimo, I removed the try and except leaving the block. It says ImportError: cannot import name rdbms Traceback (most recent call last): File .../myproject/google/appengine/tools/dev_appserver.py, line 3245, in _HandleRequest self._Dispatch(dispatcher, self.rfile, outfile, env_dict)

[web2py] Re: Error when going to localhost:8080 says global name 'GAEDecimalProperty' is not defined

2011-05-20 Thread Massimo Di Pierro
I think you have an old GAE SDK. Massimo On May 20, 10:05 am, Arbie Samong phek...@gmail.com wrote: Hi Massimo, I removed the try and except leaving the block. It says ImportError: cannot import name rdbms Traceback (most recent call last):   File

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

2011-05-20 Thread danto
2011/5/19 danto web2py.n...@gmail.com: I'm setting the created_on field in a database table with request.now but i need to adjust the result to my timezone with the application (it's a shared server). Can you tell me how can I achieve this? thank you in advance kind regards sorry, it's

Re: [web2py] Re: Inter component communication.

2011-05-20 Thread David J.
Does SQLFORM have an onaccept handler? I just tried doing this def post(): if form.accepts(request): response.js = reload('list') in my view I have {{= LOAD('list_posts',target='list',ajax=True) }} But this does not seem to work either. I suppose I am missing one step in the

[web2py] high speed template engine

2011-05-20 Thread Nhan Le
just found this resource http://www.slideshare.net/kwatch/how-to-create-a-highspeed-template-engine-in-python

Re: [web2py] Re: Inter component communication.

2011-05-20 Thread David J.
I started from scratch here is all the code running latest from trunk. Seems I am still missing something. (By the way I added an alert('running') to web2py_component() to see when it executes. Seems like after submitting the form it is never called.) so I think response.js is not being

Re: [web2py] Re: pythonanywhere

2011-05-20 Thread António Ramos
Sorry maximo but resolversystems product is much more than your spreadsheet. You looked but you did not see (where did y heard this before.?!?!?!) :) 2011/5/20 Massimo Di Pierro massimo.dipie...@gmail.com Do you know you can can do it with web2py, right?

Re: [web2py] Re: pythonanywhere

2011-05-20 Thread António Ramos
check this screencast http://www.resolversystems.com/screencasts/console/ Em 20 de maio de 2011 18:04, António Ramos ramstei...@gmail.com escreveu: Sorry maximo but resolversystems product is much more than your spreadsheet. You looked but you did not see (where did y heard this

[web2py] Re: Ajax page update

2011-05-20 Thread VP
Thank you. I will look into this. On May 19, 9:54 am, Chris May chrisma...@gmail.com wrote: I thought I read of a way of using jQuery for something like this using its deferred object. (http://api.jquery.com/category/deferred- object/) Sorry I can't be more specific, but I hope it helps.

[web2py] Re: Error when going to localhost:8080 says global name 'GAEDecimalProperty' is not defined

2011-05-20 Thread Arbie Samong
That worked! Thanks Massimo. I downloaded the latest and that got rid of the error. Also I restored the try-catch block. Thanks, Arbie On May 20, 11:40 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I think you have an old GAE SDK. Massimo On May 20, 10:05 am, Arbie Samong

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

2011-05-20 Thread ron_m
Actually it isn't that obvious. In Python the datetime class by default is not time zone aware. If you have users coming from multiple time zones the best universal way to handle this is store the time in UTC which the datetime class has a method for datetime.utcnow(). This is how UNIX does it

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

2011-05-20 Thread Bruno Rocha
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://zerp.ly/rochacbruno ] On Fri, May 20, 2011 at 2:01 AM, james c. james.cryp...@gmail.com wrote:

Re: [web2py] Very cool new code sharing service: http://chopapp.com/

2011-05-20 Thread Nico de Groot
chopapp will get python, can become cool Hi Nico, Adding syntax highlighting for additional languages is the most common request we've gotten so far; a good problem to have. :) Yes, we're going to figure out a way to add support for additional languages soon. Stay tuned. Louis Corso

Re: [web2py] Re: Inter component communication.

2011-05-20 Thread David J.
Seems that reponse.js is never called. I see in firebug post to http://localhost:8000/ajax/default/post_message.load X-Powered-By|web2py |web2py-component-flash|Form You |Set-Cookie|session_id_ajax=127.0.0.1-7a4406f9-01c9-46ab-ad14-4d83978d4d69; Path=/ |Expires|Fri, 20 May 2011 18:50:53

[web2py] Re: pythonanywhere

2011-05-20 Thread Ross Peoples
Now if we could just get a built-in web2py version that does the exact same thing. Massimo should be able to knock that out in a couple hours :) Just kidding, of course. Although it would be sweet.

Re: [web2py] Re: pythonanywhere

2011-05-20 Thread Michele Comitini
With some css + jqgrid (http://www.trirand.com/blog/jqgrid/jqgrid.html) you can reach similar results 2011/5/20 Ross Peoples ross.peop...@gmail.com: Now if we could just get a built-in web2py version that does the exact same thing. Massimo should be able to knock that out in a couple hours :)

[web2py] Re: pythonanywhere

2011-05-20 Thread Ialejandro
Well, in fact Resolver One is made with IronPython (asp.net). I read it in the book IronPython in action which is written by one of the developers of Resolverone.

[web2py] Re: Getting started with appliances for web2py on GAE

2011-05-20 Thread howesc
Niklas, you will have to run the code locally and upload plugins and then deploy to GAE. you cannot upload files to a deployed GAE instance (without using the blobstore). so you must have a complete code set that you can upload. cfh

[web2py] Re: Logging of user actions

2011-05-20 Thread howesc
in that case i would put it right in the DB, using CRUD's archive tools. then you know who made what changes to what rows and when, and you can go back an restore previous versions. http://web2py.com/book/default/chapter/07?search=archive much easier to parse than text logs (in my opinion)

[web2py] Re: Better language support

2011-05-20 Thread Christopher Steel
The important issue being, making it easier for people to contribute additional translations... On May 19, 6:52 pm, Pierre Thibault pierre.thibau...@gmail.com wrote: 2011/5/19 Christopher Steel chris.st...@gmail.com Hi Pierre, I think you have touched on an important issues and although I

[web2py] Re: Logging of user actions

2011-05-20 Thread Joseph.Piron
Ah nice trick also, didn't think about the cache, but where do you put the code to defie the _init_log ? On May 19, 11:23 pm, pbreit pbreitenb...@gmail.com wrote: I got this from here awhile back: def _init_log():     import os,logging,logging.handlers,time     logger =

[web2py] sincronizar datos entre app local - app internet -- app remota

2011-05-20 Thread Luis Díaz
saludos! quiero tener semi sincrinizada varias app instaladas en varios sitios diferentes (geograficamente) quiero poder distribuir la app bajo la licencia MIT y que cualquier la instale en local, para ser usada cómodamente entre los usuarios de su intranet. pero también me interesa que esa app

Re: [web2py] Re: Better language support

2011-05-20 Thread Pierre Thibault
You made good points. I think that it is important to have a process that can support the community we are. Here is my last idea on the subject: We can support a global translation repository just like Jonathan was proposing. But if an application has not for example a custom dictionary for

Re: [web2py] Re: pythonanywhere

2011-05-20 Thread Pierre Thibault
2011/5/20 Ialejandro ialejandr...@gmail.com Well, in fact Resolver One is made with IronPython (asp.net). I read it in the book IronPython in action which is written by one of the developers of Resolverone. Too bad. It is Windows only. :-( -- A+ - Pierre My blog and profile

[web2py] Login form error KeyError: 'email' after customizing db.auth_user table

2011-05-20 Thread haggis
Hi, since I doesn't need any email adresses associated with my users, I changed the schema of the auth_user table like this: file: db.py snip db.define_table( auth.settings.table_user_name, Field('name', length=32, default='', label='Name'), Field('password', 'password', length=512,

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

2011-05-20 Thread Matt
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 work. I'm using jayrock as my json-rpc C# parser and setting the url to the service to be my exposed web2py service but

[web2py] Re: Login form error KeyError: 'email' after customizing db.auth_user table

2011-05-20 Thread Massimo Di Pierro
Auth requires the email field. without it there is no way to reset password. Anyway you can do db.auth_user.email.readable=False db.auth_user.email.writable=False and disable the reset password actions. On May 20, 6:00 pm, haggis patr...@mindf.org wrote: Hi, since I doesn't need any email

[web2py] Re: Login form error KeyError: 'email' after customizing db.auth_user table

2011-05-20 Thread Anthony
On Friday, May 20, 2011 7:00:08 PM UTC-4, haggis wrote: Hi, since I doesn't need any email adresses associated with my users, I changed the schema of the auth_user table like this: file: db.py snip db.define_table( auth.settings.table_user_name, Field('name', length=32,

[web2py] Re: pythonanywhere

2011-05-20 Thread pbreit
I couldn't figure out how to see it. Any suggestions?

[web2py] Re: Logging of user actions

2011-05-20 Thread pbreit
I have it in a model so it's available everywhere.

[web2py] Re: Better language support

2011-05-20 Thread mart
that makes a lot of sense! removes confusion and leaves little room for doubt. Mart :) On May 20, 9:23 pm, Pierre Thibault pierre.thibau...@gmail.com wrote: You made good points. I think that it is important to have a process that can support the community we are. Here is my last idea on

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

2011-05-20 Thread 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.