[web2py:15496] SOLVED: SSL and session modification

2009-01-26 Thread voltron
Sorry for the post. I had 2 instances of web2 running, FCGI and Proxy Reverse accessing the same folders. This must have caused the strange deletion and modification of the session variable. On Jan 26, 5:12 pm, mdipierro wrote: > no > > On Jan 26, 8:24 am, voltron wrote: > > > But not  that it

[web2py:15495] Some thoughts on authentication and its implementation

2009-01-26 Thread billf
1. The idea of bundling Mail, Auth and Crud in tools.py seems shortsighted. Mail isnt specific to either of the other classes. I can use Auth without Crud. How many tools will be added to tools.py before it becomes unmanageable? and then what will you call the overflow file? tools2.py? 2. All us

[web2py:15494] Re: Is there anyway to have multiple forms on a page without explicitly defining them in the controller?

2009-01-26 Thread mdipierro
because {{=i.id}} $('#myform{{=i.id}}').submit(function() { ajax('{{=URL(r=request,f='new_post')}}',['id', 'test_case', 'functionality', 'task', 'expected_result', 'test_status', 'regression', 'comments', 'affects_clients', 'client_acceptance_test'],'target'); should be
[web2py:15493] Re: Restricted left outer join
this should work db().select(db.item.name,db.sales.price,left=db.sales.on ((db.sales.name==db.item.name)&(db.user.name=='bob')) Massimo On Jan 27, 12:06 am, Baron wrote: > hello, I'm having difficulty making restrictions to a left outer > join. > > I have these tables: > Item: name > Sale: nam

[web2py:15492] Re: Is there anyway to have multiple forms on a page without explicitly defining them in the controller?

Yea, the formatting gets pretty tore up on here when I post for some reason and I haven't been doing it for very long so my code is pretty ugly to start with. The code you are looking at will create multiple forms; however, request.vars is the same no matter which one I submit. It always submits

[web2py:15491] Restricted left outer join

hello, I'm having difficulty making restrictions to a left outer join. I have these tables: Item: name Sale: name, user, price I want to select all the items with the prices of any sales for the current user. For example, given this data: Items: apple banana orange Sales: apple,bob,1 apple,bil

[web2py:15490] Does a web2py app have the equivalent of main()?

Basically, is there any code that receives control when an application first starts that allows some initialisation/configuration that doesn't have to run after every request? I believe code could be put in db.py but that is not ideal conceptually - and would run on every request? I can see that

[web2py:15489] Re: Customize form return by T2

In T2 a table uses the attribute exposes to set the fields that should be in crud create/update forms. In Auth we will use a field attribute writable for the same purpose. and readable for the select/read forms. On Jan 26, 8:05 pm, Yannick wrote: > Oh perfect Thanks Massimo, I was able to custom

[web2py:15488] Re: Is there anyway to have multiple forms on a page without explicitly defining them in the controller?

didn't you just do it? What is the problem. The code is hard to read. Massimo On Jan 26, 7:52 pm, jlegler wrote: > The reason I am asking is because I want to generate a bunch of forms > based on data in the database and have them all show up on the screen > at one time and be updateable.  I ca

[web2py:15487] Re: Authentication and better Crud

Not necessarily. You can do def user(): return dict(form=auth()) or def login(): return dict(form=auth.login()) def register(): return dict(form=auth.register()) In the second case the syntax is similar to T2. Massimo On Jan 26, 4:26 pm, Fran wrote: > On Jan 23, 7:10 pm, mdipierro wr

[web2py:15486] Re: Customize form return by T2

Oh perfect Thanks Massimo, I was able to customize it the way i wanted... But I dont understand this part of your code: And what do you meant here? "in gluon.tools.Auth this is going away and you will use..." " db.table.field.writable=False db.table.field.readable=True " Wha

[web2py:15485] Is there anyway to have multiple forms on a page without explicitly defining them in the controller?

The reason I am asking is because I want to generate a bunch of forms based on data in the database and have them all show up on the screen at one time and be updateable. I can get all of the forms to show up on the screen and I can fill them out; however, they all make the first one submit. Is

[web2py:15484] Re: Demo of plugin system

I can see where you are coming from - in this case the "plugin" is one step removed from the python/db driver, e.g. pyodbc, level. I think of sql.py as providing a level of abstraction and the plugins implementing it appropriately. As an aside, the db plugin interface of the demo should ideally b

[web2py:15483] Re: Session variable

can you explain following in more depth? "The view contains a menu, when the visitor clicks one of the menu items one of the other functions should be exposed. The problem is passing on the id." my guess is you would like to have following: in controlller function: int(request.args[-1])

[web2py:15482] Re: Authentication and better Crud

On Jan 23, 7:10 pm, mdipierro wrote: > I have a preliminary version of inclusion if T2 functionality into > web2py core. I am not yet promising backward compatibility here. The > module name many change. For now it is in trunk as gluon/tools.py I just started looking at this...porting my app to

[web2py:15481] Re: latest trunk

mine is from: svn co http://web2py.googlecode.com/svn/trunk/ web2py -wj On Mon, Jan 26, 2009 at 2:25 PM, Fran wrote: > > On Jan 26, 8:37 pm, Wes James wrote: >> I am looking in auth now in the utils.py (did you say it was now >> tools.py - trunk does not reflect that) > > It's tools.py for me

[web2py:15480] Re: Demo of plugin system

Thank you Bill. I will take a look. This is very interesting and probably we should have something like this but to clarify, you use the term plugin in a very different context than I do. I may be wrong but what you call a plugin is what I would call a driver. This may be the cause of our apparen

[web2py:15479] Re: Session variable

Use the new generic.html to explore what is in the session On Jan 26, 2:38 pm, annet wrote: > In my application I have a controller with a number of functions. The > first function gets an id from request.vars and uses it as a parameter > in several queries, the result sets are returned in dicti

[web2py:15478] Re: latest trunk

On Jan 26, 8:37 pm, Wes James wrote: > I am looking in auth now in the utils.py (did you say it was now > tools.py - trunk does not reflect that) It's tools.py for me. I download from launchpad via Bzr: http://bazaar.launchpad.net/~mdipierro/web2py/devel/annotate/head%3A/gluon/tools.py F --~--

[web2py:15477] Demo of plugin system

I have created a new branch on launchpad under ~billferrett/web2py/ plugins. The purpose is to demo an approach to using plugins to provide functionality to the web2py core. I needed an example area to apply the idea to so I have taken sql.py and moved all the db-engine specific code (and some g

[web2py:15476] register

in def register shouldn't subject=self.messages.verify_email_message be subject=self.messages.verify_email_subject -wj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to t

[web2py:15475] Session variable

In my application I have a controller with a number of functions. The first function gets an id from request.vars and uses it as a parameter in several queries, the result sets are returned in dictionaries. When I expose the function, the view consists of elements in which the contents of the dic

[web2py:15474] Re: latest trunk

I am looking in auth now in the utils.py (did you say it was now tools.py - trunk does not reflect that) and I see all the dev veriables. thx -wj On Mon, Jan 26, 2009 at 1:33 PM, mdipierro wrote: > > This is the stuff I am polishing right now. If you have comments > please let me know. > When

[web2py:15473] Re: latest trunk

This is the stuff I am polishing right now. If you have comments please let me know. When done I will post 1.56. Massimo On Jan 26, 1:57 pm, Wes James wrote: > Yes, just debugging I noticed that in def register(self): that > self.messages.verify_email_message does not exist. > > -wj > > On Mon

[web2py:15472] Re: latest trunk

Yes, just debugging I noticed that in def register(self): that self.messages.verify_email_message does not exist. -wj On Mon, Jan 26, 2009 at 12:45 PM, mdipierro wrote: > > That is because the text of the email is incomplete and needs to > filled up by the programmer. > > You want to visit >

[web2py:15471] Re: latest trunk

That is because the text of the email is incomplete and needs to filled up by the programmer. You want to visit http///[app]/default/[action]/verify?key=90a28ebe-41c2-41a7-854c- a489230191f3 Massimo On Jan 26, 1:40 pm, Wes James wrote: > I am now: > > I this commented completely out: > >

[web2py:15470] Re: latest trunk

I am now: I this commented completely out: mail.settings.login='' and I had: mail.settings.server='mail.server' but then worked with: mail.settings.server='mail.server:25' if mail.settings.login does not exist then mail.settings.login='' and then mail.settings.server+':25' if ':' not in m

[web2py:15469] Re: do not use delete_uploads

why? because del db.table[id] would not allow passing parameters to such as delete_uploads. Moreover because there was duplication of feature in sqlhtml.py and sql.py Massimo On Jan 26, 1:18 pm, mdipierro wrote: > Do not use the new experimental feature delete_uploads because it is > going a

[web2py:15468] do not use delete_uploads

Do not use the new experimental feature delete_uploads because it is going away in favor of db.table.field.autodelete=True which will automatically take care of deleting uploaded file in all situations in a more appropriate way. This in trunk now so please test it. This breaks T2 and T3 until a

[web2py:15467] Re: latest trunk

Did you get the verification email? Did you click on the link therein to activate the account? To enable the account manually: db(auth.settings.user_table.id>0).update(registration_key='') Massimo On Jan 26, 1:01 pm, "compte...@gmail.com" wrote: > I changed app name from 0 (zero) to z and it w

[web2py:15466] Re: latest trunk

I changed app name from 0 (zero) to z and it works. But when I do the first registration, I keep getting "Invalid email" -wj On Jan 26, 11:15 am, Wes James wrote: > Massimo, > > I'm trying the new stuff you have in web2py... > > I had to change from: > > from gluon.tools import Mail, Auth, Cru

[web2py:15465] latest trunk

Massimo, I'm trying the new stuff you have in web2py... I had to change from: from gluon.tools import Mail, Auth, Crud to this: from gluon.utils import Mail, Auth, Crud to this line since tools did not work. I see that there is no tools in gluon dir but utils.py still in db.py comments: a

[web2py:15464] Re: Access record id on update-form

yes. this is a bug in trunk. will fix it tonight. Massimo On Jan 26, 8:13 am, mdipierro wrote: > which version? trunk? > > On Jan 26, 6:03 am, notabene wrote: > > > Problem trying to access record id on update-form > > > form=SQLFORM(db.arr,rows[0],fields=fields) > > if form.accepts(request.va

[web2py:15463] Re: web2py roadmap

correction there is one known bug in 1.55.2. It has been reported by one user that CSV export//import fails in some cases. We are working on this but we have not yet been able to reproduce the bahvior. Massimo On Jan 25, 7:19 am, mdipierro wrote: > Tickets can be posted > onhttp://code.go

[web2py:15462] Re: SSL and session modification

no On Jan 26, 8:24 am, voltron wrote: > But not that it would overwrite or modify an existing variable/Key > would it? > > On Jan 26, 3:19 pm, mdipierro wrote: > > > it depends. > > > all forms change session, the presence of session.flash changes > > session. > > > Massimo > > > On Jan 26, 6:

[web2py:15461] Re: Modules and plugins

Hello Massimo: Thank you for all your help!!! I'll make an application to test web2py!!! Have a great day!!! Best Regards, Victor. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To

[web2py:15460] Re: using crud.create results in a redirect redirect('../select/%s' % table)

Thanks for the quick response. On Jan 26, 6:13 am, mdipierro wrote: > This is under testing. Will go away. > > Massimo > > On Jan 26, 1:02 am, jlegler wrote: > > > I am trying to use the new t2 functionality built into web2py and > > having some odd problems.  I am not sure why this is happenin

[web2py:15459] Re: getting t2 to install on windows

As Massimo pointed out, the t2 manual shows where to get t2: http://mdp.cti.depaul.edu/examples/static/web2py.app.plugin_t2.tar NOTE: web2py installation works with tar files; If you get a copy from bitbucket, then you will want to get one of the 2 compressed tar versions, and uncompress befor

[web2py:15458] Re: SSL and session modification

But not that it would overwrite or modify an existing variable/Key would it? On Jan 26, 3:19 pm, mdipierro wrote: > it depends. > > all forms change session, the presence of session.flash changes > session. > > Massimo > > On Jan 26, 6:34 am, voltron wrote: > > > Maybe a naive question; does r

[web2py:15457] Re: SSL and session modification

it depends. all forms change session, the presence of session.flash changes session. Massimo On Jan 26, 6:34 am, voltron wrote: > Maybe a naive question; does requesting a page withh SSL, create or > modify the existing session in some way? I am trying to track down a > bug that has been evadi

[web2py:15456] Re: using crud.create results in a redirect redirect('../select/%s' % table)

This is under testing. Will go away. Massimo On Jan 26, 1:02 am, jlegler wrote: > I am trying to use the new t2 functionality built into web2py and > having some odd problems.  I am not sure why this is happening but > using crud.create results in a redirect to an invalid function.  What > case

[web2py:15455] Re: Access record id on update-form

which version? trunk? On Jan 26, 6:03 am, notabene wrote: > Problem trying to access record id on update-form > > form=SQLFORM(db.arr,rows[0],fields=fields) > if form.accepts(request.vars,session): >      session.flash="Record updated (%s)" % (form.vars.id) > > Flash result for id: None > > I ca

[web2py:15454] SSL and session modification

Maybe a naive question; does requesting a page withh SSL, create or modify the existing session in some way? I am trying to track down a bug that has been evading me all morning. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

[web2py:15453] Access record id on update-form

Problem trying to access record id on update-form form=SQLFORM(db.arr,rows[0],fields=fields) if form.accepts(request.vars,session): session.flash="Record updated (%s)" % (form.vars.id) Flash result for id: None I can access other variables e.g form.vars.name but NOT: form.vars.id I am puz