RE: [Zope] how to invalidate an object in the cache?

2000-07-02 Thread Marc Boschma
Sounds like you need to manipulate the expiry time for the objects. I'd suggest that that can either be done in the RESPONSE or via meta tags in the standard_html_header to mark the page and the image as non-cacheable. I'm actually interested in a Guru's response on this as I will need to set

[Zope] Fun with Trees

2000-07-02 Thread Charlie Wilkinson
(I always wanted to be a lumberjack! :) After RTFMing and flailing at DTML all night, I'm about stumped. No pun intended. I'm trying to use dtml-tree to create a selective menu of objects based on whether or not the object has an "add_to_menu" property. I've pretty much figured out that I need

Re: [Zope] Re: ZClass in ZClass problem

2000-07-02 Thread Tino Wildenhain
Oleg Broytmann wrote: Followup to myself... On Sat, 1 Jul 2000, Oleg Broytmann wrote: Then the problems begin. All management URLs for inner ZClass contain %20, so URLs look like "propertysheets/methods/RandomZItem%20/manage_workspace" and

Re: [Zope] how to invalidate an object in the cache?

2000-07-02 Thread Marco Mariani
On Sun, Jul 02, 2000 at 03:56:39PM +1000, Marc Boschma wrote: Sounds like you need to manipulate the expiry time for the objects. I'd suggest that that can either be done in the RESPONSE or via meta tags in the standard_html_header to mark the page and the image as non-cacheable. I'm

Re: [Zope] how to invalidate an object in the cache?

2000-07-02 Thread Itamar Shtull-Trauring
Marc Boschma wrote: Sounds like you need to manipulate the expiry time for the objects. I'd suggest that that can either be done in the RESPONSE or via meta tags in the standard_html_header to mark the page and the image as non-cacheable. Read the Cacheability Howto -

Re: [Zope] PCGI Error: (102) failure during connect to ZServer

2000-07-02 Thread [EMAIL PROTECTED]
Running ./start seems to initiate pcgi_wrapper. Then pcgi handles the web request perfectly again . This was not needed in Zope 1.6, I might be mistaken, though. This is with Zope-2.2.0b3-src.tgz The pcgi wrapper reports ...is unable to connect to the ZServer background process via

[Zope] What is default SU password in Zope 2.2b3?

2000-07-02 Thread Alexander Chelnokov
Hello All, A friend of mine has just installed Zope 2.2b3 by, as he told, simply run install script in RedHat 5.?. He reports that at least his_site:8080 shows normal start-up screen but no password was displayed during installation so he can't proceed to managemet screen. Zpasswd.py utility

Re: [Zope] What is default SU password in Zope 2.2b3?

2000-07-02 Thread Luke Tymowski
Hello, Zpasswd.py utility seems not to work due to lack of some library (?). Should he reinstall Zope or there is a default password? The password is displayed at the end of the setup process. It is stored in the root directory, in a file called access The default username is 'superuser', but

Re: [Zope] When does Zope become single-threaded?

2000-07-02 Thread Martijn Pieters
On Sat, Jul 01, 2000 at 10:56:30PM -0700, Hung Jung Lu wrote: I seem to remember that in the old days, if one uses Zope with PCGI, it would only run single-threaded. Is the correct? Or is Zope now always multi-threaded? (I know one can control the number of threads via the -t option in

[Zope] Single content tree, 3 'look-n-feel's...

2000-07-02 Thread Jon Franz
Hello, I'm currently preparing to build a large corporate website with Zope. the corporation in question ants a dell-ish sort of interface and content tree in which users will choose on the opening pages what Sort of user they are (home-user, small business, or corporate) - after

[Zope] [Fwd: CorruptedDataError]

2000-07-02 Thread Jonathan Desp
How I can shut down zope without clicking on the shutdown button ? because I'm not able to see the page. Jonathan Desp wrote: Hi, well it's again, a problem, I mean, the size of my data.fs don't exceed 50 M, but I still see CorruptedDataError, when I want to shutdown Zope. How I can

[Zope] [Q] corrupt PDF Files?

2000-07-02 Thread Veikko Wuensche
Hi, _sometimes_ ;-) I get data corruption with PDF files. After uploading a PDF file I get from the ZServer a file which is shorter than the first one. It's corrupt. The served file does not start with '%PDF-1.2^M...' for a PDF file. The original file length in this case was 482376 bytes

[Zope] Shutting down Zope

2000-07-02 Thread Steve Alexander
Jonathan, Jonathan Desp wrote: How I can shut down zope without clicking on the shutdown button ? because I'm not able to see the page. You can run the "stop" script that is in the directory you installed zope into. In your case it will be: /home/jonano/Zope-2.1.6-src/stop -- Steve

[Zope] Re: Shutting down Zope

2000-07-02 Thread Jonathan Desp
Good Good. It's a nice mailing list. You can get your answer of your question. I succeeded to shut down the zope, and now all works well. Steve Alexander wrote: Jonathan, Jonathan Desp wrote: How I can shut down zope without clicking on the shutdown button ? because I'm not able to see

[Zope] Unique id product

2000-07-02 Thread Steve Alexander
Hi Kent, Kent Sin wrote: I want to develope a unique sequence id generator product, I have the following code def newid(self, increment=1): """ return new id """ self.counter = self.counter+increment return self.counter I am not quite sure if this works when

Re: [Zope] calling standard_html_header from external methods

2000-07-02 Thread Dieter Maurer
Marco Mariani writes: How may I access standard_html_header through acquisition form foo.py? I've tried HEADER=self.standard_html_header() It acquires, but gives me an error on title_or_id, on PARENTS, on whatever. What arguments should I pass to it? The __call__ function of

Re: [Zope] Accesing a new context from a manipulated string

2000-07-02 Thread Dieter Maurer
Michael Bernstein writes: Here's my problem: given a method itemURL(), that typically returns a site relative URL such as '/about/', I need to change to the appropriate directories context using dtml-with. In short I need to do the equivalent of dtml-with about. You may try

Re: [Zope] Arrg! dtml-in can't handle lists of pairs!

2000-07-02 Thread Dieter Maurer
"Cary O'Brien" [EMAIL PROTECTED] writes: It seems as if dtml-in handles lists of pairs specially. It does, and it is documented. For pairs, the first component becomes "sequence-key" and the second "sequence-item". Not a good thing. Can I supress this behavior? Not that I know. Dieter

Re: [Zope] Question

2000-07-02 Thread Dieter Maurer
Oleg Broytmann writes: On Sat, 1 Jul 2000, Jonathan Desp wrote: Do you know any software, for creating mailing list, under Zope ? Zope is web-sever (mostly), how do you think it could handle mailing lists? Use mailman (www.list.org) for good python mailing list manager. I do

Re: [Zope] sort=id, _.map, _.lambda woes

2000-07-02 Thread Dieter Maurer
Marco Mariani writes: dtml-in "store.fileValues()" sort=id where "id" is a filename representing a number. Of course, sort uses it like a string and sorts it wrong. Maybe, since sortexpr= is not implemented (yet?) I could get away with: dtml-in

[Zope] Re: Every user should have the Anonymous role everywhere (was :Re: [Zope] Authentication, Anonymous and Public)

2000-07-02 Thread Dieter Maurer
Chris Withers writes: Dieter Maurer wrote: In Zope, each user has a set of roles. Any user has the "Anonymous" role. Log-in users may have additional roles. I'm not convinced this is true... The Content Manager Guide (Security, Authorization) states it this way: The "Anonymous"

[Zope] zope not authorizing

2000-07-02 Thread Rajil Saraswat
i installed the zope-pcgi rpm file. the default user is superuser and password is 123. but when i give these values in the prompt, the software does not authorize me. i also changed the access file in /var/zope using zpasswd but still the login is not working. earlier i was using zserver and it

Re: [Zope] Re: Copy/Paste problem

2000-07-02 Thread Curtis Maloney
On Sun, 02 Jul 2000, Oleg Broytmann wrote: Followup to myself... On Sat, 1 Jul 2000, Oleg Broytmann wrote: I (and some my friends) have problem with Copy/Paste. Sometimes it's wotking, but often Paste button does not appeared after Copy/Cut. After investigating I found that the

Re: [Zope] calling standard_html_header from external methods

2000-07-02 Thread Daryl Tester
Dieter Maurer wrote: The __call__ function of DTML methods gets the following arguments: client=None, mapping=None, **kw. You therefore may call it: "self.standard_html_header(self,REQUEST)" or "self.standard_html_header(None,REQUEST)". And what's the difference between passing in self or

[Zope] Confera problem

2000-07-02 Thread Terry Kerr
Hi, I just downloaded Confera-1.2.0-nonbin.tgz, installed it, and created a Confera topic instance. I posted a mesage to the topic, and then posted a reply to this messge. This is what i get: Traceback (innermost last): File /home/tejay/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line

[Zope] zope and caching

2000-07-02 Thread Bak @ kedai
hi good people i've been using zope for quite some time now. everything has been great; zope, the mailinglist, products are great! rant i want to serve a dynamic site and zope fits the bill. now, i think i want to have some of the dynamic methods cached, so as to reduce the cpu cycles on my

Re: [Zope] What's wrong with this code?

2000-07-02 Thread Andrew Kenneth Milton
+[ Luke Tymowski ]- | Hello, | | When: | dtml-unless renderedheader | dtml-call "REQUEST.set('renderedheader',1)" | blah blah | /dtml-unless ...snip... | If I create a simple page like: | dtml-var standard_html_header | pThis is some text./p |