[web2py] Re: Cannot compile: there are errors in your app:

2010-04-30 Thread Russell
You might want to check any dynamic {{extend}} statements within your views. When the app is compiled the views are 'extended' but any paths based on run-time objects just don't work. For example this works uncompiled... {{extend os.path.join(request.controller, 'custom_layout.html')}} But it w

[web2py] Wiki example from book on gae

2010-04-30 Thread nic
Hello All, I am trying to run the wiki example from the book on gae. It is running fine on my local machine using cherrypy but will not run on the gae. The error seems to be coming from index() in default.py I believe there may be an error in the book that may or may not be related In Section 3

[web2py] Re: Web2py or Python 2.5 consumes too much RAM

2010-04-30 Thread mdipierro
Ignore my question. I thought you were answering to a different thread. I'll have to upgrade to 10.04 LTS. > To make sure I understand. You can replicate the problem with 8.04 but > not with 9.04,9.10 and 10.04? > > On Apr 30, 10:17 pm, Thadeus Burgess wrote: > > > I can confirm that with 9.04,

[web2py] Re: Web2py or Python 2.5 consumes too much RAM

2010-04-30 Thread mdipierro
To make sure I understand. You can replicate the problem with 8.04 but not with 9.04,9.10 and 10.04? On Apr 30, 10:17 pm, Thadeus Burgess wrote: > I can confirm that with 9.04, 9.10, and 10.04 do not have this problem. > > -- > Thadeus > > On Fri, Apr 30, 2010 at 9:17 PM, mdipierro wrote: > > I

Re: [web2py] Re: Web2py or Python 2.5 consumes too much RAM

2010-04-30 Thread Thadeus Burgess
I can confirm that with 9.04, 9.10, and 10.04 do not have this problem. -- Thadeus On Fri, Apr 30, 2010 at 9:17 PM, mdipierro wrote: > I have seen this before with ubuntu 8.04. There is a memory leak. I do > not think it is in web2py but could not get to the bottom if it. The > trick consist

Re: [web2py] Re: Small bug in helpers

2010-04-30 Thread Thadeus Burgess
This is because of a python syntax. You just can't have variables with a dash in the name :) (this goes for almost every other programming language) -- Thadeus On Fri, Apr 30, 2010 at 9:13 PM, mdipierro wrote: > You cannot do > > DIV(,_id='navigation1',_role='navigation',aria-labelledby

[web2py] Re: help with pam

2010-04-30 Thread mdipierro
I am using the Ubuntu 8.04 LTS 64 bits provided by VPS.net It has a root account and you can only login into it using the root account, until you create another account. Perhaps this is the *root* or of the problem. Massimo On Apr 30, 9:37 pm, Álvaro Justen wrote: > On Fri, Apr 30, 2010 at 23:2

Re: [web2py] help with pam

2010-04-30 Thread Álvaro Justen
On Fri, Apr 30, 2010 at 23:22, mdipierro wrote: > I have the following problem. On ubuntu. > from gluon.contrib.pam import authenticate authenticate('username','password') > > it works for every 'username' except for 'root'. This prevents me from > setting up the root password as default

[web2py] help with pam

2010-04-30 Thread mdipierro
I have the following problem. On ubuntu. >>> from gluon.contrib.pam import authenticate >>> authenticate('username','password') it works for every 'username' except for 'root'. This prevents me from setting up the root password as default admin password. It is not a web2py issue, nor a gluon.co

[web2py] Re: Web2py or Python 2.5 consumes too much RAM

2010-04-30 Thread mdipierro
I have seen this before with ubuntu 8.04. There is a memory leak. I do not think it is in web2py but could not get to the bottom if it. The trick consists in limiting the number of requests served by the same process so that apache starts a new process more often. On Apr 30, 7:36 pm, Adolfo wrote

[web2py] Re: Small bug in helpers

2010-04-30 Thread mdipierro
You cannot do DIV(,_id='navigation1',_role='navigation',aria-labelledby='nav- login-menu-label' ) you have to do DIV(...,**{'_id':'navigation1','_role':'navigation','aria- labelledby':'nav-login-menu-label' }) Massimo On Apr 30, 4:31 pm, Christopher Steel wrote: > I think I found a small

[web2py] Re: UUID as Primary Key?

2010-04-30 Thread mdipierro
This db.define_table(Field('uuid','id',default=uuid.uuid4()),, does not work because 'id' is expected to be integer. I think you would have to use keyed tables db.define_table(Field('uuid',default=uuid.uuid4()),, primary_key=['uuid']) not all backends support this yet. I am not sure

[web2py] Web2py or Python 2.5 consumes too much RAM

2010-04-30 Thread Adolfo
Hello I've been working for months in an application, i never had any problems working as localhost. When i finished the app i decided to run it in an Ubuntu 8.04 server with 2Gb of RAM. I used apache mod proxy for accessing the app from the network. I'm using postgress I haven't had any problems

[web2py] Small bug in helpers

2010-04-30 Thread Christopher Steel
I think I found a small bug that may be in one or more of the helpers which cause a failure when a hyphen is used in the name of an attribute. So for example if you use an attribute where the left side of the equation contains a '-' such as: _aria-labelledby='nav-login-menu-label' then you w

[web2py] UUID as Primary Key?

2010-04-30 Thread Brian M
Is there anyway to use the DAL with a database that used UUIDs as the primary key in a few tables? The setup below just gives errors because registered_user.UserId (the id field) isn't an integer as expected (ValueError: invalid literal for int() with base 10: '6BBC2607-1B6A-4C8A-BBD4-8566754CFA20

[web2py] Re: web2py stats

2010-04-30 Thread mdipierro
I will automate this and make a stats page. On Apr 30, 1:49 pm, waTR wrote: > great stats!  Thanks for publishing this Massimo!  It shows > transparency in the community and allows people to see this community > as a growing community. > > On Apr 29, 8:05 am, Mengu wrote: > > > this is great new

[web2py] Re: web2py stats

2010-04-30 Thread waTR
great stats! Thanks for publishing this Massimo! It shows transparency in the community and allows people to see this community as a growing community. On Apr 29, 8:05 am, Mengu wrote: > this is great news. hope many of them convert not just stay with > visiting! :) > > On 29 Nisan, 17:32, m

Re: [web2py] Disabling few functions for certain users

2010-04-30 Thread Jonathan Lundell
On Apr 30, 2010, at 8:34 AM, Thadeus Burgess wrote: > I don't think that this is the case. Because since you have both > normal users and facebook users =? And you do not have to be logged in > to retrieve password. Maybe so. But you're retrieving a password associated with a user, and that user

[web2py] Re: Missing ")" in GAE memcache template

2010-04-30 Thread mdipierro
fixing in trunk, thanks On Apr 30, 10:30 am, Chris S wrote: > This might already be known, and I'm honestly not 100% sure I'm > reporting it in the right place.  If this is wrong please point me to > where I should report these issues in the future.  I'm not nearly > competent enough to find bug

Re: [web2py] Disabling few functions for certain users

2010-04-30 Thread Thadeus Burgess
I don't think that this is the case. Because since you have both normal users and facebook users =? And you do not have to be logged in to retrieve password. -- Thadeus On Fri, Apr 30, 2010 at 9:38 AM, Jonathan Lundell wrote: > On Apr 30, 2010, at 7:22 AM, Thadeus Burgess wrote: > >> You nee

[web2py] Missing ")" in GAE memcache template

2010-04-30 Thread Chris S
This might already be known, and I'm honestly not 100% sure I'm reporting it in the right place. If this is wrong please point me to where I should report these issues in the future. I'm not nearly competent enough to find bugs most of the time. In Applications/Welcome/Models/db.py: # session.c

[web2py] Re: SEO

2010-04-30 Thread mdmcginn
Actually, web crawlers don't ignore hidden fields, they penalize their misuse as spam. Don't feed any content to web crawlers that isn't visible to ordinary visitors. Al, you could embed each scanned image into its own HTML page, with the heading (title) and keywords at the top. How about adding n

Re: [web2py] Disabling few functions for certain users

2010-04-30 Thread Jonathan Lundell
On Apr 30, 2010, at 7:22 AM, Thadeus Burgess wrote: > You need to store the preferences in the database, what seems to be > happening is you are setting the disabled actions, but its being lost > on the next request. > > So along with your auth_user table you probably need to add a couple > boole

Re: [web2py] chained option box

2010-04-30 Thread Thadeus Burgess
Your model looks good. You will need to use javascript and ajax to get the effects that you desire. Basically, hook into the first options box "change" event, and on_change send an ajax request to the server requesting the 'spenton' fields for 'spent', and then take the returned results and popula

Re: [web2py] Disabling few functions for certain users

2010-04-30 Thread Thadeus Burgess
You need to store the preferences in the database, what seems to be happening is you are setting the disabled actions, but its being lost on the next request. So along with your auth_user table you probably need to add a couple boolean columns to disable these options, this way it is persistant.

[web2py] chained option box

2010-04-30 Thread kibrun
Dear all, I'm new in python and currently trying web2py. I need some help to build a chained option box - meaning when i choose an item in option1's list, option2's list automatically change to a specific list that falls under option1's subject: db.define_table('spent', SQLFi