Re: [Zope] Problems with Coding differences to do same stuff...boundary=------------EAFFAD5A57052936695E91D7

2000-07-19 Thread Dieter Maurer
Trying to do a simple thing as creating a document and then adding a property with an DTML method, found that the following code does not work, it comes up with a password request (all security settings are at defaults): dtml-call

Re: [Zope] all DTML Methods of current folder and subfolder

2000-07-21 Thread Dieter Maurer
Wolfgang Klinger writes: I have a dtml method in a folder which should display all "document_title"s of all "DTML Method"s in the current folder and all sub folders! I tried dtml-in "Info.objectValues(['DTML Method'])" where "Info" is the current folder where the method

Re: [Zope] ZCatalog dynamic sites

2000-07-21 Thread Dieter Maurer
I have a Zope site that uses MySQL to dynamically create some pages. What I want is the ability to search throughout the site, INCLUDING the pages that are database-driven. It seems to me that ZCatalog only=20 finds items that exist *in zope*. Is it something ZCatalog can't do or am

Re: [Zope] Working with Lists

2000-07-21 Thread Dieter Maurer
Terry Babbey writes: Here is my code and my error. dtml-in "_.getitem(ProgCode,0).CL" dtml-let item=sequence-item dtml-var "item[0]" /dtml-let BR /dtml-in Zope has encountered an error while publishing this resource. Error Type: IndexError

Re: [Zope] NESTED IN STATEMENTS AND PASSING VARIABLES in DTML

2000-07-21 Thread Dieter Maurer
[EMAIL PROTECTED] writes: This is FAQ material and should be inserted into either the DTML programmer's guide or the ZSQL Methods guide. It bites everyone who uses SQL methods eventually. ZSQL methods do not perform acquisition, but will look at REQUEST, change it to. A minor

Re: [Zope] An observation about manage_* methods

2000-07-23 Thread Dieter Maurer
albert boulanger writes: def manage_editData(self, data, REQUEST=None): """Change item data""" self._rows = map(self._FixRow, ImportExport.ImportData(data)) self._n_rows = len(self._rows) self._GenerateIndex() return

Re: [Zope] all DTML Methods of current folder and subfolder

2000-07-23 Thread Dieter Maurer
Jerome ALET writes: Please do you know how to pass a "complex" obj_expr parameter to the ZopeFind call ? I want to do the following loop in Zope 2.1.6: dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], search_sub=1, obj_expr=XXX" where XXX is "not objectValues(['Folder'])"

[Zope] Another Digest Complaint

2000-07-23 Thread Dieter Maurer
Zope mailing list digests are a real pain! My latest bad experience: * on Jul 20, the digest contained a message from Felipe E Barousse Boue * I answered it on Jul 20 * today, the digest contained my answer and *AFTER* my answer Felipe's message *AGAIN*. I often realize that digests

Re: [Zope] REQUEST a string object?

2000-07-25 Thread Dieter Maurer
Rob Miller writes: table dtml-call "REQUEST.set('ctr', 0)" dtml-in "fileValues(REQUEST.get('spec', _.None))" dtml-call "REQUEST.set('ctr', _.int(ctr) + 1)" There are "sequence-index" and "sequence-number" variables defined by "dtml-in". Thus, you need not count

[Zope] Probably Zope Bug (was: Re: [Zope] all DTML Methods of current folder and subfolder)

2000-07-25 Thread Dieter Maurer
Jerome Alet writes: Thanks to you, the syntax you gave me is accepted by the dtml parser, but both dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], obj_expr='''not objectValues(['Folder'])''', search_sub=1)" and dtml-in "ZopeFind(this(),

Re: [Zope] problem with manage_permission

2000-07-26 Thread Dieter Maurer
Jerome Alet writes: self.manage_permission(permission_to_manage = "Access contents information" , roles = [ 'Manager', 'admin' ]) ..., but the manage_permission call gives me the following traceback: Error Type: AttributeError Error Value: aq_acquire Traceback (innermost

[Zope] computed attribute access(was: Re: [Zope] namespace and PARENTS doubt) (was: Re: [Zope] namespace and PARENTS doubt)

2000-07-26 Thread Dieter Maurer
Fabio Akita writes: dtml-with "_['PARENTS[1].' + _['parameter'] + '.folder']" For "computed attribute access", use "_.getattr". In your case probably (I am not sure, I understand you expression correctly): dtml-with "_.getattr(PARENTS[1],parameter).folder" Dieter

Re: [Zope] newbie DTML namespace

2000-07-27 Thread Dieter Maurer
Brad Moulton writes: I would like to build a table depending on some tests peformed on stuff returned form a Z SQL method 1. I have a form with a name="spam" value="egs" this value is passed onto next dtml document - table tr tddtml-var spam td

Re: [Zope] monitoring the zope-process with daemontools

2000-07-27 Thread Dieter Maurer
Andy Pahne writes: I have posted a few days ago that I have problems with my zope dying suddenly. Someone suggested to use D. Bernsteins daemon-tools, not as a solution to my problem, but helpful anyway. I made this tool working on my production system, but there's one problem with

Re: [Zope] Re: [Zope-dev] Need for aq_base in DTML(was: Re: [Zope] Dumb DTMLquestion - existance check of an object)question - existance check of an object)

2000-07-27 Thread Dieter Maurer
Steve Alexander writes: * Existence check: "_.hasattr(object,what)" NOTE, that this is the sloppy part. - "_.hasattr" will return true, if "object" has attribute "what" (that is what we want) *OR* when it has acquired such an attribute (we

Re: [Zope] Call of an SQL Method within a DTML document...

2000-07-27 Thread Dieter Maurer
Vincent writes: How can I call and SQL method within a DTML document (HTML code) ? Read the Z SQL Method Guide (zope.org - Documentation). If you have more questions after that, the list will surely answer them. Dieter ___ Zope maillist -

[Zope] (no subject)

2000-07-28 Thread Dieter Maurer
Subject: Potential tree bug (was: Re: [Zope] dtml-tree question) In-Reply-To: [EMAIL PROTECTED] X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Jonothan Farr writes: What is the difference between

Re: [Zope] dtml-in 'one record per page' problem

2000-07-30 Thread Dieter Maurer
Cesar A. K. Grossmann writes: I'm using a report that must return one instance by page, but it's not working very well... If the query returns more than one result, Zope presents only two pages. I'm using Zope 2.1.6 in a Linux box. What does is mean: "presents only two pages"? Probably,

Re: [Zope] What is the best method to enter more attributes about DTL Document?

2000-07-30 Thread Dieter Maurer
Marcin Kasperski writes: Short and probably obvious problem: what can I do to be asked for more properties while creating DTML Document (say I wanna be asked about description and keywords which I use in meta tags)? Maybe, customize "OFS/methodAdd.dtml" and "OFS/documentAdd.dtml". You need

Re: [Zope] Zope for secure transactions?

2000-07-30 Thread Dieter Maurer
Rajil Saraswat writes: 1. Can Zope support SSL or https? There is an extension allowing ZServer to serve HTTPS requests. Search "zope.org" for the corresponding HowTo. 2. Is there some way in Zope through which i can use secure transactions. Recently, there was a discussion in Zope's

[Zope] Re: Probably ZopeFind Bug (was: Re: [Zope] all DTML Methods of current folder and subfolder)

2000-07-25 Thread Dieter Maurer
Dieter Maurer writes: Jerome Alet writes: Thanks to you, the syntax you gave me is accepted by the dtml parser, but both dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], obj_expr='''not objectValues(['Folder'])''', search_

Re: [Zope] getslice Error?

2000-07-31 Thread Dieter Maurer
Marko MARKOVIC writes: dtml-in "showNSDetails(nsref=old_nsref)" start=query_start dtml-call "REQUEST.set('sdate','%s.%s.%s' % (ns_entrydate[8:],ns_entrydate[5:7],ns_entrydate[:4]))" input type="text" name="new_nsentrydate" value="dtml-var sdate" size="10" /dtml-in ns_entrydate is

Re: [Zope] using sister folder methods ?

2000-07-31 Thread Dieter Maurer
Gijs Reulen writes: I have a root level folder with a DTML Document. From within this document I want to use a DTML Method that is located in a sister folder; another folder from the root. I tried the full path but that does not seem to work. What else ? dtml-with other_folder

Re: [Zope] Passing 'document_title' to 'standard_html_header' from a method?

2000-07-31 Thread Dieter Maurer
I can't seem to get the 'document_title' from a method into a standard header (when using 'dtml-var document_title' in the header file the generated page uses the title of the header file itself. I just read in "zope-ptk" that a namespace has an (undocumented) "this" attribute pointing to

Re: [Zope] ZSearch generated default report file fails on result set cardinality greater 50 for content which contains www addresses

2000-08-03 Thread Dieter Maurer
Andreas Rippel writes: I came across the situation, where the result rows of a Z SQL access contained www strings like www.uni-ko-ld.de/veranstaltungen/lehramt.html, see below. Using ZSearch generated dtml-methods generated the following html code, when the result set contains more

Re: [Zope] Batchpeocessing with multiple selection

2000-08-03 Thread Dieter Maurer
vikas writes: For this i am using batch processing. But it is giving me errors Such as key error [city],[state] and gives the url of my page where i m using batchprocessing. Can someone help me out how to overcome the problem this problem as this is very urgent for me. ... You

Re: [Zope] Confusing aq - I don't get it, anyone know why?

2000-08-03 Thread Dieter Maurer
Brad Clements writes: ... Name Error in called DTML method dtml-var "FormatColumnTable(columnlist=packagecolumns,obj=GetSelf(),notable=1)" Here, you break the namespace propagation! As a general rule: If you call a DTML object explicitely (i.e. inside "..."), then *always* use

Re: [Zope] Evaluating a string of DTML code?

2000-08-03 Thread Dieter Maurer
T.J. Mannos writes: I have an ExternalMethod that processes an HTML file, extracts the contents of the BODY tag, and wraps my site template around it. (In other words, it takes a plain vanilla HTML file and adds standard_html_header and standard_html_footer). [See

[Zope] Confusing sqlvar error message

2000-08-05 Thread Dieter Maurer
Today, I analysed a confusing error message from "dtml-sqlvar". SQL query template: dtml-sqlvar "_[name]" type=string reported: "missing input variable: _[name]" Of cause, I did not expect that such an input variable

[Zope] Zope in single thread mode during DTML rendering

2000-08-05 Thread Dieter Maurer
A collegue of mine succeeded today to implement an infinite DTML loop. That happens ... However, during this loop, Zope did not respond to any request. Effectively, it was in single thread mode. Zope 2.1.6 Binary Distribution for Sparc Solaris 2.6 ZOracle DA, DCOracle, Oracle

Re: [Zope] ZCatalog attachments?

2000-08-05 Thread Dieter Maurer
Simon Coles writes: We have binary files stored in Zope, for example Word documents (but could be any of a variety of document types). We would like to be able to index and search the contents of these files using ZCatalog. So if a Word file contains the word "Fred", then any

Re: [Zope] Less than helpful traceback

2000-08-05 Thread Dieter Maurer
Spicklemire, Jerry writes: Any thoughts about how to find out what the erro message (below) means? If I could just find out what exactly is not being found, it would help alot, but there's no hint. Zope has encountered an error while publishing this resource. Resource not found

Re: [Zope] Solution Suggestions?

2000-08-05 Thread Dieter Maurer
Craig writes: ... special "Tips" objects in Zope ... It seems, this is an ideal task for a Catalog Aware ZClass. On zope.org, you will find tutorials for ZClass and ZCatalog. Dieter ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] server instability: ZODB corruption?

2000-08-06 Thread Dieter Maurer
Guido A.J. Stevens writes: Main suspect is a corrupted Data.fs.in file. How can I audit and repair it? "Data.fs.in" is only used during installation. Probably, you mean "Data.fs". problem A: access denied vs. KeyError ... = Question: which parts of zope

Re: [Zope] Newbie question: referring to dtml-call documents

2000-08-07 Thread Dieter Maurer
David Loeffler writes: whenever I try to get hold of this with anything like dtml-var "_[objId].getProperty(dest)" (objId is the id of the document) it simply redirects ... "_[xxx]" executes (calls) the retrieved object, if possible. In your case, execution calls

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 Screens"

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

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 method

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.

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.fs

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]

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 in one

Re: [Zope] Bug in dtml-in size=1

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 dtml-in 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 dtml-in tag only iterates

Re: [Zope] dtml-with confusion

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

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: dtml-in "PARENTS[0].objectItems(['ccDocClassMetaType'])" sort=id Should it work? How does one sort the results returned by an expression such as the above? I think so. Does it not? I

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 the

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 know

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: a href="manage_addProduct/ccDoc/ccDocClass_factory" Add a document./a The

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 of

Re: [Zope] In-tag Batch processing

2000-08-13 Thread Dieter Maurer
, 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 2.2 or the patch at URL:http://www.dieter.handshake.de

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 Error: -

[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. dtml-var "content.whos_who.gmetrail.real_name" 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

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 not be

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 all

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 see is a

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 dtml-let variable="_['documentname']" but I do not like the style, it looks clumsy. Is there an another way? I would think something like documentname(...), but the

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: ['zlat',

[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]

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 DTML-IN? I did not understand your requirements. But the answer is yes: dtml-let query_results=SQLMethod dtml-in query_results dtml-var

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: """ psdfsdf - 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 "dict.items()", "objectItems" etc.

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? dtml-call "REQUEST.environ.update({'HTTP_ACCEPT' : whatever_you_want})" The default seems to be "*/*", but our sysadmin says Zope would get along

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 : The

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 have 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 RD 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 going

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 Document.

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 above)

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 ZClass ?

Re: [Zope] modifying/changing DTML properties

2000-08-17 Thread Dieter Maurer
R. David Murray writes: This: b!--#var eggs --/b dtml-call "manage_changeProperties({'eggs': 'blue'})" p!--#var eggs -- results in: bgreen/b pgreen did i miss something? Hmm. That should have worked. You could try

Re: [Zope] dtml-with object calls first?

2000-08-18 Thread Dieter Maurer
Chris Withers writes: If you do dtml-with object 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

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(self,

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, . whatever you need class B(A): When I have tried, the inherited methods from A where not visible from B,

[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: dtml-let src="have_image(name,language) and

Re: [Zope] Re: Bug in dtml-in size=1

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.pat

[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

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 Manager

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 back. I've also had a problem

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 the

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Dieter Maurer
Chris Withers writes: Is is just me or does stuff inside a dtml-comment get parsed? "dtml-comment" must do a bit of parsing: It must at least recognized "/dtml-comment". Maybe, it wants to recognize nested "dtml-comment" (probably not), then it must look at all tags. Probably, however,

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 "ob.__of_

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 least

Re: [Zope] (my) faulty ZClass constructor

2000-08-22 Thread Dieter Maurer
Jean Jordaan writes: further testing shows that this works:: dtml-call "RESPONSE.redirect( DestinationURL()+'/manage_workspace')" but this:: dtml-if DestinationURL dtml-call "RESPONSE.redirect( DestinationURL()+'/manage_workspace')" /dtml-if

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

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:: dtml-var docsByTitle 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

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 Apache

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 strange

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 + SMALL

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 dtml-call "RESPONSE.redirect(baseURL)" and 'login' method has NO autorizations for anonymous. It redirects me on the right "baseURL" page, but the

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-tree00b001c006da$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

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