My reason for not doing this from the beginning is that if I have the  
following code:

     user= TG_User.get(1)
     user.password= "foobar"
     if "foobar"==user.password:
         # do something
     else:
         # do something else

Now I'll admit this is a pretty synthetic argument. But it's a  
property not a function. If you put a value into a property, it is  
reasonable to expect to be able to get the EXACT same value back out  
of the property. Since the encryption algorithms are one way, there's  
no way to get the correct value back out.

Now if you want to have a write-only property called  
auto_encrypt_password, that's fine with me. Of course, I don't make  
the decisions...

On 18 Feb, 2006, at 1:50 pm, Patrick Lewis wrote:

> I'm not sure if Jeff had a reason for not doing something similar to
> this in the first place.

--
Jeff Watkins
http://newburyportion.com/

'I know about people who talk about suffering for the common good.  
It's never bloody them! When you hear a man shouting "Forward, brave  
comrades!" you'll see he's the one behind the bloody big rock and the  
one wearing the only really arrow-proof helmet!'
-- Rincewind gives a speech on politics. (Terry Pratchett,  
Interesting Times)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to