This was driving me nuts during development, as static="0" wasn't been
used, and I was having to restart Webware everytime I made a change to
my includes.

Basically, in Generators.py, the IncludeGenerator class constructor
doesn't set self.static properly.  If static is "1" or "true", it gets
set to the integer 1.  If static is "0", it stays "0" which tests true.

This patch fixes the problem.

jack.

--- Webware-orig/PSP/Generators.py      Sun Feb 25 10:18:29 2001
+++ Webware/PSP/Generators.py   Mon Jul  2 23:21:20 2001
@@ -223,7 +223,7 @@
                GenericGenerator.__init__(self,ctxt)
                self.attrs = attrs
                self.param = param
-               self.static=1
+               self.static=0
                self.scriptgen = None
 
                self.page = attrs.get('file')
@@ -234,7 +234,9 @@
 
                self.static = attrs.get('static', None)
                if self.static == string.lower("true") or self.static ==
"1":
-                       self.static=1
+                    self.static=1
+                else:
+                    self.static=0
     
                if not os.path.exists(thepath):
                        print self.page

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to