Hi Miguel,
which test did you do from command line?
does web2py print something? Any error?
Try to do the next thing from the command line:
tail -f /var/log/mail.log
(if you are in ubuntu/debian, don't know where it would be in other
distributions...)
and see if it complaints about anything
Now I do understand that I am probably asking a very rudimentary
question but in the end I need a rudimentary answer that I am just not
finding. Or if I am finding I don't know what i am looking at.
A little background: I have experience in Python and in Web Design,
not much in the incorporation
Hello,
have you read the web2py book, specifically chapter 11,
http://web2py.com/book/default/chapter/11 it should tell the most.
If you still have questions will try to answer them.
Kenneth
Now I do understand that I am probably asking a very rudimentary
question but in the end I need a
By the way, any interesting business ideas here in the web2py-world?
Marco
On 3 Dez., 15:46, mdipierro mdipie...@cs.depaul.edu wrote:
I do not think there is a lack of ideas not a lack of execution
capabilities. The problem is that the more interesting projects
require a critical mass of
I am too dumb to solve it but this program can:
M, that program was dumb -- call yourself a programmer! :)
However, my first effort to re-factor the code still took 9 lines!
IQ Test #2
--
Who can propose minimum lines to re-factor Massimo's code?
Of course two lines to be included
On Sat, Dec 4, 2010 at 2:50 PM, villas villa...@gmail.com wrote:
Who can propose minimum lines to re-factor Massimo's code?
Of course two lines to be included somewhere must be:
x=[(2,3,10),(7,2,63),(6,5,66),(8,4,96)]
a,b = 9,7
Please first state your number of lines and then be prepared to
Nothing that can be talked about without braking the NDA, I'm afraid. :)
On Sat, Dec 4, 2010 at 1:29 PM, ma...@rockiger.com
rocki...@googlemail.com wrote:
By the way, any interesting business ideas here in the web2py-world?
Marco
On 3 Dez., 15:46, mdipierro mdipie...@cs.depaul.edu wrote:
I
Since we've discussed the topic of timepickers before, I've just
stumbled upon a very good solution from the Dojo camp. Here's a demo.
http://www-01.ibm.com/software/ucd/UE/dijit/tests/form/test_TimeTextBox.html?theme=claro
Except for the minor visual noise in the form of emphasized hundred
I think deployment of web2py is one of the easiest of all the python
frameworks.
I found a lot of difficulties with Django. Maybe was my fault, but in web2py
was a lot easier.
Read Chapter 11 as Kenneth said.
2010/12/4 Kenneth Lundström kenneth.t.lundst...@gmail.com
Hello,
have you read the
I wasn't timing, but felt like between 5 10 sec.
Thanks for the break.
On Dec 4, 9:08 am, Branko Vukelic bg.bra...@gmail.com wrote:
On Sat, Dec 4, 2010 at 2:50 PM, villas villa...@gmail.com wrote:
Who can propose minimum lines to re-factor Massimo's code?
Of course two lines to be included
The good news...
I have finished the new DAL for RDBMs. If you now replace gluon/sql.py
with gluon/dal.py as long as you do not use GAE, everything should
work fine. All tests pass.
The new dal should have all the features as the old dal but no more.
It just comes with a better more modular
Jonathan,
How would you like to see this behave? Perhaps URL('index',args=[],
vars={}, hash_key='xxx', hash=['args','vars']) and then
URL.verify(hmac_key='xxx', hash=['args', 'vars]) so that you could
choose which portions of the URL to sign and/or verify with hash=None
triggering the original
Describe what I did
Copied the trunk hg area to a work area
Renamed sql.py to sql-save.py
Copied dal.py to sql.py in order to replace sql.py with dal.py
Copied application I am working on to applications directory
Backed up the database
Ran the server as python web2py.py
Got this stack trace
Sorry should have mentioned that was in the welcome app fetching the
index page as the default browser load occured fomr the TK server
interface. In my own application I get
Traceback (most recent call last):
File /home/camcentral/Dev/web2py_hg/gluon/restricted.py, line 188,
in restricted
Check the site5 forums for hints, it looks like wsgi isn't available
on the shared hosting plans but fastcgi is. There are some Django how
to threads you may be able to work off of and combine with what's in
chapter 11 of the web2py book.
~Brian
On Dec 3, 11:21 pm, RyaneD scadzomb...@gmail.com
I have a form with a dummy checkbox:
#view
INPUT(_type='checkbox',_name='junk',_id='no_table_junk'),
_onclick=ajax('process_checkbox',
['no_table_junk'],':eval');)
#controller
def process_checkbox():
checkbox_results=request.vars['no_table_junk']
return jQuery(#test).html(%s); %
I just did an install using the auto-installer feature from the site
admin page and it didn't work. Now, my web2py is corrupted and I have
to download manually.
On Dec 4, 2010, at 10:29 AM, Brian M wrote:
Jonathan,
How would you like to see this behave? Perhaps URL('index',args=[],
vars={}, hash_key='xxx', hash=['args','vars']) and then
URL.verify(hmac_key='xxx', hash=['args', 'vars]) so that you could
choose which portions of the URL to sign
On Dec 4, 2010, at 11:06 AM, weheh wrote:
I just did an install using the auto-installer feature from the site
admin page and it didn't work. Now, my web2py is corrupted and I have
to download manually.
If it's not too late, it might be useful to preserve a copy of the corrupt
tree, and see
Too late, I think. I already installed from the manual download and it
worked fine. Sorry, I'm in major development mode and didn't think
about stopping to debug.
On Dec 4, 2:09 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Dec 4, 2010, at 11:06 AM, weheh wrote:
I just did an install
The var name should just be 'junk' since that is the name of the
checkbox. Also, I don't think you should have a closing parenthesis
after _id='no_table_junk'. Just a typo? Also, accessing it like
request.vars['no_table_junk'] will throw an error. Why not just use
request.vars.xxx and check for
Hi Nathan, thanks for the response. I checked the old threads (like
this one
http://groups.google.com/group/web2py/browse_thread/thread/35c5708111d173ae/7d12923e4643a3ed?lnk=gstq=ajax+checkbox#7d12923e4643a3ed)
and see this is an old issue. In fact, I complained of this a long
time ago in a
So I tried Nathan's suggested test case above and the return value of
request.vars.junk is always None, regardless of whether the checkbox
is checked or not. I'm not seeing the case where request.vars is empty
when the checkbox is unchecked. In a nutshell, unless I'm doing
something wrong, it's
Hi Bernado,
2010/12/4 Bernardo Botella Corbí estem...@gmail.com
Hi Miguel,
which test did you do from command line?
does web2py print something? Any error?
Try to do the next thing from the command line:
tail -f /var/log/mail.log
If I try to send mail from web2py using local resources
Strange. Works on my system. Have you modified the ajax function in
web2py_ajax.html?
On Dec 4, 1:56 pm, weheh richard_gor...@verizon.net wrote:
So I tried Nathan's suggested test case above and the return value of
request.vars.junk is always None, regardless of whether the checkbox
is checked
No. web2py_ajax.html is the original
On Dec 4, 3:59 pm, mr.freeze nat...@freezable.com wrote:
Strange. Works on my system. Have you modified the ajax function in
web2py_ajax.html?
On Dec 4, 1:56 pm, weheh richard_gor...@verizon.net wrote:
So I tried Nathan's suggested test case above and
Feel free to send me a packed app to test on my system.
On Dec 4, 3:13 pm, weheh richard_gor...@verizon.net wrote:
No. web2py_ajax.html is the original
On Dec 4, 3:59 pm, mr.freeze nat...@freezable.com wrote:
Strange. Works on my system. Have you modified the ajax function in
Thanks for the responses guys. I read all of chapter 11 and I must say
this is why I feel like really am missing something important in the
grand scheme of things. I simply can not understand what it is I need
to do.
I do not have root access so I can't do anything that requires it or
sudo, so I
On close inspection, web2py_ajax.html is out of date on my test app. I
updated web2py_ajax.html and the test case still doesn't work.
Hi Ryan,
you can find a fcgihandler.py file in the root web2py folder. I havn't
used fcgi but the fcgihandler seems to have an example on how webserver
should be configured.
Kenneth
Thanks for the responses guys. I read all of chapter 11 and I must say
this is why I feel like really am
OK, so make it so that if desired some subset of the URL vars could be
signed while still allowing other vars to be changed. That is
certainly doable and would be nice for securing only the important
parts.
Are you assuming that *all* the args *always* get hashed though - that
seems reasonable to
can you please try again?
Massimo
On Dec 4, 12:31 pm, ron_m ron.mco...@gmail.com wrote:
Describe what I did
Copied the trunk hg area to a work area
Renamed sql.py to sql-save.py
Copied dal.py to sql.py in order to replace sql.py with dal.py
Copied application I am working on to
20sec
On Dec 3, 9:32 am, António Ramos ramstei...@gmail.com wrote:
2+3=10
7+2=63
6+5=66
8+4=96
So:
9+7=???
What is the answer?
They say the IQ of people that can find it is above 120
Dont write here the answer..
Just the time, maybe
I tricked a co-worker into solving it then left early for a beer. I
may be a genius.
On Dec 3, 8:32 am, António Ramos ramstei...@gmail.com wrote:
2+3=10
7+2=63
6+5=66
8+4=96
So:
9+7=???
What is the answer?
They say the IQ of people that can find it is above 120
Dont write here the
took me a while to find my calculator(behind my desk) cuz im not that
bright at mental math ... til ... i realized im sitting in front of
one .. doohh did that indicate my intelligence ? :D 'hope not! :)
did python(usage) indicate some kind of intelligence? i hear employers
like that kind of
it's python as well, thanks!
On Dec 3, 9:05 pm, Bruno Rocha rochacbr...@gmail.com wrote:
Simple and usefull script, I tested and it works. I know it has a simple
purpose, but this is very useful as it downloads and unpack web2py for me.
I am always testing new versions and nightly builds and
Your web2py_ajax.html ajax function IS different. Note this line:
Yours:
q = jQuery([name=+s[i]+]).serialize();
Standard:
q = jQuery(#+s[i]).serialize();
On Dec 4, 3:32 pm, weheh richard_gor...@verizon.net wrote:
On close inspection, web2py_ajax.html is out of date on my test app. I
updated
On Dec 4, 2010, at 1:52 PM, Brian M wrote:
OK, so make it so that if desired some subset of the URL vars could be
signed while still allowing other vars to be changed. That is
certainly doable and would be nice for securing only the important
parts.
Right. Not so much the important parts as
Perhaps this was a recent change in trunk but it's definitely not
backwards compatible. Selecting by name and id will definitely give
you different results.
On Dec 4, 4:14 pm, mr.freeze nat...@freezable.com wrote:
Your web2py_ajax.html ajax function IS different. Note this line:
Yours:
q =
On Sat, Dec 4, 2010 at 11:09 PM, dustin.b dustin.bens...@googlemail.com wrote:
took me a while to find my calculator(behind my desk) cuz im not that
bright at mental math ... til ... i realized im sitting in front of
one .. doohh did that indicate my intelligence ? :D 'hope not! :)
did
Yep, changed on 11/3. Maybe web2py_ajax.html doesn't fall under the
same backwards compatibility umbrella as the actual framework. Anyway,
it's selecting by name so just change your onclick to:
_onclick=ajax('process_checkbox',['junk'],':eval');)
...and it should work.
On Dec 4, 4:17 pm,
instead of extjs i can happily recommend you using qooxdoo.
see: http://qooxdoo.org
On Dec 3, 11:10 pm, Branko Vukelic bg.bra...@gmail.com wrote:
On Fri, Dec 3, 2010 at 7:04 PM, ron_m ron.mco...@gmail.com wrote:
I would be careful on the licensing of Ext JS, wasn't this the one
that caused
On Dec 4, 2010, at 2:26 PM, mr.freeze wrote:
Yep, changed on 11/3. Maybe web2py_ajax.html doesn't fall under the
same backwards compatibility umbrella as the actual framework. Anyway,
it's selecting by name so just change your onclick to:
_onclick=ajax('process_checkbox',['junk'],':eval');)
OK, that did the trick. Thanks.
As for the web2py_ajax.html file, all I have to say is, 'Urggh!' This
is probably the 3rd time I've been bitten by changes to the file in
the last year or two. Must keep that in mind in the future.
Again, many thanks for the help, Nathan. You too, Jonathan.
On
Does anyone happen to have a prior implementation?
On Dec 4, 11:24 am, howesc how...@umich.edu wrote:
because you cannot write to the file system, your updated files will
need to be stored in the database. since these could get large you
might consider using blobstore to store the files.
Awesome feature set.
On Sat, Dec 4, 2010 at 11:31 PM, Mengu whalb...@gmail.com wrote:
instead of extjs i can happily recommend you using qooxdoo.
see: http://qooxdoo.org
On Dec 3, 11:10 pm, Branko Vukelic bg.bra...@gmail.com wrote:
On Fri, Dec 3, 2010 at 7:04 PM, ron_m ron.mco...@gmail.com
I'd like to use FORM(...) to create forms with radio boxes, drop-down
options, etc. But I can't find any document on how to do this.
For example, if I'd like a drop-down option for 'red', 'green',
'blue', how do I do this using FORM?
Thanks.
On Dec 4, 2010, at 2:53 PM, weheh wrote:
OK, that did the trick. Thanks.
As for the web2py_ajax.html file, all I have to say is, 'Urggh!' This
is probably the 3rd time I've been bitten by changes to the file in
the last year or two. Must keep that in mind in the future.
Right; you can't
OMG! I'm definitely using this for admin2! I've just started the Hello
World tutorial. I can't believe the attention it's been given... /me
drops jaw
On Sun, Dec 5, 2010 at 12:07 AM, Branko Vukelic bg.bra...@gmail.com wrote:
Awesome feature set.
On Sat, Dec 4, 2010 at 11:31 PM, Mengu
Unfortunately, Python in general is a bit harder to deploy than HTML
and PHP. Site5 has a few different hosting options so to help out it
would be good to know what sort of plan you are on. If it's Shared
Hosting, I think you will want to try the fastcgi option. The web2py
book doesn't really
Look in the book under the HTML Helpers section:
http://web2py.com/book/default/chapter/05?#HTML-Helpers
This would create the form using helpers:
def index():
form = FORM(SELECT([OPTION(opt) for opt in
['red','green','blue']]))
return dict(form=form)
...or more verbose...
def index():
Here you will find some answers :
http://wiki.web2py.com/Form_Select_Options_from_DB
http://wiki.web2py.com/Form_Select_Options_from_DBFor your drop down you
have to define : requires=IS_IN_SET(['red',
'green', 'blue']) instead of requires=IS_IN_SET(['Non-Fiction',
'Fiction', 'Childrens'])
Hope
I've read it while ago.
The problem with that test is the number of processors. It takes a
high number of CPUs to bring Erlang benefits.
And scalability performance is only one issue.
For example, how do you deal with deployment of a new version in large
distributed system while on production?
Ok I'll work on making the change then.
On Dec 4, 4:15 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Dec 4, 2010, at 1:52 PM, Brian M wrote:
OK, so make it so that if desired some subset of the URL vars could be
signed while still allowing other vars to be changed. That is
certainly
Check out these pages on web2py slices:
http://web2pyslices.com/main/default/search?query=FastCGIcriteria=tags
On Dec 4, 6:21 pm, pbreit pbreitenb...@gmail.com wrote:
Unfortunately, Python in general is a bit harder to deploy than HTML
and PHP. Site5 has a few different hosting options so to
On Sun, Dec 5, 2010 at 1:59 AM, blackthorne francisco@gmail.com wrote:
I've read it while ago.
The problem with that test is the number of processors. It takes a
high number of CPUs to bring Erlang benefits.
Another 'problem' is that it's not about performance when it comes to
Erlang. It's
Hi web2py-users,
Currently, Gluon DAL has no support for weird and whacky characters like @
in the database connection string.
I propose a patch to use unquote_plus to allow these characters, and leave
it to be an exercise for the user
to escape their own special characters.
This issue is also
I followed the instructions on
http://web2pyslices.com/main/slices/take_slice/68,
which were starting to make sense but I am confounded with this error
when i visit http://www.scadzombies.com/web2py :
--
Internal Server Error
The
I was getting that error. After updating it goes away but now I get
the below. I am running it against web2pyslices.com source on a sqlite
db with Python 2.5:
Traceback (most recent call last):
File C:\Users\nathan\workspace\web2py\gluon\restricted.py, line
188, in restricted
exec ccode in
I fixed the second problem but the first remains. I had messed up in
my implementation of routes.py completely user error, forgot a
parenthesis. :P As the traceback says.
So that error is gone, but when I navigate to www.scadzombies.org/web2py
I get the same 500 Internal Server Error
On Dec 4,
On further consideration, I consider this a kludge, albeit one that
I'm at a loss to figure out how to fix. The web2py way is web2py
+jQuery+ajax+css+... (hope I didn't leave something out). In the
interest of backwards compatibility, we need to think carefully about
this web2py_ajax.html file and
I tried this:
# http://eventlet.net/doc/examples.html#wsgi-server
import eventlet
from eventlet import wsgi
from rocket import Rocket
def hello_world(env, start_response):
if env['PATH_INFO'] != '/':
start_response('404 Not Found', [('Content-Type', 'text/
plain')])
return
Thanks to both of the responders. The reference and example have
answered my question. (and introduced some concepts I was unfamiliar
with)
- Tom
On Dec 3, 9:30 pm, mr.freeze nat...@freezable.com wrote:
Here is an example:
Model
-
thanks.
On Dec 4, 6:52 pm, Richard Vézina ml.richard.vez...@gmail.com wrote:
Here you will find some answers :
http://wiki.web2py.com/Form_Select_Options_from_DB
http://wiki.web2py.com/Form_Select_Options_from_DBFor your drop down you
have to define : requires=IS_IN_SET(['red',
'green',
Can you try delete everything in app/cache/
The error seems in opening the cache file.
On Dec 4, 8:30 pm, mr.freeze nat...@freezable.com wrote:
I was getting that error. After updating it goes away but now I get
the below. I am running it against web2pyslices.com source on a sqlite
db with
I have this simple form. Lately, I've got this very strange problem.
Occasionally, after I filled out the form and submit. (See code
below). The form did not get submitted. Every field is clear.
There're no errors (instead the else is entered with the message
please fill the form.)
I can't
Do you have a custom form in the view?
It could be a session problem
Try display
{{=request.session_id}}
{{=response.session_id}}
and see if they match of a new session is issued when the problem
appears.
On Dec 4, 9:59 pm, VP vtp2...@gmail.com wrote:
I have this simple form. Lately, I've
No custom view.
Will try this.
On Dec 4, 10:07 pm, mdipierro mdipie...@cs.depaul.edu wrote:
Do you have a custom form in the view?
It could be a session problem
Try display
{{=request.session_id}}
{{=response.session_id}}
and see if they match of a new session is issued when the problem
When there's no problem (don't know when it will show up), this is
what is shown:
request.session_id is None
response.session_id is not
what do you meant by see if they match of a new session is issued
when the problem appears.?
Why nobody uses JQUI ?
http://jqueryui.com
yes extJS and other UI frameworks have already build UIs , but if you
want to build something from scratch jqui provide you all the stuff
you need. It have very powerful CSS Framework.
I found it very easy/productive to use, and themeroller rocks!
On
I get this now:
Traceback (most recent call last):
File C:\web2py\gluon\restricted.py, line 188, in restricted
exec ccode in environment
File C:/web2py/applications/main/models/db.py, line 22, in
module
db = SQLDB(dal_connection,pool_size=10)
File C:\web2py\gluon\sql.py, line 2405,
Looking closer, there is a syntax error on line 189: COnnectionPool
After I fixed that, I get:
Traceback (most recent call last):
File C:\web2py\gluon\main.py, line 488, in wsgibase
BaseAdapter.close_all_instances(BaseAdapter.rollback)
File C:\web2py\gluon\sql.py, line 163, in
I just check qooxdoo , it seems very powerful.. What jslib it based
on? jq? mootoo? or nothing at all?
On 12/5/10, Phyo Arkar phyo.arkarl...@gmail.com wrote:
Why nobody uses JQUI ?
http://jqueryui.com
yes extJS and other UI frameworks have already build UIs , but if you
want to build
One more test please. I do not have mysql installed here so I did not
test pooling. This helps a lot. thanks.
On Dec 4, 10:33 pm, mr.freeze nat...@freezable.com wrote:
Looking closer, there is a syntax error on line 189: COnnectionPool
After I fixed that, I get:
Traceback (most recent call
sorry. print
request.cookies[response.session_id_name].value
and
response.session_id
they should always be the same unless your session is reset.
On Dec 4, 10:21 pm, VP vtp2...@gmail.com wrote:
When there's no problem (don't know when it will show up), this is
what is shown:
The difference between frameworks like Dojo, qooxdoo, extJS on one
hand, and jQUI on the other is that the former are complete GUI
toolkits, whereas jQUI is a mere collection widgets. It's a difference
between plastic surgery and makeup.
Some of the stuff jQUI is missing:
* coross-browser form
It's a framework. It's got its own packaging system, build system, you
name it. Very powerful stuff. Plus you get an endless collection of
'stuff' to build your apps with. Amazing.
On Sun, Dec 5, 2010 at 5:35 AM, Phyo Arkar phyo.arkarl...@gmail.com wrote:
I just check qooxdoo , it seems very
Check the server logs. That usually means there's a bug in your scripts.
On Sun, Dec 5, 2010 at 3:40 AM, RyaneD scadzomb...@gmail.com wrote:
I fixed the second problem but the first remains. I had messed up in
my implementation of routes.py completely user error, forgot a
parenthesis. :P As
I am trying to display some XML that has been screen scraped I want to
display it as HTML in my code but for some reason its not working. It
appears in the HTML source code but not being displayed any ideas
Controller
-
def guildRoster():
url =
Thanks. These are the only error logs I have.
Last 300 Error Log messages in reverse order (newest at the top,
oldest at the bottom):
[Sun Dec 05 00:57:18 2010] [error] [client 96.38.69.221] File does not
exist: /home/scadzomb/public_html/404.shtml
[Sun Dec 05 00:57:18 2010] [error] [client
yes , all your points are good.
But jq+jqueryui allows to build something really cool stuff like
jqgrid which is superb.I had check and qooxdoo's table is not even
half of jqgrid capabilities.
I just wish it would be really nice if qooxdoo will support jq's
themeroller.. and it will be more than
This discussion becomes not about comparison of scalability of web2py
or scability of web2py vs other framework but web2py vs other
langauges??
massimo wrote:
ab -n 1 -c 100 http://127.0.0.1:8081/
rocket: 0.629 [ms]
eventlet:
Massimo , does eventlet failed in that test?
On 12/5/10,
If this become a langauge war:
Erlang have many scability advantages , yes , but Langauge Looks
horrible!! almost as readable as C (in my opinion)
I will only choose python .It will not be Super Scalable as erlang
but still scalable as proven by google.
sorry for my bad english.
On 12/5/10,
83 matches
Mail list logo