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

2010-02-11 Thread KMax
Look like OpenVZ container. I play with this a lot. First of all memory size, not always limits your need. 64M - to low. Hardly to run static serve apache. (moderate load). VZ container also has limits for (sample from my server) 100: kmemsize23782914102256 2147483647 2147483647

[web2py] Re: powered by drupal?

2010-02-11 Thread Anand Vaidya
On Feb 10, 10:31 pm, vfclists wrote: > I don't think it is a smart idea to build a documentation website with > Drupal. Drupal doesn't do very well in that respect. Drupal's own book > module has more than its fair share of issues and complaints, and is > one of the reasons why there are so many c

[web2py] Re: powered by drupal?

2010-02-11 Thread selecta
Just my 2 cents: Any site documenting/hosting a web2py community should be web2py, I don like google groups i don't like the idea of joining in a non web2py wiki. I can see it is easier and makes even more sense to reuse something good but if the docu/community platform isn't a web2py show-off then

[web2py] Re: Bug in webfolder plugin

2010-02-11 Thread selecta
let me see, I improved it a bit lately, I will check and upload a new version if i found the bug On Feb 11, 2:45 am, Alexandre Andrade wrote: > When I try to delete a folder/file, it creates repeats the last action. > (Usually creating a second file/folder) > > How solves it? > > -- > Atenciosame

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

2010-02-11 Thread raven
It seems that everyone is running with Apache and gobs of memory available. They cannot really get their heads around running web2py out of the box in 64K. So let me explain why this is important. When I sell a desktop application to someone, all they have to pay for is my coding work. They alr

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

2010-02-11 Thread tiago almeida
You mean 64MB, not 64K, I hope. On Thu, Feb 11, 2010 at 12:30 PM, raven wrote: > It seems that everyone is running with Apache and gobs of memory > available. They cannot really get their heads around running web2py > out of the box in 64K. > > So let me explain why this is important. > > When

[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] upload field without storing the file

2010-02-11 Thread Mike
Hopefully this is a quick one... I want to use SQLFORM to allow a user to save information about a file including the *local path*. However I don't want to actually save the file in the database. The idea is to parse the local path and save a portion of it to the db that will match a file structur

[web2py] Re: Bug in webfolder plugin

2010-02-11 Thread selecta
ok should be fixed http://jaguar.biologie.hu-berlin.de/~fkrause/web2py.plugin.webfolder.w2p same problem should occur with selecting/deselecting folders, will fix that soon On Feb 11, 1:00 pm, selecta wrote: > let me see, I improved it a bit lately, I will check and upload a new > version if i f

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

2010-02-11 Thread Timothy Farrell
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 running top - 21:58:38 up 11:57, 2 users, load average: 0.00,

Re: [web2py] Re: powered by drupal?

2010-02-11 Thread Frank Church
I think you should have more appreciation for Massimo, he probably has enough on his hands without trying to herd cats as well. As he says, everyone can create their documentation, and he will link to it .The community itself can have a central page where they are all linked to. On 11 February 20

[web2py] Re: Bug in webfolder plugin

2010-02-11 Thread selecta
ok should be fixed too, I appreciate your bug reports please tell me it something else does not work eventually I want to build in access management, but this will take some time since I am not quite sure how to do access management in a proper way so all plugins/... can use the same access manage

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

2010-02-11 Thread raven
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 even an option to run with a stripped down version that only loads the bare minimum? On Feb 11, 8:49 am, Timothy Farrell wrote: >

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

2010-02-11 Thread Andres Vargas - zodman
im us this script for check the memory usage of my aplications ... checkit... http://gist.github.com/252585 On Thu, Feb 11, 2010 at 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 stripp

Re: [web2py] Re: Bug in webfolder plugin

2010-02-11 Thread Alexandre Andrade
I'm developing access management, it is a client's requirement. I will use auth of web2py. Soon its ready, I will post it back. 2010/2/11 selecta > ok should be fixed too, I appreciate your bug reports please tell me > it something else does not work > > eventually I want to build in access ma

[web2py] Re: Bug in webfolder plugin

2010-02-11 Thread selecta
nice, I am excited :) On Feb 11, 4:10 pm, Alexandre Andrade wrote: > I'm developing access management, it is a client's requirement. > > I will use auth of web2py. > > Soon its ready, I will post it back. > > 2010/2/11 selecta > > > > > > > ok should be fixed too, I appreciate your bug reports p

[web2py] auth_user registration, password field: Order is relevant (OR other reason) OR bug?

2010-02-11 Thread aure
Hi everyone, I have customised my table for authentificaition, as shown by Massimo here: http://groups.google.com/group/web2py/browse_thread/thread/f4ae0f4c5b9336d0/327ff8e49d88fbb3?lnk=gst&q=custom+authentication+form#327ff8e49d88fbb3 If I put CRYPT() before IS_NOT_EMPTY(...) in the list of requ

[web2py] Re: How to deploy my first app

2010-02-11 Thread Al
Thank you for your input. I am using Windows server so I cannot use the ubuntu scripts you mentioned. How about my second part of the question? I understand why web2py is designed in such a "secure" fashion. I am just trying to find a way around it so that I can deploy my first app. I theory I shou

Re: [web2py] auth_user registration, password field: Order is relevant (OR other reason) OR bug?

2010-02-11 Thread Alexandre Andrade
I'm trying to customize auth for a long time, without sucess. Massimo said have a bug fixed in trunk, so I'm waiting the new version to see if it works. But in your case, I think its not possible CRYPT() nothing... so makes sense IS_NOT_EMPTY first. 2010/2/11 aure > Hi everyone, > > I have cu

Re: [web2py] Re: How to deploy my first app

2010-02-11 Thread Alexandre Andrade
To see the tickets, use https protocol. 2010/2/11 Al > Thank you for your input. I am using Windows server so I cannot use > the ubuntu scripts you mentioned. How about my second part of the > question? I understand why web2py is designed in such a "secure" > fashion. I am just trying to find

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

2010-02-11 Thread Kevin Bowling
You probably can't even fit the process scheduler of a modern OS in 64k. Unless you want to code your apps on bare metal (no OS) assembly language, there is no way you'll get any higher level language in 64k. Even then, toss out the notions of a database, transactions, concurrency, and performanc

Re: [web2py] auth_user registration, password field: Order is relevant (OR other reason) OR bug?

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 7:57 AM, Alexandre Andrade wrote: > I'm trying to customize auth for a long time, without sucess. > > Massimo said have a bug fixed in trunk, so I'm waiting the new version to see > if it works. > > But in your case, I think its not possible CRYPT() nothing... so makes se

Re: [web2py] auth_user registration, password field: Order is relevant (OR other reason) OR bug?

2010-02-11 Thread Alexandre Andrade
Others parts of web2py code can rely in a non-empty password. 2010/2/11 Jonathan Lundell > On Feb 11, 2010, at 7:57 AM, Alexandre Andrade wrote: > > I'm trying to customize auth for a long time, without sucess. > > Massimo said have a bug fixed in trunk, so I'm waiting the new version to > see

Re: [web2py] auth_user registration, password field: Order is relevant (OR other reason) OR bug?

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 8:17 AM, Alexandre Andrade wrote: > Others parts of web2py code can rely in a non-empty password. It's always non-empty once it's hashed, and only the hash is retained. > > > > 2010/2/11 Jonathan Lundell > On Feb 11, 2010, at 7:57 AM, Alexandre Andrade wrote: > >> I'm t

[web2py] Re: Form added using ajax doesnt insert into database

2010-02-11 Thread anuj
in my controller, i tried if form.accepts(...): ... else: ... Turns out the control is never passed back here on form submission. I am using AJAX to call a function which returns the form HTML as text and embed that into a div's innerHTML. Any ideas? On Feb 11, 10:10 am,

[web2py] can anyone try this? confusing appliances part #1

2010-02-11 Thread Kuba Kucharski
hg clone http://bitbucket.org/hc/w2popenid/ and install the appliance? Traceback (most recent call last): File "/usr/src/web2py/gluon/restricted.py", line 173, in restricted exec ccode in environment File "/usr/src/web2py/applications/cas/models/db.py", line 29, in from applications.

[web2py] Re: wsgi and sys.stdout

2010-02-11 Thread mdipierro
When you call print it sends it to stdout and that is redirect into the text of the response so it break pages. On Feb 11, 12:01 am, Graham Dumpleton wrote: > What is the actual problem you are trying to solve on GAE? > > Graham > > On Feb 11, 4:20 pm, mdipierro wrote: > > > I agree. I was propo

[web2py] Re: deploy to gae

2010-02-11 Thread mdipierro
This is really good news! On Feb 11, 12:05 am, Richard wrote: > No more 1000 result > limit!http://googleappengine.blogspot.com/2010/02/app-engine-sdk-131-includ... > > On Feb 11, 12:25 pm, mdipierro wrote: > > > 1) Make sure you ALWAYS try every page and search on dev_appserver so > > that ind

[web2py] Re: Typo in cron..

2010-02-11 Thread mdipierro
fixed already in trunk, will post 1.74.12 soon. On Feb 11, 12:07 am, KMax wrote: > Please note: > gluon/contrib/cron.py has >         self.cronmaster = crondance(self.path, 'soft', starup = True) > but should be (I guess) >         self.cronmaster = crondance(self.path, 'soft', startup = True) >

[web2py] Re: set static file caching policy

2010-02-11 Thread mdipierro
Yes but it requires the client checking. By increasing cacheing time, the client does not check. On Feb 11, 12:11 am, Jonathan Lundell wrote: > On Feb 10, 2010, at 9:21 PM, mdipierro wrote: > > > You cannot unless you create your own action to server them: > > Doesn't streamer already do the rig

[web2py] who uses the online designer?

2010-02-11 Thread snfctech
It seems like some DAL types are left out - such as 'upload'. It's nice to have a visual DAL code generator, but if I have to go back and edit the generated code, then that seems to defeat the purpose a bit. -- You received this message because you are subscribed to the Google Groups "web2py-us

[web2py] Re: Bug in sql.Set ?

2010-02-11 Thread mdipierro
can you provide an example of usage? On Feb 11, 12:48 am, Alexey Nezhdanov wrote: > Hi. > Sorry, didn't check if that bug still exists in latest version. > Here is the problem: in Oracle substracting one datetime column from the > other gives the floating number (days). > However the web2py consi

[web2py] Re: Bug in webfolder plugin

2010-02-11 Thread mdipierro
Please make it into a plugin. On Feb 11, 9:10 am, Alexandre Andrade wrote: > I'm developing access management, it is a client's requirement. > > I will use auth of web2py. > > Soon its ready, I will post it back. > > 2010/2/11 selecta > > > > > ok should be fixed too, I appreciate your bug repor

[web2py] Re: powered by drupal?

2010-02-11 Thread mdipierro
Thank you Frank. Anyway... I have been trying address this and something nice will come out soon. Massimo On Feb 11, 8:27 am, Frank Church wrote: > I think you should have more appreciation for Massimo, he probably has > enough on his hands without trying to herd cats as well. > > As he says, ev

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

2010-02-11 Thread mdipierro
you just comment import import_all from main web2py should still work but will choke later if an app requests a module that does not fit in memory. Anyhow, modules do not take that much space. On Feb 11, 8:34 am, raven wrote: > This sounds interesting. > > Instead of hacking around in import_all.

[web2py] Re: auth_user registration, password field: Order is relevant (OR other reason) OR bug?

2010-02-11 Thread mdipierro
make sure you ALWAYS pass CRYPT(auth.setting.hmac_key) to CRYPT. On Feb 11, 9:50 am, aure wrote: > Hi everyone, > > I have customised my table for authentificaition, as shown by Massimo > here:http://groups.google.com/group/web2py/browse_thread/thread/f4ae0f4c5b... > > If I put CRYPT() before

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

2010-02-11 Thread Thadeus Burgess
I don't see how you are running any system on 64MB (unless it is DOS or some really really old linux version... maybe gentoo... maybe. ) You won't be able to run web2py on this system. Either upgrade the system or get a shared hosting service. -Thadeus On Thu, Feb 11, 2010 at 12:18 PM, mdipi

Re: [web2py] Re: wsgi and sys.stdout

2010-02-11 Thread Álvaro Justen [Turicas]
On Thu, Feb 11, 2010 at 16:10, mdipierro wrote: > When you call print it sends it to stdout and that is redirect into > the text of the response so it break pages. Using print running web2py on Apache cause exceptions since mod_wsgi does not implement sys.stdout. So I think we need to focus this

[web2py] Re: wsgi and sys.stdout

2010-02-11 Thread mdipierro
Please, go back to the beginning of the thread. ;-) On Feb 11, 12:25 pm, Álvaro Justen [Turicas] wrote: > On Thu, Feb 11, 2010 at 16:10, mdipierro wrote: > > When you call print it sends it to stdout and that is redirect into > > the text of the response so it break pages. > > Using print runnin

Re: [web2py] Re: How to deploy my first app

2010-02-11 Thread Álvaro Justen [Turicas]
On Wed, Feb 10, 2010 at 13:38, mdipierro wrote: > It depends. For development if you use the built in web server you > need to start it twice for http and https. This is in general a > security measure. You do not want the same process to listen to two > sockets else if something happens (like a m

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

2010-02-11 Thread raven
I commented out the line import gluon.import_all from web2py.py. This seemed to help a lot! I now have free memory, just a little, and the % memory used was halved. My little application runs fine, so far. top - 13:33:31 up 1 day, 3:32, 3 users, load average: 0.00, 0.00, 0.00 Tasks: 14 to

[web2py] error in appliances

2010-02-11 Thread Alexandre Andrade
http://www.web2py.com/appliances get the error: Ticket issued: appliances/127.0.0.1.2010-02-11.12-32-19.4017a4e3-ebbe-4441-a9cb-52365eb60b69 -- Atenciosamente -- =

Re: [web2py] Re: How to deploy my first app

2010-02-11 Thread Alexandre Andrade
I have 2 sugestions for the setup-web2py-ubuntu.sh: remove install emacs (what emacs have to do with web2py)? install postgresql-8.4 instead obsolete 8.3 2010/2/11 Álvaro Justen [Turicas] > On Wed, Feb 10, 2010 at 13:38, mdipierro wrote: > > It depends. For development if you use the built i

Re: [web2py] Re: wsgi and sys.stdout

2010-02-11 Thread Álvaro Justen [Turicas]
On Thu, Feb 11, 2010 at 16:29, mdipierro wrote: > Please, go back to the beginning of the thread. ;-) I didn't understand. What if you can't change Apache configuration to enable stdout? > On Feb 11, 12:25 pm, Álvaro Justen [Turicas] > wrote: >> On Thu, Feb 11, 2010 at 16:10, mdipierro wrote:

[web2py] Wiki enhancements made for web2py spanish documentation

2010-02-11 Thread Mariano Reingart
As said in previous mails, we were working in web2py-wiki as a tentative tool for the spanish documentation. This are the enhancements so far: - Almost full Internationalization and Spanish translation - PDF output (with table of contents, pagination, etc. thank to rst2pdf) and text/plain output -

[web2py] Form Dropdown - have value different from displayed text

2010-02-11 Thread Donald Hughes
Sorry, I'm really new with both Python and web2py (coming from c#/ asp.net)! I'm trying to create a statically-initialized dropdown (I'm not populating from a database) that has values different from the displayed text. A trivial example of the desired HTML output: Car Van Truck -- You recei

Re: [web2py] Form Dropdown - have value different from displayed text

2010-02-11 Thread Thadeus Burgess
is this integrated into sqlform? Field(..., requires=IS_IN_SET((1, 2, 3), ("Car", "Van", "Truck"))) -Thadeus On Thu, Feb 11, 2010 at 1:32 PM, Donald Hughes wrote: > Sorry, I'm really new with both Python and web2py (coming from c#/ > asp.net)! > > I'm trying to create a statically-initiali

[web2py] State of the DAL rewrite

2010-02-11 Thread Pystar
I would like to know the current state of the DAL rewrite and if it now supports NOSQL engines? thanks. -- 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 group,

[web2py] Re: Form Dropdown - have value different from displayed text

2010-02-11 Thread Donald Hughes
I was trying to use the form_example as a starting point: form=FORM(TABLE(TR("Sure?",SELECT('yes','no',_name="sure",requires=IS_IN_SET(['yes','no']))), Can I use sqlform without a database to populate the data? On Feb 11, 1:36 pm, Thadeus Burgess wrote: > is this integrated into sqlform? > >

Re: [web2py] Re: Form Dropdown - have value different from displayed text

2010-02-11 Thread Thadeus Burgess
SQLFORM.factory(Field('hi', 'text')) the factory method acts just like db.define_table but does not hook into a database. -Thadeus On Thu, Feb 11, 2010 at 2:07 PM, Donald Hughes wrote: > I was trying to use the form_example as a starting point: > form=FORM(TABLE(TR("Sure?",SELECT('yes','no'

[web2py] Re: Form Dropdown - have value different from displayed text

2010-02-11 Thread villas
> Can I use sqlform without a database to populate the data? See SQLFORM.factory Web2py book/manual section 7.3 Pg. 201 -- 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 unsubscri

[web2py] polls app

2010-02-11 Thread blye
I am running up to date web2py version. I cannot install the polls application. (http://vishpala.com/resources/web2py/polls/web2py-polls-application/ at_download/file ) Previous versions I also failed. Is there a solution for this? -- You received this message because you are subscribed to the Go

[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] GAE 1.3.1 no more limits wrt max no of query results

2010-02-11 Thread stefaan
According to this message the app engine no longer has a limitation of 1000 results: http://googleappengine.blogspot.com/2010/02/app-engine-sdk-131-including-major.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+GoogleCodeNews+(Google+Code%3A+News) I thought this was interesting e

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

2010-02-11 Thread villas
> Oops! Yes, I do mean 64M :-) 64Mb ...holy smoke!! My hoster wouldn't even sell me less than 256Mb. I was doubtful there would be much financial point to this quest for minimal memory, but a quick google later, I came up with this... http://www.ramhost.us/ only $2.99 per month, and I pay

[web2py] Re: polls app

2010-02-11 Thread Christopher Steel
Can you give me some more information. Do you get an error? Chris On Feb 11, 3:20 pm, blye wrote: > I am running up to date web2py version. > I cannot install the polls application. > (http://vishpala.com/resources/web2py/polls/web2py-polls-application/ > at_download/file ) > Previous versions I

Re: [web2py] Re: upgrading a deployed app

2010-02-11 Thread Jonathan Lundell
On Feb 10, 2010, at 5:19 PM, mdipierro wrote: > I would just add a checkbox to the upload form and use the value to > conditionally mkdir http://web.me.com/jlundell/filechute/overwrite.patch.zip > > On Feb 10, 5:05 pm, Jonathan Lundell wrote: >> On Feb 9, 2010, at 11:32 PM, mdipierro wrote: >>

[web2py] Re: polls app

2010-02-11 Thread Christopher Steel
It seems to work fine for me. On Feb 11, 3:20 pm, blye wrote: > I am running up to date web2py version. > I cannot install the polls application. > (http://vishpala.com/resources/web2py/polls/web2py-polls-application/ > at_download/file ) > Previous versions I also failed. > Is there a solution f

Re: [web2py] Re: upgrading a deployed app

2010-02-11 Thread Jonathan Lundell
On Feb 10, 2010, at 5:19 PM, mdipierro wrote: > I would just add a checkbox to the upload form and use the value to > conditionally mkdir Actually, I'd suggest one more change. Where the page says "Upload existing application", I'd say simply "Upload application" or "Upload & install applicatio

[web2py] scripts/web2py.fedora.sh

2010-02-11 Thread Jonathan Lundell
scripts/web2py.fedora.sh has a couple of problems, which I've fixed. I've cleaned it up in the meantime. The new version is below. I can supply it in another form if you like. The main problem was that it was sending SIGQUIT for stop, when web2py expects SIGTERM. That didn't work out (not to me

[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] [Troubleshooting] Running from source on windows [WARNING:root:unable to import wsgiserver] [WARNING:root:no file locking]

2010-02-11 Thread tiago almeida
Hello all, Since there is no way for me to create a wiki page, I post the wiki content here in the hope that it will be useful to others. == && *Running web2py from source on windows Vista* -- Note: this applies to version 1.74.6. -

[web2py] web2py site problem ?!

2010-02-11 Thread mdipierro
I have a possible break in. Lots of brute force ssh attacks in the last 3 days. 20 times more requests that usual. I am trying move the server to amazon. Can you reach web2py.com? Massimo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post

Re: [web2py] Re: Using curl to upload files

2010-02-11 Thread Thadeus Burgess
For one, the formkey is generated in the session. So you can only submit the form once after it is generated with your session, since curl is not tied to your browser session formkey will not work. You need to not pass session to form.accepts and then it will work. form.accepts(request.vars) -Th

Re: [web2py] web2py site problem ?!

2010-02-11 Thread tiago almeida
Yes, loaded fine just now. -- On Thu, Feb 11, 2010 at 10:43 PM, mdipierro wrote: > I have a possible break in. Lots of brute force ssh attacks in the > last 3 days. 20 times more requests that usual. > I am trying move the server to amazon. > > Can you reach web2py.com? > > Massimo > > -- > Yo

[web2py] Re: web2py site problem ?!

2010-02-11 Thread mdipierro
Than mine is not refreshing the dns somehow On Feb 11, 4:46 pm, tiago almeida wrote: > Yes, loaded fine just now. > > -- > > On Thu, Feb 11, 2010 at 10:43 PM, mdipierro wrote: > > I have a possible break in. Lots of brute force ssh attacks in the > > last 3 days. 20 times more requests that usua

Re: [web2py] web2py site problem ?!

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 2:43 PM, mdipierro wrote: > I have a possible break in. Lots of brute force ssh attacks in the > last 3 days. 20 times more requests that usual. > I am trying move the server to amazon. > > Can you reach web2py.com? Yes. I'm seeing it on an EC2 server. -- You received this

[web2py] Re: web2py site problem ?!

2010-02-11 Thread villas
Currently loads quickly (from Portugal). Seems much more responsive on Amazon. Nice :) On Feb 11, 10:43 pm, mdipierro wrote: > I have a possible break in. Lots of brute force ssh attacks in the > last 3 days. 20 times more requests that usual. > I am trying move the server to amazon. > > Can yo

Re: [web2py] Re: web2py site problem ?!

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 2:47 PM, mdipierro wrote: > Than mine is not refreshing the dns somehow Try 72.44.59.140 > > On Feb 11, 4:46 pm, tiago almeida wrote: >> Yes, loaded fine just now. >> >> -- >> >> On Thu, Feb 11, 2010 at 10:43 PM, mdipierro wrote: >>> I have a possible break in. Lots of b

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

2010-02-11 Thread John Heenan
How about web2py in a VPS using less than 40MB RAM? You can reduce web2py memory usage by using a newer generation web server with web2py instead of the internal web server with web2py. Apache gets trashed in tests by newer generation web servers such as lightttpd and nginx. Apache also uses far

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

2010-02-11 Thread raven
Thanks for the info. I use lighttpd for my static web pages, and for hosting fossil. It uses very little memory. I am looking into using it with web2py, but the instructions are a bit confusing. I will tackle it again. Removing the imports certainly seems to save huge amounts of memory. On

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

2010-02-11 Thread John Heenan
"I only use lightttpd for static pages and to remap URLs." Plus a UNIX socket between lighttpd and web2py to service web2py requests through FastCGI. John Heenan On Feb 12, 8:59 am, John Heenan wrote: > How about web2py in a VPS using less than 40MB RAM? > > You can reduce web2py memory usage b

[web2py] Re: Using curl to upload files

2010-02-11 Thread raven
That did it! Thank you very much. On Feb 11, 5:46 pm, Thadeus Burgess wrote: > For one, the formkey is generated in the session. So you can only > submit the form once after it is generated with your session, since > curl is not tied to your browser session formkey will not work. > > You need to

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

2010-02-11 Thread John Heenan
Yes the instructions are confusing. Following are sections from my /etc/lighttpd/lighttpd.conf file. I have edited sections to remove irrelevant detail. The lighttpd remaps help to avoid ugly URLs. I don't use a routes.py file but the zgus app does include some helpers to avoid ugly URLs (this gi

[web2py] Re: error in appliances

2010-02-11 Thread mdipierro
This is part of my problem with the server. Run out of disk space and sqlite files got corrputed... fixing it. On Feb 11, 12:38 pm, Alexandre Andrade wrote: > http://www.web2py.com/appliances > > get the error: > > Ticket issued: > appliances/127.0.0.1.2010-02-11.12-32-19.4017a4e3-ebbe-4441-a9cb

[web2py] Re: How to deploy my first app

2010-02-11 Thread mdipierro
send me a tested patch about postgresql. but emacs stays. ;-) On Feb 11, 12:45 pm, Alexandre Andrade wrote: > I have 2 sugestions for the setup-web2py-ubuntu.sh: > > remove install emacs (what emacs have to do with web2py)? > install postgresql-8.4 instead obsolete 8.3 > > 2010/2/11 Álvaro Justen

[web2py] Re: wsgi and sys.stdout

2010-02-11 Thread mdipierro
you are right. On Feb 11, 12:54 pm, Álvaro Justen [Turicas] wrote: > On Thu, Feb 11, 2010 at 16:29, mdipierro wrote: > > Please, go back to the beginning of the thread. ;-) > > I didn't understand. What if you can't change Apache configuration to > enable stdout? > > > > > On Feb 11, 12:25 pm, Á

[web2py] Re: Wiki enhancements made for web2py spanish documentation

2010-02-11 Thread mdipierro
+1 On Feb 11, 1:01 pm, Mariano Reingart wrote: > As said in previous mails, we were working in web2py-wiki as a > tentative tool for the spanish documentation. > This are the enhancements so far: > > - Almost full Internationalization and Spanish translation > - PDF output (with table of contents

[web2py] Re: State of the DAL rewrite

2010-02-11 Thread mdipierro
not yet On Feb 11, 1:50 pm, Pystar wrote: > I would like to know the current state of the DAL rewrite and if it > now supports NOSQL engines? > thanks. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...

[web2py] Re: web2py site problem ?!

2010-02-11 Thread mdipierro
yes that works. Any EC2 expert around here? On Feb 11, 4:51 pm, Jonathan Lundell wrote: > On Feb 11, 2010, at 2:47 PM, mdipierro wrote: > > > Than mine is not refreshing the dns somehow > > Try 72.44.59.140 > > > > > On Feb 11, 4:46 pm, tiago almeida wrote: > >> Yes, loaded fine just now. > > >

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

2010-02-11 Thread raven
Thanks for the details on modifying the lighttpd configuration file. Actually, I am pretty confident about doing this, having modified it to connect to fossil. However, I am confused by fcgihandler.py It says: This file has to be in the PYTHONPATH What does this mean? The file has to be moved

Re: [web2py] Re: web2py site problem ?!

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 3:45 PM, mdipierro wrote: > yes that works. > > Any EC2 expert around here? DNS is working fine for me. You might just need to wait a bit longer. > > On Feb 11, 4:51 pm, Jonathan Lundell wrote: >> On Feb 11, 2010, at 2:47 PM, mdipierro wrote: >> >>> Than mine is not refre

[web2py] Re: How to deploy my first app

2010-02-11 Thread Brian M
Al, You'd want to get rid of the "edit" " menu when you "Go Live" that's just there as a convenience while you're creating things. Just use this (or remove response.menu_edit from menu.py which does it once & for all): response.menu_edit = None If you don't want auth menu either do respon

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

2010-02-11 Thread John Heenan
My fcgihandler.py equivalent file is in the the same directory as web2py.py My init.d startup script changes to this directory before running fcgihanfdler.py with Python. I don't make any separate changes to PYTHONPATH. The web2py FastCGI server needs to know where the UNIX socket is. This is wh

[web2py] Requiring arguments

2010-02-11 Thread minh
Is there a way to require arguments/vars in the controller functions other than explicitly checking for them? It would be nice if we could decorate the functions similar to how the auth works, ex: @require_arg_function(minargs=2, message="Invalid arguments") def some_function(): Thanks.

Re: [web2py] Requiring arguments

2010-02-11 Thread Thadeus Burgess
if not request.args(0): redirect() or default = hi -Thadeus On Thu, Feb 11, 2010 at 6:19 PM, minh wrote: > Is there a way to require arguments/vars in the controller functions > other than explicitly checking for them? > > It would be nice if we could decorate the functions similar

[web2py] Re: wsgi and sys.stdout

2010-02-11 Thread Graham Dumpleton
On Feb 12, 5:54 am, Álvaro Justen [Turicas] wrote: > On Thu, Feb 11, 2010 at 16:29, mdipierro wrote: > > Please, go back to the beginning of the thread. ;-) > > I didn't understand. What if you can't change Apache configuration to > enable stdout? You don't need to change the Apache configurat

[web2py] Re: web2py site problem ?!

2010-02-11 Thread minh
Not loading for me (from San Diego, CA) On Feb 11, 4:08 pm, Jonathan Lundell wrote: > On Feb 11, 2010, at 3:45 PM, mdipierro wrote: > > > yes that works. > > > Any EC2 expert around here? > > DNS is working fine for me. You might just need to wait a bit longer. > > > > > On Feb 11, 4:51 pm, Jonat

[web2py] Re: Form Dropdown - have value different from displayed text

2010-02-11 Thread Brian M
You could also try this method: http://wiki.web2py.com/Form_Select_Options_from_DB On Feb 11, 2:17 pm, villas wrote: > > Can I use sqlform without a database to populate the data? > > See SQLFORM.factory > Web2py book/manual  section 7.3  Pg. 201 -- You received this message because you are su

[web2py] Re: Requiring arguments

2010-02-11 Thread mdipierro
I define def error(message=''): session.flash=message redirect(URL(r=request,f='error_page')) and def get_record(): record = db.table[request.args(0)] or error("oops!") On Feb 11, 7:06 pm, Thadeus Burgess wrote: > > > if not request.args(0): >    redirect() or default = hi > >

[web2py] Re: web2py site problem ?!

2010-02-11 Thread mdipierro
It has moved. It is not here: http://204.236.202.204/ My DNS has not refreshed in 2hrs. I tried sudo dscacheutil -flushcache I rebooted. Tried two browser. Still web2py.com does not map into the above address. On Feb 11, 7:07 pm, minh wrote: > Not loading for me (from San Diego, CA) > > On F

Re: [web2py] Re: web2py site problem ?!

2010-02-11 Thread Jonathan Lundell
On Feb 11, 2010, at 5:20 PM, mdipierro wrote: > It has moved. It is not here: > > http://204.236.202.204/ > > My DNS has not refreshed in 2hrs. I tried > > sudo dscacheutil -flushcache > > I rebooted. Tried two browser. Still web2py.com does not map into the > above address. It's more likely

[web2py] No groupby in appengine?

2010-02-11 Thread Richard
Is "groupby" supported by web2py on appengine? I noticed "groupby" is one of the valid_attributes (in gql.py) but using it raises: "Set: no groupby in appengine" -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email

[web2py] Ladies and Gentelmen... the web2py book is online

2010-02-11 Thread mdipierro
http://web2py.com/book This is only for testing purposes. Please try get an account and send me some feedback. You can try post and edit comments/wiki pages. I will reset the database in the next couple of days so do not be surprised if you loose your account and changes. I will also try port

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

2010-02-11 Thread Graham Dumpleton
On Feb 12, 9:59 am, John Heenan wrote: > How about web2py in a VPS using less than 40MB RAM? > > You can reduce web2py memory usage by using a newer generation web > server with web2py instead of the internal web server with web2py. Not really. > Apache gets trashed in tests by newer generatio

[web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-11 Thread Anand Vaidya
So far: Looks pretty good. 1. Registration works well. 2. Confusing : The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced. 3. Editing content brings me to login screen and does not go further (probably needs authorization to be setup) 4.

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

2010-02-11 Thread John Heenan
Hello Graham, whoever you are. You sound highly confused, clueless aboout how to present objective data and a fairly typical bombastic nerd of the type that clogs up and plagues forums. Get a life John Heenan On Feb 12, 11:32 am, Graham Dumpleton wrote: > On Feb 12, 9:59 am, John Heenan wrote

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

2010-02-11 Thread Graham Dumpleton
On Feb 12, 1:04 pm, John Heenan wrote: > Hello Graham, whoever you are. > > You sound highly confused, clueless aboout how to present objective > data and a fairly typical bombastic nerd of the type that clogs up and > plagues forums. > > Get a life I think you will find that I have a lot more

[web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-11 Thread mdipierro
http://www.opensource.org/licenses/artistic-license-2.0.php says "(1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version." After registration you can create wiki pages, edi

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

2010-02-11 Thread John Heenan
Where is the perspective? 1) Even with an 'ideal configuration that does not use MPM pre- forking, Apache still uses threads to service each request (for static files). This is still more inefficient than lightttpd and nginx that use an event model. 2) No one is going to take anyone seriously whe

  1   2   >