[web2py] Re: For your knowledge

2010-03-29 Thread weheh
Good stuff, Thadeus. Thanks. -- 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

Re: [web2py] Re: googling web2py

2010-03-29 Thread Nicol van der Merwe
South Africa: Results *1* - *10* of about *109,000* for *web2py * On Mon, Mar 29, 2010 at 5:11 AM, Vidul Petrov vidul.r...@gmail.com wrote: 109,000 from Bulgaria On Mar 28, 3:23 am, mdipierro mdipie...@cs.depaul.edu wrote: When you google web2py how may hits do you get? from which

[web2py] appliance typo

2010-03-29 Thread hamdy.a.farag
Hi in the appliacnce 'appliances' http://web2py.com/appliances/default/show/4 there's a typo in appadmin.py line 125 except: reponse.flash='unable to parse csv file' should be except: response.flash='unable to parse csv file' -- You received this message because you are subscribed to the

[web2py] Re: googling web2py

2010-03-29 Thread guruyaya
109K in ISR On Mar 28, 4:23 am, mdipierro mdipie...@cs.depaul.edu wrote: When you google web2py how may hits do you get? from which country? When I do it from the US I get ~106,000. The number has been steady for one year. Before that is was much higher ~600,000. When I did it from India

[web2py] problem with belongs

2010-03-29 Thread pacopyc
Hi, I've a problem with belongs. I've a page with a list of checkbox (dog, cat, mouse, ...). For example If I choose dog and cat I'd like execute: select * from table where field in ('dog', 'cat') I've written this code: animals = request.vars.animals res =

[web2py] Re: googling web2py

2010-03-29 Thread Christopher Steel
Canada with various language settings: Google Site : http://www.google.ca/ Language: fr-ca Total : 109,000 Generated URL : http://www.google.ca/#hl=frsource=hpq=web2pymeta=aq=faqi=g3aql=oq=gs_rfai=fp=73cab96ac3bd1594 Google Site : http://www.google.ca/ Language

[web2py] Running DAL oustide web2py

2010-03-29 Thread Giovanni Giorgi
Hi all, there is a simple way to run DAL oustide web2py? I need to write a script to access to the DB using the web2py model, something like import myappmodel import DAL [...otherstuff...] db = DAL('sqlite://storage.sqlite') etc etc Where can I find an example? Thank you! -- Software

[web2py] Re: problem with belongs

2010-03-29 Thread pacopyc
With this code works, but I don't like this: if type(animals) == str: res = db(db.table.field==animals).select(db.table.ALL) else: res = db(db.table.field.belongs(animals)).select(db.table.ALL) Can you say me a better method? Thank you On 29 Mar, 13:29, pacopyc paco...@gmail.com wrote:

[web2py] Re: zengarden anybody?

2010-03-29 Thread Christopher Steel
Great!, I am going to do a little research and then put together some options / samples. Two other items I am going to look into (which are also suggested on the ez.css page) are html5 semantics and WAI ARIA landmark roles. Roles would require a code tweak or flag as some (most?) validation

Re: [web2py] Re: webserver slow, misreported

2010-03-29 Thread Timothy Farrell
Perhaps a simpler set of questions: Did you have this working with Cherrypy beforehand? If so, is Rocket the only thing to have changed? The latest changes to Rocket were committed to the Mercurial web2py repo on March 18th. I'm assuming you've run a checkout since then. -tim On 3/28/2010

[web2py] Some thing wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread hywang
model file like this --- db.define_table('options_contain_chinease', Field('student_name', requires = IS_IN_SET([小王,小长,老李])), ) db.table_contain_chinease.student_name.widget = CheckboxesWidget.widget -controller file like this - def test_chinease(): form =

[web2py] Re: Some thing wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread hywang
Sorry, db.table_contain_chinease.student_name.widget = CheckboxesWidget.widget should be : db.options_contain_chinease.student_name.widget = CheckboxesWidget.widget -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send

[web2py] Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread hywang
---model file is like this - db.define_table('options_contain_chinease', Field('student_name', requires = IS_IN_SET([Jim,小长,老李])), ) db.options_contain_chinease.student_name.widget = CheckboxesWidget.widget --controller file is like this - def

[web2py] Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread hywang
---model file is like this - db.define_table('options_contain_chinease', Field('student_name', requires = IS_IN_SET([Jim,小长,老李], multiple=True)), ) db.options_contain_chinease.student_name.widget = CheckboxesWidget.widget --controller file is like this

[web2py] Help with a query

2010-03-29 Thread Jose
Given: db.define_table('t1', Field('f11'), Field('f12', 'integer'), ) db.define_table('t2', Field('f21'), Field('f22', db.t1), ) I make this query [1] (I see that you can not) but without using a subselect [1] qry1 = (db.t2.f22.f12 == 10) rows = db(qry1).select(db.t2.ALL) How

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread hywang
There is something wrong with validators.py in line 289 values = re.compile([\w\-:]+).findall(str(value)) if I change it with values = value everything is ok Maybe it's a bug On 3月29日, 下午9时33分, hywang why00...@163.com wrote: ---model file is like this -

[web2py] Re: zengarden anybody?

2010-03-29 Thread Yarko Tymciurak
Careful - HTML5 is behind schedule, and expected to reach standard stage in 2022 (?!)... Hoewever, the new canvas element is supported already (so that flash / silverlight, etc. isn't needed) --- and IE-9 might even do will with this (the preview is out now - it seems pretty fast). I woulnd't

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 8:45 am, hywang why00...@163.com wrote: There is something wrong with validators.py in line 289 values = re.compile([\w\-:]+).findall(str(value)) if I change it with values = value everything is ok Maybe it's a bug I do not know - but to help you along a little: See the

[web2py] Re: zengarden anybody?

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 8:57 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: Careful - HTML5 is behind schedule, and expected to reach standard stage in 2022 (?!)... Hoewever, the new canvas element is supported already ... that is, supported by many browsers already; if we are going to add any

[web2py] Re: how to troubleshoot admin errors?

2010-03-29 Thread ciastek
I've had the same problem (unable to create application) on Ubuntu JeOS 8.04.3 configured as shown at http://vimeo.com/10377947 [ web2py production deployment on vps.net (VIDEO) by mdipierro]. Ubuntu fully upgraded, web2py installed using setup-web2py-ubuntu.sh script. Running web2py from console

[web2py] Re: Running DAL oustide web2py

2010-03-29 Thread rfx_labs
Hi Giovanni, I had the same problem and here is my simple solution: model.py: from gluon.dal import DAL, Field db = DAL(sqlite://storage.db) db.define_table(reference, Field(name, string, notnull=True), Field(L, double), Field(a, double), Field(b,

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 8:33 am, hywang why00...@163.com wrote: ---model file is like this - db.define_table('options_contain_chinease', Field('student_name', requires = IS_IN_SET([Jim,小长,老李], multiple=True)), Using this last string from your IS_IN_SET example (I hope my copy/

[web2py] Re: how to troubleshoot admin errors?

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 9:27 am, ciastek ciasteczk...@gmail.com wrote: I've had the same problem (unable to create application) on Ubuntu JeOS 8.04.3 configured as shown athttp://vimeo.com/10377947[ web2py production deployment on vps.net (VIDEO) by mdipierro]. Ubuntu fully upgraded, web2py installed using

[web2py] Re: joins, geraldo and possible alias

2010-03-29 Thread jonatron
I tried it with sqlexecute but I would need to do quite a lot of processing on the results... Is there any work around you can think of? Is there any way to use the DAL with a select statement in the format generated from _select? Thanks, J On Mar 23, 9:35 pm, jonatron

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread Yarko Tymciurak
anyway, I am sure this is about encoding to unicode - someone who has done this will hopefully add comments. On Mar 29, 10:04 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Mar 29, 8:33 am, hywang why00...@163.com wrote: ---model file is like this -

[web2py] Re: zengarden anybody?

2010-03-29 Thread Christopher Steel
What can I say, I am a dreamer. http://vishpala.com/resources/web2py/images/screenshot.png C. On Mar 29, 10:21 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Mar 29, 8:57 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: Careful - HTML5 is behind schedule, and expected

[web2py] Re: zengarden anybody?

2010-03-29 Thread blackthorne
Hey! Nice to see this layout idea. I think I've suggested it a good while ago. One interesting thing about this approach is that you can also great different grades of complexity. E.g. if you want to create a minimalistic theme without images, and Tweets on the admin page you can simply hide

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 10:54 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: anyway, I am sure this is about encoding to unicode - someone who has done this will hopefully add comments. For example, looking at http://docs.python.org/library/codecs.html#standard-encodings and searching for

Re: [web2py] Re: zengarden anybody?

2010-03-29 Thread Thadeus Burgess
Remotely administer error tickets from your mobile phone! -Thadeus On Mon, Mar 29, 2010 at 8:12 AM, blackthorne francisco@gmail.com wrote: Hey! Nice to see this layout idea. I think I've suggested it a good while ago. One interesting thing about this approach is that you can also

Re: [web2py] Re: as_list returns an isoformated time as_dict returns a datetime.time?

2010-03-29 Thread Thadeus Burgess
I almost want to say that as long as it is still a python object it should stay python objects. That being said, we already have the datetime_to_str flag, leave the defaults as they were if someone wants it differently they can alter the flag. -Thadeus On Sun, Mar 28, 2010 at 10:09 AM,

Re: [web2py] Re: as_list returns an isoformated time as_dict returns a datetime.time?

2010-03-29 Thread Thadeus Burgess
They should both operate the same in any case. -Thadeus On Mon, Mar 29, 2010 at 12:00 PM, Thadeus Burgess thade...@thadeusb.com wrote: I almost want to say that as long as it is still a python object it should stay python objects. That being said, we already have the datetime_to_str

Re: [web2py] Re: Running DAL oustide web2py

2010-03-29 Thread Thadeus Burgess
Alternatively if this is just a script (like cron) or a simple program and you do not mind loading the entire web2py environment python web2py.py -S welcome -M -R /path/to/my/script.py -S denotes the app name, -M denotes execute models and -R is the path to the script to execute in the

[web2py] Re: zengarden anybody?

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 1:00 pm, Thadeus Burgess thade...@thadeusb.com wrote: Remotely administer error tickets from your mobile phone! You get error tickets? Really?! ... ;-) But, actually - it would be nice to get private tweets from sites you manage w/ links you could follow remotely if you wanted

Re: [web2py] Re: zengarden anybody?

2010-03-29 Thread Thadeus Burgess
I don't, but in any case its still a nice bargaining chip for a company iphone. -Thadeus On Mon, Mar 29, 2010 at 12:17 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: You get error tickets?  Really?!   ...     ;-) But, actually - it would be nice to get private tweets from sites

[web2py] Re: webserver slow, misreported

2010-03-29 Thread Michael Toomim
I was having slowness problems with cherrypy too! That's why I switched to rocket. So perhaps it's something common to cherrypy and rocket, or perhaps they are both slow in their own ways? This is using web2py from march 16th, so it's not the latest rocket. Do you think something important

Re: [web2py] Re: webserver slow, misreported

2010-03-29 Thread Timothy Farrell
On 3/29/2010 1:39 PM, Michael Toomim wrote: I was having slowness problems with cherrypy too! That's why I switched to rocket. So perhaps it's something common to cherrypy and rocket, or perhaps they are both slow in their own ways? This is using web2py from march 16th, so it's not the latest

[web2py] Custom 404 Pages

2010-03-29 Thread Chris
Hi, Is there a way to override the template used by the error pages so that they match my site by extending the base template? I tried to use the routes_onerror in routes.py to redirect on error, however, this removes the proper status codes (400, 404 etc.) which the site should return. Chris --

Re: [web2py] Custom 404 Pages

2010-03-29 Thread Thadeus Burgess
Now that you mention this, this is an issue. My google analytics on my blog I have noticed lots of pages being request down the rabbit hole, since I have the error redirecting. Except for overriding the template in routes, not sure how to make it look the same as the site. -Thadeus On Mon,

[web2py] web2py.com down or something else?

2010-03-29 Thread Feng
Hi, I started to learn and use web2py recently. It's a great web development framework, simple and easy to start. Though for me, starting from yesterday, web2py.com seems to be down on me. I read some past articles about filtering. So is it the site down or my ip is being blocked? Thanks! Feng

Re: [web2py] web2py.com down or something else?

2010-03-29 Thread Thadeus Burgess
It works for me. -Thadeus On Mon, Mar 29, 2010 at 2:03 PM, Feng huf...@gmail.com wrote: Hi, I started to learn and use web2py recently. It's a great web development framework, simple and easy to start. Though for me, starting from yesterday, web2py.com seems to be down on me. I read

[web2py] Re: Custom 404 Pages

2010-03-29 Thread Chris
It would be great if this could fixed or an added feature. It's how a lot of sites function. On Mar 29, 3:43 pm, Thadeus Burgess thade...@thadeusb.com wrote: Now that you mention this, this is an issue. My google analytics on my blog I have noticed lots of pages being request down the rabbit

[web2py] Re: appliance typo

2010-03-29 Thread Richard
would be good not to have a catch all except too, which can mask other errors. On Mar 29, 8:29 pm, hamdy.a.farag hamdy.a.fa...@inbox.com wrote: Hi in the appliacnce 'appliances' http://web2py.com/appliances/default/show/4  there's a typo in appadmin.py line 125 except:

[web2py] Re: problem with belongs

2010-03-29 Thread Richard
Try this: animals = request.vars.animals if not isinstance(animals, list): animals = [animals] res = db(db.table.field.belongs(animals)).select(db.table.ALL) On Mar 29, 10:59 pm, pacopyc paco...@gmail.com wrote: With this code works, but I don't like this: if type(animals) == str:  

[web2py] Re: Custom 404 Pages

2010-03-29 Thread Richard
add the idea here so people can vote on its importance: http://web2py.uservoice.com/forums/42577-general On Mar 30, 9:40 am, Chris crflei...@gmail.com wrote: It would be great if this could fixed or an added feature. It's how a lot of sites function. On Mar 29, 3:43 pm, Thadeus Burgess

[web2py] Re: web2py.com down or something else?

2010-03-29 Thread Feng
oh, my IP now is 98.111.83.0 so far, I still can't reach www.web2py.com Does anybody know how I can access the website? Thanks, - Feng On Mar 29, 2:22 pm, Thadeus Burgess thade...@thadeusb.com wrote: It works for me. -Thadeus On Mon, Mar 29, 2010 at 2:03 PM, Feng huf...@gmail.com wrote:

[web2py] Re: web2py.com down or something else?

2010-03-29 Thread mr.freeze
Massimo has an (overly) aggressive intrusion detection system. Try using a public proxy to see if you can reach it. If it still doesn't work then it may be on your end. On Mar 29, 5:55 pm, Feng huf...@gmail.com wrote: oh, my IP now is 98.111.83.0 so far, I still can't reachwww.web2py.com

[web2py] Re: web2py.com down or something else?

2010-03-29 Thread mdipierro
I think I unblocked it. Please check. On Mar 29, 5:55 pm, Feng huf...@gmail.com wrote: oh, my IP now is 98.111.83.0 so far, I still can't reachwww.web2py.com Does anybody know how I can access the website? Thanks, - Feng On Mar 29, 2:22 pm, Thadeus Burgess thade...@thadeusb.com wrote:

[web2py] Re: webserver slow, misreported

2010-03-29 Thread Michael Toomim
Yes, this is on linux! Do you recommend upgrading and trying again? mturk doesn't affect anything, I am just serving webpages that appear in iframes on the mturk website. From our perspective, I'm serving webpages. Do you have a method of logging how much time it takes to serve a page with

[web2py] Re: web2py.com down or something else?

2010-03-29 Thread Feng
Thank you all. I can access the website now! On Mar 29, 5:39 pm, mdipierro mdipie...@cs.depaul.edu wrote: I think I unblocked it. Please check. On Mar 29, 5:55 pm, Feng huf...@gmail.com wrote: oh, my IP now is 98.111.83.0 so far, I still can't reachwww.web2py.com Does anybody know how

[web2py] Re: webserver slow, misreported

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 7:59 pm, Michael Toomim too...@gmail.com wrote: Yes, this is on linux!  Do you recommend upgrading and trying again? mturk doesn't affect anything, I am just serving webpages that appear in iframes on the mturk website.  From our perspective, I'm serving webpages. Do you have a

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread hywang
thanks for your kindly help. On 3月30日, 上午1时47分, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Mar 29, 10:54 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: anyway, I am sure this is about encoding to unicode - someone who has done this will hopefully add comments. For

[web2py] Re: Something is wrong when IS_IN_SET contains Chinease characters

2010-03-29 Thread hywang
Rewrite IS_IN_SET, everything is ok. But I don't know how to submit a branch . class IS_IN_SET(Validator): def __init__( self, theset, labels=None, error_message='value not allowed', multiple=False, zero='', sort=False, ):

[web2py] Re: Help with a query

2010-03-29 Thread weheh
You need a left outer join. Here are a couple of examples that I think should work (caveat: I didn't test them): #way1 qry1=((db.t2.f22==db.t1.id) (db.t1.f12==10)) rows = db(qry1).select(db.t2.ALL) #way2 qry1=(db.t1.f12==10) leftjoin=db.t2.on(db.t2.f22==db.t1.id)

[web2py] Re: wiki features/bugs

2010-03-29 Thread Richard
I would like to add a list of web2py hosting providers that people can contribute to. Wiki doesn't seem ready (see above) - any other options? Richard On Mar 25, 11:54 am, Richard richar...@gmail.com wrote: I tried using the wiki and have some feedback: How do I create a new page? The front