[web2py] Re: web2py 1.98.2 is OUT

2011-08-05 Thread szimszon
Issue 292 is still there [normal and lazy virtual field behavior] http://code.google.com/p/web2py/issues/detail?id=292

Re: [web2py] Building web2py binary for windows with extra libs

2011-08-05 Thread Praneeth Bodduluri
Hello Syed, It is possible for you to rebuild the web2py exe adding in your required libraries. The following links might be of help: 1) http://eden.sahanafoundation.org/browser/static/scripts/tools/standalone_exe.py 2) https://groups.google.com/d/topic/web2py/Lirvj_J8q1U/discussion Regards,

[web2py] HTTP Error 502 Bad Gateway and Static-only option on Webfaction

2011-08-05 Thread Johann Spies
Some users complains about 'HTTP Error 502 Bad Gateway' on a Web2py site on webfaction. When I enquired about that support@webfaction mentioned that it is related to my website and referred me to http://docs.webfaction.com/software/static.html#serving-static-media for a possible solution. Now I

[web2py] Re: MongoDB supported by DAL

2011-08-05 Thread Francisco Costa
Mongo over couch? Why? basically performance, but you can read more here http://www.mongodb.org/display/DOCS/Comparing+Mongo+DB+and+Couch+DB or search for some benchmarks

[web2py] Re: MongoDB supported by DAL

2011-08-05 Thread David Marko
Mongo over couch? Why? Adhoc Queries ...

[web2py] Re: default function of a controller

2011-08-05 Thread Francisco Costa
On Aug 5, 12:54 am, pbreit pbreitenb...@gmail.com wrote: That should be easy to support. In default.py: def user():     if request.args(0):         user = request.args(0)         ...     else: # list     ... def restaurant():     if request.args(0):         restaurant =

[web2py] Re: Trouble with components

2011-08-05 Thread Massimo Di Pierro
I know. They were just regular good practice suggestions. Sorry. Will look for a solution. On Aug 4, 6:44 pm, G glenn.calt...@gmail.com wrote: Hi Massimo, Thank you for the suggestions. I have implemented both, but neither helps with the original problem of having components with multiple

[web2py] Re: Database drivers lost

2011-08-05 Thread Massimo Di Pierro
You may have two python versions and one of them does not have sqlite. On Aug 4, 10:06 pm, Matthew matthew.g.nor...@gmail.com wrote: I ran a functioning application using App Engine once. When I tried to run it again without GAE, I noticed that only the goolgle database driver was available

[web2py] Re: customisation in dal.py - what is the best way

2011-08-05 Thread Massimo Di Pierro
if I understand the question. yes. On Aug 5, 12:23 am, Vineet vineet.deod...@gmail.com wrote: @Massimo, If I get you right, the MySQLdb module is still there in web2py; and it is not replaced totally with pymysql; As such, we can choose from these 2 modules. Other statements would not break

[web2py] CRUD full permission on tables

2011-08-05 Thread Angelo Compagnucci
Hello, To enforce full CRUD permissions on a table, I have to manually add read, select, create, update, delete permissions to auth_permission table or there is a way to assign all permission with a single shot? In the same way, if I want a user with super admin rights on all the tables, I have

[web2py] Re: web2py 1.98.2 is OUT

2011-08-05 Thread Massimo Di Pierro
Your problem is solved here: http://groups.google.com/group/web2py/msg/1757c6ffb7041e6c see the copy.copy? That is the problem. It is a performance issue. Web2py could do the copy for you (so you do need to) but it would come at a penalty. We need some major refactoring of virtual fields...

[web2py] GAE Question

2011-08-05 Thread Auden RovelleQuartz
After updating the GAE SDK to version 1.5.2, when I deploy and go to the URL for my application, I am getting Oops! This link appears to be broken. Suggestions: Go to appspot.­com Search on Google: error message has anyone had similar issues?

[web2py] Re: mongoDBAdapter test ......

2011-08-05 Thread Francisco Costa
On Aug 4, 7:05 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Nobody is really pushing for this... nobody has provided any feedback about the adapter. I think there is a lot of people interested in this: http://groups.google.com/group/web2py/browse_thread/thread/ec2a16b9f4e957a0

Re: [web2py] CRUD full permission on tables

2011-08-05 Thread Richard Vézina
You can build function to do that massively! Richard On Fri, Aug 5, 2011 at 6:38 AM, Angelo Compagnucci angelo.compagnu...@gmail.com wrote: Hello, To enforce full CRUD permissions on a table, I have to manually add read, select, create, update, delete permissions to auth_permission table

Re: [web2py] Re: call web2py in view from a jQuery script

2011-08-05 Thread Richard Vézina
All is in the view : {{extend 'layout.html'}} {{=table}} all needed dependency $(document).ready(function() { $(#tabs).tabs( { show: function(event, ui) { var oTable = $('div.dataTables_scrollBodytable.sortable', ui.panel).dataTable(); if ( oTable.length 0

Re: [web2py] GAE Question

2011-08-05 Thread qasimak...@gmail.com
Yes I am having the same issue. I am new to web2py so I thought maybe I was doing some thing wrong :-) On Aug 5, 2011 4:30 PM, Auden RovelleQuartz oves@gmail.com wrote: After updating the GAE SDK to version 1.5.2, when I deploy and go to the URL for my application, I am getting Oops! This

[web2py] Re: Trouble with components

2011-08-05 Thread G
Having many small forms is actually working out pretty well, and seems to be a resonable solution. It was not intuitive to me, but I think it's just a disconnect between the way I would do things in a GUI framework versus the way things need to be done for web applications. By the way, I think it

Re: [web2py] JqGrid module

2011-08-05 Thread Jim Karsten
Johann, I updated the jqgrid application to include demos for using complex queries and accessing data from a webservice. Demos are found in the default.py controller. If you cloned the git repo, just run 'git pull' in the repo directory and you should get the latest. Cheers, Jim

[web2py] Re: jqgrid widget with no table source

2011-08-05 Thread Jim Karsten
xenebros, I updated the jqgrid application avaliable on the web2pyslice page to include a demo for accessing data from a webservice. Demos are found in the default.py controller. Cheers, Jim

[web2py] Re: Trouble with components

2011-08-05 Thread Gour-Gadadhara Dasa
On Fri, 5 Aug 2011 08:24:54 -0700 (PDT) G glenn.calt...@gmail.com wrote: As it is, the web2py book seems to assume a lot of familiarity with creating web applications and less familiarity with Python. I imagine several people like me are in the opposite situation. At the moment I'm on the

Re: [web2py] GAE Question

2011-08-05 Thread howesc
do you have more details? i upgraded to GAE 1.5.2 when it came out and am using it without problem. though i always invoke it via a command line script (even though i'm on a mac right now). i'm running several differing versions of web2py for various clients without problem. note that keep

[web2py] Update web2py version 1.98.2

2011-08-05 Thread Ovidio Marinho
I updated the new version but in the read-me file did not say anything of 1.98.2,why? Ovidio Marinho Falcao Neto ovidio...@gmail.com 88269088 Paraiba-Brasil

[web2py] Re: celery integration?

2011-08-05 Thread pbreit
Celery 2.3 just came out (http://www.celeryproject.org/) which prompted me to have a look. The DatabaseBackend doesn't look too bad: https://github.com/ask/celery/blob/master/celery/backends/database.py I don't totally understand all of it but if I get super ambitious, maybe I'll take a crack

[web2py] Trigger javascript to run after components are loaded

2011-08-05 Thread Jim Steil
Hi I have a bunch of pages that load a number of components. On these pages I have a script that fires after the page is loaded that resizes a few things and places my footer where it should be. Unfortunately, this is all happening before my components are completely loaded and therefore

[web2py] Re: Trigger javascript to run after components are loaded

2011-08-05 Thread Anthony
You can set response.js to some javascript (set it in the component controller), and it will be run after the component is loaded. On Friday, August 5, 2011 3:21:03 PM UTC-4, Jim S wrote: Hi I have a bunch of pages that load a number of components. On these pages I have a script that

Re: [web2py] Re: multiselect with part of a table

2011-08-05 Thread Nicolas Palumbo
I fixed it with a custom validator as howesc suggested.Basically i added a second set parameter which has the selected items of other products, without changing the items that the widget will use, but affecting the final values variable used for persistence: class CUSTOM_IS_IN_DB(Validator):

Re: [web2py] Re: Trigger javascript to run after components are loaded

2011-08-05 Thread Jim Steil
Thanks Anthony - should I be able to see that executing in firebug somewhere? I tested first by putting an alert in response.js and it worked. However, when I try to call my resize function I can't see it firing through firebug. Thoughts? -Jim On 8/5/2011 2:35 PM, Anthony wrote: You

[web2py] bug and fix in Storage.__setattr__ when assigning Field instances as values

2011-08-05 Thread Carlos
Hi, When I try to assign a Field instance as a value in a Storage object, it fails by simply not assigning anything (and in fact removing the key if it was already present). x = Storage() x.any = (any Field instance) print x ... Storage {} In summary, it treats Field instances as

[web2py] Re: celery integration?

2011-08-05 Thread Massimo Di Pierro
web2py-celery will be reased in less than one week. I am almost done. On Aug 5, 1:26 pm, pbreit pbreitenb...@gmail.com wrote: Celery 2.3 just came out (http://www.celeryproject.org/) which prompted me to have a look. The DatabaseBackend doesn't look too

[web2py] web2py.com down?

2011-08-05 Thread Nicolas Palumbo
can't access no page in web2py.com

Re: [web2py] web2py.com down?

2011-08-05 Thread Jim Steil
...same for me On 8/5/2011 3:07 PM, Nicolas Palumbo wrote: can't access no page in web2py.com

Re: [web2py] web2py.com down?

2011-08-05 Thread Anthony
Seems to be happening a lot recently.

Re: [web2py] Re: Trigger javascript to run after components are loaded

2011-08-05 Thread Anthony
On Friday, August 5, 2011 3:38:57 PM UTC-4, Jim S wrote: Thanks Anthony - should I be able to see that executing in firebug somewhere? I tested first by putting an alert in response.js and it worked. However, when I try to call my resize function I can't see it firing through firebug.

[web2py] Re: Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-05 Thread Christopher Steel
*pip install web2py* from a virtualenv give you a pretty slim setup although it is not very well documented, yet...

[web2py] Re: web2py.com down?

2011-08-05 Thread pbreit
If you have any free time, check out CloudFlare. It's a free service that caches all your assets and tries to prevent threats such as DoS. All you do is switch your DNS hosting to the.

[web2py] Re: default function of a controller

2011-08-05 Thread pbreit
Then this should work: === user.py === def index() if request.args(0): user = request.args(0) ... else: # list ... === restuarant.py === def index() if request.args(0): user = request.args(0) ... else: # list ...

[web2py] Re: default function of a controller

2011-08-05 Thread Anthony
On Friday, August 5, 2011 6:26:04 AM UTC-4, Francisco Costa wrote: On Aug 5, 12:54 am, pbreit pbreit...@gmail.com wrote: That should be easy to support. In default.py: def user(): if request.args(0): user = request.args(0) ... else: # list

[web2py] Re: celery integration?

2011-08-05 Thread mart
i put together app for queuing tasks (although tasks are not executed by this app, just for queueing). I get the feeling that celery + whatever you are doing is better than anything I can come up with (although it does the job well enough) :) LOL If you want some help testing, I'd be happy to

Re: [web2py] Re: celery integration?

2011-08-05 Thread Vasile Ermicioi
will celery substitute web2py cronjobs ?

Re: [web2py] Re: celery integration?

2011-08-05 Thread pbreit
Only if you are using cron jobs to process tasks asynchronously. Cron is usually for running tasks on a scheduled basis.

Re: [web2py] Re: celery integration?

2011-08-05 Thread Vasile Ermicioi
from celery home page: Celery is an asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports *scheduling *as well. The execution units, called tasks, are executed concurrently on a single or more worker servers using

Re: [web2py] Re: celery integration?

2011-08-05 Thread pbreit
I guess you could but I doubt Web2py would swap out crontab for celery since cron works fine and is well known. http://ask.github.com/celery/userguide/periodic-tasks.html#crontab-schedules

[web2py] What is the best deployment method.

2011-08-05 Thread Jason Brower
I see three places that I have to work in a modern team based development. Local Machine: Where I host my own server and settings. Testing Machine: Server that should mimic live production to work out any details. Production: Server with publicly available sites and where data kept vital over

[web2py] Re: Building web2py binary for windows with extra libs

2011-08-05 Thread Iceberg
Nice tips, Praneeth. And looks like Massimo has not objection to these kind of attempts (he even participated in some of the discussions). So I guess all these kind of approaches are not considered as violation of the web2py license. Yes? No?

[web2py] Re: What is the best deployment method.

2011-08-05 Thread pbreit
I do my dev on a Mac and deploy to 2 Ubuntu cloud servers, one for testing and one for production. I use Fabric scripts to pull from a Bitbucket repo. Works fine.

Re: [web2py] Re: What is the best deployment method.

2011-08-05 Thread Bruno Rocha
I do my dev on a Mac and deploy to 2 Ubuntu cloud servers, one for testing and one for production. I use Fabric scripts to pull from a Bitbucket repo. Works fine. I use Ubuntu on local server, I jsut use mercurial to deploy, push from local, pull from remote. managing branches etc... I

[web2py] Re: What is the best deployment method.

2011-08-05 Thread Dane
For me git + simple sh hooks has been an easy and effective method. On Aug 6, 12:18 am, Jason Brower encomp...@gmail.com wrote: I see three places that I have to work in a modern team based development. Local Machine: Where I host my own server and settings. Testing Machine: Server that should

[web2py] Re: New Plugin: plugin_ckeditor

2011-08-05 Thread tomt
Hi, I was having trouble editing existing data with web2py_ckeditor until I applied Bruno's patch. Before applying this patch, the plugin could save new data, but it wouldn't edit existing data. It always started with an empty textarea. Now it works as I would expect. (I'm using web2py Version

[web2py] Re: Mix query and string types?

2011-08-05 Thread pbreit
I'm taking a closer look at this again. Can I subclass or extend DAL or do I have to edit dal.py directly? I was trying to do this with executesql and one problem I ran into is that my virtualfields did not seem to be coming through. Is that expected?