Re: [Zope] Changing user pwds

2000-08-07 Thread Dieter Maurer
Aaron Williamson writes: > I created a form to allow users to change their own passwords. I > hate the idea of giving them all "Manage Users" permissions, but ok > whatever. But "acl_users.manage_users('Change', REQUEST, RESPONSE)" > won't work unless the user has "View Management Screen

Re: [Zope] SQL Query -> DTML Form with populated values -> SQL update example??

2000-08-08 Thread Dieter Maurer
Bill Broadley writes: > Does someone have an example (with DTML or similiar source) that > demonstrates the following: > 1. A search field for record id, or a list with a clickable URL for each > record (that is the result from a SQL select) > 2. Allows updating of the record with a DTM

Re: [Zope] threading cont ...boundary="------------98A416F9F4157B1993D63C72"

2000-08-08 Thread Dieter Maurer
Nicholas Lo writes: > ... database modification seen inside but not outside of process ... Obviously, the database modifications have not been commited. Auto-Commit in Zope is coupled to *one* thread serving the request: It works by registering with the "transaction" associated with the cu

Re: [Zope] General Full Text Search Questions

2000-08-08 Thread Dieter Maurer
Rogerio Atem de Carvalho writes: > 1)How can I use ZCatalogue to do full text search on > static html pages? In Zcatalogue examples I could find > search for properties like Title, I would like to have > the whole text content of a static html searched. DTML methods/documents define a metho

Re: [Zope] CorruptedDataError

2000-08-09 Thread Dieter Maurer
Daniel Rusch writes: > My colleague had a dtml document turn itself into a folder. When we try > to delete it we get a "CorruptedDataError". Any thoughts on how to kill > the offending vermin? Zope 2.2 contains a "fsrecover.py" in "ZODB". Alternatively, there is the "tranalyser" product. Die

Re: [Zope] a corrupted ZODB?

2000-08-09 Thread Dieter Maurer
tav writes: > was working happily on the server, when all of a sudden it keeled over and > didnt restart automatically. so, i went to restart it manually, and got the > following error message: > > > ZODB.FileStorage.FileStorageFormatError: /usr/local/zope/z1/var/Data.f

Re: [Zope] interating though REQUEST.form in python???

2000-08-09 Thread Dieter Maurer
Kevin Howe writes: > for name,value in REQUEST.form.items: Try: for name,value in REQUEST.form.items(): "items" is a method that must be called to return a sequence of tuples. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope

Re: [Zope] List

2000-08-09 Thread Dieter Maurer
William JOYE writes: > I'm a newbie in zope. I think is a simple problem but I can find a solution. > I would like to show 2 lists (ex: list1 and list2) like this : > > list1 = 1, 2, 3,... > list2 = A, B, C,... > > list1 + list2 = > > 1 A > 2 B > 3 C > > How can I iterate 2 lits

Re: [Zope] Bug in

2000-08-09 Thread Dieter Maurer
Marcus Gruendler writes: > I am working on a project with Zope. Unfortunately I am having a problem > whith the tag. I am using the batch processing feature and want to > show only one element per sequence. I do this by setting size=1 and orphan=1. > But th tag only iterates over the firs

Re: [Zope] confusion

2000-08-09 Thread Dieter Maurer
Chris Withers writes: > Can someone explain the difference between: > > > Here, your namespace contains all attributes (owned or acquired) of "squishdot" and of "PARENTS[-1]". > ...do stuff here... > > > > and > > Here, your namespace contains all attributes (owned or acquire

Re: [Zope] Splitting ZSQL results across pages

2000-08-10 Thread Dieter Maurer
John Morton writes: > I'd like to split the output of a ZSQL query across different instances of > a page in the same fashion as zope.org does with ZCatalog output, but I > can't for the life of me find any documentation on how it's done. Does > anyone know the magic incarntations or where the

Re: [Zope] application/octet-stream vs. application/msword

2000-08-10 Thread Dieter Maurer
Jean Jordaan writes: > How does Zope recognize the type of a file? It uses "OFS.content_types.guess_content_type" (look at the source in OFS/Image.py), unless the manage_addFile specifies an explicit "content_type". > Can Zope be taught more types? Look at the source of "OFS.content_types".

Re: [Zope] dtml-in sort question

2000-08-10 Thread Dieter Maurer
Jean Jordaan writes: > I'd like to sort bunch of objects, and this doesn't seem to > work: > > > > Should it work? How does one sort the results returned by an > expression such as the above? I think so. Does it not? I probably would use "objectValues" instead of "objectItems". "ob

Re: [Zope] In-tag Batch processing

2000-08-10 Thread Dieter Maurer
Tom Deprez writes: > But how can you provide a link to the next batch of items at the start of > the batch table? You need Zope 2.2 or the patch at URL:http://www.dieter.handshake.de/pyprojects/zope/dt_in.pat or you use the "next" argument of the "in" tag. Dieter ___

Re: [Zope] GUF

2000-08-13 Thread Dieter Maurer
Mathias Bengtsson writes: > Does anybody know how the login is handled by GUF. I use cookie > authentication and I get the loginptomt when I try to access a page that > has authenticate permissions. But when I try to login I don't know how > to get the user logged i.e I don't know how to set t

Re: [Zope] Broken Links and Orphan Checking

2000-08-13 Thread Dieter Maurer
Darin Lee writes: > Is there any way within Zope to parse HTML to look for broken links and orphaned >files? The site I am building will have many Zope dynamic componants, but also a good >share of wrapped static HTML pages maintained by content contributors in >Frontpage/Dreamweaver. I kno

RE: [Zope] application/octet-stream vs. application/msword

2000-08-13 Thread Dieter Maurer
Jean Jordaan writes: > > The other thing I'm wondering is, it looks as if '.doc' should > *always* be recognized as msword. How could it sometimes turn up > as octet-stream? To add documents I call: > > > Add a document. > > The initial method of 'ccDocClass_factory' is 'ccDoc

Re: [Zope] file uploading from IE browser

2000-08-13 Thread Dieter Maurer
David Zhu writes: > I'ved followed the online How-To on implementing a simple service for > parsing uploaded files via the browser. But strangely, it only works for > Netscape browsers. When I test the uploading using IE, the supposed file > object becomes a string object, causing all sorts

Re: [Zope] In-tag Batch processing

2000-08-13 Thread Dieter Maurer
e your problem, send me your DTML code for analysis. Dieter > At 23:02 10/08/2000 +0200, Dieter Maurer wrote: > >Tom Deprez writes: > > > But how can you provide a link to the next batch of items at the start of > > > the batch table? > >You need

[Zope] Workaround: Zope 2.1.6: "Invalid Header" Error

2000-08-14 Thread Dieter Maurer
Me and lots of collegues have been plagued by occasional "Invalid Header" Zope errors. The analysis revealed: Zope tries to be CGI compliant: A CGI reponse can be preceeded by a sequence of HTTP headers separated by a blank line from the response body. Zope 2.1.6 (and before) u

Re: [Zope] Implementing a login form instead of BASIC authentication

2000-08-15 Thread Dieter Maurer
Meeting Maker Webmaster writes: > I am currently looking into implementing a login form to replace the > standard BASIC authentication. Have a look at GUF or the new LoginManager. They do something similar to what you want. Either, you can use them directly, or learn how they work and realize

Re: [Zope] problems connections to database

2000-08-15 Thread Dieter Maurer
Tom Deprez writes: > Hi, > > I get a strange error here. Suddenly the connection to my interbase db > doens't works anymore. I get the following message : > > File /usr/local/zope/lib/python/Products/gvibDA/db.py, line 178, in _abort > File gvib/gvib.py, line 466, in rollback > E

[Zope] "Computed" variable access (was: [Zope] use properties to get an object with dtml-var)

2000-08-15 Thread Dieter Maurer
Gerard Metrailler Jr. writes: > Hello, > > I am trying to get the following more generic. > > > > In that case, content and whos_who are folder, gmetrail is a ZClass I > created which derivates from Image and real_name is a property of that object. > > What I am trying to do is get

Re: [Zope] Seeking Zope Volunteers

2000-08-15 Thread Dieter Maurer
Andrew Kenneth Milton writes: > +---[ Lyno Sullivan, Candidate ]-- > | Greetings, > | > | My name is Lyno Sullivan and I am the endorsed Independence Party (see > > [ snip ] > > And you are now Lyno Sullivan, Spammer and in violation of your own laws. I would

Re: [Zope] Best way to subclass DTML Document and some other ZClasses questions

2000-08-15 Thread Dieter Maurer
Marcin Kasperski writes: > I decided to subclass DTML Document and (using ZClass) create my own > document class > > 1) How can I set standard DTML Document properties (title!) from my > constructor? I created constructor form and constructor method, I > succesfully prompt for and set

Re: [Zope] Persistence.py does not define Persistent

2000-08-15 Thread Dieter Maurer
Skip Montanaro writes: > > I'm trying to publish my own module with ZServer (from Zope 2.2.0). I get > the following traceback: > > > from Persistence import Persistent > ImportError: cannot import name Persistent > > When I look at lib/python/Persistence.py, all I s

Re: [Zope] Looking for different style

2000-08-15 Thread Dieter Maurer
cuiod-tec Jens Gelhaar writes: > I need a better way to render a DTMLDocument and store the result in > variable than > > but I do not like the style, it looks clumsy. Is there an another way? I > would think something like documentname(...), but the acquisition does not > work. Usually, yo

Re: [Zope] Problem with nested dtml-in

2000-08-15 Thread Dieter Maurer
Bill Welch writes: > I'm having trouble with nested dtml-in. The outer ZSQL returns the > coordinates of a zip code as zlat and zlong. The inner ZSQL takes > zlat and zlong as well as Range and Otype as arguments. > > When I run it I get: > Error Type: Bad Request > Error Value: ['zl

[Zope] [Ann] Another Zope Book

2000-08-15 Thread Dieter Maurer
Dear Zopistas, I plan to write another book about Zope: "Building Dynamic WebSites with Zope". The book idea: Realize a demanding dynamic WebSite with Zope. Describe everything that is necessary for this purpose. This will contain: Concepts: HTTP, HTML, Zope, Databases, JavaScript, ...

Re: [Zope] Reloading file objects?

2000-08-15 Thread Dieter Maurer
Peter Arvidsson writes: > Does anyone know a way to get the file to show the new pdf-file when I > want to view it? You can use an "Expires" header to control how long a browser might cache a page. Dieter ___ Zope maillist - [EMAIL PROTECTED] h

Re: [Zope] speeding up dtml-tree

2000-08-15 Thread Dieter Maurer
Clinton Roy writes: > i'm using the dtml-tree tag and generating it's contents via external > methods. Unfortunately child lookups are quite slow, as well as the > icon choosing machinery; is there any way to cache the tree node > objects that my external method creates? The tree tag itself do

Re: [Zope] Looking up other row records in an SQLMethod?

2000-08-15 Thread Dieter Maurer
Theodore Patrick writes: > Is it possible to look up other SQL record values while iterating through a > ? I did not understand your requirements. But the answer is yes: ... Dieter _

Re: [Zope] Structured Text Rendering

2000-08-15 Thread Dieter Maurer
Chris Withers writes: > I have a list of string.strip'ped strings which I'd like to render using > structured text. > > Input: > """ > sdfsdf > > - sdfsdf > > - sdfsdf > > - sdfsdf > """ > Structured text output: > """ > p>sdfsdf >

Re: [Zope] Struggling with Permissions

2000-08-15 Thread Dieter Maurer
Jean Jordaan writes: > ... anonymous user despite authentication > (this is from ccDocClass_add). When I arrive I *still* see: I may be a cache issue as suggested earlier in the list. However, I may also be a Zope feature. When you access an unprotected object, Zope may not determine

Re: [Zope] dtml-in and tuples

2000-08-15 Thread Dieter Maurer
Chris Withers writes: > Why and how are python tuples (like, this) handled differently (and not > in a logical way I can see...) than python lists [like, this]? The "how" has been explained already. The "why" is only my guess: support for the widespread idiom ".items()", "objectItems" etc. Fo

Re: [Zope] HTTP_ACCEPT

2000-08-16 Thread Dieter Maurer
Spicklemire, Jerry writes: > There is a value included in "REQUEST" called HTTP_ACCEPT. > Is there a way within Zope to reset this value? > The default seems to be "*/*", but our sysadmin says Zope > would get along better if we can change it to include the > alias that Zope has been as

Re: [Zope] Import classes in External method

2000-08-16 Thread Dieter Maurer
Francois-Regis CHALAOUX writes: > How to import classes in an External method? > > I mean, where to place the module where my class is defined. I tried to put it > in "lib/python/" or "Zope-2-2-0/lib/python/Shared", or in > "/usr/lib/python1.5/" but I always got the same message : > >

Re: [Zope] Managing subobjects

2000-08-16 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > I created a ZClass, zRow. This class can contain other ZClass: zField_Text, > zField_Date, etc. > This let me define the columns contained in a zRow. > I then defined a Class zTable, wich contains zRows. > > Question: > > - In my manage tabs, I needed a

Re: [Zope] intermittent problems downloading portal files

2000-08-16 Thread Dieter Maurer
Lucas Hofman writes: > We use PTK as an intranet for a R&D company. Users publish their reports > as in PDF format using portal file object type. > > Now and then (enough to be irritating, but not reproducable on demand) > the PDF file gets corrupted in the download, resulting in the reader

Re: [Zope] HOWTO (but to be improved) - linking to neighbours

2000-08-16 Thread Dieter Maurer
Marcin Kasperski writes: > * Problem > > The problem: while presenting some page, I would like to automagically > add links to 'previous' and 'next' page in the same directory. Say you > organize a bunch of HOWTOS and you would like to let the people navigate > via 'next' links - without g

Re: [Zope] __call__ error message - I gave up

2000-08-16 Thread Dieter Maurer
cuiod-tec Jens Gelhaar writes: > What I like to do is pretty simple, but I don't get it. The following code > snippet is simple and what I want to is straightforward: > > > > > > All DTML Documents in a Folder should be put together in one document. It > works fine, if there is no

Re: [Zope] Best way to subclass DTML Document and some other ZClasses questions

2000-08-16 Thread Dieter Maurer
Marcin Kasperski writes: > > > 1) How can I set standard DTML Document properties (title!) from my > > > constructor? I created constructor form and constructor method, I > > > succesfully prompt for and set all my properties but I do not know how > > > to set properties belonging to DTML

Re: [Zope] Reloading file objects?

2000-08-16 Thread Dieter Maurer
Peter Arvidsson writes: > That just work for documents. It is not possible to set any headers for > pdf-files, is it? I tried to put that in the document I call the > pdf-file from but that didnt work. The following DTML method (view) adds a header to a file/image: The "><" at the start of

Re: [Zope] mysqlUserFolder woes

2000-08-17 Thread Dieter Maurer
Stephen Harrison writes: > Error Type: SystemError > Error Value: Failed to import class ImplicitAcquirerWrapper from module > Acquisition > > Traceback (innermost last): > > File /usr/local/zope/2-1-6/lib/python/ZODB/Connection.py, line 396, in > setstate > SystemError: (see ab

Re: [Zope] Choose where to create a ZClass instance with EM

2000-08-17 Thread Dieter Maurer
Francois-Regis CHALAOUX writes: > Hi, > > When I create a ZClass instance from an external Method I create by default > the instance in the same place where is located my external method (see the > code below). > > How to select a different place in my script where will be create the ZCla

Re: [Zope] class name of current object

2000-08-17 Thread Dieter Maurer
Scott Shepherd writes: > Is there a way to get the current object's class name? > > > > doesn't work. You will not be able to access any attribute/method that starts with '_'. If the "meta type" is sufficient for you, you may use: Dieter ___

Re: [Zope] modifying/changing DTML properties

2000-08-17 Thread Dieter Maurer
R. David Murray writes: > > This: > > > > > > > > > > > > results in: > >green > > > >green > > > > did i miss something? > > Hmm. That should have worked. You could try > manage_changeProperties(eggs='blue') as an alternative, but the > dictionary way shoul

Re: [Zope] calls first?

2000-08-18 Thread Dieter Maurer
Chris Withers writes: > If you do where object is something callable, it > calls it. > > That's a bit unpleasant for things like Squishdot Sites which do > something (return a list of all their elements) when you call them. > > So the only way to _really_ do what I thought dtml-with is f

Re: [Zope] [Ann] Another Zope Book

2000-08-18 Thread Dieter Maurer
Thank you for your encouragement. Andrew Kuchling works on the modularization of Zope packages such that they can easily be used outside Zope. For part of these packages, this is easy: Structured Text and DTML is used for a long time outside Zope. I think Andrew completed the extraction of the

Re: [Zope] Creating an object from within another

2000-08-18 Thread Dieter Maurer
Daniel Rusch writes: > So far so good, > > Next hurdle, at least the problems have been cut down to hurdles from walls. > > I have a folderish product say myFolder, in the manage_addMyFolder function I > want to create an object of my product B. so I do this: > > def manage_addmyFolder(

Re: [Zope] DCOracle help required

2000-08-18 Thread Dieter Maurer
Alwyn Schoeman writes: > Let me explain my situation. > The oracle server is version 7.3.4 running on Solaris. > I compiled DCOracle 1.3.1b1 on the Sun using the Oracle 7 libraries. > With this I can access an Oracle 8.0.5 database running on Linux over the > network. > > Now I want to ac

Re: [Zope] Nested Tag Creation

2000-08-18 Thread Dieter Maurer
Andrew Kenneth Milton writes: > I want to create a tag that has sub-tags. > > Now I know I can use blockContinuations to approximate this, but, I > think it would be cleaner to be able to define tags that are only available > within the context of the main tag (namespaces and all that). Have

RE: [Zope] Product inhetitance question (similar question)

2000-08-18 Thread Dieter Maurer
NABETH Thierry writes: > And what happen if the Class A is in a package PA. > Clabb B is in a package PB. > > How do you access the namespace of PA from PB ? from PA import A, . class B(A): > When I have tried, the inherited methods from A where not visible > from B, and I and t

[Zope] Probable Bug in "OFS.Image.index_html"

2000-08-18 Thread Dieter Maurer
Today, I met again a strange problem: I wanted to implement an image relay for an international project: something like: if an image in the target language is available, take it, otherwise, the english image. My DTML looked like: The result was very strange: When I forc

Re: [Zope] Re: Bug in

2000-08-18 Thread Dieter Maurer
Michael Best writes: > http://classic.zope.org:8080/Collector/1056/view > > Back on Februrary 14th, I submitted this bug, however your account of it > is much better than mine. You will find a patch (against Zope 2.1.6) under: URL:http://www.dieter.handshake.de/pyprojects/zope/dt_in.

[Zope] Nasty logging bug: product import problems

2000-08-19 Thread Dieter Maurer
Have you ever had problems with the import of products? Did they simply not show up in ControlPanel.Products (or with an out of date traceback)? Did you not get any hint to the problem cause? I now can tell you why: The Zope logging system is a bit complex and weird: * While Zope is bein

Re: [Zope] Newbie Question (Content Manager Tutorial)

2000-08-19 Thread Dieter Maurer
Hi Mark, Mark A. Pappas writes: > I installed Zope 2.2.0 > I dloaded the Content Manager Guide > ... > Zope Error > Zope has encountered an error while publishing this resource. > > Error Type: SuperCannotOwn > Error Value: Objects cannot be owned by the superuser The Content M

Re: [Zope] Pages Half Rendering :(

2000-08-19 Thread Dieter Maurer
Chris McDonough writes: > I've seen this in Netscape only, mostly while using the management > interface. I haven't been able to track it down. I wonder if it has > something to do with the bug in OFS.Image.index_html that Dieter Maurer > reported a few messages

Re: [Zope] Pages Half Rendering :(

2000-08-19 Thread Dieter Maurer
Hi Chris, SentChris Withers writes: > I experienced the same weird intermittent problem yesterday that I have > had on odd ocassions over the last eight months. > > Basically, Zope 2.1.6 returns only half a page. By that I mean if I view > source, the HTML just stops at some point through t

Re: [Zope] doesn't?

2000-08-19 Thread Dieter Maurer
Chris Withers writes: > Is is just me or does stuff inside a get parsed? "" must do a bit of parsing: It must at least recognized "". Maybe, it wants to recognize nested "" (probably not), then it must look at all tags. Probably, however, just uses the same parser as every other tag an

Re: [Zope] Creating an object from within another

2000-08-19 Thread Dieter Maurer
Kapil Thangavelu writes: > Dieter Maurer wrote: > > Try: (ob __of__ self).manage_addB() > > whats is ob__of__self ??? > > acquisition at its best? No, it was simply too late in the day. It should have been "(ob.__of__(self)).manage_addB(...)". The &

Re: [Zope] tree tag woes continue :S

2000-08-19 Thread Dieter Maurer
Chris Withers writes: > ... > My idea, as you may have seen from recent posts, was to do a dtml-in > over the first set of children so I could do the batching there, and > then do a dtml-tree for each one of them to get the tree as before. > > Is this a good or a bad idea? > Is having lots

Re: [Zope] RE: [Zope-dev] Fighting with ZServer

2000-08-22 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > To your image in properites add a string property called > > Last-Modified > > with value > > Wed, 15 Mar 2002 19:02:17 GMT > > And your broken image problem will disappear. That may be possible. However, this avoids browser caching of the images (at le

Re: [Zope] (my) faulty ZClass constructor

2000-08-22 Thread Dieter Maurer
Jean Jordaan writes: > further testing shows that this works:: > > DestinationURL()+'/manage_workspace')"> > > but this:: > > > DestinationURL()+'/manage_workspace')"> > > > generates a:: > > Error Type: TypeError > Error Value: call of non

Re: [Zope] processing dtml in external method

2000-08-23 Thread Dieter Maurer
Scott Shepherd writes: > I have an external method that returns a string containing dtml, but > I want it to evaluate the dtml and return the result. How do I do > that? "evaluating dtml" means calling it. The "__call__" of DTML methods, or, more generally, DocumentTemplates, has two positio

Re: [Zope] How to test if an object exist

2000-08-23 Thread Dieter Maurer
Francois-Regis CHALAOUX writes: > Errot Type: NameError > Error Value: folder1 > > How to manage this problem ? > > FR. > > = > CODE > = > def testFolder(self): > self=self.this() > sub1=self.folder1 > exec "object2create = 'folder11'" > try: > if

Re: [Zope] Including a method returning batches inside a page.

2000-08-23 Thread Dieter Maurer
Jean Jordaan writes: > In my 'index_html', I have:: > > > > This is supposed to return batches of documents, similarly to > http://www.zope.org/Products/ [1]. It works halfway, but the links > to previous and next batches of course refer to 'docsByTitle' > and not to 'index_html':: >

Re: [Zope] newbiz : zope connection

2000-08-23 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > I want to know how many people are connected on my zope server, and who > are they, has anybody an idea to see this sort of information ? HTTP is a connection less protocol (to be precise, HTTP 1.0). Thus, a priori, there is no notion of connection: A user is only

Re: [Zope] Corruption caused by 'Pack'?

2000-08-23 Thread Dieter Maurer
Marcin Kasperski writes: > pack corrupts Data.fs > > Has anyone notified similar problems? What could be going on? An officially announced and fully described bug... You know by now where you find the searchable archive? Dieter ___ Zope

Re: [Zope] Missing pictures

2000-08-24 Thread Dieter Maurer
William JOYE writes: > I have notified that every time on my web page one picture is missing (with > IE and Netscape). When I refresh the page there is another picture missing > and the first is OK. After another refresh, the first is missing and the > second is OK. And so on... > > I use A

Re: [Zope] Acquisition, Not! How?

2000-08-24 Thread Dieter Maurer
=?ISO-8859-1?Q?J=FAlio?= Dinis Silva writes: > I know this sound strange but is there a way to, > during execution of a dtml method, when a with tag is used one > force acquisition not to be used? It is possible -- with an external method. But probably, you should not do it. It may have strang

Re: [Zope] Corruption caused by 'Pack'?

2000-08-24 Thread Dieter Maurer
Marcin Kasperski writes: > Dieter Maurer wrote: > > > > Marcin Kasperski writes: > > > pack corrupts Data.fs > > > > > > Has anyone notified similar problems? What could be going on? > > An officially announced and fully descr

Re: [Zope] The tree tag, SQL and what should be simple

2000-08-24 Thread Dieter Maurer
[EMAIL PROTECTED] writes: > I have a table for chickens > And another table for types > > Each chicken has a type associated with it. At the end of the day I want to > display the chickens underneath the type it has ... start the screen up it would > say > > + BIG > + MEDIUM > +

Re: [Zope] strange login behaviour

2000-08-24 Thread Dieter Maurer
Didier Georgieff writes: > I have really simple login wich is a link to a Method "login" wich > comprise > > ... REDIRECT for login > > > and 'login' method has NO autorizations for anonymous. > > It redirects me on the right "baseURL" page, but the "baseURL" > inludes an "info

Re: [Zope] Search on ZCatalog or ZSQL in MySQL

2000-08-25 Thread Dieter Maurer
Nestor A. Diaz L. writes: > I have to make a system to store news, so i have to migrate a old system > using perl cgi's and perform a search on text files to use Zope as the > search engine however i don't know if i have to use a SQL database like > MySQL or use the ZCatalog, i need full text

Re: [Zope] speeding up dtml-tree<00b001c006da$d19c4310$6703a8c0@torch>

2000-08-26 Thread Dieter Maurer
Clinton Roy writes: > external method restrictions > I'm losing faith people.. Maybe, you should not. There are more ways to build extensions than external methods in "Extension" directories. Each way has its advantages and drawbacks: TypeWeb Manageable

Re: [Zope] How to get PARENTS[-1] from within a Python Product

2000-08-27 Thread Dieter Maurer
Ira Hochman writes: > How does one retrieve the equivalent of PARENTS[-1] from within a Python > Product in Zope? ZPublisher places "REQUEST" at the top of the acquisition chain. "PARENTS" is an attribute of "REQUEST". Therefore, you should be able to simple use "self.PARENTS[-1]". If it does

Re: [Zope] is possible ?

2000-08-27 Thread Dieter Maurer
Bill Welch writes: > Try > > Almost: Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce

Re: [Zope] keeping state of tree over different documents

2000-08-27 Thread Dieter Maurer
Marcus Schopen writes: > The problem that occurs is, that the tree`s open/close state is not correctly >maintained over the different documents. A solution to that might be to append the >state of the tree after selection of a link to the it's URL as ?tree-s= ; that >means pass the futu

Re: [Zope] ZServer stepping on Content-Type and Content-Length?

2000-08-29 Thread Dieter Maurer
Jeff Hoffman writes: > > In the index_html method, I have: > > RESPONSE.setHeader('Content-Type', 'video/foo') > RESPONSE.setHeader('Content-Length', 1212) > > However, when I telnet to my web port and do: > > HEAD /path/to/myfile.mpg HTTP/1.0 > > I get: > > Cont

Re: [Zope] Showing the name of a file-type form variable

2000-08-29 Thread Dieter Maurer
Jean Jordaan writes: > name="file" > value="" > > > > Which returns:: > > This is a perfect receipt where you should look for information: [/lib/python/]ZPublisher/HTTPRequest.FileUpload You will find there: File upload object

Re: [Zope] How to get URL of folder (name unknown) with a certain property?

2000-08-29 Thread Dieter Maurer
Tim Hicks writes: > I am trying to figure out how to get hold of the URL (using > absolute_url I presume) of a folder with a property called > "sehs_root_folder" set to "yes". Have a look at "ZopeFind" (it is the function implementing Zope's "find" tab). It is documented in the Object Reference

Re: [Zope] dedicated folder for each user

2000-08-29 Thread Dieter Maurer
Vincent writes: > is it possible to creat automatically a folder with the name of the logged > user ? Yes! In general, you can do anything programmatically that you can do with the management interface. Because Zope is open source, you can learn from the management interface, how to do it. Yo

Re: [Zope] unauthorized when accessing /manage in zope 2.2.1

2000-08-29 Thread Dieter Maurer
Philipp Dunkel writes: > I have a Zope Product that makes use of different nested classes. > When I create an instance of this product I always get an > "unauthorized" error when clicking the instance in the management interface > (=accessing /manage) > even if I am logged in as a manager or

Re: [Zope] Problem with SiteAccess 1.0.1

2000-08-29 Thread Dieter Maurer
William JOYE writes: > I have some minor problems with SiteAccess 1.0.1 and Zope 2.1.6 + hotfix. > > 1. When click on the folder that contain SiteRoot, I need to enter again > login and password. Why ? > 2. When I delete an object, I have always an script error message. Why ? We use SiteAcc

Re: [Zope] Advice for new zope installation

2000-08-29 Thread Dieter Maurer
Henk Schets writes: > After reading all the info about zope, I am very impressed with the > possibilities it can deliver. However, before I migrate our existing site, > I need to be certain about certain topics : > - how easy and reliably can I manage my virtual hosts (about 8 sites > ri

Re: [Zope] Nested dtml???

2000-08-29 Thread Dieter Maurer
Tim Hicks writes: > I am trying to work my way up through folders, checking whether each > folder has a property named 'site_root_folder'. Logically (in *my* > head anyway), what I have written below is what I want to do, but I'm > not sure that I'm really writing this the write way. I vague

Re: [Zope] REQUEST.form.set ???

2000-08-29 Thread Dieter Maurer
Brian Withun writes: > Is it possible for DTML to create or modify a form value? It is possible to extend any dictionary, especially "REQUEST.form". You use the dictionary "update" method as in It will, however, not work as you might expect. This is because the DTML namespace *does not

Re: [Zope] ZCatalog and foreign characters

2000-08-29 Thread Dieter Maurer
Radim Gelner writes: > is it possible to make ZCatalog work correctly with words containing > characters other then those given in ISO-8859-1. > > Now, it reports "no found" for all such queries even when these words > are present inside the documents on site. I have made a very crude patch

Re: [Zope] SQL question...I think

2000-08-29 Thread Dieter Maurer
George writes: > > I know how to insert data in to the table, > search and such. I can not find any info on how to embed the data in my > dtml-html code to show it to the world. Because, you can already search, you do already embed data in dtml-html to show it to the world. You just d

Re: [Zope] CatalogAware

2000-08-29 Thread Dieter Maurer
Yapo =?ISO-8859-1?Q?S=E9bastien?= writes: > I use objects from a class which inherits from CatalogAware. > The objects index themselves into the ZCatalog but I get strange results = > when I try to search in this ZCatalog... The problem is solved after = > reindexing the object via the reindex

Re: [Zope] dtml-tree question

2000-08-29 Thread Dieter Maurer
Hugo Ramos writes: > Is there a way to use my own self made '+' icon in a tree tag? > I'dd like to use my own icon only IF i want to... and not change the python > source to use my own icon all the time! The code is partially there, but incomplete and commented out. If you do not mind other ex

Re: [Zope] How to Delete ZClass Instances programmatically??

2000-08-29 Thread Dieter Maurer
Jean Jordaan writes: > I've found the "How-To: Adding ZClass Instances Programmatically", > but now I'm looking for the *Deleting ZClass Instances* one! > > I'm trying this as a beginning (hacked from the Zope management > interface):: > > > > > > > Probl

Re: [Zope] updating only zCatalog ?

2000-08-29 Thread Dieter Maurer
Philipp Dunkel writes: > I'd like to use it for my Products, but I don't have the time now to port > everything to the new zope version. > Is it possible to only use the new catalog and which files do I have to > change/update ? It is possible. You would use the folder "SearchIndex" from Zope

Re: [Zope] FTP crashing Zope?

2000-08-30 Thread Dieter Maurer
Dario =?ISO-8859-1?Q?Lopez-K=E4sten?= writes: > Using FTP Explorer I crashed (killed) my Zope instance while ftping in to > port 8021. This was achieved by not setting FTP Explorer to use PASSIVe > connections. Using Passive it works like a charm. > > Is this a bug in latest Zope (2.2.1) or

Re: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Dieter Maurer
Terry Kerr writes: > But now when I instantiate my product in 2.2.0 or 2.2.1, > searching only works when I search using a field index. Searching using > a textindex always results in an empty result I use ZCatalog text indexes under 2.2.1b1 without problems (with a globbing lexicon!

Re: [Zope] symbolic links or invisible objects..?

2000-08-30 Thread Dieter Maurer
Geoffrey L. Wright writes: ... symbolic links ... If your content is simple, i.e. does not contain URL references, then symbolic links can easily be emulated with DTML methods. Suppose, you have the following structure: A/ A/A1/ A/A1/a1 A/A1/an A/B1/b1 A/B1/bn and y

Re: [Zope] Objet : Re: [Zope] Searching in all field with ZCatalog

2000-08-31 Thread Dieter Maurer
Francois-Regis CHALAOUX writes: > No, you asked the right question, scuse me for the error !! > I would like only one entry in the form to search in all indexed fields. This is not easy. A ZCatalog search usually combines searches to the different indexes with an "And". You want to combine the

Re: [Zope] "Z2 CONFLICT Competing writes" and synchronization woes

2000-08-31 Thread Dieter Maurer
Sean McGrath writes: > I want to synchronize ... > > I tried using the threading module and creating > a Lock object as a global in the external method. > This does not help as each request gets allocated its > own Lock object As you observed, each thread gets its own global namespace

Re: [Zope] Overriding Z Class methods in instances

2000-08-31 Thread Dieter Maurer
Johann Visagie writes: > It seems you cannot overload the methods of a Z Class in an instance of that > class. If you try to, you get a message that the method's id is invalid > since it is already in use. > > If this is really the case, then how can one achieve the necessary separation >

<    1   2   3   4   5   6   7   8   9   10   >