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 wrote: > 109,000 from Bulgaria > > > On Mar 28, 3:23 am, mdipierro wrote: > > When you google "web2py" how may hits do you get? from which country? > > > > When I do it from the US

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

[web2py] Re: googling web2py

2010-03-29 Thread guruyaya
109K in ISR On Mar 28, 4:23 am, mdipierro 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 the number was abo

[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 = db(db.table.field.belongs(animals)).se

[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=fr&source=hp&q=web2py&meta=&aq=f&aqi=g3&aql=&oq=&gs_rfai=&fp=73cab96ac3bd1594 Google Site : http://www.google.ca/ Languag

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

[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 wrote: > Hi, I've a problem

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

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 4

[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 = SQ

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

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

[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 wrote: > ---model file is like this - > db.define_table('options_cont

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

[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 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 description of

[web2py] Re: zengarden anybody?

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 8:57 am, Yarko Tymciurak 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 new, bleeding edge ele

[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"),

[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 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/ paste

[web2py] Re: how to troubleshoot admin errors?

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 9:27 am, ciastek 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 setup-web2py-ubu

[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 wrote: > I get the foll

[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 wrote: > On Mar 29, 8:33 am, hywang wrote: > > > ---model file is like this - > > db.define_table('options_contain_chinease',

[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 wrote: > On Mar 29, 8:57 am, Yarko Tymciurak > wrote: > > > Careful - > > > HTML5 is behind schedule, and expected to reach standard stage in 2022 > > (?!)... > >

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

[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 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 Chinese, from your (pasted) examp

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 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 great > different gra

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, Icebe

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 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 flag, leave the > defa

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 environmen

[web2py] Re: zengarden anybody?

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 1:00 pm, Thadeus Burgess 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 > > -Thadeus > > On

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 wrote: > > You get error tickets?  Really?!   ...     ;-) > > But, actually - it would be nice to get private tweets from sites you > manage w/ links you

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

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, M

[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 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 some past a

[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 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 hole, > since I have t

[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" wrote: > 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

[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 wrote: > With this code works, but I don't like this: > > if type(animals) == str: >   res = db(db.tabl

[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 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 wrote: > > > Now th

[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 wrote: > It works for me. > > -Thadeus > > On Mon, Mar 29, 2010 at 2:03 PM, Feng wrote: > > Hi, I started to learn and use

[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 wrote: > oh, my IP now is 98.111.83.0 > so far, I still can't reachwww.web2py.com > > Does anybody kno

[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 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 wrote: > > > It works for me. > > > -

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

[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 wrote: > I think I unblocked it. Please check. > > On Mar 29, 5:55 pm, Feng 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? > >

[web2py] Re: webserver slow, misreported

2010-03-29 Thread Yarko Tymciurak
On Mar 29, 7:59 pm, Michael Toomim 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 method of l

[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 wrote: > On Mar 29, 10:54 am, Yarko Tymciurak > wrote: > > > anyway, I am sure this is about encoding to unicode - someone who has > > done this will hopefully add comments. > > For example, looking > athttp://docs.python.org/lib

[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) rows=db(qry1).select(db.t2.ALL

[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 wrote: > I tried using the wiki and have some feedback: > > How do I create a new page? The front page suggests goi

[web2py] Re: JqGrid Plugin

2010-03-29 Thread parroit
Interesting, thank you. I will add autoencode parameters to the grid construnctor. I saw that setting the parameter to true will enable the encoding for all columns of the grid. Maybe, if we want to have some column with html data, it's better to encode the data in w2p? Massimo, you know an easy w