I'd like to visit the referenced pages from
http://www.web2py.com/book/default/chapter/01#Security but I only
get the error invalid function (default/reference)
Broken:
http://www.web2py.com/books/default/reference/29/pythonsecurity
http://www.web2py.com/books/default/reference/29/owasp
On 26.1.2012 20:11, Ben Tammetta wrote:
Ok, so if I install python 2.6 how do I tell apache, web2py, mod_wsgi
and/or mod_python to use the python2.6 version ?
If I remember right the only thing you need to do is install a 2.6
version of mod_wsgi.
Kenneth
2012/1/26 Brad Miller bonel...@gmail.com:
That did it, thanks!
Is there a newer version of the tutorial somewhere?
Not, as far as I know, but old tutorials are right in most parts.
I have some basic
questions like how do I get the app to start with an admin password?
As far as I know you
In views - about auth.navbar(...):
It is a heler factory and its output can be manipulated as any other helper.
should probably be
It is a helper factory and its output can be manipulated as any other
helper.
Regards
Johann
--
Because experiencing your loyal love is better than life itself,
In Views under Mobile development:
Notice that the decorator must be important once before using it in a
controller. *should probably be:*
Notice that the decorator must be imported once before using it in a
controller.
Regards
Johann
--
Because experiencing your loyal love is better than life
Wow!, there's so much to do :). I will try help when I have time. For
keepalive features, I'd search for jQuery timing plugins. Anyway,
using javascript setInterval and setTimeout functions is not too
difficult. There's a web2py LOAD timing feature proposal that might be
of use for that purpose:
Before the problem I was using port 8010. The day the problem started
I used port 8000. But I've changed ports before without problem.
There was also a kernel upgrade, but I can't imagine that would cause
this.
Version 1.99.4 from the start. Checked permissions. Cleared browser
cache,
Hello,
I have a file download problem with my Web2py application. The file is
about 200kB.
web2py version: 1.99.2 (2011-09-26 06:55:33) stable
nginx-1.0.6
uwsgi-0.9.9.2
Debian Squeeze.
One of my crontroler creates a tar.gz file and returns it to the user.
It works well with the default
yes... very similar... I guess that just deleting the JS part and creating
a new DB object within the plugin (so that it has it own ttransaction)
will make the work...
thanks
On Thu, Jan 26, 2012 at 9:20 AM, Bruno Rocha rochacbr...@gmail.com wrote:
I dont know if it is related, but there is a
I guess that defining two will work for me... thanks !
On Thu, Jan 26, 2012 at 2:40 PM, Bruno Rocha rochacbr...@gmail.com wrote:
maybe if there's a way to .close() the db to be able to define it again.
http://zerp.ly/rochacbruno
Em 26/01/2012 12:18, Massimo Di Pierro
And yes, as always Massimo :), it is working now, thank You for
response :).
Taken from trunk:
Version 1.99.4 (2012-01-26 12:53:05) stable
regards
brushek
On 26 Sty, 19:54, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Yes. This will be resolved. We are working on it. In fact it may be
In http://www.web2py.com/books/default/chapter/29/4#API (Running tasks in
the background):
There is not a single was of doing it,
should be
There is not a single way of doing it,
Regards
Johann
--
Because experiencing your loyal love is better than life itself,
my lips will praise you. (Psalm
On Fri, Jan 27, 2012 at 9:04 AM, Alan Etkin spame...@gmail.com wrote:
Wow!, there's so much to do :). I will try help when I have time. For
keepalive features, I'd search for jQuery timing plugins. Anyway,
using javascript setInterval and setTimeout functions is not too
difficult. There's a
def populate_table():
for row in sdb().select(sdb.mytbl.ALL):
# build a dict for tbl insert
for fldname in sdb().mytbl.fields:
ddict[fldname] = row[fldname]
Note, each row of the select result is a web2py Row object (see
Hi all
I'm trying to use the CRUD-feature of web2py (1.99.4). At the moment I'm
stuck at invalid view (default/data.html) while accessing
https://localhost/init/default/data/tables.
So far I've created a simple application init and changed the following:
In controllers/default.py I've disabled
In site notifications looks like this:
http://www.diigo.com/item/image/121xl/jqgp?size=o (a counter, a popup, a
button to mark as read)
Now I want to have an ajax keepalive or websockets to pop it automatically
(does anyone knows about it?)
Have you looked at Socket.IO
Hi,
I'm using (local environment): rocket / web2py's latest trunk / win7 /
postgresql.
Since about a month ago I've been experiencing big delays on concurrent web
requests from different browsers (different sessions), after applying
changeset # 9619eb054669 (Socket timeout is now int an
include response.generic_patterns = ['*'] in your models or in your data
controller, so you will be able to use generic views.
On Fri, Jan 27, 2012 at 9:01 AM, Gian Luca Decurtins decur...@gmail.comwrote:
Hi all
I'm trying to use the CRUD-feature of web2py (1.99.4). At the moment I'm
stuck
Hi,
I'm about to start a major project development and although I am a
regular user of web2py in my development, they have been mostly in
intranets, what worries me is if anyone has had previous experience of
putting an application based on web2py with several thousand users, in
which case I
Thank you!
I had to edit models/db.py:
# response.generic_patterns = ['*'] if request.is_local else []
response.generic_patterns = ['*']
Regards
-Gian.
BTW: In the original post I've replaced the FQDN with localhost. If the
application did run on localhost this modification should not be
Hi,
I have problems with the configuration of a server cherokee with we2py.
I follow the Cherokee with FastCGI manual from:
http://www.web2py.com/books/default/chapter/29/13.
1) create the file /var/web2py/startweb2py.sh and set as executable
with this content:
#!/bin/sh
sudo -u www-data
Congratulations to Omi Chiba, Kenji Hosoda, Kenji Nakagaki, Mitsuhiro
Tsuda, and Yota Ichino.
The web2py book is now available in PDF in Japanese:
http://web2py.com/books/static/web2py_japanese_3rd.pdf
hmm will work on it asap.
On Jan 27, 3:10 am, Stefan Scholl ste...@no-spoon.de wrote:
I'd like to visit the referenced pages
fromhttp://www.web2py.com/book/default/chapter/01#Securitybut I only
get the error invalid function (default/reference)
Can you login into the welcome app? How about admin? Is this problem
specific of one app?
On Jan 27, 6:00 am, Cliff cjk...@gmail.com wrote:
Before the problem I was using port 8010. The day the problem started
I used port 8000. But I've changed ports before without problem.
There was also a
I found that setting alternative doccument root to
/var/web2py/applications the server work, but in the documentation
that change does not appear.
Solved my self, thanks
2012/1/27 Roberto Perdomo roberto...@gmail.com:
Hi,
I have problems with the configuration of a server cherokee with we2py.
My first tip is, avoid /models have your code in /modules import what you
need only when and where you need!
On Fri, Jan 27, 2012 at 1:39 PM, Alfonso de la Guarda
alfons...@gmail.comwrote:
Hi,
I'm about to start a major project development and although I am a
regular user of web2py in my
This is a fantastic project!
On Jan 27, 2:53 am, Bruno Rocha rochacbr...@gmail.com wrote:
Hi,
I just finished the hardest part of the social network, the Notifications
Engine, The secret of Facebook success is the notifiers showing news
without the need of users to click anywhere.
I did a
What do you get if you reduce 60 seconds to 10 seconds?
On Jan 27, 9:27 am, Carlos carlosgali...@gmail.com wrote:
Hi,
I'm using (local environment): rocket / web2py's latest trunk / win7 /
postgresql.
Since about a month ago I've been experiencing big delays on concurrent web
requests from
HI,
May be it is a better question to uwsgi list, but maybe someone here knows..
I have several apps in a single server running uwsgi, every time I need to
reload some modules in some app I do
/etc/init.d/uwsgi-python restart
But it restarts all my apps..
Is there a way to specify which app
On Friday, January 27, 2012 10:43:53 AM UTC-5, Gian Luca Decurtins wrote:
Thank you!
I had to edit models/db.py:
# response.generic_patterns = ['*'] if request.is_local else []
response.generic_patterns = ['*']
Note, there's a reason that generic views are enabled only on localhost by
Hi Massimo,
Whatever value I assign, it's the number of seconds it usually takes for
concurrent requests.
With the original default value of 1 (one), the concurrent responses are
immediate (as one would expect).
Hope this helps, thanks.
Carlos
First off, my appreciation to Massimo and the web2py team for working
on such a wonderful product.
I had used RedBeanPHP ORM (http://redbeanphp.com/) in a recent project
on PHP, and I really liked it. It stays true to it's claim - Combine
The Simplicity of NoSQL With The Power of SQL. - making
I don't know about future development plans, but I can say that web2py does
not use an ORM, it uses a database abstraction layer that generates the
proper SQL (and NoSQL) code. Lack of an ORM is sometimes touted as a
feature of web2py because ORMs are usually big, complicated, and difficult
to
This is very good advice. I have moved many of my plugins and apps from
using models to modules because of the performance gain. There is nothing
wrong with the models implementation, but it's really meant to define
tables and that's it. Functionality that doesn't belong in a controller
should
Just me ?
On Fri, Jan 27, 2012 at 1:01 PM, Omi Chiba ochib...@gmail.com wrote:
Just me ?
Me too
+1
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
ITJP - itjp.net.br
83 8826 9088 - Oi
83 9334 0266 - Claro
Brasil
2012/1/27
One other thing I noticed after reading your question a second time: Python
(Django and web2py) will run much faster than PHP in almost every case. If
you needed to start passing things to PHP in order to speed things up, then
you must have been using a highly-tuned PHP configuration and a very
I think the problem is in the app models, which I have attached below.
Apologies for the lengthy post.
Note the print statements at the end of db.py. Those statements do
not
execute until I attempt to use the database administration link on the
admin/default/design page. Is that normal?
##
+1
On 1/27/2012 12:04 PM, Ovidio Marinho wrote:
+1
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com mailto:ovidio...@gmail.com
ovidiomari...@itjp.net.br mailto:ovidiomari...@itjp.net.br
ITJP - itjp.net.br http://itjp.net.br
I also noted best performance directly rendering the templates and caching
views where it can be cached.
just replacing
return dict()
with
return response.render(filename, context)
in conttrollers and also usins @cached controllers and cached queries.
the bottleneck is always server and
same here
However, there is nothing stopping you from using RedBrean or even
SQLAlchemy in your web2py projects.
RedBean is a php library... :)
I used it but I can't say that it is better than web2pys DAL
On Now
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
ITJP - itjp.net.br
83 8826 9088 - Oi
83 9334 0266 - Claro
Brasil
2012/1/27
This is very good advice. I have moved many of my plugins and apps from
using models to modules because of the performance gain. There is nothing
wrong with the models implementation, but it's really meant to define
tables and that's it. Functionality that doesn't belong in a controller
should
It really depends.
Querying and returning large datasets can become a huge bottleneck.
More than letting db server work on its own relations. If you use a
real RDBMS, it's designed to work on it.
Web2py doesn't create indexes. You have to make it manually. Making
so, RDBMS thanks you a lot and
I know it is not fcgi but I suggest scgi, it is simpler and couples
very well with web2py.
In the new web2py cookbook there is a recipe for using cherokee with
scgi, there you will find a detailed setup description.
The essence is that you create an scgi handler in cherokee. You set
cherokee to
I posted https://github.com/explorigin/Rocket/issues/1#issuecomment-3648126- I
suspect it is an interplay between timeouts and sendall(), though I
can't really prove it (and I can't reliably reproduce this either right
now). Also some characterization about when this happens to me (slow links,
VPS.NET informed me they had a bad switch and needed to replace it.
On Jan 27, 1:07 pm, Ovidio Marinho ovidio...@gmail.com wrote:
On Now
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
Thank you. This is really an important issue and should get priority.
On Jan 27, 4:04 pm, nick name i.like.privacy@gmail.com wrote:
I postedhttps://github.com/explorigin/Rocket/issues/1#issuecomment-3648126-I
suspect it is an interplay between timeouts and sendall(), though I
can't really
Are there any good instructions for how to do this?
1. It's much easier to scale than it is to gain enough users where scaling
is a problem.
2. The framework is almost never the culprit. For example, Disqus has 500
million monthly uniques on Django.
3. There are lots of ways to optimize system performance from caching, to
optimizing queries,
Is the main benefit not having to pre-define models? I suppose that could
be nice during development but don't find that to be a big problem with DAL.
DAL is pretty integral to Web2py and one of the most popular features. And
it has many of the same advantages as RedBean and from my brief look,
Hard to say.
I don't know if this helps but here's how appadmin does it for a csv file:
def csv():
import gluon.contenttype
response.headers['Content-Type'] = \
gluon.contenttype.contenttype('.csv')
db = get_database(request)
query = get_query(request)
if not query:
About db bottlenecks:
I think that using executesql gives a performance gain of 2 orders of
magnitude over DAL on datasets with more than 1000 records. The DAL
is a huge bottleneck if used inappropriately.
I suggest using posgtresql with proper indexing. How?
Just take your query and run it
I am using /models just to define small global functions and to set some
response and request keys.
All my code including datamodels I am putting into /modules
In my mind I changed the /models to /scripts or /batches so it is more easy
to understand why avoiding it.
my current structure is:
What confuses me is what modules have access to and what needs to be
imported (in modules and controllers).
I wonder if DAL should have an ability to return JSON data sets that are
then manipulated with JavaScript? Or something like that?
Thank for you suggest. The next monday i try.
Today with cherokee and fastcgi the welcome app work fine, but only show
the index, and with other apps is the same problem.
El 27/01/2012 16:15, Michele Comitini michele.comit...@gmail.com
escribió:
I know it is not fcgi but I suggest scgi, it is
Hi,
Nice Bruno,
But those approachs how many traffic deals?
By the way, is the first time that i notice about use the /modules
approach to gain performance, are you measure the performance por
models inside /model and /modules?
To all:
Mores experiences? Problem resolutions?
Maybe put all of
Alan, than you very much! Totally new concept for me, but you got exactly
what I needed.
I just fixed couple typos, and copying it here in case someone else needs
to resolve a similar problem.
rows = db(db.purchase_order.id0).select(db.purchase_order.po_number,
db.item.id,
What tools / code snippets are you using to monitor memory leaks?
On Fri, 27 Jan 2012 11:23:22 -0430
Roberto Perdomo roberto...@gmail.com
wrote:
I have problems with the configuration of a server cherokee with
we2py.
Have you considered Cherokee + uWSGI?
Sincerely,
Gour
--
In this endeavor there is no loss or diminution,
and a little advancement on this
63 matches
Mail list logo