Massimo,
Thanks for your reply. I like the solution, however, it results in the
following ticket:
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/web2py/gluon/restricted.py", line
205, in restricted
exec ccode in environment
File
"/Library/Python/2.5/site-pac
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
>
> As Rosanne Rosanna Danna would say, "Never mind." (I bet most of you on
> this board are too young to remember that.)
I remember. :-)
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 tre
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.)
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 never
Fantastic. Works great now.
I thought I was losing my mind.
Matt
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 rele
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 n
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
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 register_form.pro
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 wro
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
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 na
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 = "{{=serialRead()}}";
>> $('#console').append(msg);
>> }
>>
>
> You are attempting to mix Python (which runs on the server) with
>
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
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,
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) :
Inte
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
>
>> http://www.madeiracloud.com/
>>
>
>
>
>
> function serialRead() {
> var msg = "{{=serialRead()}}";
> $('#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 t
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 !!
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 = seria
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 op
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 Saturd
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 =
(db.O
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 (dja
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 wrote:
> hi bruce,
>
> what are the specs of your web servers and db server/s?
>
> what web server are you using and how?
>
>
>
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 wil
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,
>
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
Is there a way to implement this using twitter bootstrap's pagination
component: http://twitter.github.com/bootstrap/components.html
Annet.
Madeira is the name of an Island in Portugal
:)
2012/4/8 Massimo Di Pierro
> http://www.madeiracloud.com/
>
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)&\
(db.Address.locality==reques
33 matches
Mail list logo