[web2py] Dedicated IDE beginner

2012-02-19 Thread Ashraf Mansour
Hi all, I installed red2py and web2py. No mercurial , No psp. ide2py.ini pointing to web2py server. ((python main.py)) will show ide2py (no files open) and start the application welcome in a browser. How can i run and debug welcome application inside ide2py (as in the screenshots , no

[web2py] web2py and MongoDB support

2012-02-19 Thread Rinu Boney
how complete is the mongodb support ? approx. when shall it be complete ?

[web2py] Re: Why admin|examples|welcome in hgignore?

2012-02-19 Thread pbreit
Ah, ok, thanks everyone, that makes sense. I guess I was confused because it seems like my welcome app never updates.

Re: [web2py] web2py and MongoDB support

2012-02-19 Thread Bruce Wade
In my experience mongodb works like DAL so you can just drop DAL and use mongodb (pymongo) directly. (There may be some other benefits you will miss out with DAL not sure) http://api.mongodb.org/python/2.0/tutorial.html On Sun, Feb 19, 2012 at 1:16 AM, Rinu Boney rinu.mat...@gmail.com wrote:

[web2py] checklist plugin with templates

2012-02-19 Thread szimszon
Hi All! I made a small app (plugin) for checklist with templates. Templates You can define checklist templates. You should fill only 3 text field for each template: 1. You should name the template. 2. The actual list of the checklist. - Section headers - Check boxes

[web2py] Re: web2py + GAE memory usage

2012-02-19 Thread howesc
so i uploaded welcome from 1.99.4 to GAE, running python2.7 multi-threaded, and hit all the URLS in welcome that i coule (which is not too many), and here is the play-by-play. The numbers on the left are instance memory size in MB 45.3 - first page 45.7 - same page, diff URL 45.7 - refresh

[web2py] Re: web2py and MongoDB support

2012-02-19 Thread Massimo Di Pierro
DAL in trunk has mongodb support. I am not sure what kind of functionalities are/are not supported. Give it a try. On Feb 19, 10:09 am, Bruce Wade bruce.w...@gmail.com wrote: In my experience mongodb works like DAL so you can just drop DAL and use mongodb (pymongo) directly. (There may be some

[web2py] Re: web2py + GAE memory usage

2012-02-19 Thread Massimo Di Pierro
I am very puzzled by this. I was under he impression nothing persisted on GAE except for stuff in datastore. web2py for GAE was built under that assumption. It appears to be not true. If you can find anything else to narrow down the problem, let us know. On Feb 19, 11:57 am, howesc

Re: [web2py] Re: web2py + GAE memory usage

2012-02-19 Thread Jonathan Lundell
On Feb 19, 2012, at 11:41 AM, Massimo Di Pierro wrote: I am very puzzled by this. I was under he impression nothing persisted on GAE except for stuff in datastore. web2py for GAE was built under that assumption. It appears to be not true. If you can find anything else to narrow down the

Re: [web2py] Re: web2py + GAE memory usage

2012-02-19 Thread Christian Foster Howes
i see similar behavior on python2.5, i just did my test on 2.7 as i'm trying to move my clients that way anyway. i'm going to do some more digging this afternoon. On 2/19/12 11:53 , Jonathan Lundell wrote: On Feb 19, 2012, at 11:41 AM, Massimo Di Pierro wrote: I am very puzzled by this. I

[web2py] Re: Question about web2py syntax

2012-02-19 Thread davidkw
Thanks! I didn't know that objects could be callable in Python. On Feb 17, 10:44 pm, Anthony abasta...@gmail.com wrote: db is a DAL object, which is callable. Its __call__ method takes a query and returns a Set object, which has a select() method for pulling records from the database. So,

[web2py] Re: web2py + GAE memory usage

2012-02-19 Thread howesc
i've learned that i don't know how to figure this out. i tried using the sys.getsizeof() on globals in various locations in the code and that always remained constant even while the memory size of the instance changed. i did notice that by adding the toolbar to the response on

[web2py] Method to interactively experiment with web2py

2012-02-19 Thread davidkw
I'm wondering if there's some kind of way to use a shell or other IDE to quickly run lines of web2py code and see the result. For example, just entering db(query).select().first() and being able to see the result. I'm learning right now, and it's a little difficult to pick up the syntax without

[web2py] Re: web2py + GAE memory usage

2012-02-19 Thread Massimo Di Pierro
in compileapp there is some weird logic: if not os.path.split(model)[0] in paths and c!='appadmin': continue elif compiled: code = read_pyc(model) elif is_gae: code = getcfs(model, model, lambda:

[web2py] Re: Method to interactively experiment with web2py

2012-02-19 Thread Anthony
Yes, you can run a web2py app in a shell. At a shell command line (in the /web2py folder): python web2py.py -S app -M -N The -S tells it to run app in a shell. The -M tells it to run the model files (so once you're in the shell, you'll have access to any objects defined in your model files,

[web2py] uploading large file (15 MB) to blob field

2012-02-19 Thread Matt Grham
Hi All, When I try to upload a file that is greater than 15 MB to a blob data field, I get the following error from pymysql: (type 'exceptions.AssertionError', AssertionError('Result length not requested length:\nExpected=21071312. Actual=16777025. Position: 190. Data Length: 16777215',))

[web2py] Re: Method to interactively experiment with web2py

2012-02-19 Thread Massimo Di Pierro
What you use python web2py.py -S app -M -N make sure to db.commit() your changes. On Feb 19, 5:45 pm, davidkw trixiesr4k...@hotmail.com wrote: I'm wondering if there's some kind of way to use a shell or other IDE to quickly run lines of web2py code and see the result. For example, just

[web2py] how to modify scaffolding form for a specific model

2012-02-19 Thread Can Candan
I am willing to extend the behavior of the autogenerated crud interface just for one table so that when the dropdown corresponding to a one-to-many relation is selected another dropdown should display values corresponding to the chosen one. In other words i need a dynamic restriction, something

[web2py] The Great Web Framework Shootout

2012-02-19 Thread pbreit
http://blog.curiasolutions.com/the-great-web-framework-shootout/ https://github.com/seedifferently/the-great-web-framework-shootout

Re: [web2py] The Great Web Framework Shootout

2012-02-19 Thread Bruno Rocha
I did not see web2py on the list... Em 20/02/2012 03:03, pbreit pbreitenb...@gmail.com escreveu: http://blog.curiasolutions.com/the-great-web-framework-shootout/ https://github.com/seedifferently/the-great-web-framework-shootout

[web2py] Web2py Code University and Officaial Certify Training

2012-02-19 Thread Ramkrishan Bhatt
Hello Web2py lovers, from past 1 year i am working on web2py in INDIA with zero-group.com, and also trained many people who's showed interest in web development. In education many of them looking for training approachability for there brite career. I liked the way Google started it's own

[web2py] Passing arg from view to controller.

2012-02-19 Thread Annet
In this post my problem was almost solved, I am left with an args problem. I am using the jQuery UI autocomplete. In the controller I have this function: def locality_args_autocomplete(): rows=db((db.NodeKeyword.word==request.args(0))(db.NodeKeyword.nodeID==db.Address.nodeID) \

[web2py] Re: jQuery UI multiselect

2012-02-19 Thread Annet
Hi Alan, Thanks for your help. I started a new thread for this last post: http://groups.google.com/group/web2py/browse_thread/thread/b7d702e5c8cb5cdd Kind regards, Annet.

[web2py] Passing arg from view to controller.

2012-02-19 Thread Annet
In this post: http://groups.google.com/group/web2py/browse_thread/thread/9886ecbead18a13a/a9ab71c234f0afbb#a9ab71c234f0afbb, my problem was almost solved, I am left with an args problem. I am using the jQuery UI autocomplete. In the controller I have this function: def

[web2py] Re: jQuery UI multiselect

2012-02-19 Thread Annet
Hi Alan, Thanks for your help. I started a new thread for this last post: http://groups.google.com/group/web2py/browse_thread/thread/af5664321fb9a9a Kind regards, Annet.

[web2py] Re: Enable and disable links in a view.

2012-02-19 Thread Annet
Hi Alan, I am still struggling getting your solution mapped to my problem, I'll post the entire view, hoping you will provide me with some more clues to help me get this to work. {{extend 'initLayout.html'}} style type=text/css .content {margin: 24px auto 24px; width: 600px;} .admin a,

Re: [web2py] Re: deployment

2012-02-19 Thread Johann Spies
On 17 February 2012 19:58, shartha m.mirghorb...@gmail.com wrote: my files should go into the public_html folder that resides inside my /home/domainName/public_html. Give that, should I still make a /var/www folder? No. You should be able to work in public_html. Use that as the root as far