[Twisted-web] Nevow Athena LiveFragment without allowedMethods

Paul Reznicek maillists at ivsn.com
Wed Nov 30 15:29:29 MST 2005


...
Sorry, I've introduced an error in livefrag.py, here corrected patch...

Paul
-------------- next part --------------
Index: livefrag.py 
=================================================================== 
--- livefrag.py	(Revision 3368) 
+++ livefrag.py	(Arbeitskopie) 
@@ -40,11 +40,10 @@ 
  
     def __init__(self, label, *a, **kw): 
         super(CooperativeFrag, self).__init__(*a, **kw) 
-        self.allowedMethods = {label: True} 
         setattr(self, label, lambda: unicode(label)) 
  
     def render_submit(self, ctx, data): 
-        return "submitIt(this, '%s'); return false;" % (self.allowedMethods.keys()[0],) 
+        return "submitIt(this, '%s'); return false;" % label 
  
 class Root(rend.Page): 
     def child_(self, ctx): 


More information about the Twisted-web mailing list