Re: [web2py] Re: Apache, Wsgi problem

2011-02-16 Thread Ahmed Bani
Question: Could provide you provide an app that generates the error? Answer: Check Appliance Customer Relationship Management. db = DAL(postgres://postgres: Error Snapshot : type 'exceptions.RuntimeError'(Failure to connect, tried 5 times: global name 'psycopg2' is not defined)

Re: [web2py] Re: Amazon EC2, How does it... um... how does it work?

2011-02-16 Thread Jason (spot) Brower
Great, this explains a lot. I prefer the console world more than anything else out there. I should look into the server to replace my current product line hosted at dreamhost. Though dreamhost has some powerful one click installs that save me a bit of time. And they are funny. :D Thanks! Jason

Re: [web2py] php to web2py

2011-02-16 Thread Vinicius Assef
Which tags? On Wed, Feb 16, 2011 at 2:07 AM, stargate kyoukh...@gmail.com wrote: I came across the following URLS http://web2py.com/AlterEgo/default/show/106 http://www.web2py.com/AlterEgo/default/show/167 Where is the updated content with the new web2py tags

Re: [web2py] php to web2py

2011-02-16 Thread Albert Abril
Stargate, all the tags in the article are correct. I guess you confused because it says 'Old web2py blog', but html and web2py are all correct. On Wed, Feb 16, 2011 at 10:51 AM, Vinicius Assef vinicius...@gmail.comwrote: Which tags? On Wed, Feb 16, 2011 at 2:07 AM, stargate

[web2py] Re: The best way to integrate web services API in one site ?

2011-02-16 Thread Lionel Barret
Thank you, that looks interesting indeed. On Feb 16, 12:55 am, pbreit pbreitenb...@gmail.com wrote: You should consider a queue:https://groups.google.com/d/topic/web2py/W2gtGxIKYFc/discussion

[web2py] a few DAL proposes

2011-02-16 Thread elffikk
hi, I propose to add a few things to DAL 1) an 'act_as' parameter in define_table so I can extend Table class and use it as regular table for e.g. db.define_table(images, Field(category, db.categories), Field(title), act_as=OrderedList, ) OrderedList is a class that extends Table

[web2py] Re: VirtualFields are really slow with large datasets

2011-02-16 Thread KMax
I guess, virtualfield items gets their value by dedicated select, which give so much overheat.

[web2py] Re: Apache, Wsgi problem

2011-02-16 Thread Massimo Di Pierro
The problem here is that you did not install the psycopg2 driver for postgresql. On Feb 16, 2:28 am, Ahmed Bani taz...@gmail.com wrote: Question: Could provide you provide an app that generates the error? Answer: Check Appliance Customer Relationship Management.     db =

[web2py] Re: VirtualFields are really slow with large datasets

2011-02-16 Thread Massimo Di Pierro
Your virtual fields are doing one select for each record of the parent select. You should use joins. On Feb 16, 12:19 am, Kurt Grutzmacher gr...@jingojango.net wrote: I have three tables that aren't particularly large (1500, 2500, and 3500 records in each). With VirtualFields enabled a select()

[web2py] SQLFORM.widgets.date.widget problem

2011-02-16 Thread sipiatti
Hi, I am very new in web2py (but I love it from the first met:) ), and faced a problem what I could solve with a workaround but I think it is not the right way. I have a custom form what I created with SQLFORM: form=SQLFORM(db.assets,

[web2py] Re: CRUD form customization - possible??

2011-02-16 Thread Massimo Di Pierro
given... from=crud.create() you can do form e in form.elements('input[type=text]'): e['size']=50; or in JS scriptjQuery('input[type=text]').css('width':'50px'):/script or better in CSS scriptinput[type=text] {width: 50px;}/script On Feb 15, 10:59 pm, greenpoise danel.sega...@gmail.com

[web2py] Re: Spam control? and word filtering?

2011-02-16 Thread Massimo Di Pierro
I am not an expert on bad words in english, I could do a better job in Italian. ;-) On Feb 15, 11:20 pm, Jonathan Lundell jlund...@pobox.com wrote: On Feb 15, 2011, at 11:21 AM, Massimo Di Pierro wrote: import base64, re

[web2py] Re: Read-only CRUD fields don't work?

2011-02-16 Thread Massimo Di Pierro
This should be fixed in trunk. Get the nightly build from the download page. On Feb 16, 1:58 am, Joe Barnhart joe.barnh...@gmail.com wrote: I have a simple CRUD create form that's driving me crazy.  I want to pre-load one of the fields in the form.  I want the field to show up, but be

[web2py] Re: a few DAL proposes

2011-02-16 Thread DenesL
On Feb 16, 7:12 am, elffikk elff...@gmail.com wrote: hi, I propose to add a few things to DAL 1) an 'act_as' parameter in define_table so I can extend Table class and use it as regular table for e.g. db.define_table(images, Field(category, db.categories), Field(title),

[web2py] Doctests and aut - Difference being logged in or not

2011-02-16 Thread Oskari
Hi, I'm writing doctests to my application. Most of my functions are decorated with @auth.requires_login(). Running doctests through the web IDE runs the tests in a different environment depending on if I'm logged in in the app. What kind of pattern is here meant to be used to test logged-in

[web2py] Re: php to web2py

2011-02-16 Thread stargate
Just was confused when it said it was old blog that is all On Feb 16, 5:25 am, Albert Abril albert.ab...@gmail.com wrote: Stargate, all the tags in the article are correct. I guess you confused because it says 'Old web2py blog', but html and web2py are all correct. On Wed, Feb 16, 2011 at

Re: [web2py] Re: jqgrid-problem

2011-02-16 Thread Johann Spies
On 15 February 2011 16:35, Massimo Di Pierro massimo.dipie...@gmail.comwrote: check with firebug. It is possible the ajax requests of jqgrid are failing. This could be because on your deployment you are using routes. I am indeed using routes on the deployment server! Thanks. Do I need to

[web2py] Re: Importing an already existing MySQL database

2011-02-16 Thread Rupesh Pradhan
I could not find the folder or file under web2py folder? Where is it?

Re: [web2py] Re: tip of the day. The power of routes

2011-02-16 Thread Johann Spies
On 29 November 2010 01:03, Bruno Rocha rochacbr...@gmail.com wrote: HI, I am trying to use autoroutes for the firsttime, what I want is my site running in 127.0.0.1:8080/index instead of 127.0.0.1/app/default/index. I tried the autoroutes and routes.conf explained here but i did't figure out

[web2py] Re: a few DAL proposes

2011-02-16 Thread Massimo Di Pierro
OK. 2 is in trunk. About 1). Are you asking to be able to extend class Table for a specific define_table? Or doyou specifically need the move methods? On Feb 16, 7:16 am, DenesL denes1...@yahoo.ca wrote: On Feb 16, 7:12 am, elffikk elff...@gmail.com wrote: hi, I propose to add a

[web2py] Re: Importing an already existing MySQL database

2011-02-16 Thread DenesL
It is there in all the sources I have: /web2py_x.xx_dir/scripts/ which version do you have? which OS?.

[web2py] Re: Doctests and aut - Difference being logged in or not

2011-02-16 Thread Massimo Di Pierro
One trick is to replace @auth.requires_login() with @auth.requires(auth.user or request.function=='_TEST') On Feb 16, 7:33 am, Oskari oskari.pe...@gmail.com wrote: Hi, I'm writing doctests to my application. Most of my functions are decorated with @auth.requires_login(). Running

[web2py] Re: jqgrid-problem

2011-02-16 Thread Massimo Di Pierro
Please check with firebug what the ajax call does and how it fails. Without that information I cannot say. massimo On Feb 16, 7:47 am, Johann Spies johann.sp...@gmail.com wrote: On 15 February 2011 16:35, Massimo Di Pierro massimo.dipie...@gmail.comwrote: check with firebug. It is possible

Re: [web2py] Re: a few DAL proposes

2011-02-16 Thread Vasile Ermicioi
About 1). Are you asking to be able to extend class Table for a specific define_table? Or doyou specifically need the move methods? I want to be able to extend class Table and to use those classes with define table (see attached file) db.define_table(categories, Field(title),

[web2py] Re: broken images

2011-02-16 Thread stargate
It worked when i go to the following URL all the images are working now http://localhost:8000/template/static/plugin_layouts/layouts/Pluralism/index.html But that isn't the right way to view the application. So the only work around is to provide full path for the image is this correct. One

[web2py] web2py 1.92.1 is OUT

2011-02-16 Thread Massimo Di Pierro
changelog: much improved routing (thanks Jonathan) Expression.__mod__ (thanks Denes) admin has MULTI_USER_MODE (admin/models/0.py) support for count(distinct=...) has_permissions(...,group_id) IS_MATCH(...,strict=True) URL(...,scheme=,host=,port=), thanks Jonathan admin in Afrikaans, thanks Caleb

[web2py] JSF 2.0 vs web2py

2011-02-16 Thread sebastian
Hi Guys, I have used web2py successfully for few commercial projects in the past and I it saved me a LOT of time compared with J2EE + Spring/ Struts + Hibernate etc... In fact most of the effort was for the UI as the business part was taken care by web2py ! Now I am working on a project with

Re: [web2py] Re: jqgrid-problem

2011-02-16 Thread Johann Spies
On 16 February 2011 16:32, Massimo Di Pierro massimo.dipie...@gmail.comwrote: Please check with firebug what the ajax call does and how it fails. Without that information I cannot say. I am afraid I am a bit lost on this one. I have never programmed Ajax before and have no clue what Firebug

[web2py] Re: SQLFORM.widgets.date.widget problem

2011-02-16 Thread DenesL
Hi sipiatti, you can change the translation of '%Y-%m-%d' in your language file. On Feb 16, 5:58 am, sipiatti sipia...@gmail.com wrote: Hi, I am very new in web2py (but I love it from the first met:) ), and faced a problem what I could solve with a workaround but I think it is not the

[web2py] Re: How to do the following query?

2011-02-16 Thread vortex
I just downloaded the windows version and I think this issue still continues in that version. On Jan 31, 3:22 pm, vortex billyara...@gmail.com wrote: It has been reported as issue 172. On Jan 31, 2:56 pm,vortexbillyara...@gmail.com wrote: I will do that now. Thanks. On Jan 31, 2:27 

Re: [web2py] web2py 1.92.1 is OUT

2011-02-16 Thread Marin Pranjic
I wanted to update from admin app but it gives me neverending Checking for upgrades... Not sure what is the problem, so better to report it :) Using 1.91.6 source code on windows, python2.7.1 I tried restarting web2py and update in 2 browsers but no success. On Wed, Feb 16, 2011 at 3:52 PM,

[web2py] Re: web2py 1.92.1 is OUT

2011-02-16 Thread vortex
I just downloaded and it says: version 1.91.6 Also I think issue 172 is still present in the windows version. On Feb 16, 3:04 pm, Marin Pranjic marin.pran...@gmail.com wrote: I wanted to update from admin app but it gives me neverending Checking for upgrades... Not sure what is the

[web2py] database access

2011-02-16 Thread stargate
When running web2py how do i access the mysql database using a applicaiton like http://www.mysqlfront.de/wp/download/ Also when creating a new application using the application wizard it has no indication to specify a user login for the database. Where can i change this.

Re: [web2py] Re: Spam control? and word filtering?

2011-02-16 Thread Jonathan Lundell
On Feb 16, 2011, at 5:10 AM, Massimo Di Pierro wrote: I am not an expert on bad words in english, I could do a better job in Italian. ;-) No doubt... It's a tough problem, regardless, and it's awfully easy to get false positives. Better not misspell shiitake mushrooms. On Feb 15, 11:20

[web2py] cron doesn't work

2011-02-16 Thread LightOfMooN
Hello I have web2py installed with setup-web2py-ubuntu.sh It runs with Apache mod_wsgi. Crontab of myapp is: */1 * * * * root *cron/test And function: def test(): shop = db(db.shops.id==8).select().first() new = shop.daystodelete + 1 shop.update_record(daystodelete=new)

[web2py] Re: VirtualFields are really slow with large datasets

2011-02-16 Thread Carlos
You can also use lazy virtual fields, such that they execute only when needed/called: http://www.web2py.com/book/default/chapter/06?search=lazy Carlos

[web2py] decorator to block direct access by the url to auxiliairy function only call by main function

2011-02-16 Thread Richard Vézina
Hello, I used this scenario don't know if it good or not... I am open to suggestion if it is not a good pratice. def index(): Index page using the internationalization operator T and flash rendered by views/default/index.html or views/generic.html

Re: [web2py] Re: tip of the day. The power of routes

2011-02-16 Thread Bruno Rocha
Thats my working solution http://snipt.net/rochacbruno/routespy/ http://snipt.net/rochacbruno/routespy/ http://snipt.net/rochacbruno/routesconf/ -- Bruno Rocha http://about.me/rochacbruno/bio 2011/2/16 Johann Spies johann.sp...@gmail.com On 29 November 2010 01:03, Bruno Rocha

[web2py] Re: Read-only CRUD fields don't work?

2011-02-16 Thread Joe Barnhart
The new release 1.92.1 seems to work -- at least halfway! It now shows the value of the field in a read-only fashion, but the field.represent is not triggered, rendering the field as an integer instead of its reference (id) representation. We're getting close! -- Joe On Feb 16, 5:11 am,

Re: [web2py] web2py 1.92.1 is OUT

2011-02-16 Thread Vinicius Assef
A changelog is really important. :-) Congrats Massimo. On Wed, Feb 16, 2011 at 12:52 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: changelog: much improved routing (thanks Jonathan) Expression.__mod__ (thanks Denes) admin has MULTI_USER_MODE (admin/models/0.py) support for

[web2py] Re: Read-only CRUD fields don't work?

2011-02-16 Thread Massimo Di Pierro
Can you post a short example to reproduce the problem, and better, open an issue. On Feb 16, 9:47 am, Joe Barnhart joe.barnh...@gmail.com wrote: The new release 1.92.1 seems to work -- at least halfway! It now shows the value of the field in a read-only fashion, but the field.represent is

[web2py] Issue 172 needs to be reopened

2011-02-16 Thread vortex
I have made tests and bug of issue 172 seems to be still present in the windows version of the code.

[web2py] Re: web2py 1.92.1 is OUT

2011-02-16 Thread Brian Meents
I just downloaded from source on Windows and installed it and I'm seeing 1.92.1 here... vortex wrote: I just downloaded and it says: version 1.91.6 Also I think issue 172 is still present in the windows version. On Feb 16, 3:04 pm, Marin Pranjic marin.pran...@gmail.com wrote: I wanted

Re: [web2py] decorator to block direct access by the url to auxiliairy function only call by main function

2011-02-16 Thread Anthony
According to the book, controller functions that take arguments or that begin with a double underscore are not publicly exposed and therefore cannot be reached via a URL -- they can only be called from other functions. So, since last_hour_events function takes an argument, I think you're OK --

Re: [web2py] decorator to block direct access by the url to auxiliairy function only call by main function

2011-02-16 Thread Richard Vézina
Great! Thanks Anthony, that exactly what I needed. Richard On Wed, Feb 16, 2011 at 11:18 AM, Anthony abasta...@gmail.com wrote: According to the book, controller functions that take arguments or that begin with a double underscore are not publicly exposed and therefore cannot be reached via

[web2py] Re: JSF 2.0 vs web2py

2011-02-16 Thread Massimo Di Pierro
I do not know too much about JSF but, as I understand it requires a lot of XML coding and that is what web2py people (particularly me) do not like. Yet in the last year many things have changed, in particular: - plugins and components - a new more portable DAL - a better routing mechanism - more

[web2py] Re: Issue 172 needs to be reopened

2011-02-16 Thread Massimo Di Pierro
Please do so and I will take care. On Feb 16, 10:16 am, vortex billyara...@gmail.com wrote: I have made tests and bug of issue 172 seems to be still present in the windows version of the code.

Re: [web2py] web2py 1.92.1 is OUT

2011-02-16 Thread Bruno Rocha
Can we include #anchors to changelog page? so accesing http://web2py.com/examples/default/changelog#1.92.1 shows the latest change log. or, inverting the order showing the newest version on top. -- Bruno Rocha http://about.me/rochacbruno/bio 2011/2/16 Massimo Di Pierro

[web2py] Deleting a registered user

2011-02-16 Thread Michele Comitini
Hi all! I do not see a way to show the delete checkbox on the Auth.profile() SQLFORM without modifying tools.py. Am I missing something? tnx mic

[web2py] Re: Issue 172 needs to be reopened

2011-02-16 Thread vortex
Am I allowed to reopen it? On Feb 16, 4:29 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please do so and I will take care. On Feb 16, 10:16 am, vortex billyara...@gmail.com wrote: I have made tests and bug of issue 172 seems to be still present in the windows version of the

[web2py] Re: web2py 1.92.1 is OUT

2011-02-16 Thread LightOfMooN
THX for new URL!!! On 16 фев, 19:52, Massimo Di Pierro massimo.dipie...@gmail.com wrote: changelog: much improved routing (thanks Jonathan) Expression.__mod__ (thanks Denes) admin has MULTI_USER_MODE (admin/models/0.py) support for count(distinct=...) has_permissions(...,group_id)

[web2py] Re: Deleting a registered user

2011-02-16 Thread Massimo Di Pierro
It would be a security hazard to allow a user to delete himself and all records referencing to the user. Moreover it can be clicked accidentally. I think is is better if you create your own action for that. Anyway, instead of auth.profile() you can do crud.update(db.auth_user,auth.user.id)

[web2py] Re: broken images

2011-02-16 Thread villas
Yes of course all you are doing is referring to the existing path of the images. BTW I think the URL code I gave may be a bit wrong: Try this instead: {{u=URL('static','plugin_layouts',args=('layouts','Optimism'))}} ..., or, try this, Replace the index function in your 'default.py'

[web2py] 1.92 update_record()

2011-02-16 Thread LightOfMooN
shop = db(db.shops.id==8).select().first() shop Row {'verified': True, 'name': 'romashka', 'title': '\xd0\xa0\xd0\xbe \xd0\xbc\xd0\xb0\xd1\x88\xd0\xba\xd0\xb0', 'globalsearch': False, 'delete_key': '', 'owner': 2, 'active': False, 'id': 8, 'deletedate': None} shop.update_record(active=True)

[web2py] Re: 1.92 update_record()

2011-02-16 Thread LightOfMooN
it's in the Shell. In the controller functions it works fine. On 16 фев, 22:13, LightOfMooN vladsale...@yandex.ru wrote: shop = db(db.shops.id==8).select().first() shop Row {'verified': True, 'name': 'romashka', 'title': '\xd0\xa0\xd0\xbe \xd0\xbc\xd0\xb0\xd1\x88\xd0\xba\xd0\xb0',

[web2py] where should I put those lines

2011-02-16 Thread Richard Vézina
Hello Massimo, I would like to update the languages files at startup or once in a wild... Where should I put those lines : # - import os import gluon.portalocker import cPickle from gluon.languages import read_dict,

Re: [web2py] Re: id pb

2011-02-16 Thread Richard Vézina
Ok, forget about it Massimo. I found why I get duplicated field name error. Multiples tables in one form works, but I have a bizzard thing, see by your self : db.define_table('ref_fnaregistry', Field('fnaregistry_id','id'), Field('num_part1','string', length=20,

[web2py] Re: form.accepts() with reference to other table

2011-02-16 Thread Oskari
I'm still struggling with the IS_IN_DB-validator. This problem occurs when trying to implement reference id for example via a controller line: request.vars.reftableid = 2 The form just informs it isn't in the database. Why is that? On Feb 13, 3:14 pm, Oskari oskari.pe...@gmail.com wrote:

[web2py] password issues on server move

2011-02-16 Thread Matt
I have recently moved my web2py installation to a new server. The database (postgresql) was copied using an sql dump. After this the user passwords appear to have stopped working. If I do a password reset, and use the same password it works again. The hash of the password is the same before

Re: [web2py] password issues on server move

2011-02-16 Thread Richard Vézina
The problem is it only when you try to access the appadmin on prod server? If so, it could come from parameters_443.py file in the web2py folder. It contain the hash of you admin password. Richard On Wed, Feb 16, 2011 at 2:15 PM, Matt mattsn...@gmail.com wrote: I have recently moved my web2py

[web2py] Re: CRUD form customization - possible??

2011-02-16 Thread greenpoise
Is this before I call {{=form}} On Feb 16, 5:09 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: given... from=crud.create() you can do form e in form.elements('input[type=text]'): e['size']=50; or in JS scriptjQuery('input[type=text]').css('width':'50px'):/script or

[web2py] Re: form.accepts() with reference to other table

2011-02-16 Thread villas
It should be easy. Post your relevant model and controller code. BTW it probably doesn't make any difference... but maybe you might consider using the notation account_id instead of accountID. I read somewhere that some databases have case sensitive fields and that web2py makes some assumptions

Re: [web2py] Re: Deleting a registered user

2011-02-16 Thread Michele Comitini
Tnx Massimo for your reply. I will make an action for that purpose. I assumed that among Auth actions there would be something like unregister which is a functionality that any service with subscription should have. I understand that allowing the user delete all his records is not safe and could

[web2py] GSoC

2011-02-16 Thread Tim Michelsen
Hello, is web2py considering to mentor for this year? http://code.google.com/intl/de-DE/soc/ Regards, Timmie

[web2py] Re: Spam control? and word filtering?

2011-02-16 Thread Michael McGinnis
For spam control, the best is Akismet, but Spam Assassin is also an industry standard, I believe. Other English word filtering resources: http://urbanoalvarez.es/blog/2008/04/04/bad-words-list/ http://www.bannedwordlist.com/ And from http://www.noswearing.com/about.php: The API is currently open

Re: [web2py] web2py 1.92.1 is OUT

2011-02-16 Thread Alexandre Andrade
Where is docs about new routing? 2011/2/16 Massimo Di Pierro massimo.dipie...@gmail.com changelog: much improved routing (thanks Jonathan) Expression.__mod__ (thanks Denes) admin has MULTI_USER_MODE (admin/models/0.py) support for count(distinct=...) has_permissions(...,group_id)

[web2py] Re: form.accepts() with reference to other table

2011-02-16 Thread Oskari
Here's my code: db.py: db.define_table( accounts, Field(name,string,length=128,default=''), Field(email,string,length=128,default=''), Field('username', length=128,default='',unique=True), Field('password', 'password', length=512, readable=False, label='Password') )

Re: [web2py] web2py 1.92.1 is OUT

2011-02-16 Thread Jonathan Lundell
On Feb 16, 2011, at 1:25 PM, Alexandre Andrade wrote: Where is docs about new routing? Try router.example.py for now.

Re: [web2py] web2py 1.92.1 is OUT

2011-02-16 Thread Martín Mulone
great! +1 2011/2/16 Jonathan Lundell jlund...@pobox.com On Feb 16, 2011, at 1:25 PM, Alexandre Andrade wrote: Where is docs about new routing? Try router.example.py for now. -- Pablo Martín Mulone (mar...@tecnodoc.com.ar) http://www.tecnodoc.com.ar/ Paraná, Entre Ríos, Argentina (CP

[web2py] new URL router use cases

2011-02-16 Thread Jonathan Lundell
[I'm reposting this message from a while back, because the new release 1.92.1 contains it for the first time. It describes some simple use cases for the new URL router. Note that there are still some things that you'll need the existing regex-based router for, but for most cases the new one

[web2py] Re: Apache, Wsgi problem

2011-02-16 Thread Ahmed Bani
Problem solved: # Download : hg clone https://web2py.googlecode.com/hg/ web2py# Follow the instructions: Title : Using psycopg2 with virtualenv on UbuntuLink: http://www.saltycrane.com/blog/2009/07/using-psycopg2-virtualenv-ubuntu-jaunty/ Check your syntax : # *db* =

[web2py] Re: web2py 1.92.1 is OUT

2011-02-16 Thread VP
admin has MULTI_USER_MODE (admin/models/0.py) Can you show how to use this? It's not clear how to invoke this feature and use it from the admin panel. Thanks. On Feb 16, 8:52 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: changelog: much improved routing (thanks Jonathan)

[web2py] Re: web2py 1.92.1 is OUT

2011-02-16 Thread VP
Specifically, after setting MULTI_USER_MODE to True in 0.py. It's not clear what should be done next. Here are some problems: + After creating the first account (is this supposed to be the admin account?), the first account user does not have permission to edit existing apps. + The second

[web2py] Re: CRUD form customization - possible??

2011-02-16 Thread Massimo Di Pierro
On Feb 16, 7:09 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: given... from=crud.create() you can do form e in form.elements('input[type=text]'): e['size']=50; this is in controller (before {{=form}}. or in JS scriptjQuery('input[type=text]').css('width':'50px'):/script

[web2py] Re: GSoC

2011-02-16 Thread Massimo Di Pierro
We need proposals. What do we want to be done? On Feb 16, 2:57 pm, Tim Michelsen timmichel...@gmx-topmail.de wrote: Hello, is web2py considering to mentor for this year? http://code.google.com/intl/de-DE/soc/ Regards, Timmie

[web2py] Re: Apache, Wsgi problem

2011-02-16 Thread Massimo Di Pierro
Looks like Jonathan may be the winner here. I think VP raised the issue so he should decide whether the issue is solved. Is anybody else having problems after upgrade to the latest psycopg2? If this problem was dear to you any symbolic contribution towards the prize will be appreciated. Massimo

[web2py] Re: web2py 1.92.1 is OUT

2011-02-16 Thread Massimo Di Pierro
On Feb 16, 4:31 pm, VP vtp2...@gmail.com wrote: Specifically, after setting MULTI_USER_MODE to True in 0.py.  It's not clear what should be done next.   Here are some problems: + After creating  the first account (is this supposed to be the admin account?), the first account user does not

[web2py] Re: form.accepts() with reference to other table

2011-02-16 Thread villas
Hi Oskari 1. Your custom auth_user table should be declared before the line: auth.define_tables() 2. As 'accounts' table is referenced in your auth_user table, this should be declared prior to auth_user. I think you should be able to figure out anything else from the error tickets. See how it

[web2py] top of the day: cross component interaction

2011-02-16 Thread Massimo Di Pierro
This was buried in the answer to another post but I think it will be useful to some of you. Components allow to insert a {{=LOAD('controller','function',ajax=True)}} in a web2py view and the actions /app/controller/function will manage its own content. It can also communicate with other

Re: [web2py] Re: Apache, Wsgi problem

2011-02-16 Thread Jonathan Lundell
On Feb 16, 2011, at 3:07 PM, Massimo Di Pierro wrote: Looks like Jonathan may be the winner here. I think VP raised the issue so he should decide whether the issue is solved. Is anybody else having problems after upgrade to the latest psycopg2? If this problem was dear to you any symbolic

[web2py] Re: CRUD form customization - possible??

2011-02-16 Thread greenpoise
Where is the limit? could I align the textboxes horizontally?? The code above worked did the reisizing! On Feb 16, 3:02 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: On Feb 16, 7:09 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: given...

[web2py] Re: top of the day: cross component interaction

2011-02-16 Thread villas
This is indeed a good post. Do you think it should be a slice or perhaps included in the book? If the latter, do you think it might go best in the Ajax Recipes chapter, or where? -D

[web2py] SQLFORM hide some fields

2011-02-16 Thread Ed Greenberg
I'd like to suppress some fields in a SQLFORM. Imagine that a user is filling out a form to create or edit a record, and his user_id is a column in the record. We need to populate the user_id, but he should never see it. If I declare the field as writable=False,readable=False then nobody with

Re: [web2py] How to use routes

2011-02-16 Thread Andrew Evans
hello it has stopped working for some reason and I have no idea what is wrong :-? routes_onerror = [('dojo/*','/dojo/error/index'), ('musico/*, /musico/error/index'),] def index(): if request.vars.code == '400': redirect(URL('default', 'index')) elif

Re: [web2py] How to use routes

2011-02-16 Thread Andrew Evans
Sorry I mean this routes_onerror = [('dojo/*', '/dojo/error/index'), ('musico/*', '/musico/error/index'),] returns a invalid request when going www.namiyama.com/index.php *cheers On Wed, Feb 16, 2011 at 4:07 PM, Andrew Evans randra...@gmail.com wrote: hello it has

[web2py] Re: web2py 1.92.1 is OUT

2011-02-16 Thread VP
I understand what you mean. But maybe I didn't write it clearly. Let me describe it again. Prior to upgrading to 1.92.1, I have apps A, B and C. After upgrading to 1.92.1 and set MULTI_USER_MODE to True, I have to register to log into admin control panel. Then, I register to create the first

Re: [web2py] How to use routes

2011-02-16 Thread Jonathan Lundell
On Feb 16, 2011, at 4:13 PM, Andrew Evans wrote: Sorry I mean this routes_onerror = [('dojo/*', '/dojo/error/index'), ('musico/*', '/musico/error/index'),] returns a invalid request when going www.namiyama.com/index.php I think the problem is that when the above URL is

Re: [web2py] How to use routes

2011-02-16 Thread Andrew Evans
Hi ty for your help my routes in is just standard with example routes file routes_in = ((r'.*:/favicon.ico', r'/examples/static/favicon.ico'), (r'.*:/robots.txt', r'/examples/static/robots.txt'), ((r'.*http://otherdomain.com.* (?Pany.*)', r'/app/ctr\gany'))) any

Re: [web2py] GAE or EC2?

2011-02-16 Thread howesc
for me it's all about the cost (both time cost and money cost), and there is no comparison (if you can work with the GAE bigtable). 1. web2py does a good job of working with BigTable, so once you get out of the habit of joins, many apps will just work without much change in your coding. 2. ec2

[web2py] Re: SQLFORM hide some fields

2011-02-16 Thread DenesL
Hi Ed, you can set the readable and writable flags of the field on the fly in the action, just before you call SQLFORM: def action(): db.table.field.writable = False form=SQLFORM(...) ... On Feb 16, 6:57 pm, Ed Greenberg greenberg...@gmail.com wrote: I'd like to suppress some fields in a

[web2py] Re: SQLFORM hide some fields

2011-02-16 Thread villas
Just specify it explicitly in the function, something like this... e.g. def index(): t=db.tablename rec = t(request.args(0)) t.fieldname.readable = t.fieldname.writable = False form=SQLFORM(t,rec) if form.accepts(request.vars, session): response.flash = 'record

Re: [web2py] How to use routes

2011-02-16 Thread Jonathan Lundell
On Feb 16, 2011, at 4:29 PM, Andrew Evans wrote: Hi ty for your help my routes in is just standard with example routes file routes_in = ((r'.*:/favicon.ico', r'/examples/static/favicon.ico'), (r'.*:/robots.txt', r'/examples/static/robots.txt'),

[web2py] Re: web2py 1.92.1 is OUT

2011-02-16 Thread DJ
I am seeing some issues with admin and CRUD after upgrade - happens only for one table. Updating a table through the admin interface does not work - no values are sent to database; but I get a 'Done' message. Likewise for the CRUD action in a controller. Database update works when executed in

Re: [web2py] GAE or EC2?

2011-02-16 Thread Jonathan Lundell
On Feb 16, 2011, at 4:40 PM, howesc wrote: for me it's all about the cost (both time cost and money cost), and there is no comparison (if you can work with the GAE bigtable). 1. web2py does a good job of working with BigTable, so once you get out of the habit of joins, many apps will just

[web2py] Re: SQLFORM hide some fields

2011-02-16 Thread Ed Greenberg
These look like exactly what I'm looking for. I'll try 'em out. Thanks.

[web2py] Re: Amazon EC2, How does it... um... how does it work?

2011-02-16 Thread Plumo
Try using memcache to cache your queries. I host my static content on GAE for free. If you are in the USA (and possibly elsewhere) you can try out Amazon's smallest instance for free for 1 year. Yes this deal is available outside the US.

Re: [web2py] How to use routes

2011-02-16 Thread Jonathan Lundell
On Feb 16, 2011, at 5:04 PM, Jonathan Lundell wrote: On Feb 16, 2011, at 4:29 PM, Andrew Evans wrote: Hi ty for your help my routes in is just standard with example routes file routes_in = ((r'.*:/favicon.ico', r'/examples/static/favicon.ico'), (r'.*:/robots.txt',

[web2py] Re: database access

2011-02-16 Thread stargate
Is it possible to do this On Feb 16, 9:51 am, stargate kyoukh...@gmail.com wrote: When running web2py how do i access the mysql database using a applicaiton like http://www.mysqlfront.de/wp/download/ Also when creating a new application using the application wizard it has no indication to

Re: [web2py] Re: database access

2011-02-16 Thread Richard Vézina
I think you should provide information about mysqlfront and how you think it could work with Web2py. Personnaly I am not aware of anything about mysqlfront... Richard On Wed, Feb 16, 2011 at 9:40 PM, stargate kyoukh...@gmail.com wrote: Is it possible to do this On Feb 16, 9:51 am, stargate

Re: [web2py] Re: GSoC

2011-02-16 Thread Jason Brower
Some ideas: Mangodb support Improved wizard tool Improved plugin_wiki statistics engine - Original message - We need proposals. What do we want to be done? On Feb 16, 2:57 pm, Tim Michelsen timmichel...@gmx-topmail.de wrote: Hello, is web2py considering to mentor for this year?

  1   2   >