[Twisted-web] Session trouble
   
    Michal Pasternak
     
    twisted-web@twistedmatrix.com
       
    Wed, 17 Dec 2003 01:13:10 +0100
    
    
  
Michal Pasternak [Wed, Dec 17, 2003 at 12:47:12AM +0100]:
> 	class IPreferences(components.Interface):
>     		pass
> 	class Preferences(components.Adapter):
>     		__implements__ = IPreferences
> 	components.registerAdapter(Preferences, server.Session, IPreferences)
After reading some docs, I've understood that to get the functionality I
want is to declare "temporaryAdapter" variable of class Preferences as 1
(int).
This didn't help at all.
Another interesting thing is, that when I grepped Twisted 1.1.1 sources, I
found only 2 places which include the string "temporaryAdapter":
python/components.py (docstring and just a declaration) and
"test/test_components.py".
Is it a bug, should I submit it to bugtracker?
-- 
Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net