I thought about that, but I don't think there's an actual
www-data:www-data user on my Linux server by virtue of installing web2py,
is there?? How would I login?
Some script installations of web2py create the user. You need to know first
what user is configured to run web2py in the
If you name your application 'init' (like I wrote in step 3) it should be
automatically started when you point to YOUR_USERNAME.pythonanywhere.com
On Friday, January 31, 2014 2:07:00 PM UTC+1, Bklynate wrote:
This worked, Thank you very much.
One more question though, How do I get my
When I queue a taks using -
scheduler.queue_task('demo1', pvars=dict(a=1,b=2),
repeats = 0, period = 180)
how do I know it has been queued? I don't see a record in scheduler_task.
By theway, I don't have any worker running.
--
Resources:
- http://web2py.com
-
I am puzzled by epydoc. I tried to navigate to datetime
at http://www.web2py.com/examples/static/epydoc/index.html, but I could
find no path to it. I found datetime by Googling web2py datetime.
In general, how do I locate detailed documentation (methods, instances,
etc.) about any particular
well datetime is not documented in web2py because it's part of python's
standard library.
http://docs.python.org/2/library/datetime.html
web2py's docs are meant to document strictly web2py's code
On Sunday, February 2, 2014 1:38:00 PM UTC+1, horridohobbyist wrote:
I am puzzled by epydoc.
see
http://web2py.com/books/default/chapter/29/04/the-core#markmin_queue_task_sig
On Sunday, February 2, 2014 1:05:30 PM UTC+1, Jayadevan M wrote:
When I queue a taks using -
scheduler.queue_task('demo1', pvars=dict(a=1,b=2),
repeats = 0, period = 180)
how do I know
hey, you choose the minimalist version, so something had to be stripped off
^_^
On Saturday, February 1, 2014 9:17:42 PM UTC+1, Manuele wrote:
Il 01/02/14 21:13, Niphlod ha scritto:
what is a minified version of web2py ?
usually, logs are where you configured them on logging.conf, while
The browser does it automatically, since I don't remember doing anything
special for this website, other than string translations, and enforcing the
language. There is a selection on the menu: English/Hebrew, which
demonstrate an automatic right/left align of text, but as you said
custom-form
I tried sudo -u www-data gpg --gen-key, but I got permission denied to
access /home/richard/.
I'd try to login as www-data but I don't know the password.
Thanks.
On Sunday, 2 February 2014 05:00:51 UTC-5, Alan Etkin wrote:
I thought about that, but I don't think there's an actual
Oh, stupid me!
Thanks.
On Sunday, 2 February 2014 07:42:07 UTC-5, Niphlod wrote:
well datetime is not documented in web2py because it's part of
python's standard library.
http://docs.python.org/2/library/datetime.html
web2py's docs are meant to document strictly web2py's code
On
Hey guys,
I have a problem with the for in usage.
I want an function which creates, depending on a db, URLs.
So in the db is a table with the fields 'name', 'user' 'value'.
testdb = dba(dba.test.user== user).select(dba.test.ALL)
now, in the view i want those URLS:
A(user,_href=URL(Name + '/' +
Looks like I had to execute
db.commit();
before the task showed up in table. That was the missing part.
On Sunday, February 2, 2014 6:13:30 PM UTC+5:30, Niphlod wrote:
see
http://web2py.com/books/default/chapter/29/04/the-core#markmin_queue_task_sig
On Sunday, February 2, 2014 1:05:30
{{=TABLE(*[TR(TD(A(r.user,_href=URL(args=(r.name,r.value for r in
testdb])}}
On Sunday, 2 February 2014 07:51:33 UTC-6, Multiplery wrote:
Hey guys,
I have a problem with the for in usage.
I want an function which creates, depending on a db, URLs.
So in the db is a table with the
I'm sorry, but it creates an error 'invalid syntax'
Am Sonntag, 2. Februar 2014 14:51:33 UTC+1 schrieb Multiplery:
Hey guys,
I have a problem with the for in usage.
I want an function which creates, depending on a db, URLs.
So in the db is a table with the fields 'name', 'user' 'value'.
I have a file job.py under models.
In that I have
def send_email_invites():
I added a task that says job/send_email_invites. The task errors out saying
Traceback (most recent call last):
File /var/www/web2py/gluon/scheduler.py, line 229, in executor
name '%s' not found in scheduler's
When you change the code to:
{{=TABLE(*[TR(TD(A(r.user,_href=URL(args=(r.name,r.value for r in
testdb])}}
watch the different brackets, there is no [] anymore, but ()
But now there is this error message:
response.write('\r\n', escape=False)
^
SyntaxError: invalid Syntax
Am
Use Massimo's original reply, but count the left and right parentheses.
On Sunday, February 2, 2014 8:51:33 AM UTC-5, Multiplery wrote:
Hey guys,
I have a problem with the for in usage.
I want an function which creates, depending on a db, URLs.
So in the db is a table with the fields
OK. I shouldn't have 'jobs/send_email_invites' , just 'send_email_invites'
On Sunday, February 2, 2014 8:57:18 PM UTC+5:30, Jayadevan M wrote:
I have a file job.py under models.
In that I have
def send_email_invites():
I added a task that says job/send_email_invites. The task errors out
Here is what I get when I run python 2.7
[root@mail3 uwsgi-python]# /opt/python2.7/bin/python2.7
Python 2.7.1 (r271:86832, Feb 1 2014, 11:45:32)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type help, copyright, credits or license fo
import sqlite3
sqlite3.sqlite_version
'3.7.3'
Yet
well, no errer message, but still it does not work fine, since the page
Shows only:
generator object genexpr at 0x0723B698
(everything else would work fine, so this isn't an error message)
I'm sorry that I cause so many Problems :(
Am Sonntag, 2. Februar 2014 14:51:33 UTC+1 schrieb Multiplery:
Does web2py have a function or means of sanitizing user input in order to
prevent SQL injection attacks?
Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report
I tried sudo -u www-data gpg --gen-key, but I got permission denied to
access /home/richard/.
I'd try to login as www-data but I don't know the password.
I don't think there is a password set for www-data. How about this?
sudo -i -u www-data gpg --gen-key
That fixed the permission issue
if I remember correctly I downloaded sqlite amalgamation from sqlite
website,
and did
./configure --enabled-shared --prefix=$HOME
then
compile python from sources
and after that an equivalent line to your
/opt/python2.7/bin/python2.7 uwsgiconfig.py --build
On Sun, Feb 2, 2014 at 6:03 PM,
hello,
I've a form with checkboxes and radiobuttons.
All the checkboxes and radioboxes are auto-commit, i.e. the have an argument
onchange=this.form.submit()
Now this works perfect, as soon as a button is changed, the page is
refreshed with a new selection from the database.
Now I've some
On Saturday, January 25, 2014 11:55:56 PM UTC+1, pa...@cancamusa.net wrote:
El viernes, 24 de enero de 2014 10:40:20 UTC+1, Bastiaan van der Veen
escribió:
The problem is I get no exception, error or something else. The form
posts and then reloads as if nothing happened.
Does it
I've tried some of the examples on the site and created a function in my
controllers folder.
Controllers folder I have template_examples.py with a function called:
def variables():
return dict(a=10, b=20)
In my views folder I have variables.html with this code:
{{extend 'layout.html'}}
h1You
Hello Massimo - After reading the web2py reference manual closely, and
working
through some examples, your one liner makes perfect sense, and is quite
elegant.
How would you describe this style of programming; is it more pythonic, or
web2py-ish, or functional,
or something else? I came up through
The web2py book uses the following example to demonstrate how to call the ajax
function in the views page.
*Controller*:
def one():
return dict()
def echo():
return request.vars.name
*Views:*
{{extend 'layout.html'}}
form
input name=name onkeyup=ajax('echo', ['name'],
To give more information I looked in the error logs and found the following:
I am not sure if it is related, but it seems to happen around the same time
as the error.
Ideas?
-
[Sun Feb 02 17:38:52 2014] [error] [client 83.145.241.129] File
if you pass raw variables to DAL's queries, the input is sanitized.
If you instead try to build a query doing cut/paste, e.g.
myquery = select * from table where field = %s % raw_variable
then it's not sanitized.
On Sunday, February 2, 2014 5:33:02 PM UTC+1, horridohobbyist wrote:
Does
seems related to apache and timeouts...
https://groups.google.com/forum/#!topic/modwsgi/UqmMeV0lhC8
BTW: odd errors and unforgiving syntax complexity is what moved me (among
many others) to nginx+uwsgi. Things there are far more understandable,
debuggable and reproduceable.
BTW2: how many
Hi there. I am having similar errors, but don't know how to change those
settings.
Could I get a few more details on how this is done?
BR,
Jason Brower
On Wednesday, November 20, 2013 1:51:14 PM UTC+2, Niphlod wrote:
raising the timeout isn't gonna solve the issue that some request are
The view should be
views/template_examples/variables.html
On Sunday, 2 February 2014 11:21:30 UTC-6, Austin Taylor wrote:
I've tried some of the examples on the site and created a function in my
controllers folder.
Controllers folder I have template_examples.py with a function called:
let's try again:
{{= TABLE(*[TR(TD(A(r.user,_href=URL(args=(r.name,r.value) for r in
testdb]) }}
I am not sure what this style is called.
On Sunday, 2 February 2014 09:15:19 UTC-6, Multiplery wrote:
I'm sorry, but it creates an error 'invalid syntax'
Am Sonntag, 2. Februar 2014
try this:
def product_form():
form = SQLFORM(db.product)
if form.process().accepted:
session.flash = 'form accepted'
redirect(URL('next_page'))
return dict(form=form)
def total_cost():
price = request.vars.price
quantity = request.vars.quantity
total =
getting this error:
ValueError: invalid literal for long() with base 10: 'ergergrg'
t = db.t_tests_results
def POST(**post_params):
if db(db.auth_user.api_key == post_params['api_key']).count():
#post_params['f_test'] = db(db.t_tests.f_test_name ==
#
Spin up an instance on Rackspace/ Linmode/ Digital Ocean and compare the
result.
(have had unpleasant experiences with AWS and elements of this have a
similar smell)
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
I not sure what you mean by it is not working but there are many problems
with this code:
@request.restful()
def api():
response.view = 'generic.'+request.extension
def GET(search):
pass
clients = db(db.auth_user).select(db.auth_user.api_key)
t = db.t_tests_results
Have others had issues similar to this on Amazon?
Takes a bit of effort to do such things, and eventually I will need many
of the services amazon provide to import the sites abilities. Like S3
and the Transcoding services. It would be a big step to move away from
Amazon.
Additionally, I think
Not saying to move, but to identify where it could be infrastructure
related. If so, you can take it up with Amazon support.
On Monday, February 3, 2014 7:54:18 AM UTC+10, Encompass solutions wrote:
Have others had issues similar to this on Amazon?
Takes a bit of effort to do such things,
On Monday, February 3, 2014 8:00:53 AM UTC+10, Simon Ashley wrote:
Not saying to move, but to identify where it could be infrastructure
related. If so, you can take it up with Amazon support. (YMMV, but we had
significant issues leading to deprecation of 8 of our EC2 instances)
On
Thanks,
Anthony already helped me we that, this first thread jumped by mistake.
But there was a problem with posting into reference fields, so Anthony
suggested that I will do something like that , but I am getting the same
long error:
ValueError: invalid literal for long() with base 10:
I have done/worked in some projects running also in web2py. Don't know how
to add to the list (if anyone can feel free to add), here are some:
-News website about Braga city: http://www.bragatv.pt/
-Institutional website for the XIV International Congress of the Spanish
Society of Didactics of
http://web2py.com/books/default/chapter/29/01/introduction#Security
On Sunday, February 2, 2014 11:33:02 AM UTC-5, horridohobbyist wrote:
Does web2py have a function or means of sanitizing user input in order
to prevent SQL injection attacks?
Thanks.
--
Resources:
- http://web2py.com
-
It seems to complain that a field contains 'ergergrg' but it should be an
integer.
On Sunday, 2 February 2014 16:15:47 UTC-6, Avi A wrote:
Thanks,
Anthony already helped me we that, this first thread jumped by mistake.
But there was a problem with posting into reference fields, so Anthony
http://www.pythonsecurity.org/wiki/web2py/
Ovidio Marinho Falcao Neto
ITJP.NET.BR
ovidio...@gmail.com
itjp.net...@gmail.com
Brasil
2014-02-02 Cliff Kachinske cjk...@gmail.com:
As I recall, you have more than one reference field, but looks like you are
only converting one of them. You'll need to do some debugging to figure out
exactly which field or fields are generating errors, and then make the
appropriate corrections.
On Sunday, February 2, 2014 4:21:37 PM UTC-5,
One quick thing that could/ may rule it in or out is to change data
centres.
For example, in this part of the world, I would go for the SG rather than
the local AU data centre.
On Monday, 3 February 2014 07:54:18 UTC+10, Encompass solutions wrote:
Have others had issues similar to this on
Same error: invalid function (views/template_examples)
On Sunday, February 2, 2014 4:03:24 PM UTC-5, Massimo Di Pierro wrote:
The view should be
views/template_examples/variables.html
On Sunday, 2 February 2014 11:21:30 UTC-6, Austin Taylor wrote:
I've tried some of the examples on the
found the culprit now :
td
form
input name={{='quantity_%s' % product.id}} value={{=quantity}}
class=span1
onkeyup=ajax('{{=URL('purchase_order_callback', vars = dict(id =
product.id,
action = 'adjust_total_price') ) }}',
*['{{='quantity_%s' % product.id}}', '{{='price_%s' % product.id}}']*,
in views:
create template_examples/variables.html no
views/template_examples/variables.html, but is
views/views/ template_examples/variables.html.
Ovidio Marinho Falcao Neto
ITJP.NET.BR
ovidio...@gmail.com
itjp.net...@gmail.com
https://lh3.googleusercontent.com/-vCCairsIL3E/Uu71glrSHRI/FwY/3XNL2PF7JUw/s1600/screenshot.png
On Sunday, February 2, 2014 8:44:47 PM UTC-5, Ovidio Marinho wrote:
in views:
create template_examples/variables.html no
views/template_examples/variables.html, but is
views/views/
1) in Views:
2) Remove views/views/template_examples/variables.html
3) create template_examples/variables.html
Only.
Ovidio Marinho Falcao Neto
ITJP.NET.BR
ovidio...@gmail.com
itjp.net...@gmail.com
Brasil
https://lh4.googleusercontent.com/-k_GRjLmq2JQ/Uu78MulrZ5I/Fwo/DjaeMAVpGa0/s1600/webshot2.png
Tried that here is the result:
On Sunday, February 2, 2014 8:54:25 PM UTC-5, Ovidio Marinho wrote:
1) in Views:
2) Remove views/views/template_examples/variables.html
3) create
everything seems ok
http://web2py.com/books/default/chapter/34/08/email-and-sms#x509-and-PGP-Encryption
Ovidio Marinho Falcao Neto
ITJP.NET.BR
ovidio...@gmail.com
itjp.net...@gmail.com
Brasil
2014-02-02 Alan Etkin
Wrong version of the book. Plus, the instructions are incomplete and
inadequate to arrive a working solution.
On Sunday, 2 February 2014 21:18:27 UTC-5, Ovidio Marinho wrote:
everything seems ok
http://web2py.com/books/default/chapter/34/08/email-and-sms#x509-and-PGP-Encryption
make a package of your app (. W2P) and send us the particular email. To
look better, there is something wrong with your file structure al.
Ovidio Marinho Falcao Neto
ITJP.NET.BR
ovidio...@gmail.com
itjp.net...@gmail.com
Basically, the files you need to have are:
applications/kand/controllers/template_examples.py
applications/kand/views/template_examples/variables.html
Then simply visit http:127.0.0.1/kand/template_examples/variables
Post your current directory structure if you can't get it to work. There is
Thanks Massimo,
I tried it, but the output is still blank. The modified code is below.
{{=form}}
script
jQuery('input[name=price]','input[name=quantity]').keyup(function(){ajax('cost',['price'],['quantity'],'target');});
/script
On Sunday, February 2, 2014 4:12:14 PM UTC-5, Massimo Di Pierro
On trunk (today's), it works for me (in a app cloned from welcome,
configured for username=True). There is message flash email sent and I
get the email.
The same app fails in R-2.8.2 (I get error invalid username).
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
Bootstrap 3 dragdrop UI builder + Emmet
http://community.bootstraptor.com/post/981712/bootstrap-builder-emmet
среда, 17 апреля 2013 г., 21:37:55 UTC+4 пользователь Massimo Di Pierro
написал:
http://www.layoutit.com/
--
Resources:
- http://web2py.com
- http://web2py.com/book
Hi, Im a noob at web2py and have a question.
Im setting up an interface so certain members of a group can analyze the
information from two databases. One database is auth_user and the other
database Info has a single corresponding entry for each user in
auth_user. I have made an sql grid which
I have switched to nginx/uwsgi since the conversation above. Unfortunately
I cannot help you with Apache. I also had to experiment with the timeout
in in my present setup. I cannot remember the particulars at the moment.
Regards
Johann
On 2 February 2014 22:51, Encompass solutions
Thanks Anthony. That makes sense.
Regards
Johann
On 30 January 2014 16:37, Anthony abasta...@gmail.com wrote:
Looks like you've got survey_id as a variable in your URL query string, so
it will end up in request.get_vars. When you edit a record, the form also
includes a survey_id variable,
64 matches
Mail list logo