[TurboGears] Re: ForeignKey to User class from identity package

2005-11-25 Thread Dan Jacob
Tim Lesher wrote: On 11/20/05, Patrick Lewis [EMAIL PROTECTED] wrote: While this appears to work, as soon as you try to reference Bar.foo_obj, an exception is thrown. Traceback (most recent call last): File console, line 1, in ? File string, line 1, in lambda AttributeError:

[TurboGears] Re: ForeignKey to User class from identity package

2005-11-25 Thread Dan Jacob
Further to what I just said: This does not work with Catwalk, I get an alert saying Fail to get reference to object User if I click on the Report table. It seems that the most instinctive way would be to have user = ForeignKey(turbogears.User) but we'll see how future versions of SQLObject will

[TurboGears] Re: toolbox error

2005-11-25 Thread Scott Benjamin
I too have confirmed this happens on windows. I'd tried it on 2 machines thus far and they have all seemed to leave the python process eating all of the cpu time, endless loop I presume. Scott

[TurboGears] Re: Restricting access to the whole subdirectory

2005-11-25 Thread Jeff Watkins
First, I apologise for being inattentive: I've been wrapping up a product release for my employer and then there's the whole Thanksgiving, wedding anniversary, and pending birth of a child thing... However, you should be able to accomplish part of what you're looking for by subclassing

[TurboGears] Re: Restricting access to the whole subdirectory

2005-11-25 Thread Jorge Godoy
Jeff Watkins [EMAIL PROTECTED] writes: The SecureObject would be a Descriptor that checks authorisation before returning the instance object. Keep in mind this would require you to satisfy the authorisation criteria before accessing toxicologia for *any* reason. This is exactly what I

[TurboGears] Re: Specifying an or for group access with turbogears.identity

2005-11-25 Thread Jeff Watkins
On 23 Nov, 2005, at 7:31 am, [EMAIL PROTECTED] wrote:Personally, I would say this better be generalized to a user definedfunction as these authorization thing can easily get too complex. Thereyou can implement using whatever thing that is appropriate(hook toLDAP, your own RDBMS tables etc.)I would

[TurboGears] Re: Validating identity against custom fields

2005-11-25 Thread Jeff Watkins
On 24 Nov, 2005, at 3:27 pm, Steve Bergman wrote:I have a need to validate users against:CompanyCodeusernamepasswordDifferent companies can have duplicate usernames, but they are distict users.Is this possible with the current identity code?Steve, this isn't presently possible. You *could* have

[TurboGears] Re: Question on Placement of SQLObject classes (It works now, why????)

2005-11-25 Thread Michael Schneider
I went throught the Tickets for 0.9 and found that Ticket #77 was the root cause. I like to seperate the class defintions from the connection information. I would like to use model.py to assemble the data objects create connection + import classes that will be in the connection. Thanks Mike

[TurboGears] Re: Validating identity against custom fields

2005-11-25 Thread Tim Littlemore
Jeff Watkins wrote: On 24 Nov, 2005, at 3:27 pm, Steve Bergman wrote: I have a need to validate users against: CompanyCode username password Different companies can have duplicate usernames, but they are distict users. Is this

[TurboGears] Re: ForeignKey to User class from identity package

2005-11-25 Thread Jeff Watkins
On 25 Nov, 2005, at 7:28 am, Dan Jacob wrote:This does not work with Catwalk, I get an alert saying "Fail to getreference to object User" if I click on the Report table.It seems that the most instinctive way would be to have user =ForeignKey("turbogears.User") but we'll see how future versions

[TurboGears] Re: Validating identity against custom fields

2005-11-25 Thread Jeff Watkins
On 25 Nov, 2005, at 8:27 am, Tim Littlemore wrote: It would be excellent if the framework could be extended to accept custom fields along with the standard username password. Tim, the framework will be changed as follows: Handling for forms will be pulled out of the Filter and moved into

[TurboGears] PostgreSQL in Windows

2005-11-25 Thread Chackero
I found problems when installing psycopg in the Windows therefore I do not have the compiler. I downloaded and I installed win-psycopg, however, the SQLObject does not import it. How to solve this problem?

[TurboGears] Re: PostgreSQL in Windows

2005-11-25 Thread Rudy Schockaert
All I did to get it working was as per Readme.txt in the zip: Install the MX Toolkit from http://www.lemburg.com/python/mxExtensions.html Copy over libpq.dll and psycopg.pyd to your $(PYTHONDIR)\DLLs directory.I upgraded to the latest version of SQLObject without touching anything Python

[TurboGears] Re: Validating identity against custom fields

2005-11-25 Thread Michael Schneider
Jeff, Excellect, that way we can use retina scan info :-) Mike

[TurboGears] Re: Problems with production settings

2005-11-25 Thread Jorge Godoy
Jorge Godoy [EMAIL PROTECTED] writes: I've updated to rev. 244, but it still won't work with prod.cfg. Am I the lucky one to have this bug? :-) Just to close this thread: I missed adding identity.on=True identity.failure_url=/login at my prod.cfg, even though I had a big

[TurboGears] Re: Validating identity against custom fields

2005-11-25 Thread Jorge Godoy
Michael Schneider [EMAIL PROTECTED] writes: Excellect, that way we can use retina scan info :-) /me thinking about a PAM plugin (using pyPAM, of course) to plug into identity... ;-) We can have DNA auth... -- Jorge Godoy [EMAIL PROTECTED]

[TurboGears] Support for Ironpython

2005-11-25 Thread Juracy Filho
Are Turbogears and yours components compatible with IronPython? Else incompatible, what's components doesn't work? Excuse my bad English

[TurboGears] Re: Validating identity against custom fields

2005-11-25 Thread Tim Littlemore
Jeff Watkins wrote: Tim, the framework will be changed as follows: Handling for forms will be pulled out of the Filter and moved into the Provider. Similarly, cookie handling will also move to the provider. In retrospect this seems like the way I should have done it in the first place.

[TurboGears] Re: Validating identity against custom fields

2005-11-25 Thread Jeff Watkins
Actually, retina scan isn't in common use any more. People found it uncomfortable and weren't too keen on having a laser shined in their eyes.Iris scan is a big deal. It's very accurate and reasonably quick. Plus there's no invasive laser, only a mild IR beam which you can't even see. The OKI

[TurboGears] Re: Validating identity against custom fields

2005-11-25 Thread Jeff Watkins
Bah! The work was really simple. It's done already, but I just want to give folks a chance to comment on the move of the Identity model objects out of a turbogears registry.I also added the SecureObject I mentioned in another email. I haven't really tested it, but the code is largely copied from

[TurboGears] Re: easy_install need be improved

2005-11-25 Thread Phillip J. Eby
[EMAIL PROTECTED] wrote: easy_install only solve the problem about python package dependency.it is difficult to use. after check out from turbogears svn,i use python setup.py install, but often have many error messages,and i only use easy_install each package manually. There's an

[TurboGears] Re: Install from SVN issue

2005-11-25 Thread Phillip J. Eby
Scott Benjamin wrote: I did as Kevin suggested yet the error continues to come back when running python setup.py install . What is the preferred method of installing an SVN version of turbogears? I would suggest that you use a manual checkout and run setup.py develop, rather than setup.py

[TurboGears] Re: Validating identity against custom fields

2005-11-25 Thread Jeff Watkins
I would expect that it is already possible. The login form is presented by a controller you designate, so it's entirely up to you how you do that.Now as to whether I'll write a widget that performs the login: I don't think so. There's so much variety that I'm bound to get it wrong.On 25 Nov, 2005,