Re: [Zope] RESPONSE.redirect not working
Am 24.05.2006, 00:24 Uhr schriebte Andrew Hedges <[EMAIL PROTECTED]>: > I'm at my wit's end. Any help is appreciated. Yes, I have worn > Google out trying to figure this out. > > In my (yeah, yeah, I know) DTML method, I have structured things like > so: > > <-- a Python script that checks Hi there! Given your code in pyCheckSession try the following (not tested): and change pyCheckSession to: > if url <> '': > "If we have need to, bump the user out" > RESPONSE.redirect(url) return 0 else: return 1 The call to "redirect" doesn't magically stop processing of everything else you programmed. Hope it helps, Jo. -- internetmanufaktur jo- Berlin, Germany |||meder--- fon: ++49-30-44 04 27 82 http://www.meder.de/ fax: ++49-30-44 04 30 95 Kollwitzstr. 66 mob: ++49-170- 2 98 89 97 10435 Berlin ---http://www.meder.de/keys/jo-pubkey.txt ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope 2.8.5 becomes unresponsive.
Am 29.04.2006, 21:36 Uhr tat Sasha Vincic <[EMAIL PROTECTED]> schraben: > I have had zopes like that on different linux versions. Following > identified reasons on the different installations: > > 1. LDUF timeout(s) where -1 [...] > 2. LinguaPlone had a bug or something, Jodok found this and it's fixed > on the trunk. [...] > 3. Suspect: CacheFu - Memcache broken [...] Another thing I came across some times: 4. some method called while working on a request executed a HTTP GET for something else inside the same Zope instance (e.g. via urllib). Have some of these requests running simultanously and chances are pretty big that they'll hang around endlessly waiting for each other to finish and free up a Zope thread to answer their own sub-request. This will typically result in very little to almost no CPU usage. Good luck! Jo. -- internetmanufaktur jo- Berlin, Germany |||meder--- fon: ++49-30-44 04 27 82 http://www.meder.de/ fax: ++49-30-44 04 30 95 Kollwitzstr. 75 mob: ++49-170- 2 98 89 97 10435 Berlin ---http://www.meder.de/keys/jo-pubkey.txt ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Composing variables
Am 29.07.2005, 18:02 Uhr schryb Cristi Barladeanu <[EMAIL PROTECTED]>: > An example written in PHP: > > $alternative = "bar"; > $foo_bar = "content based on bar"; > echo ${"foo_".$alternative} same in a Python-Skript: -- foo = {"bar": "content based on bar", "baz": "content based on baz", } alternative = "bar" print foo[alternative] -- or, if foo_bar and foo_baz are attributes in your current context: -- alternative = "bar" print getattr(context, "foo_%s"%alternative) -- HTH Jo. -- internetmanufaktur jo- Berlin, Germany |||meder---fon: ++49-30-417 17 63 33 http://www.meder.de/ --- fax: ++49-30-417 17 63 45 Kollwitzstr. 75 mob: ++49-170- 2 98 89 97 10435 Berlin ---http://www.meder.de/keys/jo-pubkey.txt ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Added Product Doesn't Show Up In ZMI
Am 25.07.2005, 18:03 Uhr schrob [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Each of these directories has its own '__init__.py'. Do these directories and the files in there have the correct permissions set so that the user Zope runs as can access the files? HTH Jo. -- internetmanufaktur jo- Berlin, Germany |||meder---fon: ++49-30-417 17 63 33 http://www.meder.de/ --- fax: ++49-30-417 17 63 45 Kollwitzstr. 75 mob: ++49-170- 2 98 89 97 10435 Berlin ---http://www.meder.de/keys/jo-pubkey.txt ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )