[Twisted-web] nevow/stackless bugs -- patch

Peter Hunt floydophone at gmail.com
Thu Sep 30 13:45:39 MDT 2004


I've been trying to run stan on stackless when I ran into a problem
with render methods. Stackless uses "stackless.instancemethod" instead
of "__builtin__.instancemethod", and "stackless.function" instead of
"__builtin__.function". Attached is a svn diff patch of the changes I
made to __init__.py in order for stan to support stackless properly.

HTH,

Peter Hunt
-------------- next part --------------
Index: __init__.py
===================================================================
--- __init__.py	(revision 675)
+++ __init__.py	(working copy)
@@ -164,9 +164,11 @@
 nevow.flat.flatstan.StringCastSerializer          __builtin__.dict
 nevow.flat.flatstan.ListSerializer                __builtin__.tuple
 nevow.flat.flatstan.ListSerializer                __builtin__.generator
-nevow.flat.flatstan.FunctionSerializer            __builtin__.function
+nevow.flat.flatstan.FunctionSerializer            __builtin__.function
+nevow.flat.flatstan.FunctionSerializer            stackless.function
 nevow.flat.flatstan.FunctionSerializer            __builtin__.type
-nevow.flat.flatstan.MethodSerializer              __builtin__.instancemethod
+nevow.flat.flatstan.MethodSerializer              __builtin__.instancemethod
+nevow.flat.flatstan.MethodSerializer              stackless.instancemethod
 nevow.flat.flatstan.CallableInstanceSerializer    nevow.inevow.IRenderer
 nevow.flat.flatstan.CallableInstanceSerializer    nevow.inevow.IRendererFactory
 nevow.flat.flatstan.DirectiveSerializer           nevow.stan.directive


More information about the Twisted-web mailing list