[web2py:38114] Re: LOL

2009-12-30 Thread Jake
Good luck with that On Dec 30, 11:27 pm, Massimo Di Pierro 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 web...@googlegroups.com. To unsubscribe

[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 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 to > call for help. ;-

[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 web...@goog

[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:38110] Re: Bug in appadmin view next 100 rows

2009-12-30 Thread Thadeus Burgess
I take that back, this does not solve it, since web2py ends up reversing the query, so the next 100 rows is actually the next 100 from the end. -Thadeus On Wed, Dec 30, 2009 at 11:58 PM, Thadeus Burgess wrote: > What I'm trying to do: > > Sort by a row (say last_name). Then view the next 100

[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 {

Re: [web2py:38108] LOL

2009-12-30 Thread Thadeus Burgess
Hey... thats a good idea >.< -Thadeus 2009/12/30 Zoom.Quiet : > On Thu, Dec 31, 2009 at 12:27, Massimo Di Pierro > wrote: >> http://london.craigslist.co.uk/stp/1531016430.html >> > > LOL > > -- > http://zoomquiet.org 人生苦短? Pythonic! > 一个人如果力求完善自己,就会看到:为此也必须同时完善他人. 一个人如果不关心别人的完善,自己便不可能完善! > >

Re: [web2py:38107] LOL

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

[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 http://

[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 p

[web2py:38104] LOL

2009-12-30 Thread Massimo Di Pierro
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 web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com.

[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 wrote: > Sir, > thanks for the post, seems that I've to re-write all my search > functions. > > > varun > > On Dec 31, 12:54 am, mdipierro

[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 wrote: > Thanks Massimo! That was exactly the problem. I had basic GAE wo

[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 wrote: > queries=[] > if arg1 == "xyz": queries.append(db.abc.id > 0) > if arg2 == "xyz": queries.append(db.def.id > 0) > query = reduce(lambda a,b:(a&b),queries) > > On Dec

[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: WA

[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 wrote: > That is a good idea. I will do so. > > Thank you Yarko. We should use the google.code wiki

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

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 w

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 Gr

[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 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. > Alex F > > El 30/1

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: > >

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 cu

[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 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...@googlegrou

[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 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 Panel installer for 'm

[web2py:38090] Re: New Windows Python IDE

2009-12-30 Thread mdipierro
I see it does diagrams of modules. Would you make a few of those diagrams and send them to me? Massimo On Dec 30, 4:16 pm, Andy Pardue wrote: > 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

[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: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 man

[web2py:38087] Re: New Windows Python IDE

2009-12-30 Thread mdipierro
Really cool but windows only. :-( On Dec 30, 3:06 pm, mikech 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 group, send email t

[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 gro

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: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 unicode('Programação').

[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:(a&b),queries) On Dec 30, 12:20 pm, vvk wrote: > How to initialize a NULL query > > My query should be ANDed with various tables depending on arguments I > receive.

[web2py:38082] Two Errors

2009-12-30 Thread Leandro - ProfessionalIT
Friends, I have two Problems in my blog App (running in GAE). 1) In the code that generate the RSS by category: - It's run but only if I don't put the orderby declaration in db.select() method but I need to sort my posts by ~created(DESC created) date to generate my RSS feeds.

[web2py:38081] Re: Cron error

2009-12-30 Thread vvk
worked flawlessly :) .. thank you On Dec 30, 11:21 pm, mdipierro wrote: > My bad. Try this: > > @auth.requires(not request.wsgi or auth.has_permission('least')) > > On Dec 30, 12:13 pm, vvk wrote: > > > Sir, > > Cron isnt working when I put that validator, error given is same as > > mentioned ea

[web2py:38080] Re: Problem with Postgresql DAL

2009-12-30 Thread vvk
worked flawlessly .. :) thank you On Dec 30, 11:20 pm, vvk 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": >          query = (

[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 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 function. Kindly le

[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 ex

[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 takebacku

[web2py:38076] In case you missed this pure python module to read and write docx files.

2009-12-30 Thread mdipierro
http://github.com/mikemaccana/python-docx -- 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

[web2py:38075] roadmap?!

2009-12-30 Thread mdipierro
Alvaro said this over and over. We need a roadmap. For me the most important things are: 1) getting the new DAL done (and include support for more NoDB and Sybase) 2) Create a set of standard and customizable plugins for: a) comments (*) b) tagging (*) c) voting/rating d) wiki/versioning

[web2py:38074] Re: Problem with Postgresql DAL

2009-12-30 Thread mdipierro
This: query = (-1) is not a valid query. The fact it works with sqlite is a miracle. On Dec 30, 11:43 am, vvk wrote: > query = (-1) > query = (db.somedb.id > 0) & query > > This querying worked with SQLITE. But it's giving following error with > postgres: > > ProgrammingError: argument of AND m

[web2py:38073] Problem with Postgresql DAL

2009-12-30 Thread vvk
query = (-1) query = (db.somedb.id > 0) & query This querying worked with SQLITE. But it's giving following error with postgres: ProgrammingError: argument of AND must be type boolean, not type integer LINE 1: ...rchase WHERE (purchase.timeofpurchase<='2009-12-29' AND -1); i) I think there is pr

[web2py:38072] Re: web2py and python 2.4

2009-12-30 Thread mdipierro
In trunk, thank you On Dec 30, 4:39 am, "ont.rif" 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 sql.py > > diff -ru --exclude '*.pyc' --exclude sql.py ./2.5/main.py .

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

2009-12-30 Thread Massimo Di Pierro
It depends. Unless you have custom auth_user table with a username field, your username is the email and that is what you should use in basic auth. On Dec 30, 2009, at 10:12 AM, Alex Fanjul wrote: > Massimo I think the username is not an email, is just the standard way > of accessing url with

[web2py:38070] Re: Standalone Web2py that accepts all request on a given port.

2009-12-30 Thread mdipierro
Using trunk, please try the -Q option. No more splash screen. On Dec 29, 12:23 pm, Delaney wrote: > My testing show that having a "taskbar=True" in the options.py results > in thesplashscreen and the taskbar icon > However using 'web2py_no_console.exe -t -L options.py ' results in not > having th

[web2py:38069] Error reading from pickle

2009-12-30 Thread robsan
Hi all, I'm using http://www.crummy.com/software/ScrapeNFeed/ to scrape a webpage and produce a RSS feed. ScrapeNFeed uses a pickle file to store information/history about this feed. The code below works fine on the 1st run when the pickle file does not exist, but after it gets created I get the f

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

2009-12-30 Thread mdipierro
On a second thought. My fix in trunk is not the proper way so I am revering it. The problem is that your custom type needs to have an encoder and perhaps a decoder. Try this: cidr = SQLCustomType ( type='string', native='cidr', encoder=lambda x: repr(str(x)) ) On Dec 30, 8:33 am, mdipierro wrote

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

2009-12-30 Thread Alex Fanjul
Massimo I think the username is not an email, is just the standard way of accessing url with basic auth, isn't it? http:// username : password @ domain : port / uri alex El 30/12/2009 15:25, mdipierro escribió: > That probably will not work since it is not what was designed for. > I am not sure

[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 wrote: > On Wed, Dec 30, 2009 at 3:17 PM, mdipierro wrote: > > Please try 1.74.4 before I look into this mo

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 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 code is: db.define_table(

[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 wrote: > On Wed, Dec 30, 2009 at 2:57 PM, Miguel Lopes wrote: > > On Wed, Dec 30, 2009 at 2:54 PM, mdipierro wrote: > >> before the form=... try > > >> db.oppty_main.origin_account_id.writable=False > > >> you may

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 wrote: > On Wed, Dec 30, 2009 at 2:54 PM, mdipierro wrote: >> before the form=... try >> >> db.oppty_main.origin_account_id.writable=False >> >> you may also want to add: >> >> db.oppty_main.origin_account_id.readable=False >> > > Txs for the tip Mass

[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 wrote: > Via a webform... using SQLFORM > > > > On Sat, Dec 26, 2009 at 12:39 PM, mdipierro wrote: > > inserting via web forms or via db.table.insert(...)? > > > On Dec 26, 7:54 am, Tito Garrido wrote

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

2009-12-30 Thread Miguel Lopes
On Wed, Dec 30, 2009 at 2:54 PM, mdipierro wrote: > before the form=... try > > db.oppty_main.origin_account_id.writable=False > > you may also want to add: > > db.oppty_main.origin_account_id.readable=False > Txs for the tip Massimo! I tried, using readable and writable attributes in the Field

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

2009-12-30 Thread mdipierro
before the form=... try db.oppty_main.origin_account_id.writable=False you may also want to add: db.oppty_main.origin_account_id.readable=False On Dec 30, 8:39 am, Miguel Lopes wrote: > I have a field with the following requirements: > > Field('origin_account_id', db.account), > db.oppty_main.

[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, fields=['name','origin_account

[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" 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 sql.py > > di

[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 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') > > db.define_

[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 wrote: > I simply tried to call the method with URLcontaining the username/ > password. e.g. tttp://username:

[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 +0