[web2py] Re: this thing runs web2py?

2010-02-11 Thread Christopher Steel
Sweet, but for the price I might go for a credit card sized atom system... On Feb 8, 9:18 pm, mdipierro wrote: > The page says this thing runs web2py. I am impressed. > > http://bec-systems.com/site/587/gumstix-overo-review?utm_source=feedb... -- You received this message because you are subscr

Re: [web2py] Re: def data() - problem

2010-02-11 Thread Johann Spies
On 12 February 2010 08:06, mdipierro wrote: > what's the table definition? Your table seems to have a primary key > field set to ' '. db.define_table("sarua", Field("title", "text"), Field("affiliation", "text"), Field("country"), Fi

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

2010-02-11 Thread John Heenan
For lower memory footprint on a tight VPS I do not believe any configuration of Apache with web2py (using mod_wgsi or otherwise) will beat a good lighttpd configuration with a FastCGI UNIX socket interface to web2py. I also believe trying to argue otherwise without credible benchmarks is liable to

Re: [web2py] Re: Bug in sql.Set ?

2010-02-11 Thread Alexey Nezhdanov
Hmmm. I thought that the code snippets I provided is enough. NP, here is more: db.define_table('PINGER_RESULTS', Field('ip','string',length=16), Field('time_start','datetime'), Field('time_stop' ,'datetime'), # -> time_stop Field('active','integer'),# 0 = archive, 1 = acti

[web2py] Re: def data() - problem

2010-02-11 Thread mdipierro
what's the table definition? Your table seems to have a primary key field set to ' '. On Feb 12, 12:02 am, Johann Spies wrote: > When I use the "default/data/update" on an unchanged existing record I > get the following error: > > Traceback (most recent call last): >   File "/home/www-data/web2py

[web2py] about docs

2010-02-11 Thread mdipierro
now that the book is almost online, after we merge it with alterego I am considering removing all documentation (but epydoc) from examples and just link the book. This will make web2py lighter. Any objections? Massimo -- You received this message because you are subscribed to the Google Groups

[web2py] def data() - problem

2010-02-11 Thread Johann Spies
When I use the "default/data/update" on an unchanged existing record I get the following error: Traceback (most recent call last): File "/home/www-data/web2py/gluon/restricted.py", line 173, in restricted exec ccode in environment File "/home/www-data/web2py/applications/nuwesarua/controll

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

2010-02-11 Thread mdipierro
On Feb 11, 11:02 pm, Brian M wrote: > Looks very nice - way to go Massimo! > > Creating wiki pages related to a book section seems to only partly > work. I was able to create a new wiki page using the "Create one..." > link, However, the new page doesn't show up under "Related Wiki > Pages."  Al

[web2py] Re: upload field without storing the file

2010-02-11 Thread Iceberg
On Feb11, 9:11pm, Mike wrote: > 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

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

2010-02-11 Thread Graham Dumpleton
On Feb 12, 2:00 pm, John Heenan wrote: > From the confused manner Graham is conducting himself, he appears to > think web2py runs as a process of a web server with threads that > belong to the web server. This is not correct. web2py always runs as > an independent process, unless web2py uses its

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

2010-02-11 Thread Richard
fantastic! I found it quite slow for pages to load so examined it with Google Page Speed: """ The following resources are missing a cache expiration. Resources that do not specify an expiration may not be cached by browsers. Specify an expiration at least one month in the future for resources th

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

2010-02-11 Thread Brian M
Looks very nice - way to go Massimo! Creating wiki pages related to a book section seems to only partly work. I was able to create a new wiki page using the "Create one..." link, However, the new page doesn't show up under "Related Wiki Pages." Also, a usability tip - would it be possible to have

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

2010-02-11 Thread Graham Dumpleton
On Feb 12, 1:44 pm, John Heenan wrote: > 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 mo

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

2010-02-11 Thread mdipierro
I think some of the problems have been fixed. On Feb 11, 8:33 pm, mdipierro wrote: > http://www.opensource.org/licenses/artistic-license-2.0.phpsays "(1) > You are permitted to use the Standard Version and create and use > Modified Versions for any purpose without restriction, provided that > you

[web2py] Re: conditional display of elements

2010-02-11 Thread mdipierro
import gluon.fileutils @auth.requires(auth.user and gluon.fileutils.check_credentials(request)) def On Feb 11, 9:21 pm, "G. Clifford Williams" wrote: > I'm trying to get a layout page/template to display response.menu_edit > only if the current user is the web2py admin (read: t

[web2py] Re: State of the DAL rewrite

2010-02-11 Thread mdipierro
nobody is working on zodb support as far as I know. There will be some instructions as the new dal is released. On Feb 11, 9:40 pm, "G. Clifford Williams" wrote: > is there anyone working on ZODB support? > If not.. is there a style guide for contributors? > > On Feb 11, 5:41 pm, mdipierro wrote

[web2py] Re: State of the DAL rewrite

2010-02-11 Thread G. Clifford Williams
is there anyone working on ZODB support? If not.. is there a style guide for contributors? On Feb 11, 5:41 pm, mdipierro wrote: > 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

[web2py] conditional display of elements

2010-02-11 Thread G. Clifford Williams
I'm trying to get a layout page/template to display response.menu_edit only if the current user is the web2py admin (read: the admin user that has the password set with the -a option on invocation of python web2py.py) Thanks in advance --G. Clifford Williams -- You received this message because

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

2010-02-11 Thread John Heenan
>From the confused manner Graham is conducting himself, he appears to think web2py runs as a process of a web server with threads that belong to the web server. This is not correct. web2py always runs as an independent process, unless web2py uses its internal web server. An external web server nee

[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

[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 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: 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: 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 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] 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] 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

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] 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

[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: 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: 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: 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

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] 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.

[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] 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

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 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

[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: 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: 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: 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: 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: 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 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: 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
"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: 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
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

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: 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] 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 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 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

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

[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

[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] 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] 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

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] 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 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
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

[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] 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] 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] 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] 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

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 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? > >

[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,

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] 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

[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 -

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:

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

[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 -- =

[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

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: 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: 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

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

[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

[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: 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: 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: 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] 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: 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] 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: 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: 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] 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: 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,

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

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 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

[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] 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

  1   2   >