[web2py:38241] Re: On Login failure

2010-01-02 Thread kbochert
Ok, that works. Now I correctly get to my logon page at /myapp/admin/user/login?_next=/myapp/admin/home instead of "default\index". But if that logon fails, I get redirected to /myapp/admin/user/login which shows the logon form but fails (goes to "default\index") if I use a valid logon. Someho

Re: [web2py:38240] Re: web2py with python 2.4

2010-01-02 Thread Adnan Smajlovic
Thank you Massimo, that did it. On Sat, Jan 2, 2010 at 10:28 PM, mdipierro wrote: > Please upgrade to 1.74.5. It will not require functools. > > On Jan 2, 9:04 pm, Adnan Smajlovic wrote: > > I apologize for beating this one, but any help would be appreciated since > > I'm not in position to upg

[web2py:38239] Re: web2py with python 2.4

2010-01-02 Thread mdipierro
Please upgrade to 1.74.5. It will not require functools. On Jan 2, 9:04 pm, Adnan Smajlovic wrote: > I apologize for beating this one, but any help would be appreciated since > I'm not in position to upgrade to python 2.5 at the moment, and really want > to try using web2py. > > I installed the h

[web2py:38238] web2py with python 2.4

2010-01-02 Thread Adnan Smajlovic
I apologize for beating this one, but any help would be appreciated since I'm not in position to upgrade to python 2.5 at the moment, and really want to try using web2py. I installed the hashlib on CENTOS 5.4 x86_64, then got the error that UUID is missing. I used easy_install to install UUID and

[web2py:38237] Re: django and web2py

2010-01-02 Thread mdipierro
I have updated the docstring and I have make a nonzero zero in trunk. On Jan 2, 4:28 pm, "KONTRA, Gergely" wrote: > > Please never assume that something that is not done by default cannot > > be done. > > > db.whatever.partner.requires.zero="Please Select One" > > Again, where can I find info abo

[web2py:38236] Re: django and web2py

2010-01-02 Thread mdipierro
You are right. The current documentation refers to the features that existed on August 2009. Features added after that are not yet documented. We are working on it. If you want to submit a patch from the docstring I will be happy to take it. I also agree that zero!=None should be default. I can ch

Re: [web2py:38235] Re: django and web2py

2010-01-02 Thread KONTRA, Gergely
> Please never assume that something that is not done by default cannot > be done. > > db.whatever.partner.requires.zero="Please Select One" Again, where can I find info about the zero argument? It is mentioned at http://www.web2py.com/examples/static/epydoc/web2py.gluon.validators.IS_IN_DB-class

[web2py:38234] Re: NameError: name 'auth' is not defined

2010-01-02 Thread mdipierro
Hi, just to make sure I understand. Can you point me to the image blog example? When you edited db.py did you append the content or did you replace it? You are supposed to append it since db.py defines auth. On Jan 2, 3:49 pm, joscha wrote: > Hello, > > I am new to web2py. I am trying to foll

[web2py:38233] NameError: name 'auth' is not defined

2010-01-02 Thread joscha
Hello, I am new to web2py. I am trying to follow the documentation, but I cannot get the image blog example to work. I copied the lines into the db.py. If I select the database administration, I get the following traceback: Traceback (most recent call last): File "C:\Users\sharky\Documents\_MEI

[web2py:38232] plugin google map

2010-01-02 Thread Massimo Di Pierro
Here is a gmap plugin. - install - edit models/plugin_gmap.py to set the query for the points to be shown on map (read example) - add component to pages {{=LOAD('plugin_gmap')}} -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this g

[web2py:38231] Re: SQLFORM.factory or a better way for custom forms

2010-01-02 Thread mdipierro
well, you can do it with FROM (not SQLFORM.factory) but You would not gain anything in your case. About AJAX. You could make something like def ajax_user(): return auth() # instead of dict(form=auth()) and then in a page {{=LOAD('default','ajax_user/register',ajax_trap=True)}} you do not need

[web2py:38230] Re: SQLFORM.factory or a better way for custom forms

2010-01-02 Thread K.R.Arun
Thank you, and really really appreciate the response time for the post (hardly 15min). I thought it may be constructed using SQLFORM.factory (I tried but...). If this is the better way, I'm happy. I have another problem with AJAX. ( You can see that menu Items loads asynchronously using ajax(u,s,t)

[web2py:38229] Re: SQLFORM.factory or a better way for custom forms

2010-01-02 Thread mdipierro
I cannot think of a better way. Nice site by the way. I would only replace {{=form.hidden_fields()}} with {{=form.custom.end}} On Jan 2, 1:15 pm, "K.R.Arun" wrote: > hi, > I'm new to web2py and my first experience with it is fun. > It's true that I can deve

[web2py:38228] Re: django and web2py

2010-01-02 Thread mdipierro
Mind that unless the referenced table has a format='...', then reference fields do not have a default validator. If they do not have one, when you use a database that does provide referential integrity you will run into problems because you will get an OperationalError form the database. Web2py sho

[web2py:38227] SQLFORM.factory or a better way for custom forms

2010-01-02 Thread K.R.Arun
hi, I'm new to web2py and my first experience with it is fun. It's true that I can develop fast but for now customization is pain in some places. For example, I like css over tables. And I have to add some fieldsets to my form. Form is generated from a table and using SQLForm(because many tasks are

Re: [web2py:38226] Re: django and web2py

2010-01-02 Thread KONTRA, Gergely
>> > On Jan 1, 9:48 am, pihentagy wrote: >> > The sytnax is Field(name, type). The default type is a string. If you >> > want it to be a reference it has to said explicitly. You do the same >> > in Django. The validator is optional and, in fact, since 1.74 you get >> > that validator by default if

[web2py:38225] Re: Where is the sidebar? Offline editing?

2010-01-02 Thread mdipierro
If you created your test1 before upgrading, it will not change appearence after upgrading BUT, if you make a test2 after upgrading, it should look like a clone of the welcome app. If it does not (and I would not why) remove all the *.tar and *.w2p in the main web2py folder and try again. You can e

[web2py:38224] Re: Where is the sidebar? Offline editing?

2010-01-02 Thread Skip Montanaro
> The one you want to download is 1.74.5 from this > page:http://www.web2py.com/examples/default/download > > There are trunk version in launchpad (bzr) and google code (hg) but > those only for developers. We stopped updating the subversion branch > some time ago since we moved to Mercurial. I t

[web2py:38223] Re: Where is the sidebar? Offline editing?

2010-01-02 Thread Skip Montanaro
> This is howhttp://127.0.0.1:8000/welcomeshould look like in 1.74.5 Right, but my test1 app doesn't look like that. I thought when you created a new app it started out as a clone of the welcome app. I guess not. > Does it look different for you? The welcome app looks as you indicated. My test

[web2py:38222] Re: google app engine not creating my user defined tables

2010-01-02 Thread mdipierro
No problem. We are also learning GAE as we go, it is changing fast and so is web2py. On Jan 2, 11:07 am, Chad wrote: > Thanks, that solved it. Also, thanks for the quick responses, I am > just learning the framework so getting feedback so fast was awesome. > > On Jan 2, 12:36 am, mdipierro wrote

[web2py:38221] Re: google app engine not creating my user defined tables

2010-01-02 Thread Chad
Thanks, that solved it. Also, thanks for the quick responses, I am just learning the framework so getting feedback so fast was awesome. On Jan 2, 12:36 am, mdipierro wrote: > I think the problem is the following: You need to run the program with > dev_appserver, register, login and create some p

[web2py:38220] Re: Where is the sidebar? Offline editing?

2010-01-02 Thread mdipierro
The one you want to download is 1.74.5 from this page: http://www.web2py.com/examples/default/download There are trunk version in launchpad (bzr) and google code (hg) but those only for developers. We stopped updating the subversion branch some time ago since we moved to Mercurial. On Jan 2, 10:3

[web2py:38219] Re: SQLFORM

2010-01-02 Thread leone
A suggest for documentation: explicit that record argument can be the rowid or the row object. I had not understud it before. By and new thanks. leone On 2 Gen, 17:48, leone wrote: > Very simple!!! > Thanks. > leone > > On 2 Gen, 17:09, mdipierro wrote: > > > > > Invece di > > > form=crud.update

[web2py:38217] Re: SQLFORM

2010-01-02 Thread leone
Very simple!!! Thanks. leone On 2 Gen, 17:09, mdipierro wrote: > Invece di > > form=crud.update(table,record_id) > > Try this: > > record=table[record_id] > record.fieldname = 'newvalue' > form=crud.update(table,record) > > On Jan 2, 9:51 am, leone wrote: > > > > > When SQLFORM is called with re

[web2py:38216] Where is the sidebar? Offline editing?

2010-01-02 Thread Skip Montanaro
I downloaded web2py a couple days ago and began messing around with it using the Scribd version of the book to get started. I'm using Google Chrome on a Mac. My admin pages looked quite a bit different than the examples in the book. Thinking I might have gotten an old version (it was from Jan 20

[web2py:38215] Re: SQLFORM

2010-01-02 Thread mdipierro
Invece di form=crud.update(table,record_id) Try this: record=table[record_id] record.fieldname = 'newvalue' form=crud.update(table,record) On Jan 2, 9:51 am, leone wrote: > When SQLFORM is called with record parm valorized,  a row is loaded to > be updated. > I want set the value of a column b

[web2py:38214] Re: SQLFORM

2010-01-02 Thread Mengu
Take a look at the highlighted lines: http://github.com/mengu/web2py-screencast/blob/master/controllers/posts.py#L23,#L28 On Jan 2, 1:44 pm, leone wrote: > Good morning. > > Using SQLFORM I must update a row with defined values that i want push > in the input tags programmatically. > There is a

[web2py:38213] Re: SQLFORM

2010-01-02 Thread leone
When SQLFORM is called with record parm valorized, a row is loaded to be updated. I want set the value of a column by code BEFORE submit it so that it is visible in input field. Default doesn't work (it is not a new row...). How can I do? Is it possible? Thanks leone On 2 Gen, 16:37, mdipierro

[web2py:38212] Re: membership manager plugin

2010-01-02 Thread mdipierro
I believe your code should be def index(): group_id=request.args(0) group=db.auth_group[group_id] # group chouse table members = db(db.auth_membership.group_id ==group.id).select() notmembers = db(db.auth_membership.group_id !=group.id).select() return DIV(members,notmembers)

[web2py:38211] Re: rendering a Select as a Label

2010-01-02 Thread mdipierro
Logically there is a difference. db.table.field.represent tells web2py how to represent the value of a field (it assumes there is a value) db.table.field.requires tells web2py what kind of values can be in a field and therefore "suggests" a possible representation for the input widget associated t

[web2py:38210] Re: SQLFORM

2010-01-02 Thread mdipierro
Sorry, I do not understand. Can you make an example? On Jan 2, 5:44 am, leone wrote: > Good morning. > > Using SQLFORM I must update a row with defined values that i want push > in the input tags programmatically. > There is a way? > > Thanks. > leone -- You received this message because you ar

[web2py:38209] Re: django and web2py

2010-01-02 Thread mdipierro
On Jan 2, 4:47 am, pihentagy wrote: > On Jan 1, 6:34 pm, mdipierro wrote: > > > On Jan 1, 9:48 am, pihentagy wrote: > > The sytnax is Field(name, type). The default type is a string. If you > > want it to be a reference it has to said explicitly. You do the same > > in Django. The validator is

[web2py:38208] Re: django and web2py

2010-01-02 Thread mdipierro
The format attribute was intoduced in 1.74 so it is not yet in the official docs. It is just a shortcut really. On Jan 2, 4:27 am, pihentagy wrote: > On Jan 2, 12:04 am, mdipierro wrote: > > > I think this is what you looking for. > > >http://web2py.com/examples/static/epydoc/index.html > > Yes,

[web2py:38207] Re: Look like http://www.web2py.com/ is DOWN

2010-01-02 Thread mdipierro
It is up again. Sorry. On Jan 2, 3:05 am, KMax wrote: > URL reply with: > Service Temporarily Unavailable > > The server is temporarily unable to service your request due to > maintenance downtime or capacity problems. Please try again later. > Apache/2.2.9 (Ubuntu) mod_ssl/2.2.9 OpenSSL/0.9.8g S

[web2py:38206] Re: Custom form for auth profile

2010-01-02 Thread mdipierro
I do not know about the other error. The problem is in saving the session. >From the error it looks like there is None in response.session_file I do not see how this can happen unless it is manually set. Massimo On Jan 2, 1:07 am, weheh wrote: > Yes, indeed, if I add to the user() controller the

[web2py:38205] Re: Blogitizor

2010-01-02 Thread villas
Thanks for the links, I didn't know about planetplanet. It would be nice to have all approved blog items listed in one place. It might encourage more people to blog about Web2py if they knew that others would easily find their work. -D -- You received this message because you are subscribed to th

[web2py:38204] membership manager plugin

2010-01-02 Thread KMax
Hello Im working on plugin to manage group membership. Main idea is following: Some kind of view loading the manager (i guess this way): =LOAD('plugin_membershipmanager',args=Group_id,ajax=True) Plugin gets all members of group with id=Group_id, and gets all users are not in group. Im easyly sho

Re: [web2py:38203] Re: rendering a Select as a Label

2010-01-02 Thread Miguel Lopes
On Thu, Dec 31, 2009 at 3:57 PM, mdipierro wrote: > Before > > db.oppty_main.origin_account_id.writable=False > > insert > > db.oppty_main.origin_account_id.represent=lambda id: SPAN(db.account > [id].name) > Others my think differently, but I feel that the expected behavior would be for the repr

[web2py:38202] SQLFORM

2010-01-02 Thread leone
Good morning. Using SQLFORM I must update a row with defined values that i want push in the input tags programmatically. There is a way? Thanks. leone -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@

[web2py:38201] Re: django and web2py

2010-01-02 Thread pihentagy
On Jan 1, 6:34 pm, mdipierro wrote: > On Jan 1, 9:48 am, pihentagy wrote: > The sytnax is Field(name, type). The default type is a string. If you > want it to be a reference it has to said explicitly. You do the same > in Django. The validator is optional and, in fact, since 1.74 you get > that v

[web2py:38200] Re: django and web2py

2010-01-02 Thread pihentagy
On Jan 2, 12:04 am, mdipierro wrote: > I think this is what you looking for. > > http://web2py.com/examples/static/epydoc/index.html Yes, looking for something like that. BUT This doc is not complete. I could not find, that even there is a keyword arg 'format' for define_table. See http://127

[web2py:38199] Re: Scalability of Web2py

2010-01-02 Thread waTR
I agree. The bottleneck would likely be the DB, not web2py or Django or any other framework/language. Therefore, the key here is to use caching and smart db design (plus some ajax to break big DB load tasks down to smaller ones). On Jan 1, 6:27 pm, mdipierro wrote: > It really depends on what "

[web2py:38198] Look like http://www.web2py.com/ is DOWN

2010-01-02 Thread KMax
URL reply with: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Apache/2.2.9 (Ubuntu) mod_ssl/2.2.9 OpenSSL/0.9.8g Server at www.web2py.com Port 80 -- You received this message beca