rocket breaks sometimes if you have limited memory, try entering ulimit -s
1024 into the shell before executing web2py. Not sure why it works, but it
does.
On Tuesday, March 27, 2012 3:33:58 AM UTC-10, Rohan wrote:
any updates?
On Monday, 26 March 2012 20:03:07 UTC+5:30, Rohan wrote:
rocket breaks sometimes if you have limited memory, try entering ulimit -s
1024 into the shell before executing web2py. Not sure why it works, but it
does.
Also, how in the world did you enable debugging? I want to see if the
minthreads and maxthreads settings passed via command string actually work.
On Saturday, April 7, 2012 8:08:51 PM UTC-10, Unyo wrote:
rocket breaks sometimes if you have limited memory, try entering ulimit
-s 1024 into the
Try editing the readability logger to specify a logger name instead of just
the root:
https://github.com/buriy/python-readability/blob/master/readability/htmls.py
-logging.getLogger().setLevel(logging.DEBUG)
+logging.getLogger('readability').setLevel(logging.DEBUG)
On Tuesday, March 27,
Hello
Just in case this is useful to others, I have added support to import
old PyCon-Tech (django 0.96) models into web2conf (web2py), including:
- wiki pages (django_flatpage)
- menu (navbar_navbarentry)
- attendees (auth_user, usermgr_userprofile, gmaps_gaddress)
- activities
I have an address book controller with a function that queries the database
for addresses:
rows=db((db.Organization.nodeID==db.NodeKeyword.nodeID)(db.Organization.nodeID==db.Address.nodeID)\
(db.Organization.approved==True)(db.NodeKeyword.word==request.vars.word)\
Madeira is the name of an Island in Portugal
:)
2012/4/8 Massimo Di Pierro massimo.dipie...@gmail.com
http://www.madeiracloud.com/
Is there a way to implement this using twitter bootstrap's pagination
component: http://twitter.github.com/bootstrap/components.html
Annet.
hi bruce,
what are the specs of your web servers and db server/s?
what web server are you using and how?
On Saturday, April 7, 2012 4:59:20 PM UTC+3, Detectedstealth wrote:
Hi,
So now that my site has been developed with web2py I am now looking to
release it this month. However also
Can you try again with mysql, delete the database and replace:
auth.define_tables(signature=True)
with
auth.define_tables(signature=False)
Does the problem does away? It looks like it does not like the self
reference in auth_user.
On Saturday, 7 April 2012 22:09:31 UTC-5, tomt wrote:
Hi,
The problem is that plugins are more then modules. If the individual apps
must be packable as separate apps they must contain the plugins. I like the
idea of having an app with all the plugins but instad of referencing, why
not create symbolic links? In that case if you package the apps they
Each server:
Ubuntu 10.04
2GB Ram
80GM HD
Currently running apache 2 however switching to nginx + uwsgi.
Database postgresql 9.1
On Sun, Apr 8, 2012 at 7:31 AM, Mengu whalb...@gmail.com wrote:
hi bruce,
what are the specs of your web servers and db server/s?
what web server are you using
web2conf is very old. Have you looked into conf2py?
On Sunday, 8 April 2012 01:41:27 UTC-5, Mariano Reingart wrote:
Hello
Just in case this is useful to others, I have added support to import
old PyCon-Tech (django 0.96) models into web2conf (web2py), including:
- wiki pages
def index():
query
=
(db.Organization.nodeID==db.NodeKeyword.nodeID)(db.Organization.nodeID==db.Address.nodeID)\
(db.Organization.approved==True)(db.NodeKeyword.word==request.vars.word)\
(db.Address.locality==request.vars.locality)(db.Address.addrType==PHYSICALADDR)
fields =
The recipe book described a
class TreeProxy(object): ...
which implements unordered tree traversal. It is the most efficient way to
store records in a tree and retrieve them efficiently in a single query.
Anyway, if this is the bottle neck, you should definitively cache it
somehow.
On
Yeah the TreeProxy won't work in our case, as this is a MLM tree which
means there is really no order. For example:
1
2 10
1193 4
Etc, I tried to convince the CEO to use a balanced tree when we first
started programming but that wasn't an
I'm having trouble wrapping my head around the MVC stuff.
I'm trying to read and display serial data from an Arduino microcontroller
attached to /dev/ttyUSB0 with limited sucess.
Model: (readSerial.py)
import serial
import time
ser =
im a student trying to build a slick website as a hobby . can web2py be
used with dreamweaver to generate html and then add the web2py template
stuff ? any bugs or issues i should be aware of?
thanks a lot !!
function serialRead() {
var msg = p{{=serialRead()}}/p;
$('#console').append(msg);
}
You are attempting to mix Python (which runs on the server) with Javascript
(which runs on the client). The above is a template that web2py converts
into HTML and sends to the
And a very nice island it is too. Nice levadas, if a little steep :)
On Sunday, 8 April 2012 11:58:52 UTC+3, Ramos wrote:
Madeira is the name of an Island in Portugal
:)
2012/4/8 Massimo Di Pierro massimo.dipie...@gmail.com
http://www.madeiracloud.com/
Hi,
I have received the same error as Tom on MySQL (5.5.22) when adding a user
to the auth_user table via the Database Administration screen.
(1452, u'Cannot add or update a child row: a foreign key constraint fails)
Reverting back to signature=False resulted in an error (Trace below) :
The HTML5 spec for custom attributes uses attribute names that start with
'data-'. However, web2py's HTML helpers throw an error whenever you try to
use a hyphen in an attribute name:
datalink = A('something', _data-something='100')
throws:
'SyntaxError: keyword can't be an expression'.
Is
Hi All,
I encountered this issue as well. Here is how I resolved it.
*- web2py directory should have welcome.w2p*
Happy Easter!
Noel Villamor
On Sunday, 6 March 2011 09:54:19 UTC+13, Jonathan Lundell wrote:
On Mar 5, 2011, at 12:07 PM, Jonathan Lundell wrote:
On Mar 5, 2011, at 11:35
That got me on the right track. Thanks!
On Sunday, April 8, 2012 12:24:58 PM UTC-7, Anthony wrote:
function serialRead() {
var msg = p{{=serialRead()}}/p;
$('#console').append(msg);
}
You are attempting to mix Python (which runs on the server) with
Javascript
A('something', **{'_data-something': 100})
Anthony
On Sunday, April 8, 2012 6:54:55 PM UTC-4, Yarin wrote:
The HTML5 spec for custom attributes uses attribute names that start with
'data-'. However, web2py's HTML helpers throw an error whenever you try to
use a hyphen in an attribute name:
sweet thanks Anthony
On Sunday, April 8, 2012 8:28:59 PM UTC-4, Anthony wrote:
A('something', **{'_data-something': 100})
Anthony
On Sunday, April 8, 2012 6:54:55 PM UTC-4, Yarin wrote:
The HTML5 spec for custom attributes uses attribute names that start with
'data-'. However, web2py's
Note, this is explained near the end of this section in the book:
http://web2py.com/books/default/chapter/29/5#HTML-helpers
On Sunday, April 8, 2012 8:28:59 PM UTC-4, Anthony wrote:
A('something', **{'_data-something': 100})
Anthony
On Sunday, April 8, 2012 6:54:55 PM UTC-4, Yarin wrote:
I restored my original code that had the response.js but it still doesn't
work. The ajax call is not getting made. What could be causing this?
My restored user controller is this:
def register():
...
register_form = SQLFORM.factory( db.auth_user, ... )
...
if
Sure, you could use dreamweaver to generate some html page templates and
embed them in a web2py directory structure. But you would have to tell
dreamweaver where to store pages in the web2py views folders. In other
words, you would have to ensure they adhered to the structure expected by
I am completely baffled. After moving my web2py application from one
server to another, I keep getting SyntaxError: not enough information to
build the url as a result of this line in one of my layout views:
{{=URL('static','/images/logo.png')}}
This working working on a 1.99.4 install and
This has been fixed in trunk although technically it not a breaking of
backward compatibility but a bug because
{{=URL('static','/images/logo.png')}}
should be
{{=URL('static','images/logo.png')}}
And the old version was ignoring the /. Anyway, since this is important, we
fixed and will
Fantastic. Works great now.
I thought I was losing my mind.
Matt
Hi,
Thanks for your response. I deleted the database as you suggested and
changed signature=False. The problem did go away and I was able to add
users without the error.
I then reverted to signature=True. While subsequent modifications did show
the signature, the 'mything_archive' was
Grr. Found the little bugger. It was an errant html script is a workaround
to get file uploads to work with components. How it ended up in my
response.load file I don't know. As Rosanne Rosanna Danna would say, Never
mind. (I bet most of you on this board are too young to remember that.)
Bruce,
It might help, maybe not, but Pragmatic Programmers has a book called SQL
AntiPatterns with Chapter 3 dedicated to tree structures in databases
http://pragprog.com/book/bksqla/sql-antipatterns
They show several alternatives to the usual starting point of adjacency
lists to describe
As Rosanne Rosanna Danna would say, Never mind. (I bet most of you on
this board are too young to remember that.)
I remember. :-)
Thanks Ron I will take a look.
You are correct someone can sponsor more then 2 people, they can sponsor as
many people as they wish. However the sponsor tree and binary tree a very
different.
For example a binary tree has two legs, our company populates one leg, and
the opposite leg is up to the
37 matches
Mail list logo