[web2py] Re: Rocket errors on importing python library

2012-04-08 Thread Unyo
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:

[web2py] Re: Rocket errors on importing python library

2012-04-08 Thread Unyo
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.

[web2py] Re: Rocket errors on importing python library

2012-04-08 Thread Unyo
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

[web2py] Re: Rocket errors on importing python library

2012-04-08 Thread Unyo
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,

[web2py] Resurrecting PyCon-Tech with web2conf

2012-04-08 Thread Mariano Reingart
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

[web2py] unordered list and pagination

2012-04-08 Thread Annet
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)\

Re: [web2py] Madeira Cloud

2012-04-08 Thread António Ramos
Madeira is the name of an Island in Portugal :) 2012/4/8 Massimo Di Pierro massimo.dipie...@gmail.com http://www.madeiracloud.com/

[web2py] Re: unordered list and pagination

2012-04-08 Thread Annet
Is there a way to implement this using twitter bootstrap's pagination component: http://twitter.github.com/bootstrap/components.html Annet.

[web2py] Re: Scaling web2py

2012-04-08 Thread Mengu
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

[web2py] Re: new feature in trunk: full auditing

2012-04-08 Thread Massimo Di Pierro
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,

[web2py] Re: syncing plugins across apps and with github -- again

2012-04-08 Thread Massimo Di Pierro
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

Re: [web2py] Re: Scaling web2py

2012-04-08 Thread Bruce Wade
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

[web2py] Re: Resurrecting PyCon-Tech with web2conf

2012-04-08 Thread Massimo Di Pierro
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

[web2py] Re: unordered list and pagination

2012-04-08 Thread Massimo Di Pierro
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 =

Re: [web2py] Re: Scaling web2py

2012-04-08 Thread Massimo Di Pierro
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

Re: [web2py] Re: Scaling web2py

2012-04-08 Thread Bruce Wade
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

[web2py] conceptual error on model / view concept

2012-04-08 Thread Ken Olsen
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 =

[web2py] newbie - dreamweaver and web2py

2012-04-08 Thread jaideep kekre
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 !!

[web2py] Re: conceptual error on model / view concept

2012-04-08 Thread Anthony
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

Re: [web2py] Madeira Cloud

2012-04-08 Thread Martin Barnard
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/

[web2py] Re: new feature in trunk: full auditing

2012-04-08 Thread Rakesh Singh
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) :

[web2py] Using HTML5 data- custom attributes with web2py HTML helpers

2012-04-08 Thread Yarin
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

Re: [web2py] Re: web2py still unable to create application on WebFaction

2012-04-08 Thread Noel Villamor
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

[web2py] Re: conceptual error on model / view concept

2012-04-08 Thread Ken Olsen
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

[web2py] Re: Using HTML5 data- custom attributes with web2py HTML helpers

2012-04-08 Thread Anthony
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:

[web2py] Re: Using HTML5 data- custom attributes with web2py HTML helpers

2012-04-08 Thread Yarin
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

[web2py] Re: Using HTML5 data- custom attributes with web2py HTML helpers

2012-04-08 Thread Anthony
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:

[web2py] Re: Why isn't auth.settings.register_onaccept=[complete_login] passing execution to def complete_login()

2012-04-08 Thread weheh
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

[web2py] Re: newbie - dreamweaver and web2py

2012-04-08 Thread weheh
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

[web2py] Not enough infoformation to build URL

2012-04-08 Thread Matt Gorecki
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

[web2py] Re: Not enough infoformation to build URL

2012-04-08 Thread Massimo Di Pierro
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

[web2py] Re: Not enough infoformation to build URL

2012-04-08 Thread Matt Gorecki
Fantastic. Works great now. I thought I was losing my mind. Matt

[web2py] Re: new feature in trunk: full auditing

2012-04-08 Thread tomt
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

[web2py] Re: Why isn't auth.settings.register_onaccept=[complete_login] passing ... [CLOSED - NEVER MIND]

2012-04-08 Thread weheh
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.)

Re: [web2py] Re: Scaling web2py

2012-04-08 Thread Ron McOuat
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

[web2py] Re: Why isn't auth.settings.register_onaccept=[complete_login] passing ... [CLOSED - NEVER MIND]

2012-04-08 Thread Anthony
As Rosanne Rosanna Danna would say, Never mind. (I bet most of you on this board are too young to remember that.) I remember. :-)

Re: [web2py] Re: Scaling web2py

2012-04-08 Thread Bruce Wade
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