[web2py] Re: Amazon EC2 discussion: pros/cons, etc.

2012-05-01 Thread Richard Galka
, Richard Galka wrote: I had a setup for a while with freebsd, web2py (and corresponding dependencies). There was very little difference on setup between amazone ec2 and the bare metal machines I previously set everything up on. Just remember, by default no guaranteed static IP...

[web2py] Re: Amazon EC2 discussion: pros/cons, etc.

2012-04-30 Thread Richard Galka
I had a setup for a while with freebsd, web2py (and corresponding dependencies). There was very little difference on setup between amazone ec2 and the bare metal machines I previously set everything up on. Just remember, by default no guaranteed static IP... On Monday, April 30, 2012 4:59:21

Re: [web2py] Re: Reloading modules

2012-04-30 Thread Richard Galka
I would also like to comment that I suspect (unconfirmed) that reloading of modules while references are still around appears to potentially cause memory leaks.. during dev while modules are reloaded, our app's memory usage grows significantly. With this disabled, we find a consistent

Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-26 Thread Richard Galka
For encrypting and decrypting files using a validator works quite well. In our model we have something like: Field('data', 'upload', requires=[IS_NOT_EMPTY(), IS_LENGTH(26214400, 0, error_message=File too

Re: [web2py] Re: web2py: encrypt uploaded files

2012-04-26 Thread Richard Galka
For encrypting/decrypting DB columns, we also use a validator: Ex: db.define_table('table', Field('name', 'text'), Field('host', 'text', requires = SecureValidator(symmetrickey)), Field('secret', 'text', requires = SecureValidator(symmetrickey)) )

Re: [web2py] About concurrent tasks

2012-03-02 Thread Richard Galka
If this is supposed to be a scalable application, then I'd really suggest using some middleware layer. This way your front end(s) (web2py instances) can make a request which could then be distributed to multiple services. Example: First thought on a solution that comes to mind is web2py using

[web2py] Re: web2py 1.99.5 (please read)

2012-02-28 Thread Richard Galka
A couple minor points with the admin pages and the new debugging section: In the Admin - Debug - breakpoints - Add breakpoints section, if the current application has long directory file names then the table's hints run off the page. I think it may be pertinent to identify that in the

Re: [web2py] postgres schema

2012-01-03 Thread Richard Galka
In general we use schemas to segregate data and provide access control within web2py. (Authentication and access control is at the DB level and not the web app level). As mentioned by Manuele we also use executesql to set the search path as required. In our environment each schema may

Re: [web2py] can't get compute to work on update

2012-01-03 Thread Richard Galka
A quick and dirty way to check what is going on is to add debug statements in the web2py dal.py code. I had a similiar issue, and the quickest way I found to check why compute failed was to remove the except KeyError in the def _lisitfy of dal.py. Then an error is thrown whenever the compute