[web2py] Re: forcing lowercase on auth email address (CLOSED)

2010-09-20 Thread hcvst
Glad it helped, Dsvid. BTW, step 1, is not required AFAIK, as email addresses appear to be stored in lower case by default. The place to check less documented features of w2p is epydoc at http://localhost:8000/examples/static/epydoc/index.html IS_LOWER() is a validator not a formatter, so all it

[web2py] Re: Suggestions for the Basic Authentications

2010-09-20 Thread hcvst
Sounds reasonable, but would I need to worry about the cascade attribute? In a CMS, I would hate to suddenly loose existing content that's tied to a user id if the user decides to retire his profile. =HC On Sep 20, 5:14 am, KMax mkostri...@gmail.com wrote: I guess, this is still actual. And

[web2py] Re: Deploying web2py on linux (Redhat or others) on cpanel or other ways

2010-09-20 Thread Rahul
Any Guesses? Still waiting for an answer.. Also routes.py is mystic for deployment - I have created a new one from scratch containing only the below two lines - as mentioned in slice #68 FYI on cpanel I have the below directory structure - $HOME/username/public_html/sitename/web2py also www is a

[web2py] upgrade from 1.84.4 to 1.85.1 fails operations into datastore in sqlite but not GAE

2010-09-20 Thread Carl
It took a bit of binary upgrading to pin down this issue but I#ve found that it's between 1.84.4 and 1.85.1 However since 1.85.1 (thru to 1.85.3) selects and inserts to the datastore fail when I use a SQLCustom definition (see details below). On dev_appserver all continues to work fine. But

[web2py] Re: Deploying web2py on linux (Redhat or others) on cpanel or other ways

2010-09-20 Thread mdipierro
somehow the web server is not settings the environment variable REMOTE_ADDR that should contain the address of the remote client. On Sep 20, 7:49 am, Rahul rahul.dhak...@gmail.com wrote: Any Guesses? Still waiting for an answer.. Also routes.py is mystic for deployment - I have created a new

[web2py] Re: upgrade from 1.84.4 to 1.85.1 fails operations into datastore in sqlite but not GAE

2010-09-20 Thread mdipierro
Can you please try trunk? On Sep 20, 8:09 am, Carl carl.ro...@gmail.com wrote: It took a bit of binary upgrading to pin down this issue but I#ve found that it's between 1.84.4 and 1.85.1 However since 1.85.1 (thru to 1.85.3) selects and inserts to the datastore fail when I use a SQLCustom

Re: [web2py] Re: Suggestions for the Basic Authentications

2010-09-20 Thread hamid lover
un sabscrim On Mon, Sep 20, 2010 at 8:14 AM, KMax mkostri...@gmail.com wrote: I guess, this is still actual. And some thought on profile remove feature. If some posts or any other records are referenced to the profile, is it good idea to drop them in cascade? I guess not. The obly way is

[web2py] Re: gae memcace clear?

2010-09-20 Thread Scott
If you are interested in caching view or controller output, please check the examples section: http://web2py.com/examples/default/examples#cache_examples Notice the timers which indicate how long before the view or controller output is re-rendered. You can also check out appadmin.py included

Re: [web2py] Re: upgrade from 1.84.4 to 1.85.1 fails operations into datastore in sqlite but not GAE

2010-09-20 Thread Carl Roach
Will do On 20 Sep 2010, at 14:35, mdipierro mdipie...@cs.depaul.edu wrote: Can you please try trunk? On Sep 20, 8:09 am, Carl carl.ro...@gmail.com wrote: It took a bit of binary upgrading to pin down this issue but I#ve found that it's between 1.84.4 and 1.85.1 However since 1.85.1

[web2py] Re: forcing lowercase on auth email address (CLOSED)

2010-09-20 Thread Christopher Steel
Dave, You brought up a great issue and I thought I would follow up with some testing I have been doing on how Web2py currently handles mixed case email addresses (which turns out to be perfectly, but this can cause end users some difficulties as many may not distinguish based on case. I have

Re: [web2py] Re: Deploying web2py on linux (Redhat or others) on cpanel or other ways

2010-09-20 Thread Jonathan Lundell
On Sep 20, 2010, at 6:25 AM, mdipierro wrote: somehow the web server is not settings the environment variable REMOTE_ADDR that should contain the address of the remote client. Is this possibly normal for fcgi? We could change e['REMOTE_ADDR'] to e.get('REMOTE_ADDR', 'localhost'), like we

[web2py] upgrade from 1.84.1 to 1.85.3 fails due to the following error ..

2010-09-20 Thread dustin.b
hi i simply upgraded from 1.84.1 to 1.85.1 and get a ticket. i narrowed down the issue to this: db.py auth.settings.hmac_key = 'sha512:97655ab8-04d0-4321- b8fa-84f525fb8fe0' # before define_tables() db.define_table( auth.settings.table_user_name, Field('username', length=128,

Re: [web2py] upgrade from 1.84.1 to 1.85.3 fails due to the following error ..

2010-09-20 Thread Jonathan Lundell
On Sep 20, 2010, at 8:07 AM, dustin.b wrote: hi i simply upgraded from 1.84.1 to 1.85.1 and get a ticket. i narrowed down the issue to this: This logic is wrong on its face: if 'username' in table_user.fields: if self.settings.login_userfield: userfield =

[web2py] Re: upgrade from 1.84.1 to 1.85.3 fails due to the following error ..

2010-09-20 Thread mdipierro
fixed in trunk On Sep 20, 10:07 am, dustin.b dustin.bens...@googlemail.com wrote: hi i simply upgraded from 1.84.1 to 1.85.1 and get a ticket. i narrowed down the issue to this: db.py auth.settings.hmac_key = 'sha512:97655ab8-04d0-4321- b8fa-84f525fb8fe0'   # before define_tables()

Re: [web2py] Re: upgrade from 1.84.1 to 1.85.3 fails due to the following error ..

2010-09-20 Thread Jonathan Lundell
On Sep 20, 2010, at 8:21 AM, mdipierro wrote: fixed in trunk As long as you're fixing tools.py, here's the output from pyflakes: tools.py:23: redefinition of unused 'thread' from line 18 tools.py:371: 'constants' imported but unused tools.py:372: 'pyme' imported but unused tools.py:1876:

[web2py] Re: upgrade from 1.84.4 to 1.85.1 fails operations into datastore in sqlite but not GAE

2010-09-20 Thread Carl
Your change http://code.google.com/p/web2py/source/detail?r=37b316948f4ae0cfa8a3d566f17eb00ddca9b5c5 worked. thanks for the fast turn-around. Wondering aloud... would it be a good idea to add 'timestamp' as a formal Web2py Field type? the missing microseconds of datetime on *some* platforms is

[web2py] postgresql 9

2010-09-20 Thread mdipierro
http://www.postgresql.org/about/news.1235

[web2py] broken backward compatibility for SQLFORM.widgets.checkboxes

2010-09-20 Thread Wikus van de Merwe
I've noticed that recent versions of web2py (1.85) create a different string in DB when form with checkboxes is serialised (compared to version 1.77). db.define_table(aaa, db.Field(bbb), migrate=False) db.aaa.bbb.widget = SQLFORM.widgets.checkboxes.widget db.aaa.bbb.requires =

[web2py] Re: broken backward compatibility for SQLFORM.widgets.checkboxes

2010-09-20 Thread mdipierro
I checked and it works for me (insert is correct) but retrieval is not correct because db.define_table(aaa, db.Field(bbb), migrate=False) should be db.define_table(aaa, db.Field(bbb,list:string), migrate=False) You should be able to change this and data in db should be file. With

[web2py] Re: broken backward compatibility for SQLFORM.widgets.checkboxes

2010-09-20 Thread Wikus van de Merwe
As far as I can see, when list:string is being used the effect is very similar (I'm testing this on GAE). Again a list like representation is used (this time using unicode): [u'xxx',u'yyy',u'zzz'], not the old '|' separated strings. Does it mean that now this is the new way of representing a list

[web2py] Re: broken backward compatibility for SQLFORM.widgets.checkboxes

2010-09-20 Thread mdipierro
On relational database with type=list:string the internal representation is the same as before '|xxx|yyy|zzz|' but it is no longer exposed to the user. The user inserts a list a string and extract a list of strings. On GAE things have changed. At the web2py level the user still inserts a list of

[web2py] Re: represent using data from multiple fields

2010-09-20 Thread weheh
That's too bad. It seems like the perfect thing to be able to do. I know I can pick apart the SQLTable in the view, but it would be so darn sweet to be able to do it in the represent view ... On Sep 20, 1:30 am, mdipierro mdipie...@cs.depaul.edu wrote: This cannot be done with represent. The

[web2py] Re: broken backward compatibility for SQLFORM.widgets.checkboxes

2010-09-20 Thread Wikus van de Merwe
OK, I got it. On web2py level it is now a list of strings all the way. That makes sense of course as it simplifies the usage. Internally its '|' separated concatenation on RDBMS and list property on GAE, which also makes sense. What confused me was the fact that if you use simple string instead

[web2py] expose URL to internal web2py functions

2010-09-20 Thread Avik Basu
I have a generic function called edit_db which allows for editing of database records and is useful for ajax-related form functions such as edit-in-place. The URL that is exposed is something like edit_db/tablename/row_id/fieldname?value=newvalue I would like to make sure that this function can

[web2py] Re: AJAX issue with '#' in URL

2010-09-20 Thread KMax
Did you check errors in admin page? Ajax errors not easy to catch due their hideness. Try FireBug or other simular tools (Google chrome IE8 has own build- in) On 13 сен, 10:40, weheh richard_gor...@verizon.net wrote: Sorry, I don't think I was very clear in my last message. I tried Massimo's

[web2py] Re: expose URL to internal web2py functions

2010-09-20 Thread mdipierro
If the URL is exposed and it is accessible via ajax, than it is called by the remote browser. You can only limit access with @auth.requires_login() or other auth recorator. On Sep 20, 6:48 pm, Avik Basu avikb...@gmail.com wrote: I have a generic function called edit_db which allows for editing

[web2py] Re: VPS.net for Hosting....

2010-09-20 Thread Yannick
Thanks. I tried the script in order to install Web2py on VPS.net and here is the error message I got: We failed to correctly shutdown apache, so we're now killing all running apache processes. this is almost certainly suboptimal, so please make sure your system is working as you'd expect now!

[web2py] Re: VPS.net for Hosting....

2010-09-20 Thread mdipierro
You are getting an error on this line: WSGIDaemonProcess web2py user=www-data group=www-data Do not know why. On Sep 20, 11:48 pm, Yannick ytchatch...@gmail.com wrote: Thanks. I tried the script in order to install Web2py on VPS.net and here is the error message I got: We failed to

[web2py] Re: VPS.net for Hosting....

2010-09-20 Thread Yannick
I retried a clean installation and got the same error message... I really don't understand why this... I follow the exact steps from the video. Thanks in advance if someone had the same issue that I'm having and was able to solve it. On Sep 21, 12:53 am, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py] Re: postgresql 9

2010-09-20 Thread KMax
Hot-backup and other HA features make me excited! On 21 сен, 01:06, mdipierro mdipie...@cs.depaul.edu wrote: http://www.postgresql.org/about/news.1235