[web2py:38055] Re: web2py and python 2.4

2009-12-30 Thread ont.rif
I have found a few more problems. Below content of a patch which can fix them. Patched code sucessfully runs on CentOS 5.4 (web2py 1.74.4). I drop out fixes for sql.py diff -ru --exclude '*.pyc' --exclude sql.py ./2.5/main.py ./2.4/ main.py --- ./2.5/main.py 2009-12-16 12:42:47.0

[web2py:38056] Re: How the 'auth.settings.allow_basic_login = True' works like?

2009-12-30 Thread mdipierro
That probably will not work since it is not what was designed for. I am not sure why it did not work thou. If the username is the email, did you escape it? On Dec 30, 1:16 am, David Marko dma...@tiscali.cz wrote: I simply tried to call the method with URLcontaining the username/ password. e.g.

[web2py:38057] Re: Postgresql-types limited by web2py :(

2009-12-30 Thread mdipierro
Please try the version in trunk. Massimo On Dec 30, 1:20 am, KMax mkostri...@gmail.com wrote: This code start to work === from gluon.sql import SQLCustomType db = DAL('postgres://web2py:gfhj...@db.sibnet.su/test1', pool_size=10) inet = SQLCustomType ( type='string',native='inet')

[web2py:38058] Re: web2py and python 2.4

2009-12-30 Thread mdipierro
Can you please email me the patch? Why change the the import email? Massimo On Dec 30, 4:39 am, ont.rif ont@gmail.com wrote: I have found a few more problems. Below content of a patch which can fix them. Patched code sucessfully runs on CentOS 5.4  (web2py 1.74.4). I drop out fixes for

[web2py:38059] rendering a Select as a Label

2009-12-30 Thread Miguel Lopes
I have a field with the following requirements: Field('origin_account_id', db.account), db.oppty_main.origin_account_id.requires=IS_IN_DB(db, 'account.id', '%(name)s') In the controller: form=SQLFORM(db.oppty_main, record=oppty_main, deletable=True,

[web2py:38062] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-30 Thread mdipierro
I failed to reproduce this problem. Can anybody reproduce it? On Dec 28, 5:33 pm, Tito Garrido titogarr...@gmail.com wrote: Via a webform... using SQLFORM On Sat, Dec 26, 2009 at 12:39 PM, mdipierro mdipie...@cs.depaul.edu wrote: inserting via web forms or via db.table.insert(...)? On

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

2009-12-30 Thread Miguel Lopes
On Wed, Dec 30, 2009 at 2:57 PM, Miguel Lopes mig.e.lo...@gmail.com wrote: On Wed, Dec 30, 2009 at 2:54 PM, mdipierro mdipie...@cs.depaul.edu wrote: before the form=... try db.oppty_main.origin_account_id.writable=False you may also want to add:

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

2009-12-30 Thread mdipierro
Please try 1.74.4 before I look into this more. On Dec 30, 9:03 am, Miguel Lopes mig.e.lo...@gmail.com wrote: On Wed, Dec 30, 2009 at 2:57 PM, Miguel Lopes mig.e.lo...@gmail.com wrote: On Wed, Dec 30, 2009 at 2:54 PM, mdipierro mdipie...@cs.depaul.edu wrote: before the form=... try

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

2009-12-30 Thread Miguel Lopes
On Wed, Dec 30, 2009 at 3:17 PM, mdipierro mdipie...@cs.depaul.edu wrote: Please try 1.74.4 before I look into this more. I get the same problem with 1.74.4. I've just reproduced this with a new application using appdamin I also get the select tag. I would say this is a bug. The reproduction

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

2009-12-30 Thread mdipierro
Are you talking about forms you made or forms in appadmin? forms in appadmin ignore writable and readable by design. Your own forms should not ignore them. On Dec 30, 9:35 am, Miguel Lopes mig.e.lo...@gmail.com wrote: On Wed, Dec 30, 2009 at 3:17 PM, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py:38077] Re: Cron error

2009-12-30 Thread vvk
Sir, Cron isnt working when I put that validator, error given is same as mentioned earlier . Cron is working properly without any validator. Here is my function. Kindly let me know if any problem is there. @auth.requires(not request.env.remote_addr or auth.has_permission ('least')) def

[web2py:38078] Re: Problem with Postgresql DAL

2009-12-30 Thread vvk
How to initialize a NULL query My query should be ANDed with various tables depending on arguments I receive. Like: if arg1 == xyz: query = (db.abc.id 0) if arg2 == xyz: query = (db.def.id 0) query In my second if condition, if first if condition is not executed,

[web2py:38079] Re: Cron error

2009-12-30 Thread mdipierro
My bad. Try this: @auth.requires(not request.wsgi or auth.has_permission('least')) On Dec 30, 12:13 pm, vvk varunk.ap...@gmail.com wrote: Sir, Cron isnt working when I put that validator, error given is same as mentioned earlier . Cron is working properly without any validator. Here is my

[web2py:38080] Re: Problem with Postgresql DAL

2009-12-30 Thread vvk
worked flawlessly .. :) thank you On Dec 30, 11:20 pm, vvk varunk.ap...@gmail.com wrote: How to initialize a NULL query My query should be ANDed with various tables depending on arguments I receive. Like:     if arg1 == xyz:          query = (db.abc.id 0)     if arg2 == xyz:          

[web2py:38081] Re: Cron error

2009-12-30 Thread vvk
worked flawlessly :) .. thank you On Dec 30, 11:21 pm, mdipierro mdipie...@cs.depaul.edu wrote: My bad. Try this: @auth.requires(not request.wsgi or auth.has_permission('least')) On Dec 30, 12:13 pm, vvk varunk.ap...@gmail.com wrote: Sir, Cron isnt working when I put that validator,

[web2py:38083] Re: Problem with Postgresql DAL

2009-12-30 Thread mdipierro
queries=[] if arg1 == xyz: queries.append(db.abc.id 0) if arg2 == xyz: queries.append(db.def.id 0) query = reduce(lambda a,b:(ab),queries) On Dec 30, 12:20 pm, vvk varunk.ap...@gmail.com wrote: How to initialize a NULL query My query should be ANDed with various tables depending on arguments

[web2py:38084] Re: Two Errors

2009-12-30 Thread mdipierro
1) GAE rules. Here is a quick fix. posts = db((db.posts.category == cat.id)).select(db.posts.ALL).sort (lambda r['created'],reverse=True) 2) Try one of these variations if request.args[0] is u'Programação' if request.args[0] is unicode('Programação') if request.args[0] is

Re: [web2py:38085] roadmap?!

2009-12-30 Thread Jason Brower
I would highly recommend having this on your homepage. It's important for developers to see futureplans and what is new between releases. BR, Jason On Wed, 2009-12-30 at 09:59 -0800, mdipierro wrote: Alvaro said this over and over. We need a roadmap. For me the most important things are:

[web2py:38086] New Windows Python IDE

2009-12-30 Thread mikech
http://pfaide.com/ -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this

[web2py:38087] Re: New Windows Python IDE

2009-12-30 Thread mdipierro
Really cool but windows only. :-( On Dec 30, 3:06 pm, mikech mp.ch...@gmail.com wrote: http://pfaide.com/ -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this

[web2py:38088] 1.74.5 is OUT

2009-12-30 Thread mdipierro
What's new? - bug fixes - auth.user_id (shortcut for auth.user.id that defaults to None if not logged it) - support for all native types on Google App Engine (for example StringListProperty) - restored python 2.4 support,thanks ont.rif - cache.ram usage statictics, thanks Thadus - no more auth

[web2py:38089] Re: New Windows Python IDE

2009-12-30 Thread Andy Pardue
I played with it, and it looks like nothing will replace eric4 for me. I have been using eric back in the 3 days for PyQt apps. A lot of people poo poo eric because of not getting breakpoints to work. One can force a breakpoint every time by importing sys on the file and inserting sys.breakpoint()

[web2py:38091] Re: Cron job at WebFaction

2009-12-30 Thread Andy Pardue
Sorry I have not replied sooner. the cron job is for apache When you use wsgi apache runs the web2py. Andy On Dec 25, 8:19 am, annet annet.verm...@gmail.com wrote: Andy, I think your guess is right, to be sure I asked support the same question. Here is their answer: There is a Control

[web2py:38092] Re: New Windows Python IDE

2009-12-30 Thread Mengu
huh, not like the one i have in my mind. good then because i'm going to write it. :) On 30 Aralık, 23:06, mikech mp.ch...@gmail.com wrote: http://pfaide.com/ -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

Re: [web2py:38093] Re: How the 'auth.settings.allow_basic_login = True' works like?

2009-12-30 Thread Alex Fanjul
So I guess that is the problem, traying to access url through standard way but with email username because it would remain: http://u...@mail.com:passw...@domain:port/uri , and I think this won't be valid... alex f El 30/12/2009 18:06, Massimo Di Pierro escribió: It depends. Unless you have

Re: [web2py:38094] roadmap?!

2009-12-30 Thread Alex Fanjul
Massimo, with your permission, I would add Breadcumb plugin to your list. I think Alexander is working on this and he has a working slice already. Alex F El 30/12/2009 18:59, mdipierro escribió: Alvaro said this over and over. We need a roadmap. For me the most important things are: 1)

[web2py:38095] Re: roadmap?!

2009-12-30 Thread mdipierro
please do. I did not add it because I thought it was done. It is an important one. On Dec 30, 5:29 pm, Alex Fanjul alex.fan...@gmail.com wrote: Massimo, with your permission, I would add Breadcumb plugin to your list. I think Alexander is working on this and he has a working slice already.

Re: [web2py:38096] Re: How the 'auth.settings.allow_basic_login = True' works like?

2009-12-30 Thread Massimo Di Pierro
No but http://user%40mail.com:passw...@domain:port/url may work %40 is the @ escaped. You also have to escape the password. On Dec 30, 2009, at 5:26 PM, Alex Fanjul wrote: http://u...@mail.com:passw...@domain:port/url -- You received this message because you are subscribed to the Google

Re: [web2py:38097] roadmap?!

2009-12-30 Thread Massimo Di Pierro
I am not sure if there is one already or not but perhaps we should add a roadmap page to the wiki. Could you do it? On Dec 30, 2009, at 5:29 PM, Alex Fanjul wrote: Massimo, with your permission, I would add Breadcumb plugin to your list. I think Alexander is working on this and he has a

Re: [web2py:38098] roadmap?!

2009-12-30 Thread Massimo Di Pierro
That is a good idea. I will do so. Thank you Yarko. We should use the google.code wiki more. I also wish you and everybody else a Happy New Year. Massimo On Dec 30, 2009, at 6:47 PM, Yarko Tymciurak wrote: Hi Massimo: Might I suggest you put ROADMAP items on code.google.com/p/web2py

[web2py:38099] Re: roadmap?!

2009-12-30 Thread mdipierro
Here it is. I added a few more desirable plugins. It would be nice if people where to take responsibility for some of them so we know who to call for help. ;-) On Dec 30, 8:34 pm, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: That is a good idea. I will do so. Thank you Yarko. We should use

[web2py:38100] Re: web2py newbie + google app engine

2009-12-30 Thread reyelts
Thanks Massimo! That was exactly the problem. I had basic GAE working with Python 2.6, so made the rash assumption that the rest of it would run safely. I swapped in Python 2.5 and it GAE+web2py runs *much* better. It serves out pages as expected, etc. It does come up with a couple of warnings:

[web2py:38101] Re: Problem with Postgresql DAL

2009-12-30 Thread vvk
Sir, thanks for the post, seems that I've to re-write all my search functions. varun On Dec 31, 12:54 am, mdipierro mdipie...@cs.depaul.edu wrote: queries=[] if arg1 == xyz: queries.append(db.abc.id 0) if arg2 == xyz: queries.append(db.def.id 0) query = reduce(lambda

[web2py:38102] Re: web2py newbie + google app engine

2009-12-30 Thread mdipierro
I have never seen the first one. The other two have to do with the fact that the filesystem is readonly. We should remove all those unnecessary warning on GAE they just create confusion. Massimo On Dec 30, 9:21 pm, reyelts reye...@gmail.com wrote: Thanks Massimo! That was exactly the problem. I

[web2py:38103] Re: Problem with Postgresql DAL

2009-12-30 Thread mdipierro
another option is qset=db() if arg1 == xyz: qset=qset(db.abc.id 0) if arg2 == xyz: qset=qset(db.def.id 0) qset.select() On Dec 30, 9:35 pm, vvk varunk.ap...@gmail.com wrote: Sir, thanks for the post, seems that I've to re-write all my search functions. varun On Dec 31, 12:54 am,

[web2py:38105] Just Take a Time to wish you ALL - HAPPY NEW YEAR 2010 !

2009-12-30 Thread Yannick
I wish you all the best for this new year 2010... A year full of Health, Wealth, Peace, Joy, Success in all you project... And a lot more :) Here is a small e-card I created for fun and host on my web2py small website... http://www.onemewebservices.com/onemewish ( This e-card may not be working

[web2py:38106] Re: LOL

2009-12-30 Thread weheh
Grin -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at

Re: [web2py:38107] LOL

2009-12-30 Thread Zoom.Quiet
On Thu, Dec 31, 2009 at 12:27, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: http://london.craigslist.co.uk/stp/1531016430.html LOL -- http://zoomquiet.org 人生苦短? Pythonic! 一个人如果力求完善自己,就会看到:为此也必须同时完善他人. 一个人如果不关心别人的完善,自己便不可能完善! -- You received this message because you are subscribed to the

Re: [web2py:38108] LOL

2009-12-30 Thread Thadeus Burgess
Hey... thats a good idea . -Thadeus 2009/12/30 Zoom.Quiet zoom.qu...@gmail.com: On Thu, Dec 31, 2009 at 12:27, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: http://london.craigslist.co.uk/stp/1531016430.html LOL -- http://zoomquiet.org 人生苦短? Pythonic!

[web2py:38109] Bug in appadmin view next 100 rows

2009-12-30 Thread Thadeus Burgess
What I'm trying to do: Sort by a row (say last_name). Then view the next 100 rows. What I expect: For the next 100 to continue with the sorted query What happens: The query resets How to fix it: I'm sure there is a better way, but the orderby get_vars is being lost in the middle... so

[web2py:38111] Send web2py a greeting card - Happy New Year

2009-12-30 Thread mdipierro
http://web2py.com/cards/default/index you need: - your latitude - your longitude - a photo of you or of your town -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from

[web2py:38112] Database Keywords

2009-12-30 Thread Thadeus Burgess
Can the new DAL have a list of protected keywords for the database and throw and exception if you try to define a column with the keyword? -Thadeus -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:38113] Re: roadmap?!

2009-12-30 Thread Jake
Here's a link to the wiki for future convenience: http://code.google.com/p/web2py/w/list Jake On Dec 30, 9:42 pm, mdipierro mdipie...@cs.depaul.edu wrote: Here it is. I added a few more desirable plugins. It would be nice if people where to take responsibility for some of them so we know who

[web2py:38114] Re: LOL

2009-12-30 Thread Jake
Good luck with that On Dec 30, 11:27 pm, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: http://london.craigslist.co.uk/stp/1531016430.html -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to