[web2py:27923] Re: '@' in url args

2009-08-03 Thread mdipierro
There is a possible fix for this in trunk. Please give it a try. On Aug 3, 9:11 pm, Kevin Butler wrote: > I'd like to use @ in the url args in a web2py application. > > For example: > > http://hostname/app/file/user/usern...@host.domain > > However, web2py yields "Invalid request" whenever I inc

[web2py:27922] Re: problem with web2py, gae, and taskqueue

2009-08-03 Thread mdipierro
Dan, can you post an AlterEgo entry about this? It would be useful to other users. Email me if you need the edit code. Massimo On Aug 4, 12:03 am, Dan wrote: > Hi David- > Yes, I'm using GAE's taskqueue with web2py, and it works in both the > dev and production environments. Note that in the d

[web2py:27921] Re: problem with web2py, gae, and taskqueue

2009-08-03 Thread Dan
Hi David- Yes, I'm using GAE's taskqueue with web2py, and it works in both the dev and production environments. Note that in the dev environment, the tasks do not run automatically - you will need to manually trigger them using the http://localhost:8080/_ah/admin web console. I wasn't able to get

[web2py:27920] Re: hidden fields

2009-08-03 Thread mdipierro
Fran, you are right. This is not a bug. Handling hidden fields otherwise would result in a security vulenrability. On can also do form=SQLFORM() form.vars.hidden_field_name=request.vars_hidden_field_name if form.accepts() On Aug 3, 4:59 am, Fran wrote: > On Aug 2, 9:19 pm, mattynoce w

[web2py:27919] Re: Fwd: My thoughts on web2py

2009-08-03 Thread mdipierro
A minor corrections. web2py is not 3 years old. It will be 2 years old on October 1st, 2009. We are already working on fixing many of these issues although I should point out none of these issues so far has manifested itself as a bug, as far as I know. People should submit a bug report on the goog

[web2py:27918] Re: Combo problem

2009-08-03 Thread mdipierro
I suggest change the getproduct to return JSON and change the view to use the .getJSON instead of ajax function. http://docs.jquery.com/Ajax/jQuery.getJSON So you can have an action triggered when data is received. Massimo On Aug 3, 11:13 am, Sophie wrote: > Hi > > i have a problem with a com

[web2py:27917] Re: Google seems to know Web2Py

2009-08-03 Thread mdipierro
Can you show us an example? On Aug 3, 9:01 am, dlypka wrote: > PolyModel enables true polymorphic behavior when querying objects > whose classes are derived from other classes. > So, in the retrieved instance, all fields of all classes at and above > the target class are available to the retriev

[web2py:27916] Re: random_password and IS_STRONG

2009-08-03 Thread Jonathan Lundell
On Aug 3, 2009, at 6:31 PM, mr.freeze wrote: > >> I mean: use it, but also use something like your hack (excuse the >> expression) for turning it off specifically for login requests, and >> leaving it enabled for everything else. > > No excuse necessary...It is a hack! I should have considered w

[web2py:27915] '@' in url args

2009-08-03 Thread Kevin Butler
I'd like to use @ in the url args in a web2py application. For example: http://hostname/app/file/user/usern...@host.domain However, web2py yields "Invalid request" whenever I include an @ in the URL. I expect that some manipulation of regex_url in main.py would allow this, but I haven't found

[web2py:27914] Re: random_password and IS_STRONG

2009-08-03 Thread mr.freeze
> I mean: use it, but also use something like your hack (excuse the > expression) for turning it off specifically for login requests, and > leaving it enabled for everything else. No excuse necessary...It is a hack! I should have considered when writing IS_STRONG. What do you think about a bypa

[web2py:27913] Re: file downloading problem

2009-08-03 Thread 陶艺夫
When I upgraded web2py to next version, the problem's gone and I just got the message saying "can not access the password file". Then I created a parameters_80.py by start web2py with -a option once, and all is fine. There must had been something wrong around there. But for it's gone, I never can

[web2py:27912] Re: random_password and IS_STRONG

2009-08-03 Thread Jonathan Lundell
On Aug 3, 2009, at 5:51 PM, mr.freeze wrote: > >> Yes, I was going to point that out. But if you turn off IS_STRONG for >> login, then it doesn't matter, does it? > > Correct. IS_STRONG is not a default validator for the password field > (only CRYPT) so if you don't have complexity requirements,

[web2py:27911] Re: random_password and IS_STRONG

2009-08-03 Thread mr.freeze
> Yes, I was going to point that out. But if you turn off IS_STRONG for > login, then it doesn't matter, does it? Correct. IS_STRONG is not a default validator for the password field (only CRYPT) so if you don't have complexity requirements, just avoid using it. > There's another reason to turn

[web2py:27910] Re: random_password and IS_STRONG

2009-08-03 Thread Jonathan Lundell
On Aug 3, 2009, at 5:33 PM, mr.freeze wrote: > Just a quick message to point out that if you use IS_STRONG, you must > override Auth's random_password function to match its complexity Yes, I was going to point that out. But if you turn off IS_STRONG for login, then it doesn't matter, does it?

[web2py:27909] random_password and IS_STRONG

2009-08-03 Thread mr.freeze
Just a quick message to point out that if you use IS_STRONG, you must override Auth's random_password function to match it's complexity or users won't be able to login after resetting their password. Here's what I did in my model: class MyAuth(Auth): def random_password(self): import

[web2py:27908] Re: selective IS_STRONG

2009-08-03 Thread mr.freeze
Not sure if it's the best way but I do this in my model: t = auth.settings.table_user if "login" in request.args: t.password.requires = [CRYPT()] else: t.password.requires = [IS_STRONG(special=None),CRYPT()] On Aug 3, 6:30 pm, Jonathan Lundell wrote: > Suppose I wanted to enforce IS_ST

[web2py:27907] selective IS_STRONG

2009-08-03 Thread Jonathan Lundell
Suppose I wanted to enforce IS_STRONG when creating, but not checking, a password. (Which is how it should work anyway, according to me.) Can I do that without overriding the Auth login and registration functions? --~--~-~--~~~---~--~~ You received this message

[web2py:27904] Re: file downloading problem

2009-08-03 Thread Alex Fanjul
Could you solve the "infinite error ticket loop"? It happened to me and I had to "reinstall" web2py. after that It worked again... Alex F El 01/08/2009 7:50, 陶艺夫 escribió: > Now there are some problems I can't figure out why. > > My application has been doing well under binary web2py with cherryp

[web2py:27906] Re: hidden fields

2009-08-03 Thread mattynoce
hi, and thanks for the reply. you gave some good options. __ i'm hesitant to go to the jquery method unless it's a last resort, because resorting to javascript here seems like a workaround. __ i tried doing the simplest, which i figured was removing the hidden field and putting this: request.vars[

[web2py:27905] Re: Fwd: My thoughts on web2py

2009-08-03 Thread JohnMc
I take the long view on all of this. Tools/Systems are a process not a end. I point that out only because from time to time I will get a notice that a bug has been found in C/C++ and the required patches or replacement code to use. C is nearly as old as dirt (1972 for me) and still has fixes and w

[web2py:27903] Re: Fwd: My thoughts on web2py

2009-08-03 Thread Pynthon
Indeed, I think its also a good idea or post this thing son the web2py developers group. Maybe new users see this and think "Hmmm..." and that is now what we want (well I think that). And indeed Armin is a good guy! On 3 aug, 22:13, waTR wrote: > Hi all, > > What do you guys think of, at this ti

[web2py:27902] Re: Fwd: My thoughts on web2py

2009-08-03 Thread waTR
Hi all, What do you guys think of, at this time, filing a few of these issues as ISSUES on the google code page for this project. Then, start a debate on each individual issue separately. They have a great platform for this on google code. Also, it keeps the discussion focused, as right now there

[web2py:27901] Re: r1045 breaks some upload fields

2009-08-03 Thread Jose
On 3 ago, 15:49, Fran wrote: > reverting the changed line 809 back to: > if f == '': > > (from the current 'if not f:') > > fixes it - patch sent to Massimo... > > F Thank you, it works well. Do not be if it breaks anything in another place. Regards Jose --~--~-~--~~~--

[web2py:27900] Re: r1045 breaks some upload fields

2009-08-03 Thread Fran
On Aug 3, 4:33 pm, Jose wrote: > I have just tried this in Windows XP(r1153) + python 2.5.x > db.define_table('unatabla', >     Field('nombre'), >     Field('imagen', 'upload'), > ) > The following mistake takes is produced when I do submit: > Error traceback >   File "E:\web2py2\gluon\sqlhtml.py

[web2py:27899] Re: Fwd: My thoughts on web2py

2009-08-03 Thread Pynthon
Thanks Yarko, indeed because I don't know about it and Armin (Massimo too and a lot of more guys here) looks like an advanced programmer I thought maybe he is right and thats the reason why I'm kinda scared. On 3 aug, 18:59, Yarko Tymciurak wrote: > Pynthon - > > Remember that just recently you

[web2py:27898] Re: Fwd: My thoughts on web2py

2009-08-03 Thread Yarko Tymciurak
Pynthon - Remember that just recently you mentioned you have been 3 months since you looked at Python, and you did not remember lists and dict's... It is easy to have doubts out of fear, but remember to watch the discussion, and see what develops, rather than assume everything raised "must be a p

[web2py:27896] Combo problem

2009-08-03 Thread Sophie
Hi i have a problem with a combo. I have 3 tables "productType","product" and "sales". So when i select a "productType" it appears a combo with the products of that type. My problem is when i want to select a product and i want the sales of that product. Here is my code: Controller: def index(

[web2py:27897] Re: Fwd: My thoughts on web2py

2009-08-03 Thread Armin Ronacher
Hi, > True. but I would not call it a race condition. We timestamp > everything with the time when a request arrives, not when it is > processed, unless specified otherwise (datetime.now() instead of > request.now) True. But that does not make it a better idea. Also, datetime.now() should be co

[web2py:27895] Re: r1045 breaks some upload fields

2009-08-03 Thread Jose
On 3 ago, 12:16, Fran wrote: > I guess tha's an SVN ref? Yes, it is svn. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubs

[web2py:27894] Re: r1045 breaks some upload fields

2009-08-03 Thread Jose
On 3 ago, 12:16, Fran wrote: > On Aug 3, 2:51 pm, Jose wrote: > > > On 2 ago, 21:25, Fran wrote: > > > Really bizarre this as my simple testcases work fine. > > > However r1044 works with my app whereas 1045 doesn't > > I have the version 1.65.9 (r1153). > > I guess tha's an SVN ref? > I alwa

[web2py:27893] Re: ldap-auth issue

2009-08-03 Thread Fran
On Aug 3, 3:06 pm, Johann Spies wrote: > I want to do have a website on which I can register a few usernames. > Only they may authentiicate and they must authenticate against a > central ldap server. > auth.settings.login_methods=[ldap_auth(server='stbldap01.sun.ac.za',base_dn='ou=users,O=SU', >

[web2py:27892] Re: Fwd: My thoughts on web2py

2009-08-03 Thread Pynthon
If I could I would help... On 3 aug, 17:13, Álvaro Justen [Turicas] wrote: > On Mon, Aug 3, 2009 at 11:09, Pynthon Pynthon wrote: > > Indeed, but I still hope that Massimo can fix this stuff :P. > > Think in community: WE can change this (including you!). > Massimo have done a lot of work in web

[web2py:27891] Re: r1045 breaks some upload fields

2009-08-03 Thread Fran
On Aug 3, 2:51 pm, Jose wrote: > On 2 ago, 21:25, Fran wrote: > > Really bizarre this as my simple testcases work fine. > > However r1044 works with my app whereas 1045 doesn't > I have the version 1.65.9 (r1153). I guess tha's an SVN ref? I always quote the master Bzr revisions (which is up to

[web2py:27890] Re: Fwd: My thoughts on web2py

2009-08-03 Thread Álvaro Justen [Turicas]
On Mon, Aug 3, 2009 at 11:09, Pynthon Pynthon wrote: > Indeed, but I still hope that Massimo can fix this stuff :P. Think in community: WE can change this (including you!). Massimo have done a lot of work in web2py and I think users need to help more this project. > 2009/8/3 suiato >> >> I foun

[web2py:27889] Sharing Auth user table between two registration processes

2009-08-03 Thread Carl
hi Has anyone had a simlilar requirement and used a different/better approach that that described below? I have 2 registration forms to cover my 2 user groups. Each is prompted to register with a different subset of Auth User fields. I've extended Auth to include the additional fields (e.g., Co

[web2py:27888] Re: Hosting and Future

2009-08-03 Thread weheh
I believe that any host that handles Plone/Zope would probably be a good option for you for supporting web2py. There are a few of them out there that cost a few tens-of-bucks a year. You'll have to hunt around. Search for "Zope hosting" or "Plone hosting". --~--~-~--~~~

[web2py:27887] Re: Fwd: My thoughts on web2py

2009-08-03 Thread Pynthon Pynthon
Indeed, but I still hope that Massimo can fix this stuff :P. 2009/8/3 suiato > > I found this thread encouraging. It shows Massimo and members here are > open to different views/opinions while maintaining integrity. That's > essential for open-source software to evolve. E.g., who thought in > t

[web2py:27886] ldap-auth issue

2009-08-03 Thread Johann Spies
I want to do have a website on which I can register a few usernames. Only they may authentiicate and they must authenticate against a central ldap server. At the moment I have the following in db.py: if request.env.web2py_runtime_gae:# if running on Google App Engine db = DAL('

[web2py:27885] Re: Fwd: My thoughts on web2py

2009-08-03 Thread suiato
I found this thread encouraging. It shows Massimo and members here are open to different views/opinions while maintaining integrity. That's essential for open-source software to evolve. E.g., who thought in the early 1990's Linux was going to be as serious a software as we see today? Cheers, Ter

[web2py:27884] Re: Google seems to know Web2Py

2009-08-03 Thread dlypka
PolyModel enables true polymorphic behavior when querying objects whose classes are derived from other classes. So, in the retrieved instance, all fields of all classes at and above the target class are available to the retrieved instance. When PolyModel is not used as the base class, then the qu

[web2py:27883] Re: r1045 breaks some upload fields

2009-08-03 Thread Jose
On 2 ago, 21:25, Fran wrote: > Really bizarre this as my simple testcases work fine. > However r1044 works with my app whereas 1045 doesn't Fran I have the version 1.65.9 (r1153). Do not be from when it is happening, but yesterday I noticed that the images are not uploaded. The only changes

[web2py:27882] Re: Fwd: My thoughts on web2py

2009-08-03 Thread Pynthon
True, hopefully Massimo can make the inner of W2P nicer. On 3 aug, 15:26, Jason Brower wrote: > I am happy for the efforts being made in web2py.  I think we should have > a better way to file a bug or request a feature.  But after buying the > book, I am very happy documentation wise. > > On Mon

[web2py:27881] Re: Fwd: My thoughts on web2py

2009-08-03 Thread Jason Brower
I am happy for the efforts being made in web2py. I think we should have a better way to file a bug or request a feature. But after buying the book, I am very happy documentation wise. On Mon, 2009-08-03 at 06:18 -0700, Pynthon wrote: > I'm reading this topic for a time and it really makes me d

[web2py:27880] Re: Fwd: My thoughts on web2py

2009-08-03 Thread Pynthon
I'm reading this topic for a time and it really makes me doubt about web2py =[. Hopefully Massimo can fix this =]. On 3 aug, 02:46, Bottiger wrote: > I haven't had time to verify the other findings, but there are > definitely file handle leakages. I can never delete an application if > I just vi

[web2py:27879] Re: hidden fields

2009-08-03 Thread Fran
On Aug 2, 9:19 pm, mattynoce wrote: > hi, i have a question about hidden fields. > i have a form that looks like this: > fields=['f1','f2','f3'...] > hidden=dict(fieldname=val) > form = SQLFORM(db.table, fields=fields, showid=False, hidden=hidden) > in the view it's simply {{=form}} > when i look

[web2py:27878] Re: How to change how IS_IN_DB() is rendered?

2009-08-03 Thread Fran
On Aug 3, 9:53 am, Fran wrote: > This should do what you want: > crud.create(db.table, onvalidation=lambda: form: myvalidator(form)) > onvalidation callback runs before DB I/O > (onaccept callback is after DB I/O) Actually, I see that SQLFORM's accepts() method includes an onvalidation callback

[web2py:27877] Re: How to change how IS_IN_DB() is rendered?

2009-08-03 Thread Fran
On Aug 2, 11:32 pm, Alastair Medford wrote: > Alright, this quetion seems like it should have an easy answer and I'm > just missing something. Currently IS_IN_DB is rendered as a drop down > box. What I would like to do is have the user be able to type in an > identification number (which as you