Re: [web2py] Re: immediate web2py job opening

2010-02-06 Thread Thadeus Burgess
Google is phasing out IE 6 :) -Thadeus On Wed, Feb 3, 2010 at 3:24 AM, Jason Brower wrote: > Sounds fun, but I wonder, how big is the team and so forth? It may be > helpful for interested people to look into it. > Are you willing to hire those coming out of school? (I have a few if > so...)

[web2py] Re: [CLOSED] Re: Populate field based no other fields

2010-02-06 Thread Adi
I searched for "compute" in the scribd document on the website and didn't find this. It should be included as it is quite helpful. On Feb 5, 11:42 pm, Thadeus Burgess wrote: > Is this not in the book or did I miss it? > > -Thadeus > > > > On Fri, Feb 5, 2010 at 5:34 AM, Adi wrote: > > Awesome, w

[web2py] wrong decisions and backward compatibility

2010-02-06 Thread pihentagy
Hi! Looking into the code of IS_UPPER I realized, that this function does not do, what I expect to do. I thought it only allows strings, which does not have lowercase letters, but it actually converts the string to uppercase. Since web2py promises backwards compatibility, and here IMHO this metho

[web2py] Re: immediate web2py job opening

2010-02-06 Thread villas
On Feb 3, 9:24 am, Jason Brower wrote: > Sounds fun Yes, you can just imagine the banter... "Now you finish off the controllers and views, while I take care of those models!" -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this grou

[web2py] Re: wrong decisions and backward compatibility

2010-02-06 Thread Renato-ES-Brazil
Web3py is an alternative, check this: > When GAE moves to 3.0 and the database drivers for all supported > backends become available we will release something like web3py (TM). > Since we are going to break language backward compatibility that will > also be a good time to include other non-backwa

[web2py] Re: Populate field based no other fields

2010-02-06 Thread mdipierro
You can also use with crud.create() crud.settings.create_onvalidation=lambda form: form.vars.update(field2=form.vars.field1) and crud.update() crud.settings.update_onvalidation=lambda form: form.vars.update(field2=form.vars.field1) or with SQLFORM from.accept(, onvalidation=lambda form: f

Re: [web2py] Re: SQLFORM: string field length, user id->email

2010-02-06 Thread Jonathan Lundell
On Feb 5, 2010, at 8:13 PM, mdipierro wrote: > On Feb 5, 7:53 pm, Jonathan Lundell wrote: >> On Feb 5, 2010, at 4:40 PM, mdipierro wrote: >> >>> On Feb 5, 4:24 pm, Jonathan Lundell wrote: A couple of SQLFORM-related questions. >> 1. I'd like a wider string input field, and I'm not su

[web2py] cancel button

2010-02-06 Thread Jonathan Lundell
I seem to be full of elementary questions this week. I've got a simple SQLFORM to add a row to a database, and I want to have a cancel button along with the submit button. How? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this g

[web2py] web2pyslices.com hits 100 members

2010-02-06 Thread mr.freeze
Thanks to everyone for your contributions and suggestions. -Nathan -- 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...@g

[web2py] Typo in cron..

2010-02-06 Thread Thadeus Burgess
How do these make it into the commit ? Also, why is softcron executing when running on mod_wsgi ? Traceback (most recent call last): [Sat Feb 06 18:54:13 2010] [error] [client] File "gluon/contrib/wsgihooks.py", line 37, in close [Sat Feb 06 18:54:13 2010] [error] [client] self.__callback(s

Re: [web2py] Re: call response.flash = "smoething" from view

2010-02-06 Thread Tomas Pelka
mdipierro wrote: > > > Yea this is it :D thank you Massimo. > > On Feb 5, 8:34 am, Tomas Pelka wrote: >> I was thinking about it a lot and I hope that I could use flash right >> from my form, like >> >> >> >> >> >> But I have no idea how to call flash as js. Because it is typical >> js/aj

[web2py] AutocompleteWidget: experimental, magic, RFC

2010-02-06 Thread mdipierro
People say there is some magic in web2py. Here is some real magic now in trunk that I am sure you have never seen. Caveats: 0) requires latest trunk (bzr 1603, hg 175:e42b559254f6) 1) this is an experiment, not sure it is a good idea 2) this is the first function in web2py that REQUIRES jQuery 3)

[web2py] Re: cancel button

2010-02-06 Thread mdipierro
form[0][-1][1].append(BUTTON(_onclick="")) On Feb 6, 12:09 pm, Jonathan Lundell wrote: > I seem to be full of elementary questions this week. > > I've got a simple SQLFORM to add a row to a database, and I want to have a > cancel button along with the submit button. > > How? -- You receive

[web2py] Re: web2pyslices.com hits 100 members

2010-02-06 Thread mdipierro
wow! congratulations mr.freeze On Feb 6, 12:43 pm, "mr.freeze" wrote: > Thanks to everyone for your contributions and suggestions. > > -Nathan -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegr

[web2py] multi-site architecture

2010-02-06 Thread weheh
How should one architect a web2py site that serves multiple domains with different apps? Should I have one web2py instance with multiple apps, or multiple web2py instances, each with one app? Is routes.py the right way to direct traffic to the right app in the case of one web2py instance? (I know t

Re: [web2py] Re: cancel button

2010-02-06 Thread Jonathan Lundell
On Feb 6, 2010, at 12:38 PM, mdipierro wrote: > form[0][-1][1].append(BUTTON(_onclick="")) Thanks. Ideally, I'd like to return to the form.accepts call in such a way that the accepts return test can recognize the cancelation and then redirect as necessary. Somewhat parallel to testing form

[web2py] Re: call response.flash = "smoething" from view

2010-02-06 Thread Russell
Try this if you want to make yourself a loading gif... http://www.ajaxload.info/ On Feb 6, 6:24 pm, Iceberg wrote: > Elegant and universal! Exactly what I am looking for. Thanks! > > On Feb6, 1:35am, sveinh wrote: > > > If I understand you correctly, you want to indicate to the user that > > i

[web2py] SQLField + custom widget not working validator

2010-02-06 Thread Tomas Pelka
Hi, have a problem with validator in combination with custom widget. in model: def analyze_form_widget(field, value): return INPUT(_destination=field.name, _value=value, requires=field.requires) in controller: def form_factory(*a): return SQLFORM(SQLDB(None).define_table(*a)) def index()

[web2py] Re: SQLField + custom widget not working validator

2010-02-06 Thread mdipierro
I think this: def analyze_form_widget(field, value): return INPUT(_destination=field.name, _value=value,requires=field.requires) should be def analyze_form_widget(field, value): return INPUT(_name=field.name, _value=value,requires=field.requires) On Feb 6, 4:59 pm, Tomas Pelka wrote:

Re: [web2py] Re: cancel button

2010-02-06 Thread Jonathan Lundell
On Feb 6, 2010, at 12:58 PM, Jonathan Lundell wrote: > On Feb 6, 2010, at 12:38 PM, mdipierro wrote: > >> form[0][-1][1].append(BUTTON(_onclick="")) > > Thanks. > > Ideally, I'd like to return to the form.accepts call in such a way that the > accepts return test can recognize the cancelati

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-06 Thread Jon Romero
Some thing happens to me. When I do: db(db.table.id == some_id_that_exists).delete, I get the same count error On Feb 4, 3:16 am, mdipierro wrote: > do you use 2.5 or something else locally? > > On Feb 3, 6:11 pm, Carl wrote: > > > This may be related toGAEupdate_record() has subtle difference >

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-06 Thread Jon Romero
Happens on gae dev environment and on the normal gae server. On Feb 7, 2:18 am, Jon Romero wrote: > Some thing happens to me. When I do: > db(db.table.id == some_id_that_exists).delete, I get the same count > error > > On Feb 4, 3:16 am, mdipierro wrote: > > > do you use 2.5 or something else lo

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-06 Thread Jon Romero
the problem seems to happen when you try to query by the id field and then delete (I could delete when I chose a different field) On Feb 7, 2:18 am, Jon Romero wrote: > Some thing happens to me. When I do: > db(db.table.id == some_id_that_exists).delete, I get the same count > error > > On Feb 4,

[web2py] Why is first element in IS_IN_SET pull-down always blank?

2010-02-06 Thread weheh
In a crud form (or other form) where I have a field declared as a string that requires=IS_IN_SET(['A','B','C']), the first item in the automatically-generated pull-down for that enumerated field is a blank. Why is that, if there is no blank in my set, and especially, since a blank setting on that

Re: [web2py] Why is first element in IS_IN_SET pull-down always blank?

2010-02-06 Thread Jonathan Lundell
On Feb 6, 2010, at 7:53 PM, weheh wrote: > In a crud form (or other form) where I have a field declared as a > string that requires=IS_IN_SET(['A','B','C']), the first item in the > automatically-generated pull-down for that enumerated field is a > blank. > > Why is that, if there is no blank in

[web2py] Re: Why is first element in IS_IN_SET pull-down always blank?

2010-02-06 Thread Iceberg
Slightly off topic: This thread is another good reason to support zero=None by default, discussing here: https://groups.google.com/group/web2py/msg/4e6fc1b12714a14b :) On Feb7, 12:06pm, Jonathan Lundell wrote: > On Feb 6, 2010, at 7:53 PM, weheh wrote: > > > In a crud form (or other form) where

[web2py] Re: cancel button

2010-02-06 Thread Iceberg
On Feb7, 8:01am, Jonathan Lundell wrote: > On Feb 6, 2010, at 12:58 PM, Jonathan Lundell wrote: > > > On Feb 6, 2010, at 12:38 PM, mdipierro wrote: > > >> form[0][-1][1].append(BUTTON(_onclick="")) > > > Thanks. > > > Ideally, I'd like to return to the form.accepts call in such a way that the

[web2py] Re: wrong decisions and backward compatibility

2010-02-06 Thread Iceberg
@Pihentagy: Besides, the current IS_UPPER() (and IS_LOWER()) is not that bad, IMHO. What is the real difference between alarm end user to change his input into upper case, or just silently change his input into upper case? To say the least, we can really change IS_UPPER() to just warning, and per

Re: [web2py] AutocompleteWidget: experimental, magic, RFC

2010-02-06 Thread Jason Brower
I have my current autocomplete but it doesn't do öäå in a search. Does this handle that? Best Regards, Jason On Sat, 2010-02-06 at 12:30 -0800, mdipierro wrote: > People say there is some magic in web2py. > Here is some real magic now in trunk that I am sure you have never > seen. > > Caveats: >

[web2py] Cron errors on Windows

2010-02-06 Thread mr.freeze
I'm getting this when running the hg tip. web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2010 Version 1.74.11 (2010-02-03 10:53:34) Database drivers available: SQLite3, MySQL Starting cron... please visit: http://127.0.0.1:8000 use "kill -SIGTERM 5264" to shut

[web2py] need help with routes regex

2010-02-06 Thread weheh
I'm serving up a bunch of pages via a crm-like function that makes for url's that look like this: http://mydomain.com/myapp/page/index/page_name and I want to reduce this to: http://mydomain.com/page_name Anybody know a simple routes.py that'll do that? I've tried a bunch of things but I'm stum

[web2py] Re: cancel button

2010-02-06 Thread weheh
Is it reasonable to expect this to work on crud forms, as well? I would think so, but I'm having difficulty getting it to work. -- 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 unsu

[web2py] Re: Why is first element in IS_IN_SET pull-down always blank?

2010-02-06 Thread weheh
Thanks, Iceberg. Sorry, I utterly missed that thread. -- 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.co

[web2py] Re: immediate web2py job opening

2010-02-06 Thread weheh
@villas: lol. @ Jason B: the team will be as small as possible so there will be more models to go around. On Feb 6, 7:38 am, villas wrote: > On Feb 3, 9:24 am, Jason Brower wrote: > > > Sounds fun > > Yes, you can just imagine the banter... > "Now you finish off the controllers and views, while

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-06 Thread mdipierro
I do not know that. I am still playing with it... On Feb 6, 11:40 pm, Jason Brower wrote: > I have my current autocomplete but it doesn't do öäå in a search.  Does > this handle that? > Best Regards, > Jason > > On Sat, 2010-02-06 at 12:30 -0800, mdipierro wrote: > > People say there is some magi

[web2py] function that lists all members of a group

2010-02-06 Thread weheh
Is there a built-in function that will list all members of a group, or do I need to write a query to do that? Seems like such a function should exist, but I can't find it in the doc. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to thi

[web2py] Re: Why is first element in IS_IN_SET pull-down always blank? [SOLVED]

2010-02-06 Thread weheh
Thanks, Iceberg. Sorry, I utterly missed that thread. -- 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.co

[web2py] Re: Cron errors on Windows

2010-02-06 Thread mdipierro
I will fix it in trunk On Feb 6, 11:58 pm, "mr.freeze" wrote: > I'm getting this when running the hg tip. > > web2py Enterprise Web Framework > Created by Massimo Di Pierro, Copyright 2007-2010 > Version 1.74.11 (2010-02-03 10:53:34) > Database drivers available: SQLite3, MySQL > Starting cron...

[web2py] Re: need help with routes regex

2010-02-06 Thread mdipierro
This may do it routes_in=[('/(?P\w+)','/myapp/page/$anything')] On Feb 7, 12:05 am, weheh wrote: > I'm serving up a bunch of pages via a crm-like function that makes for > url's that look like this: > > http://mydomain.com/myapp/page/index/page_name > > and I want to reduce this to: > > http://m

Re: [web2py] Re: need help with routes regex

2010-02-06 Thread Thadeus Burgess
This works, unless you have more than one controller. I found the following slice has been updated, perhaps this could be adapted. http://www.web2pyslices.com/main/slices/take_slice/41 The downside is that it still requires adding each controller that you create to be added to the list. Is ther

Re: [web2py] Re: wrong decisions and backward compatibility

2010-02-06 Thread Thadeus Burgess
It will break backwards compatibility. I have apps that rely on the functionality of IS_UPPER applying .upper() to the incoming variables. Anything that requires me to edit a single line of code on my app to just upgrade web2py breaks backwards compatibility, unless it was a bug to begin with. -T

Re: [web2py] Re: immediate web2py job opening

2010-02-06 Thread Jason Brower
I don't have to much interest in them. :D But I will pass the word around. How long is the contract for? I can find someone here that may be able to go to the states to work. BR, Jason Brower On Sat, 2010-02-06 at 22:26 -0800, weheh wrote: > @villas: lol. > @ Jason B: the team will be as small