[web2py] FluxFlex hosting

2011-10-20 Thread raven
free FluxFlex hosting seems to work well, except that it will not install a packed application. James

[web2py] Re: No CSS on linux server after upgrade to 1.95.1

2011-05-10 Thread raven
Thank you for the suggestion! This gave me the clue I needed to solve the problem. The server was configured to look for files in /home/james/web2py. I did the new installation to /home/james/web2py_new. So it couldn't find them. When I rename the old instalation, and renamed the new to web2py

[web2py] Re: No CSS on linux server after upgrade to 1.95.1

2011-05-10 Thread raven
> Do you have a routes.py? Any Apache rewriting? I do not know if I have a routes.py. It is a new installation. I am using the lighttpd server, not Apache. James

[web2py] Re: No CSS on linux server after upgrade to 1.95.1

2011-05-10 Thread raven
The problem seems to be that the server cannot find the css files. The css files are found using the html code: On my windows server, browsing to http://127.0.0.1:8000/examples/static/css/home.css shows a listing of the css file, OK. But on my linux server, browsing to http://66.199.140.183

[web2py] No CSS on linux server after upgrade to 1.95.1

2011-05-09 Thread raven
I have not used web2py for a while, so I am upgrading to the latest version 1.95.1 Everything seems OK on Windows. But there are formatting problems on my linux server. It looks to me like CSS is not working. For example, http://66.199.140.183:8000/examples shows plain text on a white backgroun

[web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-03-06 Thread raven
Type'] = 'text/csv' then you can provide a sensible default filename. On Feb 12, 10:54 am, raven wrote: > In the import controller > > * underscores are missing from the form attributes > > * The code tries to update EVERY table in db - and fails because th

[web2py] Re: Multiple validators with IS_IN_DB

2010-03-06 Thread raven
So it does! That solves my problem. Thank you. On Mar 6, 1:56 pm, "mr.freeze" wrote: > Unless you have a material entry with an empty material.name in your > database, IS_IN_DB should prevent an empty submission. > > On Mar 6, 11:44 am, raven wrote: > > >

[web2py] Multiple validators with IS_IN_DB

2010-03-06 Thread raven
I have a field that references another table Field('material', db.material) I can get SQLFORM to give me a drop down list of available material names Field('material', db.material, requires=IS_IN_DB(db,'material.id','material.name')) I can get SQLFORM to insist on filling the

[web2py] Re: How much memory does web2py need on Unix

2010-02-19 Thread raven
Now that I have web2py working with lighttpd, instead of its own web server, my application runs much, much faster and requires just over half as much memory ( 39M for web2py, python and lighttpd instead of 63M ) leaving me plenty of room in my 64M system This is great! Without lighttpd top -

[web2py] Re: How much memory does web2py need on Unix

2010-02-19 Thread raven
Found it !!! I needed to include the mod_rewrite module. Everything seems to be working now On Feb 19, 9:22 am, raven wrote: > John, > > Thank you for the suggestions. > > When I use the SERVER command, I get can't bind to port

[web2py] Re: How much memory does web2py need on Unix

2010-02-19 Thread raven
e (ignored) Do I have a typo in this?: $SERVER["socket"] == "0.0.0.0:8000" { server.document-root="/home/james/web2py" url.rewrite-once = ( "^(/.+?/static/.+)$" => "/applications$1", "(^|/.*)$" => "/handler_web2

[web2py] Re: How much memory does web2py need on Unix

2010-02-19 Thread raven
opping web server lighttpd [ OK ] Syntax OK * Starting web server lighttpd 2010-02-19 09:18:53: (network.c.300) can't bind to port: 100.101.102.103 80 Address already in use On Feb 18, 10:47 pm, John Heenan

[web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread raven
tmp/fcgi.sock", ) ) ) $HTTP["host"] == "100.101.102.103" { server.document-root="/home/james/web2py" url.rewrite-once = ( "^(/.+?/static/.+)$" => "/applications$1", "(^|/.*)$" => "/handler_web2p

[web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread raven
Well, I gave this a try, and ended up with 404 errors. fcgihandler.py suggests adding to lighttpd.conf server.error-handler-404 = '/test.fcgi' This does not help, nor does server.error-handler-404 = "/error-handler.fcgi" ( There no files on my system named *.fcgi, so I do not see how this coul

[web2py] Re: How much memory does web2py need on Unix

2010-02-13 Thread raven
Thank you for the lighttpd howto. It looks very helpful. Hopefully, I will be able to clear some time next week to give it a go. I noticed that, at the end, you spend time on URL remapping. "To benefit from this either routes.out of routes.py needs to be used or internal techniques need to be us

[web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread raven
no leading c. Try importing > cStringIO.cStringIO and see the stacktrace complaining there is no > cStringIO module in the cStringIO package. > > -Thadeus > > On Fri, Feb 12, 2010 at 9:19 AM, raven wrote: > > In the export controller > > > * need to import cStringIO

[web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread raven
ktrace complaining there is no > cStringIO module in the cStringIO package. > > -Thadeus > > On Fri, Feb 12, 2010 at 9:19 AM, raven wrote: > > In the export controller > > > * need to import cStringIO > > > * cStringIO is missing leading c > &g

[web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread raven
In the import controller * underscores are missing from the form attributes * The code tries to update EVERY table in db - and fails because they do not all have uuid fields. def importandsync(): form = FORM(INPUT(_type='file', _name='data'), INPUT(_type='submit')) if form.accepts(reque

[web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread raven
In the export controller * need to import cStringIO * cStringIO is missing leading c def export(): import cStringIO s = cStringIO.StringIO() db.export_to_csv_file(s) response.headers['Content-Type'] = 'text/csv' return s.getvalue() -- You received this message because you a

[web2py] Re: How much memory does web2py need on Unix

2010-02-12 Thread raven
" John has provided excellent benchmarks that can help us improve and can help us make better usage of the memory." He certainly helped me to get up and running! " Something I am interested in following up on." Great. It would be really great if there was an out of the box command line switch

[web2py] Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread raven
Thank you very much for placing the book online. The code in section 'CSV and remote Database Synchronization' does not run, even after indentation is fixed. Line 7 - there seems to be an extra comma and quote in the italicized code: * the underscore is missing from define_table and IS_IN_DB *

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread raven
or more) match >       "^/$" => "/handlerzgus.fcgi/zgus/default/index", #must use / > even when none in URL >       "(^/zgus.*)$" => "/handlerzgus.fcgi$1",       # app >       "(^/admin.*)$" => "/handlerzgus.fcgi$1",    

[web2py] Re: Using curl to upload files

2010-02-11 Thread raven
; > You need to not pass session to form.accepts and then it will work. > > form.accepts(request.vars) > > -Thadeus > > On Thu, Feb 11, 2010 at 4:36 PM, raven wrote: > > I tried simplifying the situation, by forgetting about the file upload > > for now, and jus

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread raven
emory 225824 > > This is the memory usage of a python console WITHOUT any imports: > resident memory 3580, virtual memory 24316 > > John Heenan > > On Feb 11, 10:30 pm, raven wrote: > > > It seems that everyone is running with Apache and gobs of memory > > availa

[web2py] Re: Using curl to upload files

2010-02-11 Thread raven
I tried simplifying the situation, by forgetting about the file upload for now, and just posting a text string db.define_table( 'names', Field('name', 'string' )) def upload2(): form=FORM(TABLE(TR("Your name:",INPUT(_type="text",_name="name",requires=IS_NOT_EMPTY())),

[web2py] Using curl to upload files

2010-02-11 Thread raven
I am trying to use curl to upload files. 1. Create table to handle files db.define_table( 'files', Field('file','upload')) 2. Controller for the form def upload(): db.files.id.default = request.args(0) form = crud.create(db.files) return dict(form=form) This works per

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread raven
es do not take that much space. > > On Feb 11, 8:34 am, raven wrote: > > > This sounds interesting. > > > Instead of hacking around in import_all.py, I wonder if someone who > > know what's what, could provide a stripped down version of this file - > > or

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread raven
wrote: > You might try commenting out the lines in import_all.py if you're > running the source version.  That way it doesn't load every module. > > -tim > > On 2/10/2010 9:06 PM, raven wrote: > > > Here are the details of memory usage when web2py is NOT runni

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread raven
On Feb 11, 7:54 am, tiago almeida wrote: You mean 64MB, not 64K, I hope. Oops! Yes, I do mean 64M :-) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this g

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread raven
users, just small database applications that a few employees can access while they are on the road. So I want to be able to offer web2py running out of the box in 64K, as a simple, cost-effective solution. On Feb 10, 10:40 am, raven wrote: > web2py is working very well for me on my MSWIND

[web2py] Re: How much memory does web2py need on Unix

2010-02-10 Thread raven
top On Feb 10, 8:13 pm, mdipierro wrote: > Are you sure. Usually VPS includes the OS. > > On Feb 10, 2:23 pm, raven wrote: > > > Thank you for your answer. > > > 1.  The memory needed by the OS does not count, because I am using a > > virtual private server.

[web2py] Re: How much memory does web2py need on Unix

2010-02-10 Thread raven
pache). I'm sure a 256MB > system will be more than enough for a small site, of course your ram > usage goes up with the more requests / db access you have. > > -Thadeus > > On Wed, Feb 10, 2010 at 9:40 AM, raven wrote: > > web2py is working very well for me on my MSWINDO

[web2py] How much memory does web2py need on Unix

2010-02-10 Thread raven
web2py is working very well for me on my MSWINDOWS desktop. I am ready to deploy my first application on a virtual private server running Ubuntu with 64K of guaranteed RAM I loaded the web2py source and typed python2.5 web2py.py and immediatly ran out of memory. How much memory do I need to pu