From wgarcia@esrf.fr Fri May 3 14:33:28 2002 From: wgarcia@esrf.fr (William GARCIA) Date: Fri, 03 May 2002 15:33:28 +0200 Subject: [Zope] pb with the function getProperty In-Reply-To: <5.1.0.14.1.20020423110929.00a920c8@mailserv.esrf.fr> Message-ID: <5.1.0.14.1.20020503152902.00abb380@mailserv.esrf.fr> --=====================_26100109==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed At 11:18 23/04/2002 +0200, you wrote: >I would like to display a list of images (ids) located in a folder and >which property State equals to 'private' >Here is the code I wrote : > > >
>
>
> >Zope generate the next error : >Error Type: AttributeError >Error Value: getProperty >In order to answer the reply of Maik Jablonski (it was just a forbid, the >problem is not due to the comparaison operator == >I don't know how to proceed, perhaps can I find a soltuion with a Python >script > >If somebody can help me ? >Thanks > >GARCIA William --=====================_26100109==_.ALT Content-Type: text/html; charset="us-ascii" At 11:18 23/04/2002 +0200, you wrote:
I would like to display a list of  images (ids) located in a folder and which property State equals to 'private'
Here is the code I wrote :
      <dtml-in expr="objectIds(['Image'])">
         <dtml-if "_['sequence-item'].getProperty('State')=='private'">
            <dtml-var sequence-item><br>
         </dtml-if>
      </dtml-in>

Zope generate the next error :
Error Type: AttributeError
Error Value: getProperty

In order to answer the reply of Maik Jablonski (it was just a forbid, the problem is not due to the comparaison operator ==
I don't know how to proceed, perhaps can I find a soltuion with a Python script

If somebody can help me ?
Thanks

GARCIA William

--=====================_26100109==_.ALT-- From dman@dman.ddts.net Wed May 1 00:40:30 2002 From: dman@dman.ddts.net (dman) Date: Tue, 30 Apr 2002 18:40:30 -0500 Subject: [Zope] zpt wackyness In-Reply-To: <011301c1f082$7a2bf380$d101a8c0@viz.com> References: <011301c1f082$7a2bf380$d101a8c0@viz.com> Message-ID: <20020430234030.GB18743@dman.ddts.net> --+pHx0qQiF2pBVqBT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 30, 2002 at 01:06:12PM -0700, Russell Uman wrote: |=20 | i have a main page template: index_html | i have a number of content templates that i would like to include | into my main page. the title property is set for each object: | content_1, title =3D "number one" | content_2, title =3D "number two" | content_3, title =3D "number three" |=20 | i'm trying to dynamically choose which content object to display | based on a request variable. |=20 | here is what i have in index_html: |=20 | | title | body |=20 | this is what i see if i browse to index_html?page=3Dcontent_2 |=20 | number one | This is the repr() of the object. | so the title is working! but the body is not. It works, it's just not what you really meant to ask for :-). | how can i get zope to include the contents of the object? is there a | better way to translate a string into an object? if i make a | call to tal:replace=3D"container/content_1" i have no problems - i | just can't figure out how to do this dynamically... body ^^ ^^ I think it would be clearer if you made index_html a Python Script instead. It's what I'm doing with a site whose index needs to be dynamically created based on who the user is and the contents of some SQL dbs. # Script(Python) page REQUEST.get( 'page' , None ) : if not page : page =3D 'content_1' print container[page].title print container[page]() return printed HTH, -D --=20 Pride only breeds quarrels, but wisdom is found in those who take advice. Proverbs 13:10 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --+pHx0qQiF2pBVqBT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzPK24ACgkQO8l8XBKTpRRroACfe5luxTem8Oir5M38e1NK0rzU MwUAn2Gke0PlsIyWgnS9Bq2d8RLT88v3 =R9xM -----END PGP SIGNATURE----- --+pHx0qQiF2pBVqBT-- From dman@dman.ddts.net Wed May 1 00:40:51 2002 From: dman@dman.ddts.net (dman) Date: Tue, 30 Apr 2002 18:40:51 -0500 Subject: [Zope] dynamic dtml-tree In-Reply-To: <15566.63284.653010.377669@linux.local> References: <20020430035211.GA7570@dman.ddts.net> <15566.63284.653010.377669@linux.local> Message-ID: <20020430234051.GC18743@dman.ddts.net> --WplhKdTI2c8ulnbP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 30, 2002 at 09:57:40PM +0200, Dieter Maurer wrote: | dman writes: | > I found dtml-tree today, and it provides the exact UI I want to use. | > I even managed to make it work to display the contents of the current | > folder. I haven't yet seen any docs that describe how the dtml-tree | > works. The page that I will generate will be based on data from | > several SQL databases and consolidated by a Python Script. I need to | > know the structure of the data that dtml-tree expects and how to | > handle expansion requests. Any pointers, docs, discussions, or | > examples are greatly appreciated. | | There are some HowTos/documentent on Zope.org (something like | "Advanced DTML tree usage". |=20 | Be careful, it might be a little out of date. Ok, I'll take a look and probably be back :-). Thanks, -D --=20 Come to me, all you who are weary and burdened, and I will give you rest. Take my yoke upon you and learn from me, for I am gentle and humble in heart, and you will find rest for your souls. For my yoke is easy and my burden is light. Matthew 11:28-30 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --WplhKdTI2c8ulnbP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzPK4MACgkQO8l8XBKTpRRTDwCcD7QUUzbcNIhjjzcpz1pMOsXb +DkAn3l1QhngymipIy/lpawy0i9hdxGm =//xX -----END PGP SIGNATURE----- --WplhKdTI2c8ulnbP-- From pydan@danshafer.com Wed May 1 01:31:21 2002 From: pydan@danshafer.com (Dan Shafer) Date: Tue, 30 Apr 2002 17:31:21 -0700 Subject: [Zope] Still Plagued With Date Formatting Bug in Text Field Message-ID: <5.1.0.14.0.20020430172042.0f3898c0@mail.hurrah.com> I asked this question about 10 days or so ago but I haven't gotten (or at least seen) an answer. I have looked for the answer in Zope docs until my eyes bleed and I just can't figure this out. I have a text field called start_date. I set its default value to today's date by setting its value to (_DateTime().strftime("%b. %d, %Y")) The date shows up in the field, but only the first item of the formatted string displays. In this example, the field contains "Apr." and that's it. Now if I set the default value of a textarea to the same exact value, the date displays correctly. Anybody have *any* idea what in the world is going on here? From pydan@danshafer.com Wed May 1 02:28:00 2002 From: pydan@danshafer.com (Dan Shafer) Date: Tue, 30 Apr 2002 18:28:00 -0700 Subject: [Zope] Form Data Needed in Second Form Message-ID: <5.1.0.14.0.20020430182526.0f3c2aa0@mail.hurrah.com> I have part of a Zope app written largely as Python scripts linking DTML forms that looks conceptually like this: 1. Form A gathers data and then as its action invokes a Python script. 2. Python Script 1 creates a new DTML document and updates its contents based on field data in Form 1. 3. Python Script 1 then uses RESPONSE.redirect() to open a second DTML form, Form 2. 4. Form 2 needs the name of the document Python Script 1 created as well as access to some or all of the data in the fields in Form 1. What is the best/right/only way to accomplish this goal? Seems like it should be straight-forward but I've played with several promising ideas that turned out to be dead ends. I'm getting a bit desperate. All help appreciated! From andy@agmweb.ca Wed May 1 04:48:34 2002 From: andy@agmweb.ca (Andy McKay) Date: Tue, 30 Apr 2002 20:48:34 -0700 Subject: [Zope] ZSyncer abandoned? References: <3CCE3A32.8070400@tiscali.cz> <000701c1f076$a9de4d50$89505018@cr582427a> <3CCEFF7A.1090009@tiscali.cz> Message-ID: <002601c1f0c3$18bd9090$89505018@cr582427a> > > Regarding your problem, I dont know the solution, it sounds like the > > character sets for the xmlrpc packets needs fiddling. Any patches welcome. > > So it's outside your scope, because you don't maintain xmlrpc, right? Erm, no its my issue, if anyones :) > I can't create patches. I'm not very experienced. Should I file bug > report at python devel conference? Well not really its a matter of getting the right xml-rpc calls. Its not a question of the tool being broken, just not being wielded properly ;) ----- Original Message ----- From: "Milos Prudek" To: "Andy McKay" ; "zope" Sent: Tuesday, April 30, 2002 1:32 PM Subject: Re: [Zope] ZSyncer abandoned? > Andy McKay wrote: > > Im still here :) I got one email but my reply to you bounced I think. Anyway > > you can always get me at zopista@zopezen.org, or on #zope. I'm getting far > > too much email, I wish I didnt get most of it :) > > > > ZSyncer isnt really abandoned, I just dont use it anymore so dont really do > > any active development on it, its way down on my radar, I just do bug fixes. > > OK, no problem. Sorry to hear that. > > > Regarding your problem, I dont know the solution, it sounds like the > > character sets for the xmlrpc packets needs fiddling. Any patches welcome. > > So it's outside your scope, because you don't maintain xmlrpc, right? > > I can't create patches. I'm not very experienced. Should I file bug > report at python devel conference? > > > -- > Milos Prudek > > From renfro@tntech.edu Wed May 1 05:21:20 2002 From: renfro@tntech.edu (Mike Renfro) Date: Tue, 30 Apr 2002 23:21:20 -0500 Subject: [Zope] Still Plagued With Date Formatting Bug in Text Field In-Reply-To: <5.1.0.14.0.20020430172042.0f3898c0@mail.hurrah.com>; from pydan@danshafer.com on Tue, Apr 30, 2002 at 05:31:21PM -0700 References: <5.1.0.14.0.20020430172042.0f3898c0@mail.hurrah.com> Message-ID: <20020430232120.A5888@ch208h> On Tue, Apr 30, 2002 at 05:31:21PM -0700, Dan Shafer wrote: > I have a text field called start_date. I set its default value to today's > date by setting its value to (_DateTime().strftime("%b. %d, %Y")) > > The date shows up in the field, but only the first item of the formatted > string displays. In this example, the field contains "Apr." and that's it. > Now if I set the default value of a textarea to the same exact value, the > date displays correctly. Any chance your field is rendering as: instead of: ? -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From pydan@danshafer.com Wed May 1 05:58:27 2002 From: pydan@danshafer.com (Dan Shafer) Date: Tue, 30 Apr 2002 21:58:27 -0700 Subject: [Zope] Still Plagued With Date Formatting Bug in Text Field In-Reply-To: <20020430232120.A5888@ch208h> References: <5.1.0.14.0.20020430172042.0f3898c0@mail.hurrah.com> <5.1.0.14.0.20020430172042.0f3898c0@mail.hurrah.com> Message-ID: <5.1.0.14.0.20020430215752.0f3857e8@mail.hurrah.com> At 11:21 PM 4/30/2002 -0500, Mike Renfro wrote: >On Tue, Apr 30, 2002 at 05:31:21PM -0700, Dan Shafer wrote: > > > I have a text field called start_date. I set its default value to today's > > date by setting its value to (_DateTime().strftime("%b. %d, %Y")) > > > > The date shows up in the field, but only the first item of the formatted > > string displays. In this example, the field contains "Apr." and that's it. > > Now if I set the default value of a textarea to the same exact value, the > > date displays correctly. > >Any chance your field is rendering as: > > > >instead of: > > I suppose that's possible. There are no quotation marks showing in the field. But if I'm using strftime(), I don't see how this could'should be happening. >? > >-- >Mike Renfro / R&D Engineer, Center for Manufacturing Research, >931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From jtk@adelphia.net Wed May 1 06:09:20 2002 From: jtk@adelphia.net (Jeff Kowalczyk) Date: Wed, 1 May 2002 01:09:20 -0400 Subject: [Zope] Set _allowed_meta_types on folder instances without creating a new product? In-Reply-To: <15561.47037.434056.36876@linux.local> Message-ID: <000001c1f0ce$5a0d6100$6401a8c0@laptop> > Make an External Method. Call it on the folder and > give it as parameter the meta types your want to allow. I've created changeAllowedMetaTypes.py and installed it as an External method. from string import join def changeAllowedMetaTypes(self, mts): """set _allowed_meta_types to mts""" self._allowed_meta_types = tuple(mts) self._p_changed = 1 return '_allowed_meta_types changed to ' + join(self._allowed_meta_types) + ' on ' + self.id I'm calling it like http://localhost:8080/myFolder/Images/changeAllowedMetaTypes?mts:list=Im age&mts:list=Folder And it's returning '_allowed_meta_types changed to Image Folder on Images', so the call seems to be succeeding. However, the folder Images still shows the full metatype list when I return to it. Am I missing something? From itai@optusnet.com.au Wed May 1 06:41:12 2002 From: itai@optusnet.com.au (Itai Tavor) Date: Wed, 1 May 2002 15:41:12 +1000 Subject: [Zope] Form Data Needed in Second Form In-Reply-To: <20020501051101.26019.29988.Mailman@mail.python.org> References: <20020501051101.26019.29988.Mailman@mail.python.org> Message-ID: >Dan Shafer wrote: > >I have part of a Zope app written largely as Python scripts linking DTML >forms that looks conceptually like this: > >1. Form A gathers data and then as its action invokes a Python script. >2. Python Script 1 creates a new DTML document and updates its contents >based on field data in Form 1. >3. Python Script 1 then uses RESPONSE.redirect() to open a second DTML >form, Form 2. >4. Form 2 needs the name of the document Python Script 1 created as well as >access to some or all of the data in the fields in Form 1. > >What is the best/right/only way to accomplish this goal? > >Seems like it should be straight-forward but I've played with several >promising ideas that turned out to be dead ends. I'm getting a bit desperate. > >All help appreciated! My preferred solution is to call Form 2 in the context of the new document. Your Python Script creates 'doc1' and then redirects to 'doc1/Form2'. Form 2 then has full access to all the data stored in the new document. HTH. -- -- Itai Tavor -- "Je sautille, donc je suis." -- itai@optusnet.com.au -- - Kermit the Frog -- -- -- -- "If you haven't got your health, you haven't got anything" -- From johnschinnerer@yahoo.com Wed May 1 06:49:20 2002 From: johnschinnerer@yahoo.com (John Schinnerer) Date: Tue, 30 Apr 2002 22:49:20 -0700 (PDT) Subject: [Zope] color-syntax editor for dtml In-Reply-To: Message-ID: <20020501054920.1789.qmail@web13406.mail.yahoo.com> Aloha, --- Wendy Langer wrote: > I was just wondering on what people's opinions are on the best > applications > to use for editing dtml files - I want something with at least a bit > of syntax coloring ... Upon discovering zope, I had been using CoffeCup (coffeecup.com) for HTML coding, and I'm still using it, for HTML, dtml, TAL and css...it has nice configurable syntax highlighting (html, perl, text, css - no python, alas, and of course no dtml). Dtml tags get the same color as 'general' HTML tags (some HTML tag groups such as table tags and image tags have different, configurable colors). There's no way to add syntax info afaik. There's a free (but not open source) linux version - less features than the Win version, but all the basics and less 'useless' features cluttering it up, I suspect. cheers, John S. __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From johnschinnerer@yahoo.com Wed May 1 06:54:18 2002 From: johnschinnerer@yahoo.com (John Schinnerer) Date: Tue, 30 Apr 2002 22:54:18 -0700 (PDT) Subject: [Zope] abandonware and new.zope.org In-Reply-To: Message-ID: <20020501055418.2535.qmail@web13406.mail.yahoo.com> Aloha, I agree with the desire for some flagging of products as to their state of being. Thus far, trying to find out which products are current, which are 'retired', which are still 'owned' or maintained by someone (and whom), which have been (sometimes long ago) superceded/replaced by something else, etc. is a pain in the mouse. John S. --- Marc Lindahl wrote: > That would be very useful for us product developers, to know what > people are > really using! Even a download counter, rating system, etc.... > > on 4/30/02 2:45 AM, Milos Prudek at milos.prudek@tiscali.cz > scrivened: > > > An idea for new.zope.org: encourage people not to abandon popular > projects. > > > > Even very useful and well know Zope products get abandoned. > Consider > > LoginManager. > > > > Both SourceForge and Freshmeat introduced rating according to > > "activity", which is probably the frequency of releases. > > > > This may not work 100% (some people may prefer to download software > with > > lower frequency of releases as it may be deemed more stable) but > it's a > > start. > > > > A more drastical approach would be tagging products that have not > had a > > release in six months as "abandoned" in red typeface. Such products > > would stand out in a list of products, perhaps forcing the author > to > > come out and say whether the product is doscontinued, but it would > > definitely make users better informed about the product status. > Another > > approach would be to mark products "may be abandoned" if no release > was > > published in six months, and "abandoned" if no release in 12 > months. > > > > Just my idea. Propose something softer or harder, but IMHO some > solution > > should be implemented. > __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From dirk.datzert@rasselstein-hoesch.de Wed May 1 08:20:23 2002 From: dirk.datzert@rasselstein-hoesch.de (Dirk Datzert) Date: Wed, 01 May 2002 09:20:23 +0200 Subject: [Zope] Form Data Needed in Second Form References: <5.1.0.14.0.20020430182526.0f3c2aa0@mail.hurrah.com> Message-ID: <3CCF9737.75F63A02@rasselstein-hoesch.de> Hi Dan, it should be possible that you use a Session objekt for placing data between http-calls. Under Zope-2.5.1 you can have access via REQUEST.SESSION to the Session object. Before 2.5 you have other methods/products for Session objects. Regards, Dirk Dan Shafer schrieb: > I have part of a Zope app written largely as Python scripts linking DTML > forms that looks conceptually like this: > > 1. Form A gathers data and then as its action invokes a Python script. > 2. Python Script 1 creates a new DTML document and updates its contents > based on field data in Form 1. > 3. Python Script 1 then uses RESPONSE.redirect() to open a second DTML > form, Form 2. > 4. Form 2 needs the name of the document Python Script 1 created as well as > access to some or all of the data in the fields in Form 1. > > What is the best/right/only way to accomplish this goal? > > Seems like it should be straight-forward but I've played with several > promising ideas that turned out to be dead ends. I'm getting a bit desperate. > > All help appreciated! > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From itai@optusnet.com.au Wed May 1 08:23:28 2002 From: itai@optusnet.com.au (Itai Tavor) Date: Wed, 1 May 2002 17:23:28 +1000 Subject: [TFW] Re: [Zope] Form Data Needed in Second Form In-Reply-To: <5.1.0.14.0.20020501000539.0f387f58@mail.hurrah.com> References: <20020501051101.26019.29988.Mailman@mail.python.org> <20020501051101.26019.29988.Mailman@mail.python.org> <5.1.0.14.0.20020501000539.0f387f58@mail.hurrah.com> Message-ID: >At 03:41 PM 5/1/2002 +1000, Itai Tavor wrote: >>>Dan Shafer wrote: >>> >>>I have part of a Zope app written largely as Python scripts linking DTML >>>forms that looks conceptually like this: >>> >>>1. Form A gathers data and then as its action invokes a Python script. >>>2. Python Script 1 creates a new DTML document and updates its contents >>>based on field data in Form 1. >>>3. Python Script 1 then uses RESPONSE.redirect() to open a second DTML >>>form, Form 2. >>>4. Form 2 needs the name of the document Python Script 1 created as well as >>>access to some or all of the data in the fields in Form 1. >>> >>>What is the best/right/only way to accomplish this goal? >>> >>>Seems like it should be straight-forward but I've played with several >>>promising ideas that turned out to be dead ends. I'm getting a bit >>>desperate. >>> >>>All help appreciated! >> >>My preferred solution is to call Form 2 in the context of the new >>document. Your Python Script creates 'doc1' and then redirects to >>'doc1/Form2'. Form 2 then has full access to all the data stored in >>the new document. > >Good idea. But won't this require me to parse the contents of doc1 >rather than simplly grabbing the data from the Form1 POST operation? >I can do that, I suppose, but it seems inelegant somehow. There must >be a more efficient way, no? You're right. I usually use this solution when the submitted data gets stored in properties, which makes it easy to access in the 2nd form. If you somehow incorporate the data into the content of the document, you probably don't want to have to parse the content. In this case I'd try one of two other solutions - if the amount of data is small, you can add it to the URL you redirect to. Something like "Form2?form1data.newid:record=doc1&form1data.someparam:record=somevalue". Then in Form 2 REQUEST['form1data'] should give you a dictionary with your data in it. The other option is not to redirect to Form 2 but to return it from the Python Script (untested, YMMV, this may kill your dog, etc.): # Create and fill new document .... # Collect all the data needed by Form 2 dict = {} dict['new_id'] = new_document_id dict['some_param'] = REQUEST['form']['some_param'] # Render Form 2 return context.Form2(context, REQUEST, form1data=dict) If I was doing this, I'd use the 2nd option. Much cleaner. Hope this helps more than the last suggestion. -- -- Itai Tavor -- "Je sautille, donc je suis." -- itai@optusnet.com.au -- - Kermit the Frog -- -- -- -- "If you haven't got your health, you haven't got anything" -- From robin@etools.no Wed May 1 10:32:20 2002 From: robin@etools.no (=?iso-8859-1?Q?Robin_Smidsr=F8d?=) Date: Wed, 1 May 2002 11:32:20 +0200 Subject: [Zope] DBField (REAL) in FORM-field (decimal problem) Message-ID: <007301c1f0f3$1787f5f0$0801010a@smidsrod.no> This is a multi-part message in MIME format. ------=_NextPart_000_0070_01C1F103.DAFFFD10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm using the Z DBI DA and when I have a database with a float/real = value, it's always listed in exponential notation. What's the correct way to show it as a regular decimal (with dot or = comma as decimal separator). -- Robin ------=_NextPart_000_0070_01C1F103.DAFFFD10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I'm using the Z DBI DA and when I have = a database=20 with a float/real value, it's always listed in exponential=20 notation.
 
What's the correct way to show it as a = regular=20 decimal (with dot or comma as decimal separator).
 
-- Robin
------=_NextPart_000_0070_01C1F103.DAFFFD10-- From dirk.datzert@rasselstein-hoesch.de Wed May 1 10:54:08 2002 From: dirk.datzert@rasselstein-hoesch.de (Dirk Datzert) Date: Wed, 01 May 2002 11:54:08 +0200 Subject: [Zope] PIL installing for usage in Zope Message-ID: <3CCFBB40.BFE9227E@rasselstein-hoesch.de> Hi all, I have a problem PIL with Zope and imaging products Error Type: ImportError Error Value: The _imaging C module is not installed System Linux 2.4.16, Python 2.1.3, Zope 2.5.1, PIL 1.1.3 PIL is in /usr/lib/python2.1/site-packages/PIL _imaging.so is in /usr/lib/python2.1/site-packages/PIL and /usr/lib/python2.1/site-packages/ in /usr/lib/python2.1/site-packages/ is also a PIL.pth with 'PIL' in it. Help anybody can give a hint where to look for the solution. Thanks, Dirk From tdickenson@geminidataloggers.com Wed May 1 11:01:01 2002 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Wed, 1 May 2002 11:01:01 +0100 Subject: [Zope] Secure database access In-Reply-To: <20020501052356.8885.qmail@web21502.mail.yahoo.com> References: <20020501052356.8885.qmail@web21502.mail.yahoo.com> Message-ID: <200205011101.01821.tdickenson@geminidataloggers.com> On Wednesday 01 May 2002 6:23 am, Ing Soc wrote: >> This scenario transfers unencrypted zope passwords >> over your internal >> network. Is this a problem? If yes you might be >> better with a topology > >The internal network is trusted in this context, so >not, it doesn't matter. Yes, that is the key difference that makes your proposed topology secure. > However, I would be surprised >if the Oracle client software would transmit plaintext >passwords. Surely not in this day and age! I didnt mean the password that zope provides to oracle, but rather the passwords that your users provide to zope (via apache). Yes, they are plaintext. From tdickenson@geminidataloggers.com Wed May 1 11:15:17 2002 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Wed, 01 May 2002 11:15:17 +0100 Subject: [Zope] ZSyncer abandoned? In-Reply-To: <000701c1f076$a9de4d50$89505018@cr582427a> References: <3CCE3A32.8070400@tiscali.cz> <000701c1f076$a9de4d50$89505018@cr582427a> Message-ID: On Tue, 30 Apr 2002 11:41:36 -0700, "Andy McKay" wrote: >I dont know the solution, it sounds like the >character sets for the xmlrpc packets needs fiddling. Any patches = welcome. I dont know what the original problem was, and Ive never looked at ZSyncer, so this suggestion might be completely irrelevant..... xmlrpclib version 0.9.9 fully supports Unicode. Updating Zope's xmlrpclib to this version is on the todo list for Zope 2.6. http://www.pythonware.com/products/xmlrpc/index.htm Toby Dickenson tdickenson@geminidataloggers.com From jens@zope.com Wed May 1 12:51:52 2002 From: jens@zope.com (Jens Vagelpohl) Date: Wed, 1 May 2002 07:51:52 -0400 Subject: [Zope] PIL installing for usage in Zope In-Reply-To: <3CCFBB40.BFE9227E@rasselstein-hoesch.de> Message-ID: i just built PIL 1.1.3 myself for use in zope without a hitch. are you sure you followed the step for compiling the _imaging.so extension? try to locate it. this step must be taken *before* running setup.py build and setup.py install. jens On Wednesday, May 1, 2002, at 05:54 , Dirk Datzert wrote: > Hi all, > > I have a problem PIL with Zope and imaging products > > Error Type: ImportError > Error Value: The _imaging C module is not installed > > System Linux 2.4.16, Python 2.1.3, Zope 2.5.1, PIL 1.1.3 > > PIL is in /usr/lib/python2.1/site-packages/PIL > > _imaging.so is in /usr/lib/python2.1/site-packages/PIL > and /usr/lib/python2.1/site-packages/ > > in /usr/lib/python2.1/site-packages/ is also a PIL.pth with 'PIL' in it. > > Help anybody can give a hint where to look for the solution. > > Thanks, > Dirk > > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From dirk.datzert@rasselstein-hoesch.de Wed May 1 13:04:31 2002 From: dirk.datzert@rasselstein-hoesch.de (Dirk Datzert) Date: Wed, 01 May 2002 14:04:31 +0200 Subject: [Zope] PIL installing for usage in Zope References: Message-ID: <3CCFD9CF.505E12B6@rasselstein-hoesch.de> Hi Jens, Yes it was a problem with building _imaging.so I had no jpeg and zlib support and I had to _imaging.so in python path. I got now a working PIL and a rpm of that. Saw that SuSE had a patch done to PIL which I didn't applied with the new PIL version. Thanks, Dirk Jens Vagelpohl schrieb: > i just built PIL 1.1.3 myself for use in zope without a hitch. are you sure > you followed the step for compiling the _imaging.so extension? try to > locate it. this step must be taken *before* running setup.py build and > setup.py install. > > jens From abmanock@earthlink.net Wed May 1 13:50:28 2002 From: abmanock@earthlink.net (Adam Manock) Date: Wed, 01 May 2002 08:50:28 -0400 Subject: [Zope] Zope+Python source-code security In-Reply-To: <000001c1ef6b$ce6c0790$1ae063d9@domowy> Message-ID: <5.1.0.14.2.20020501080527.028c1ec0@pop.earthlink.net> > >In my case the licensing issue is not a problem. The problem is how to >protect the developed solution not to be copied and modified by a "naughty" >customer. Unfortunately the application would have to be running on his >server. With any database backed solution there is a strong possibility that a customer will find a way to access the database directly. Often, the schema of the back- end database represents about half of the work required to recreate the app. The developer's analysis of the data set, and a large part of the requirements for the app can be reverse engineered from good a 3NF or 5NF schema. With Zope, hiding the source code of the application and presentation layers will be a problem too... The solutions to this problem fall into the categories of legal and technical: Technical: Lease an application server "appliance" to your customer. Keep it current with vendor security patches, etc, back it up for them, don't give the customer root, or even a shell at all! Or sell your app as a hosted service, charge per month per user for access ;-) Legal: Get a non-disclosure / non-competitive contract to make you feel better. Often this kind of contract is put in place when source is to be delivered for a particular contracting or subbing arrangement. Strict clauses about how, when, where and for what the source may be used for are the norm. A contract to cover your concerns is nothing new, good IT lawyers should already be familiar with them as they've probably done a few hundred.... Conclusion: I personally prefer the software as a service idea, as it produces a nice constant, possibly never ending cash flow, removes the need to create nice pretty install routines for the software or any patches.... Your marketing dept won't be bugging you to completely re-design the interface every six months so that they can sell a visibly new "upgrade" either. Don't forget about the SLA double edge sword, it can be used to make the customer feel better about the availability of your service, but can also be used to limit your liability in the event of a server or network outage.... Better to refund $50 for a day of downtime than get sued for $5M 'cause your customer lost a contract while your server was down that day.... Adam From casey@zope.com Wed May 1 14:24:00 2002 From: casey@zope.com (Casey Duncan) Date: Wed, 1 May 2002 09:24:00 -0400 Subject: [Zope] Still Plagued With Date Formatting Bug in Text Field In-Reply-To: <5.1.0.14.0.20020430215752.0f3857e8@mail.hurrah.com> References: <5.1.0.14.0.20020430172042.0f3898c0@mail.hurrah.com> <5.1.0.14.0.20020430215752.0f3857e8@mail.hurrah.com> Message-ID: <200205010924.01362.casey@zope.com> On Wednesday 01 May 2002 12:58 am, Dan Shafer allegedly wrote: [snip] > > > >Any chance your field is rendering as: > > > > > > > >instead of: > > > > >=20 > I suppose that's possible. There are no quotation marks showing in the=20 > field. But if I'm using strftime(), I don't see how this could'should b= e=20 > happening. If the quotes are missing, then that is your problem. strftime won't put=20 quotes around it for you. How are you generating this html? ZPT, DTML or=20 Python? Show us the source code of your template. -Casey From jean@upfrontsystems.co.za Wed May 1 14:26:14 2002 From: jean@upfrontsystems.co.za (Jean Jordaan) Date: Wed, 1 May 2002 15:26:14 +0200 Subject: [Zope] Problems using fsrecover.py from 2.5.1 with 2.4.3? Message-ID: Hi all I'm attempting to diagnose a Data.fs that might be wonky. I'm sending a record of my attempt to the list in the hope that other people are better at interpreting the results than I am. It was written by this Zope: $ cat ./lib/python/version.txt Zope 2.4.3 (binary release, python 2.1, linux2-x86) The fsrecover.py I'm using comes from: Zope 2.5.1b1 (source release, python 2.1, linux2) I get 710849 errors like this: __main__.ErrorFound: invalid status, ^@, at 179898912 __main__.ErrorFound: invalid status, ^@, at 179898995 2068 errors like this: __main__.ErrorFound: bad transaction length at 231384331 57 errors like this: exceptions.SystemError: Failed to import class Trigger from module Products.ZPatterns.SkinScript.Components 39 errors like this: __main__.ErrorFound: invalid status, é, at 33731550 with status values such as é, ^R, <, ç, ê, ... 3 errors like this: ZODB.POSException.ConflictError: ('\x03C\x96\xf4\xeb\xb3\xe1\x00', '\x03C\x04\xb0\xf8\xa2\xe7\xb3') 2 errors like this: exceptions.KeyError: ^@^@^@^@^@^C0\ 2 errors like this: exceptions.ImportError: cannot import name NullProvider 1 error like this: exceptions.ImportError: cannot import name Factory and fsrecover finishes with the message: 139059006 bytes removed during recovery Before: 242946201 Apr 9 16:05 Data.fs After: 103887195 May 1 14:39 Data.fs.fsrecover I can start a Zope on the "recovered" Data.fs without problems, and access it through a browser. It works fine, until I try to access certain ZClasses stored on Racks (eg. 'License' instances raise KeyErrors, 'Customer' instances are fine). Then I get KeyErrors, with this in the log: ------ 2002-05-01T13:14:11 ERROR(200) ZODB Couldn't load state for '\x00\x00\x00\x00\x00\x03O\xf8' Traceback (innermost last): File /usr/local/zope/2-4-3/lib/python/ZODB/Connection.py, line 519, in setstate File /usr/local/zope/2-4-3_for_diepdink/lib/python/ZODB/FileStorage.py, line 588, in load (Object: /home/httpd/zope-instances/jean/creme.rel-0_9_0-branch/var/Data.fs) File /usr/local/zope/2-4-3_for_diepdink/lib/python/ZODB/FileStorage.py, line 564, in _load (Object: /home/httpd/zope-instances/jean/creme.rel-0_9_0-branch/var/Data.fs) KeyError: Oø ------ For the record, during startup, Zope warns: WARNING: Python C API version mismatch for module DynPersist: This Python has API version 1010, module DynPersist has version 1007. We haven't been able to successfully recompile the dynpersist module, so we've been ignoring the warning. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From chrisw@nipltd.com Wed May 1 14:35:57 2002 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 01 May 2002 14:35:57 +0100 Subject: [Zope] JPE Compiler References: <000301c1ef5a$ee5f6990$6522fb89@ikos2.iao.fhg.de> Message-ID: <3CCFEF3D.495C16E@nipltd.com> Hi Thomas, Thomas Mathes wrote: > > I want to use JPE on Windows 2000, but I don't have an a Visual C++ Compiler > ? > Aren't there any binarys or zip Packages which I can download ? If you're still looking for this, mail me off-list and I'll mail it to you... cheers, Chris From Dirk.Van.Laanen@niwi.knaw.nl Wed May 1 14:50:41 2002 From: Dirk.Van.Laanen@niwi.knaw.nl (Dirk Van.Laanen) Date: Wed, 01 May 2002 15:50:41 +0200 Subject: [Zope] Maybe non-Zope issue: SQL Server doesn't return table field completely Message-ID: Hello,=20 I have a table with a field 'term' which is a text field, thus up to 255 = characters.=20 The table was originally an Access database. For reasons of company = policy,=20 this database has been transported to an SQL Server 6.5 database. The = old=20 Access database, however, still exists, on the same server als SQL = Server.=20 If I make a Z ODBC database connection to SQL Server, and perform a = ZSQL=20 query on the field 'term', only about 120 characters of the field 'term' = are represented.=20 If I use the Z ODBC database connection to the Access Database (with = exactly the same=20 data), I get the complete field returned after a query.=20 Does this ring a bell with anybody? Is it just an issue with SQL Server or = does Zope=20 maybe play a part in it?=20 Cheers everybody,=20 Dirk From jon.erickson@neicoltech.org Wed May 1 15:24:25 2002 From: jon.erickson@neicoltech.org (Jon Erickson) Date: 01 May 2002 09:24:25 -0500 Subject: [Zope] Maybe non-Zope issue: SQL Server doesn't return table field completely Message-ID: <1020263066.1729.22.camel@xit.neicoltech.org> On Wed, 2002-05-01 at 08:50, Dirk Van.Laanen wrote: > Hello, > > I have a table with a field 'term' which is a text field, thus up to 255 characters. > The table was originally an Access database. For reasons of company policy, > this database has been transported to an SQL Server 6.5 database. The old > Access database, however, still exists, on the same server als SQL Server. > > If I make a Z ODBC database connection to SQL Server, and perform a ZSQL > query on the field 'term', only about 120 characters of the field 'term' are represented. > If I use the Z ODBC database connection to the Access Database (with exactly the same > data), I get the complete field returned after a query. > > Does this ring a bell with anybody? Is it just an issue with SQL Server or does Zope > maybe play a part in it? Do you have physical access to the SQL Server? If so, run one of the SQL Server native utilities to browse the table and verify the integrity of the "term" field. IIRC, for SQL Server 6.5 you could use the "Enterprise Manager" or a utility named "isqlw" to query a database. Most likely the field was somehow truncated during the transfer. Jon From pydan@danshafer.com Wed May 1 15:51:33 2002 From: pydan@danshafer.com (Dan Shafer) Date: Wed, 01 May 2002 07:51:33 -0700 Subject: [Zope] Still Plagued With Date Formatting Bug in Text Field In-Reply-To: <200205010924.01362.casey@zope.com> References: <5.1.0.14.0.20020430215752.0f3857e8@mail.hurrah.com> <5.1.0.14.0.20020430172042.0f3898c0@mail.hurrah.com> <5.1.0.14.0.20020430215752.0f3857e8@mail.hurrah.com> Message-ID: <5.1.0.14.0.20020501074605.0f38da68@mail.hurrah.com> OK, thanks for the continuing help. I'm generating the contents of this particular field in a DTML Document inside a
tag with this line (beginning and ending angle brackets removed to avoid rendering problems):: input type="text" name="start_date" value= As I think I said in a previous note, but just for the sake of completeness, if I change tthat to use a textarea object instead of a text field, the date displays correctly. The text field is more than wide enough to accommodate the entire string. Thanks for any suggestions. This one has me completely baffled. At 09:24 AM 5/1/2002 -0400, Casey Duncan wrote: >On Wednesday 01 May 2002 12:58 am, Dan Shafer allegedly wrote: >[snip] > > > > > >Any chance your field is rendering as: > > > > > > > > > > > >instead of: > > > > > > > > > > I suppose that's possible. There are no quotation marks showing in the > > field. But if I'm using strftime(), I don't see how this could'should be > > happening. > >If the quotes are missing, then that is your problem. strftime won't put >quotes around it for you. How are you generating this html? ZPT, DTML or >Python? > >Show us the source code of your template. > >-Casey From Dirk.Van.Laanen@niwi.knaw.nl Wed May 1 15:52:42 2002 From: Dirk.Van.Laanen@niwi.knaw.nl (Dirk Van.Laanen) Date: Wed, 01 May 2002 16:52:42 +0200 Subject: [Zope] Maybe non-Zope issue: SQL Server doesn't return tablefield completely Message-ID: Hallo Jon,=20 >Do you have physical access to the SQL Server? If so, run one of the >SQL Server native utilities to browse the table and verify the integrity >of the "term" field. IIRC, for SQL Server 6.5 you could use the >"Enterprise Manager" or a utility named "isqlw" to query a database. >Most likely the field was somehow truncated during the transfer. Yes, I could examine the field in SQL Server. It is obvious the field = wasn't truncated.=20 It seemed a sound suggestion though. Someone has suggested a corrupt (SQL = Server)=20 driver could be responsible for bad transmission of correct data to Zope, = though I=20 wouldn't know what action that would require (or how to establish that for = a fact).=20 Thanks for your help,=20 cheers, Dirk >>> Jon Erickson 05/01/02 04:14pm >>> On Wed, 2002-05-01 at 08:50, Dirk Van.Laanen wrote: > Hello,=20 >=20 > I have a table with a field 'term' which is a text field, thus up to 255 = characters.=20 > The table was originally an Access database. For reasons of company = policy,=20 > this database has been transported to an SQL Server 6.5 database. The = old=20 > Access database, however, still exists, on the same server als SQL = Server.=20 >=20 > If I make a Z ODBC database connection to SQL Server, and perform a = ZSQL=20 > query on the field 'term', only about 120 characters of the field 'term' = are represented.=20 > If I use the Z ODBC database connection to the Access Database (with = exactly the same=20 > data), I get the complete field returned after a query.=20 >=20 > Does this ring a bell with anybody? Is it just an issue with SQL Server = or does Zope=20 > maybe play a part in it?=20 Jon=20 From casey@zope.com Wed May 1 16:00:03 2002 From: casey@zope.com (Casey Duncan) Date: Wed, 1 May 2002 11:00:03 -0400 Subject: [Zope] Still Plagued With Date Formatting Bug in Text Field In-Reply-To: <5.1.0.14.0.20020501074605.0f38da68@mail.hurrah.com> References: <5.1.0.14.0.20020430215752.0f3857e8@mail.hurrah.com> <5.1.0.14.0.20020501074605.0f38da68@mail.hurrah.com> Message-ID: <200205011100.03174.casey@zope.com> Try: "> Be sure to include the outer quotes on the value attribute. hth, -Casey On Wednesday 01 May 2002 10:51 am, Dan Shafer allegedly wrote: > OK, thanks for the continuing help. >=20 > I'm generating the contents of this particular field in a DTML Document= =20 > inside a tag with this line (beginning and ending angle brackets= =20 > removed to avoid rendering problems):: >=20 > input type=3D"text" name=3D"start_date" value=3D "(_.DateTime().strftime(:%b %d, %Y"))"> >=20 > As I think I said in a previous note, but just for the sake of=20 > completeness, if I change tthat to use a textarea object instead of a t= ext=20 > field, the date displays correctly. The text field is more than wide en= ough=20 > to accommodate the entire string. >=20 > Thanks for any suggestions. This one has me completely baffled. From jpenny@universal-fasteners.com Wed May 1 16:11:58 2002 From: jpenny@universal-fasteners.com (Jim Penny) Date: Wed, 1 May 2002 11:11:58 -0400 Subject: [Zope] Still Plagued With Date Formatting Bug in Text Field In-Reply-To: <5.1.0.14.0.20020501074605.0f38da68@mail.hurrah.com> References: <5.1.0.14.0.20020430215752.0f3857e8@mail.hurrah.com> <5.1.0.14.0.20020430172042.0f3898c0@mail.hurrah.com> <5.1.0.14.0.20020430215752.0f3857e8@mail.hurrah.com> <5.1.0.14.0.20020501074605.0f38da68@mail.hurrah.com> Message-ID: <20020501151158.GU31103@universal-fasteners.com> On Wed, May 01, 2002 at 07:51:33AM -0700, Dan Shafer wrote: > OK, thanks for the continuing help. > > I'm generating the contents of this particular field in a DTML Document > inside a tag with this line (beginning and ending angle brackets > removed to avoid rendering problems):: > > input type="text" name="start_date" value= "(_.DateTime().strftime(:%b %d, %Y"))"> Should be "> html parsing regards the first space not in a quoted object to be a token, which if not a keyword is silently ignored. So you input is being trucated after the first space. jim Penny > > As I think I said in a previous note, but just for the sake of > completeness, if I change tthat to use a textarea object instead of a text > field, the date displays correctly. The text field is more than wide enough > to accommodate the entire string. > > Thanks for any suggestions. This one has me completely baffled. > > At 09:24 AM 5/1/2002 -0400, Casey Duncan wrote: > >On Wednesday 01 May 2002 12:58 am, Dan Shafer allegedly wrote: > >[snip] > >> > > >> >Any chance your field is rendering as: > >> > > >> > > >> > > >> >instead of: > >> > > >> > > >> > >> I suppose that's possible. There are no quotation marks showing in the > >> field. But if I'm using strftime(), I don't see how this could'should be > >> happening. > > > >If the quotes are missing, then that is your problem. strftime won't put > >quotes around it for you. How are you generating this html? ZPT, DTML or > >Python? > > > >Show us the source code of your template. > > > >-Casey > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From russ@viz.com Wed May 1 17:59:29 2002 From: russ@viz.com (Russell Uman) Date: Wed, 1 May 2002 09:59:29 -0700 Subject: [Zope] setting properties for multiple objects Message-ID: <003101c1f131$8f36a860$d101a8c0@viz.com> is there any way with a vanilla zope 2.5.1 install to set a property for multiple objects at the same time? (say, all objects in a directory?) is there a zope product that does something this? thanks! From russ@viz.com Wed May 1 18:14:37 2002 From: russ@viz.com (Russell Uman) Date: Wed, 1 May 2002 10:14:37 -0700 Subject: [Zope] zope page templates and image tags. tal:attributes: Message-ID: <004b01c1f133$ac04b3e0$d101a8c0@viz.com> hi. i'm trying to call an image and set the attributes of the image tag dynamically.

in each case i get an error: Error Type: AttributeError Error Value: Context instance has no attribute 'getCompilerError' so instead i am building my images like this: this seems kind of painful to me. can someone explain the error i am receiving and give me a clue about how to do this the right way in zope? should i give up on page templates and use dtml instead? pointers to useful documentation would be greatly appreciated. i've read the zope book up and down but clearly i need more fine manuals to read... thanks! From casey@zope.com Wed May 1 18:43:34 2002 From: casey@zope.com (Casey Duncan) Date: Wed, 1 May 2002 13:43:34 -0400 Subject: [Zope] setting properties for multiple objects In-Reply-To: <003101c1f131$8f36a860$d101a8c0@viz.com> References: <003101c1f131$8f36a860$d101a8c0@viz.com> Message-ID: <200205011343.34902.casey@zope.com> You can abuse ZopeFind for this. Click on the Find tab of a folder, click= on=20 "advanced..." In the expression field enter something like: setProperty('propertyname', 'value') This will call the above for all objects in the folder when you do the se= arch.=20 No results will appear, but it will have touched all of the objects. If you want to do it for only one type of object try: meta_type=3D=3D'some type' and setProperty('propertyname', 'value') hth, -Casey On Wednesday 01 May 2002 12:59 pm, Russell Uman allegedly wrote: > is there any way with a vanilla zope 2.5.1 install to set a property fo= r=20 multiple objects at the same time? (say, all objects in a > directory?) >=20 > is there a zope product that does something this? >=20 > thanks! From tpassin@mitretek.org Wed May 1 19:16:34 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Wed, 1 May 2002 14:16:34 -0400 Subject: [Zope] color-syntax editor for dtml References: <47BCBF3251382B45893950D07804082475AFD8@novamail.nv.cc.va.us> Message-ID: <00ff01c1f13c$53a07140$f70510ac@mitretek.org> [Schmidt, Allen J] > So how do you turn on Editplus color highlight for dtml documents? I found > the dtml file and installed it and found the settings tab to enable a new > file type, but it is looking for an extension to associate with. How did you > work around that? > Looks like Editplus has made some improvements since I last looked at it. > BUT, it will have to be VERY improved to get me to switch away from HomeSite > - which IMHO is the BEST (Windows) tool with which to work with Zope files. > I would be glad to talk offline about it since I have bored the group too > often with it's praises in the past. <8^) > I don't know that you can get it to recognize dtml files with no extensions, but you can manually set the document type for a specific document to be whatever you like. Cheers, Tom P From milos.prudek@tiscali.cz Wed May 1 19:21:51 2002 From: milos.prudek@tiscali.cz (Milos Prudek) Date: Wed, 01 May 2002 20:21:51 +0200 Subject: [Zope] ZSyncer abandoned? References: <3CCE3A32.8070400@tiscali.cz> <000701c1f076$a9de4d50$89505018@cr582427a> <3CCEFF7A.1090009@tiscali.cz> <002601c1f0c3$18bd9090$89505018@cr582427a> Message-ID: <3CD0323F.5090109@tiscali.cz> >>>Regarding your problem, I dont know the solution, it sounds like the >>>character sets for the xmlrpc packets needs fiddling. Any patches >> > welcome. > >>So it's outside your scope, because you don't maintain xmlrpc, right? > > > Erm, no its my issue, if anyones :) OK. Will you try to fix it? -- Milos Prudek From casey@zope.com Wed May 1 19:33:28 2002 From: casey@zope.com (Casey Duncan) Date: Wed, 1 May 2002 14:33:28 -0400 Subject: [Zope] color-syntax editor for dtml In-Reply-To: <00ff01c1f13c$53a07140$f70510ac@mitretek.org> References: <47BCBF3251382B45893950D07804082475AFD8@novamail.nv.cc.va.us> <00ff01c1f13c$53a07140$f70510ac@mitretek.org> Message-ID: <200205011433.28511.casey@zope.com> On Wednesday 01 May 2002 02:16 pm, Thomas B. Passin allegedly wrote: >=20 > I don't know that you can get it to recognize dtml files with no extens= ions, > but you can manually set the document type for a specific document to b= e > whatever you like. >=20 > Cheers, >=20 > Tom P This is one of the things I really like about nedit. It can introspect th= e=20 file to guess its type. Introspecting dtml (and zpt) is trivial, so it wo= rks=20 very well for extension-less Zope scripts. Nedit is free, runs on most plaforms, although not natively under windows= (it=20 requires cygwin). It is however, very intuitive to use. -Casey From dieter@handshake.de Wed May 1 19:28:35 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 1 May 2002 20:28:35 +0200 Subject: [Zope] tal:repeat In-Reply-To: <3CCF0F99.CF3EC29F@nipltd.com> References: <013b01c1efb1$ea9e0940$5b01a8c0@tom> <3CCF0F99.CF3EC29F@nipltd.com> Message-ID: <15568.13267.661641.150808@linux.local> Chris Withers writes: > Dieter Maurer wrote: > > > > They may compare unequal while you think they were the same object. > > This will happen because almost any access in Zope creates a new > > acquisition wrapper around the object. > > I'm pretty sure Jim has fixed this now... He might have fixed it for "==" (which would be right). I would be extremely surprised if he had fixed it for "is" (which would be wrong and probably mean a change in the Python interpreter). Dieter From jmartinez@eMediaMillWorks.com Wed May 1 19:38:13 2002 From: jmartinez@eMediaMillWorks.com (Jorge O. Martinez) Date: Wed, 01 May 2002 14:38:13 -0400 Subject: [zope] python scripts References: <003101c1ef63$291a3a30$da494e18@cr536745a> <3CCD4537.50292D1E@beehive.de> Message-ID: <3CD03615.6020708@emediamillworks.com> Hi: > Names (and their ojects) may be looked up > from the names/attributes of the default bound objects (at least, zope > 2.5.0): > context, container, script, traverse_subpath The above is what I'd like to do; however, could anybody suggest some code or a product to look them up? Sorry for the basic question, but still getting to know python and Zope ;-) I mean something similar to what does for request (shows cookies, paths, etc.). Or if possible I'd like to find a way to learn what methods (sorry if this is not the right term) are available for a given object (let's say for a 'Folder' or a DTML document. Is there a howto. I have taken a look at the apendices, but I am still not sure I quite get it. TIA Regards, Jorge M. hans wrote: > "Ian!" wrote: > > >>I am having a very hard time writing python scripts for zope. I don't know >>which objects do what, and I can't find out where to look up the relevant >>documentation. >> >>I brought this up in an earlier post to the list, but I didn't get a >>response. I've read through the zope book (at >>http://www.zope.org/Documentation/ZopeBook/contents ), but it doesn't really >>cover what I'm looking for - it doesn't really seem to be a guide to writing >>scripts. >> >>The Zope API reference seems to be the reference for people who are >>developing products or external methods for zope, because all of those >>modules can't imported from within a python script under zope, even though >>it seems like stuff I would want to use. >>http://www.zope.org/Documentation/ZopeBook/AppendixB.stx >> >>The Zope help from within the zope management interface contains the same >>API reference, as well as some other stuff that (as far as I can tell) isn't >>what I'm looking for. >> >>I want to get the current CMF member and change some of it's extra data >>attributes (attributes which I added with the management interface >>portal_memberdata) - I don't know how to do this, but more importantly I >>don't know where to look up how to do it. Can anyone help me out? Sorry for >>being such a lost newbie =) > > > Names (and their ojects) may be looked up > from the names/attributes of the default bound objects (at least, zope 2.5.0): > context, container, script, traverse_subpath > > when your script is called, these are defined. > context is the caller (usually some zpt/dtml-document), > container the containing folder > > as these objects are objects in data.fs, > data.fs is an object collection organized as a tree > (ObjectManager is one of the base classes of Folder), > close to any object (and its attributes) are accessible from your py script > (security aside). > execution pereforms in a restricted environment, > the zope book dtml-appendix contains a list of restricted code. > > hth for a start > -- > ------------------------------------------------------------- > Who's got only a hammer sees the world as a nail > hans augustin (software developer) hans@beehive.de > beehive elektronische medien GmbH http://www.beehive.de > phone: +49 30 847-82 0 fax: +49 30 847-82 299 > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > -- Jorge O. Martinez MIS Senior Associate eMediaMillWorks 1100 Mercantile Lane, Suite 119 Largo, MD 20774 E-mail => jmartinez@eMediaMillWorks.com Phone => (301)883-2482 ext. 105 Fax => (301)883-9754 From tpassin@mitretek.org Wed May 1 19:52:03 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Wed, 1 May 2002 14:52:03 -0400 Subject: [Zope] Form Data Needed in Second Form References: <5.1.0.14.0.20020430182526.0f3c2aa0@mail.hurrah.com> Message-ID: <014b01c1f141$501f6e90$f70510ac@mitretek.org> [Dan Shafer] > I have part of a Zope app written largely as Python scripts linking DTML > forms that looks conceptually like this: > > 1. Form A gathers data and then as its action invokes a Python script. > 2. Python Script 1 creates a new DTML document and updates its contents > based on field data in Form 1. > 3. Python Script 1 then uses RESPONSE.redirect() to open a second DTML > form, Form 2. > 4. Form 2 needs the name of the document Python Script 1 created as well as > access to some or all of the data in the fields in Form 1. > > What is the best/right/only way to accomplish this goal? > > Seems like it should be straight-forward but I've played with several > promising ideas that turned out to be dead ends. I'm getting a bit desperate. > I must be missing something, because what you have asked for doesn't make sense to me. If the user is going to see the DTML document created by Python Script 1, then it's too late to use a redirect. But if the user is not going to see the document created by Python Script 1, then why create a separate document for it anyway? Why not just create the document that you want to return? You can certainly pass data from one script to another without creating an intermediate document. What's the story here? Cheers, Tom P From evan@4-am.com Wed May 1 20:09:14 2002 From: evan@4-am.com (Evan Simpson) Date: Wed, 01 May 2002 14:09:14 -0500 Subject: [Zope] VHM and ProxyPass References: <3CCF0E50.5020309@emediamillworks.com> Message-ID: <3CD03D5A.20303@4-am.com> >> On Tue, 30 Apr 2002, Jorge O. Martinez wrote: >>> You will have to install a 'SiteRoot' (the last step IMHO), so that >>> it converts all your physical paths into virtual paths. That was the >>> last step to get the virtual sites to play nicely with Zope. Be >>> careful or you might get locked out, in which case check the zope.org >>> site for a way to get back in. If you're using a VHM, you shouldn't need a SiteRoot. SiteRoots are obsoleted by VHM in all but the most peculiar configurations, and in those you're probably better off with an Access Rule. Cheers, Evan @ 4-am From jmartinez@eMediaMillWorks.com Wed May 1 20:51:20 2002 From: jmartinez@eMediaMillWorks.com (Jorge O. Martinez) Date: Wed, 01 May 2002 15:51:20 -0400 Subject: [Zope] VHM and ProxyPass References: <3CCF0E50.5020309@emediamillworks.com> <3CD03D5A.20303@4-am.com> Message-ID: <3CD04738.4000109@emediamillworks.com> Hi: Really? I only installed it because I was getting the physical path instead of the virtual path with the VHM only. After installing it, all the paths were correct. You think an Access Rule would be enough? What is that exactly, an Apache or Zope thing? Regards Jorge M. Evan Simpson wrote: >>> On Tue, 30 Apr 2002, Jorge O. Martinez wrote: >>> >>>> You will have to install a 'SiteRoot' (the last step IMHO), so that >>>> it converts all your physical paths into virtual paths. That was the >>>> last step to get the virtual sites to play nicely with Zope. Be >>>> careful or you might get locked out, in which case check the >>>> zope.org site for a way to get back in. >>> > > If you're using a VHM, you shouldn't need a SiteRoot. SiteRoots are > obsoleted by VHM in all but the most peculiar configurations, and in > those you're probably better off with an Access Rule. > > Cheers, > > Evan @ 4-am > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > -- Jorge O. Martinez MIS Senior Associate eMediaMillWorks 1100 Mercantile Lane, Suite 119 Largo, MD 20774 E-mail => jmartinez@eMediaMillWorks.com Phone => (301)883-2482 ext. 105 Fax => (301)883-9754 From tpassin@mitretek.org Wed May 1 21:02:42 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Wed, 1 May 2002 16:02:42 -0400 Subject: [Zope] color-syntax editor for dtml References: <47BCBF3251382B45893950D07804082475AFD8@novamail.nv.cc.va.us> <00ff01c1f13c$53a07140$f70510ac@mitretek.org> <200205011433.28511.casey@zope.com> Message-ID: <01b001c1f14b$275eccd0$f70510ac@mitretek.org> Casey, it looks good but I've made it a point to try to keep XServers off my system (Win2000) if I can. Cygwin is fine, I've got it, but I've never been happy with XServers (though it's been a few uears since last I used one). So I'm going to give nedit a miss for now. Tom P [Casey Duncan] On Wednesday 01 May 2002 02:16 pm, Thomas B. Passin allegedly wrote: > > I don't know that you can get it to recognize dtml files with no extensions, > but you can manually set the document type for a specific document to be > whatever you like. > > Cheers, > > Tom P This is one of the things I really like about nedit. It can introspect the file to guess its type. Introspecting dtml (and zpt) is trivial, so it works very well for extension-less Zope scripts. Nedit is free, runs on most plaforms, although not natively under windows (it requires cygwin). It is however, very intuitive to use. From dieter@handshake.de Wed May 1 20:50:52 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 1 May 2002 21:50:52 +0200 Subject: [Zope] python-generated navigation.. In-Reply-To: References: <002401c1f060$d1011400$2fe163d9@domowy> Message-ID: <15568.18204.185221.821806@linux.local> Joerg Wagenknecht writes: > ... > > > > > My problem is, that I want to get ALL the tree from the root. So far, whenever I > go one level down the tree the navigation is shorted by that level. Try: Dieter From dieter@handshake.de Wed May 1 20:53:01 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 1 May 2002 21:53:01 +0200 Subject: [Zope] image attributes In-Reply-To: <01d701c1f08a$f7b87aa0$d101a8c0@viz.com> References: <01d701c1f08a$f7b87aa0$d101a8c0@viz.com> Message-ID: <15568.18333.121667.361648@linux.local> Russell Uman writes: > i'm trying to set the border attribute of an image tag like so: > > > > i get the following error when i load the page > > Error Type: AttributeError > Error Value: Context instance has no attribute 'getCompilerError' Looks like a bug. Are you using an up-to-date ZPT release? If so, file a bug report. > how can i add the border attribute to an image? As a work around, you can probably use the "Image"'s "tag" method. Dieter From dieter@handshake.de Wed May 1 19:45:30 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 1 May 2002 20:45:30 +0200 Subject: [Zope] abandonware and new.zope.org In-Reply-To: <3CCE3D73.4010802@tiscali.cz> References: <3CCE3D73.4010802@tiscali.cz> Message-ID: <15568.14282.612140.458802@linux.local> Milos Prudek writes: > An idea for new.zope.org: encourage people not to abandon popular projects. > ... > Another > approach would be to mark products "may be abandoned" if no release was > published in six months, and "abandoned" if no release in 12 months. Good products do not need to be released on a regular base, only when something happens that breaks them... > Just my idea. As you see above, I do not like your idea. > Propose something softer or harder, but IMHO some solution > should be implemented. Make the products discussable and ratable. Send email to the author when new comments arrive (batch the comments, of course). Dieter From dieter@handshake.de Wed May 1 20:48:42 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 1 May 2002 21:48:42 +0200 Subject: [Zope] Set _allowed_meta_types on folder instances without creating a new product? In-Reply-To: <000001c1f0ce$5a0d6100$6401a8c0@laptop> References: <15561.47037.434056.36876@linux.local> <000001c1f0ce$5a0d6100$6401a8c0@laptop> Message-ID: <15568.18074.1405.45132@linux.local> Jeff Kowalczyk writes: > ... > And it's returning '_allowed_meta_types changed to Image Folder on > Images', so the call seems to be succeeding. However, the folder Images > still shows the full metatype list when I return to it. Am I missing > something? I told you how to define "_allowed_meta_types" on a per instance basis but did not check that "_allowed_meta_types" has the desired effect. When your message above arrived, I tried to find a use of "_allowed_meta_types", but the Zope sources do not reference it. Where do you know about it? Dieter From dieter@handshake.de Wed May 1 20:35:58 2002 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 1 May 2002 21:35:58 +0200 Subject: [Zope] checking permissions In-Reply-To: <3CCF05FB.3A37@virtueofthesmall.com> References: <3CCCB763.3D90@virtueofthesmall.com> <3CCF05FB.3A37@virtueofthesmall.com> Message-ID: <15568.17310.971980.785343@linux.local> A M Thomas writes: > Things are better - but still not quite right. I'm guessing that > ValidateValue wants an object rather than a string, since passing it a > string as returned from context.filtered_manage_options() makes it > return "False" every time. As the name suggests, it wants a value not a string it would need to resolve into a value. > I found Validate and tried passing the string as the "name" argument, > with the current context as the "container" argument, but then > everything gets a "True" value; my dummy user account still gets > presented with options that can't be used. In fact, "filtered_manage_options" (which is "App.Management.Tabs.filtered_manage_options") should do this automatically. When it does not, then, probably, there is some bug in your permissions. Look at its source to learn how to use "validate" (by an example). Dieter From jason.earl@simplot.com Wed May 1 21:25:07 2002 From: jason.earl@simplot.com (Jason Earl) Date: 01 May 2002 14:25:07 -0600 Subject: [Zope] color-syntax editor for dtml In-Reply-To: <01b001c1f14b$275eccd0$f70510ac@mitretek.org> References: <47BCBF3251382B45893950D07804082475AFD8@novamail.nv.cc.va.us> <00ff01c1f13c$53a07140$f70510ac@mitretek.org> <200205011433.28511.casey@zope.com> <01b001c1f14b$275eccd0$f70510ac@mitretek.org> Message-ID: <1020284712.1557.21.camel@npa01zz001> Now, I realize that text editors are a highly personal affair, but I can't for the life of me figure out why it is that Emacs doesn't get more attention, especially amongst Zopistas. Emacs will happily edit Zope objects via FTP, it has intelligent modes for SQL, DTML, HTML, XML, and Python (and a whole lot more). In fact, Emacs' Python mode and PSGML (xml mode) are really hard to beat. Modern versions of Emacs are also about as point-and-clicky as you could want (in a text editor anyway), and there is even a very useable vi emulation mode for folks that are allergic to Emacs-style key chording. Not too mention the fact that Emacs runs on everything that can even remotely be considered as a "computer." Approximately a million years ago Emacs had the downside of being a resource hog, but compared to most recent development packages Emacs is positively svelte. Sorry for the rant, Emacs made me do it. Jason On Wed, 2002-05-01 at 14:02, Thomas B. Passin wrote: > Casey, it looks good but I've made it a point to try to keep XServers off my > system (Win2000) if I can. Cygwin is fine, I've got it, but I've never been > happy with XServers (though it's been a few uears since last I used one). > So I'm going to give nedit a miss for now. > > Tom P > > [Casey Duncan] > > On Wednesday 01 May 2002 02:16 pm, Thomas B. Passin allegedly wrote: > > > > I don't know that you can get it to recognize dtml files with no > extensions, > > but you can manually set the document type for a specific document to be > > whatever you like. > > > > Cheers, > > > > Tom P > > This is one of the things I really like about nedit. It can introspect the > file to guess its type. Introspecting dtml (and zpt) is trivial, so it works > very well for extension-less Zope scripts. > > Nedit is free, runs on most plaforms, although not natively under windows > (it > requires cygwin). It is however, very intuitive to use. > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From alet@librelogiciel.com Wed May 1 21:36:46 2002 From: alet@librelogiciel.com (Jerome Alet) Date: Wed, 1 May 2002 22:36:46 +0200 Subject: [Zope] setting properties for multiple objects In-Reply-To: <003101c1f131$8f36a860$d101a8c0@viz.com> References: <003101c1f131$8f36a860$d101a8c0@viz.com> Message-ID: <20020501203646.GA7025@port50-2.unice.fr> On Wed, May 01, 2002 at 09:59:29AM -0700, Russell Uman wrote: > > is there any way with a vanilla zope 2.5.1 install to set a property for multiple objects at the same time? (say, all objects in a > directory?) > > is there a zope product that does something this? you could download ZShell from : http://www.librelogiciel.com/software/ you can even test a restricted version online before downloading. and use its find and setprop commands, try something like : find . --type "DTML Document" --exec "setprop --name author --value homer {}" this will recursively set the property "author" to value "homer" on all your objects which meta type is "DTML Document" from the current folder. if the property doesn't already exist then use the addprop command before. hth. Jerome Alet From casey@zope.com Wed May 1 22:27:41 2002 From: casey@zope.com (Casey Duncan) Date: Wed, 1 May 2002 17:27:41 -0400 Subject: [Zope] color-syntax editor for dtml In-Reply-To: <1020284712.1557.21.camel@npa01zz001> References: <47BCBF3251382B45893950D07804082475AFD8@novamail.nv.cc.va.us> <01b001c1f14b$275eccd0$f70510ac@mitretek.org> <1020284712.1557.21.camel@npa01zz001> Message-ID: <200205011727.41461.casey@zope.com> On Wednesday 01 May 2002 04:25 pm, Jason Earl allegedly wrote: > Now, I realize that text editors are a highly personal affair, but I > can't for the life of me figure out why it is that Emacs doesn't get > more attention, especially amongst Zopistas. =20 Saying emacs doesn't get enough attention is like saying Elvis doesn't ge= t=20 enough recognition. Maybe in the Windows world, emacs is a bit more rare,= I=20 dunno. I'm surrounded by emacsillians everywhere I go ;^). =09Emacs is a nice operating system, it lacks a decent editor though -Casey From simon@joyful.com Wed May 1 08:21:13 2002 From: simon@joyful.com (Simon Michael) Date: Wed, 01 May 2002 00:21:13 -0700 Subject: [Zope] [zwiki] opening up cvs Message-ID: <87sn5cxriu.fsf@joyful.com> Hi all, today I am throwing open the doors of Zwiki CVS. If you are familiar with zwiki and able to lend a hand with the product code, I invite you to send me your sourceforge id so I can add you to the list of developers. You will then have write access to the cvs repository as described at https://sourceforge.net/cvs/?group_id=5690 (module "zwiki"). I will continue acting as chief broompusher and de facto dictator for now and will resolve disagreements by decree if appropriate. I'd like to grow this project so that many of us can work actively on it, and this may require experiments and adjustments as we go. To begin with I ask that you act conservatively, discussing significant code & architectural changes on zwiki.org. All other kinds of help - documentation, bug tracking, template design, sponsorship, wiki maintenance & development, packaging, etc. - remain much needed and appreciated. Best regards, -Simon From jtk@adelphia.net Wed May 1 23:03:15 2002 From: jtk@adelphia.net (Jeff Kowalczyk) Date: Wed, 1 May 2002 18:03:15 -0400 Subject: [Zope] Set _allowed_meta_types on folder instances without creating a new product? In-Reply-To: <15568.18074.1405.45132@linux.local> Message-ID: <000001c1f15b$fe739470$6401a8c0@laptop> > I told you how to define "_allowed_meta_types" on a per instance > basis but did not check that "_allowed_meta_types" has the desired effect. > When your message above arrived, I tried to find a use > of "_allowed_meta_types", but the Zope sources do not > reference it. Where do you know about it? I've been using it in mxmObjectManager derived product classes to limit the Metatype list. class PurchaseOrder(PropertyManager, mxmObjectManager.mxmObjectManager): "A PurchaseOrder" meta_type = 'Purchase Order' _allowed_meta_types = ('Invoice','Item','Location','Shipment',) It works exactly as expected, but it would be very useful to apply this to existing folders which are specialized in purpose, but require no special class of their own. So I went looking into OFS ObjectManager and the mxmObjectManager source, to see what Zope's native mechanism for this was: mxmObjectManager.py ... # A cleaner way to filter metatypes # __allowed_meta_types = ('DTML Document','DTML Method') def all_meta_types(self): """ Returns what meta_types can be added to the objectmanager """ if hasattr(self, '_allowed_meta_types'): result = [] for metaType in Products.meta_types: if metaType['name'] in self._allowed_meta_types: result.append(metaType) return result else: return Products.meta_types And OFS/ObjectManager.py def all_meta_types(self, interfaces=None): ... def filtered_meta_types(self, user=None): # Return a list of the types for which the user has # adequate permission to add that type of object. user=getSecurityManager().getUser() meta_types=[] if callable(self.all_meta_types): all=self.all_meta_types() else: all=self.all_meta_types for meta_type in all: if meta_type.has_key('permission'): if user.has_permission(meta_type['permission'],self): meta_types.append(meta_type) else: meta_types.append(meta_type) return meta_types I'm more confused than before. Setting __all_allowed_metatypes causes a "has key" error on the folder. From evan@4-am.com Wed May 1 23:07:39 2002 From: evan@4-am.com (Evan Simpson) Date: Wed, 01 May 2002 17:07:39 -0500 Subject: [Zope] VHM and ProxyPass References: <3CCF0E50.5020309@emediamillworks.com> <3CD03D5A.20303@4-am.com> <3CD04738.4000109@emediamillworks.com> Message-ID: <3CD0672B.8080107@4-am.com> Jorge O. Martinez wrote: > Really? I only installed it because I was getting the physical path > instead of the virtual path with the VHM only. After installing it, all > the paths were correct. It sounds like your use of VHM was incomplete. What's your configuration? Cheers, Evan @ 4-am From russ@viz.com Wed May 1 23:26:21 2002 From: russ@viz.com (Russell Uman) Date: Wed, 1 May 2002 15:26:21 -0700 Subject: [Zope] image attributes References: <01d701c1f08a$f7b87aa0$d101a8c0@viz.com> <15568.18333.121667.361648@linux.local> Message-ID: <01f101c1f15f$386f7420$d101a8c0@viz.com> i am using 2.5.1, so yeah. i guess it is an up to date release. i will file a bug report. i am successfully using the tag method as a work around. thanks! ----- Original Message ----- From: Dieter Maurer To: Russell Uman Cc: Sent: Wednesday, May 01, 2002 12:53 PM Subject: Re: [Zope] image attributes > Russell Uman writes: > > i'm trying to set the border attribute of an image tag like so: > > > > > > > > i get the following error when i load the page > > > > Error Type: AttributeError > > Error Value: Context instance has no attribute 'getCompilerError' > Looks like a bug. > > Are you using an up-to-date ZPT release? If so, file a bug report. > > > how can i add the border attribute to an image? > As a work around, you can probably use the "Image"'s "tag" method. > > > Dieter > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > From vsbabu@vsbabu.org Thu May 2 01:03:19 2002 From: vsbabu@vsbabu.org (vsbabu@vsbabu.org) Date: Wed, 1 May 2002 19:03:19 -0500 Subject: [Zope] Py script and manage_pasteObjects permission Message-ID: <20020501190319.A2788@vsbabu.org> Hello, I've a script that goes like #archiveit ids=['001','002'] return container.archives.manage_pasteObjects(context.manage_copyObjects(ids)) archives is a subfolder. Requirement is to copy some objects into a sub folder. Works pretty well from ZMI. I need this to work without authentication 'coz this is going to be called from another system over http (http://myzope:8080/mydata/archiveit). Even if I give Manager, Owner and Authenticated roles for the script, it asks for authentication. The error is like "you don't have permissions to run manage_pasteObjects in this context" I'm on Zope 2.5.0 on WinNT4. Any hints/help will be appreciated Thanks -vsb vsbabu at vsbabu dot org From jamey@infr.com Thu May 2 02:34:26 2002 From: jamey@infr.com (Jamey) Date: Wed, 01 May 2002 21:34:26 -0400 Subject: [Zope] abandonware and new.zope.org In-Reply-To: <15568.14282.612140.458802@linux.local> Message-ID: I agree! I have been using eTailer which was clearly abandoned, but it has survived 4 upgrades. I'm currently using Zope 2.5.1 and eTailer is still plugging away. I don't know if eTailer would be considered a "good" product, but it does what I need so its good for me :-). Not sure what happened to the authors (I think they moved away from "free" and are trying to make money with a spiced up eTailer). I wish they were still working on it because eTailer was the only commerce product worth using. I also think the following should be implemented... > Make the products discussible and ratable. > Send email to the author when new comments arrive (batch the comments, of > course). -- > From: Dieter Maurer > Date: Wed, 1 May 2002 20:45:30 +0200 > To: Milos Prudek > Cc: zope@zope.org > Subject: Re: [Zope] abandonware and new.zope.org > > Milos Prudek writes: >> An idea for new.zope.org: encourage people not to abandon popular projects. >> ... >> Another >> approach would be to mark products "may be abandoned" if no release was >> published in six months, and "abandoned" if no release in 12 months. > Good products do not need to be released on a regular base, only > when something happens that breaks them... > >> Just my idea. > As you see above, I do not like your idea. > >> Propose something softer or harder, but IMHO some solution >> should be implemented. > Make the products discussable and ratable. > Send email to the author when new comments arrive (batch the comments, of > course). > > > Dieter > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From chrism@zope.com Thu May 2 03:08:58 2002 From: chrism@zope.com (Chris McDonough) Date: Wed, 01 May 2002 22:08:58 -0400 Subject: [Zope] abandonware and new.zope.org References: Message-ID: <3CD09FBA.3050402@zope.com> I'd encourage anyone who is interested in contributing time and expertise to join the Zope-Web maillist where discussions are in-progress about features for the "new" iteration of Zope.org. Helping to build it is the surest way it will get done the way you want it. ;-) Jamey wrote: > I agree! > > I have been using eTailer which was clearly abandoned, but it has survived 4 > upgrades. I'm currently using Zope 2.5.1 and eTailer is still plugging away. > I don't know if eTailer would be considered a "good" product, but it does > what I need so its good for me :-). > > Not sure what happened to the authors (I think they moved away from "free" > and are trying to make money with a spiced up eTailer). I wish they were > still working on it because eTailer was the only commerce product worth > using. > > I also think the following should be implemented... > > >>Make the products discussible and ratable. >>Send email to the author when new comments arrive (batch the comments, of >>course). > > > From pydan@danshafer.com Thu May 2 05:47:13 2002 From: pydan@danshafer.com (Dan Shafer) Date: Wed, 01 May 2002 21:47:13 -0700 Subject: [Zope] Still Plagued With Date Formatting Bug in Text Field In-Reply-To: <200205011100.03174.casey@zope.com> References: <5.1.0.14.0.20020501074605.0f38da68@mail.hurrah.com> <5.1.0.14.0.20020430215752.0f3857e8@mail.hurrah.com> <5.1.0.14.0.20020501074605.0f38da68@mail.hurrah.com> Message-ID: <5.1.0.14.0.20020501214614.0f3c3a00@mail.hurrah.com> Thanks, Casey, on two fronts. First, this worked! Problem solved. Second, I never heard of ZopeTime. I don't find it in the Zope Book anywhere. It is certainly cleaner to use than (_.DateTime()), which I always have syntax issues with when I try to format its output. At 11:00 AM 5/1/2002 -0400, Casey Duncan wrote: >Try: > > value=""> > >Be sure to include the outer quotes on the value attribute. > >hth, > >-Casey > >On Wednesday 01 May 2002 10:51 am, Dan Shafer allegedly wrote: > > OK, thanks for the continuing help. > > > > I'm generating the contents of this particular field in a DTML Document > > inside a tag with this line (beginning and ending angle brackets > > removed to avoid rendering problems):: > > > > input type="text" name="start_date" value= > "(_.DateTime().strftime(:%b %d, %Y"))"> > > > > As I think I said in a previous note, but just for the sake of > > completeness, if I change tthat to use a textarea object instead of a text > > field, the date displays correctly. The text field is more than wide > enough > > to accommodate the entire string. > > > > Thanks for any suggestions. This one has me completely baffled. From kedai@kedai.com.my Thu May 2 05:57:16 2002 From: kedai@kedai.com.my (Bakhtiar A Hamid) Date: Thu, 2 May 2002 12:57:16 +0800 Subject: [Zope] Still Plagued With Date Formatting Bug in Text Field In-Reply-To: <5.1.0.14.0.20020501214614.0f3c3a00@mail.hurrah.com> References: <5.1.0.14.0.20020501074605.0f38da68@mail.hurrah.com> <5.1.0.14.0.20020501214614.0f3c3a00@mail.hurrah.com> Message-ID: <200205021257.16723.kedai@kedai.com.my> On Thursday 02 May 2002 12:47 pm, Dan Shafer wrote: > Thanks, Casey, on two fronts. First, this worked! Problem solved. Secon= d, I > never heard of ZopeTime. I don't find it in the Zope Book anywhere. It = is > certainly cleaner to use than (_.DateTime()), which I always have synta= x > issues with when I try to format its output. > i would suggest getting ZQR http://www.zope.org/Members/ZQR it may be a bit outdated, but it still applies. it never left my desktop= :) and get Dieter's excellent DocFinder or a Zope Product wrapper=20 DocFinderEverywhere so that all available methods will be visible. just my .02 =20 --=20 =09http://www.kedai.com.my/ http://www.kedai.com.my/eZine =09http://www.zope.org/Members/kedai http://www.my-zope.org =09If you SMELLLL...=20 From mich@maschin.ch Thu May 2 06:51:11 2002 From: mich@maschin.ch (mich wyser) Date: Thu, 02 May 2002 07:51:11 +0200 (MEST) Subject: [Zope] zope as ftp-server Message-ID: <1020318671.3cd0d3cf6a927@your.trash.net> Hi Zopatistas As i want to manage anything with zope, I also want to use Zope as pure ftp- server. The idea is to let admins manage users/closed groups by the ZMI and a to give a simple public interface over the ftp-file-structure for the end user My idea was to take LocalFs or ExtFile and store the Files externally on the File System. Now i see some Problems/Questions 1. Is there any Possibility to turn off ObjeAct-Acquisiton ? 2. How can i do Logging / Quotas 3. Stability of ftp-server in Zope thanks for any hints and experience in ftp-serving with zope mich@maschin.ch From dario@ita.chalmers.se Thu May 2 07:14:32 2002 From: dario@ita.chalmers.se (=?iso-8859-1?Q?Dario_Lopez-K=E4sten?=) Date: Thu, 2 May 2002 08:14:32 +0200 Subject: [Zope] Secure database access References: <20020501052356.8885.qmail@web21502.mail.yahoo.com> <200205011101.01821.tdickenson@geminidataloggers.com> Message-ID: <029e01c1f1a0$a0049200$4bdf1081@ita.chalmers.se> From: "Toby Dickenson" > Yes, that is the key difference that makes your proposed topology secur= e. > > > However, I would be surprised > >if the Oracle client software would transmit plaintext > >passwords. Surely not in this day and age! > > I didnt mean the password that zope provides to oracle, but rather the > passwords that your users provide to zope (via apache). Yes, they are > plaintext. > and actualy, unless you use Oracle's Advanced Networking Option, SQL*Net will not encrypt anything... /dario - -------------------------------------------------------------------- Dario Lopez-K=E4sten, dario@ita.chalmers.se IT Systems & Services System Developer/System Administrator Chalmers University of Tech. From kerrb@senet.com.au Wed May 1 20:35:20 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Thu, 2 May 2002 05:05:20 +0930 Subject: [Zope] zope server crashing References: <5.1.0.14.0.20020418173603.00aff978@mail.hurrah.com> <5.1.0.14.0.20020418173603.00aff978@mail.hurrah.com> <5.1.0.14.0.20020419134102.00afbf60@mail.hurrah.com> Message-ID: <002201c1f147$55bce7a0$e70f0c3f@LocalHost> I'm new at this I installed zope on a server at school and although for one user it seems to work fine as soon as only 6 users logged on it crashed -- we have repeated this process and it has crashed every time multiple users log on I've pasted in the log below and am seeking assistance as to the nature of the problem The log says "No space left on device" but there is 1.4 GB available on the C drive of the machine where it is installed, running under Windows 97 with 224 MB RAM any assistance would be much appreciated thank you, Bill Kerr, Woodville High School, South Australia Capture file written by TCAP 3.1, TCAP Copyright(c) 1999 Tim Kannel ------ 2002-05-01T22:53:12 INFO(0) ZServer HTTP server started at Thu May 02 08:23:12 2002 Hostname: CDSERVER Port: 8080 ------ 2002-05-01T22:53:12 INFO(0) ZServer FTP server started at Thu May 02 08:23:12 2002 Hostname: cdserver Port: 8021 ------ 2002-05-01T22:53:12 INFO(0) ZServer PCGI Server started at Thu May 02 08:23:12 2002 Inet socket port: 8090 ------ 2002-05-02T01:04:38 ERROR(200) ZServer uncaptured python exception, closing channel (exceptions.IOError:[Errno 28] No space left on device [C:\Program Files\ZopeWeb\bin\lib\asyncore.py|poll|107] [C:\Program Files\ZopeWeb\bin\lib\asyncore.py|handle_write_event|390] [C:\Program Files\ZopeWeb\ZServer\medusa\asynchat.py|handle_write|147] [C:\Program Files\ZopeWeb\ZServer\medusa\asynchat.py|initiate_send|209] [C:\Program Files\ZopeWeb\ZServer\medusa\asynchat.py|refill_buffer|196] [C:\Program Files\ZopeWeb\ZServer\Producers.py|more|108] [C:\Program Files\ZopeWeb\ZServer\medusa\http_server.py|log|289] [C:\Program Files\ZopeWeb\ZServer\medusa\logger.py|log|247] [C:\Program Files\ZopeWeb\ZServer\medusa\logger.py|log|77] [C:\Program Files\ZopeWeb\ZServer\medusa\logger.py|write|53] [C:\Program Files\ZopeWeb\ZServer\medusa\logger.py|maybe_flush|65]) Traceback (most recent call last): File "C:\Program Files\ZopeWeb\z2.py", line 774, in ? asyncore.loop() File "C:\Program Files\ZopeWeb\bin\lib\asyncore.py", line 194, in loop poll_fun (timeout, map) File "C:\Program Files\ZopeWeb\bin\lib\asyncore.py", line 111, in poll obj.handle_error() File "C:\Program Files\ZopeWeb\ZServer\medusa\http_server.py", line 437, in handle_error asynchat.async_chat.handle_error (self) File "C:\Program Files\ZopeWeb\bin\lib\asyncore.py", line 413, in handle_error self.close() File "C:\Program Files\ZopeWeb\ZServer\HTTPServer.py", line 369, in close p.more() # free up resources held by producer File "C:\Program Files\ZopeWeb\ZServer\Producers.py", line 108, in more getattr(self.logger, self.method)(self.bytes) File "C:\Program Files\ZopeWeb\ZServer\medusa\http_server.py", line 289, in log ' - %s [%s] "%s" %d %d "%s" "%s"\n' % ( File "C:\Program Files\ZopeWeb\ZServer\medusa\logger.py", line 247, in log self.logger.log ('%s%s' % (ip, message)) File "C:\Program Files\ZopeWeb\ZServer\medusa\logger.py", line 77, in log self.write (message) File "C:\Program Files\ZopeWeb\ZServer\medusa\logger.py", line 53, in write self.maybe_flush() File "C:\Program Files\ZopeWeb\ZServer\medusa\logger.py", line 65, in maybe_flush self.file.flush() IOError: [Errno 28] No space left on device From hans@beehive.de Thu May 2 10:47:44 2002 From: hans@beehive.de (hans) Date: Thu, 02 May 2002 10:47:44 +0100 Subject: [Zope] DBField (REAL) in FORM-field (decimal problem) References: <007301c1f0f3$1787f5f0$0801010a@smidsrod.no> Message-ID: <3CD10B3F.1AA3AB91@beehive.de> Robin Smidsr=F8d wrote: > I'm using the Z DBI DA and when I have a database with a float/real > value, it's always listed in exponential notation. > > What's the correct way to show it as a regular decimal (with dot or > comma as decimal separator). > in DTML (http://www.zope.org/Members/michel/ZB/AppendixA.dtml) search for var: or fmt hans -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From maik.jablonski@uni-bielefeld.de Thu May 2 09:55:50 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Thu, 02 May 2002 10:55:50 +0200 Subject: [Zope] Py script and manage_pasteObjects permission References: <20020501190319.A2788@vsbabu.org> Message-ID: <3CD0FF16.9000109@uni-bielefeld.de> vsbabu@vsbabu.org wrote: > Hello, > > I've a script that goes like > > #archiveit > ids=['001','002'] > return container.archives.manage_pasteObjects(context.manage_copyObjects(ids)) > > > archives is a subfolder. Requirement is to copy some objects into a sub folder. > Works pretty well from ZMI. > > I need this to work without authentication 'coz this is going to be called from > another system over http (http://myzope:8080/mydata/archiveit). Even if I give Manager, Owner and Authenticated roles for the script, it asks for authentication. The error is like > "you don't have permissions to run manage_pasteObjects in this context" > > I'm on Zope 2.5.0 on WinNT4. > > Any hints/help will be appreciated hi, if I remember right, there's a bug in manage_pasteObjects that leads to the described behaviour. maybe you should try: manage_clone. greetings, maik. -- maik jablonski http://www.sachunterricht-online.de universitaet bielefeld http://www.zfl.uni-bielefeld.de zentrum fuer lehrerbildung tlph://+49.(0).521.106.4234 From hans@beehive.de Thu May 2 11:28:18 2002 From: hans@beehive.de (hans) Date: Thu, 02 May 2002 11:28:18 +0100 Subject: [zope] python scripts References: <003101c1ef63$291a3a30$da494e18@cr536745a> <3CCD4537.50292D1E@beehive.de> <3CD03615.6020708@emediamillworks.com> Message-ID: <3CD114BF.D0DA3DCC@beehive.de> "Jorge O. Martinez" wrote: > Hi: > > > Names (and their ojects) may be looked up > > from the names/attributes of the default bound objects (at least, > zope > 2.5.0): > > context, container, script, traverse_subpath > > The above is what I'd like to do; however, could anybody suggest some > code or a product to look them up? Sorry for the basic question, but > still getting to know python and Zope ;-) > > I mean something similar to what does for request > (shows cookies, paths, etc.). context.REQUEST ? > Or if possible I'd like to find a way to learn what methods (sorry if > this is not the right term) are available for a given object (let's say > for a 'Folder' or a DTML document. Is there a howto. I have taken a look > at the apendices, but I am still not sure I quite get it. Folder, hmm http://www.zope.org/Documentation/ZopeBook/AppendixB.stx class Folder (also look at /lib/python/OFS/Folder.py) but you can't do anything except adding a folder. however, the code for folder shows it is (among others) derived from OjectManager. AppendixB class ObjectManager (and the sourcecode also) contains a lot of useful methods like objectItems( [list of] string ) where the string denotes the wanted meta_type, like so (from the top of my head) objectItems( ['DTMLDocument'] ) this gets you a list of tuples (id, obj) of DTML Documents contained in the folder. > > hans wrote: > > "Ian!" wrote: > > > > > >>I am having a very hard time writing python scripts for zope. I don't know > >>which objects do what, and I can't find out where to look up the relevant > >>documentation. > >> > >>I brought this up in an earlier post to the list, but I didn't get a > >>response. I've read through the zope book (at > >>http://www.zope.org/Documentation/ZopeBook/contents ), but it doesn't really > >>cover what I'm looking for - it doesn't really seem to be a guide to writing > >>scripts. > >> > >>The Zope API reference seems to be the reference for people who are > >>developing products or external methods for zope, because all of those > >>modules can't imported from within a python script under zope, even though > >>it seems like stuff I would want to use. > >>http://www.zope.org/Documentation/ZopeBook/AppendixB.stx > >> > >>The Zope help from within the zope management interface contains the same > >>API reference, as well as some other stuff that (as far as I can tell) isn't > >>what I'm looking for. > >> > >>I want to get the current CMF member and change some of it's extra data > >>attributes (attributes which I added with the management interface > >>portal_memberdata) - I don't know how to do this, but more importantly I > >>don't know where to look up how to do it. Can anyone help me out? Sorry for > >>being such a lost newbie =) never bothered abt CMF. however, REQUEST most probably contains AUTHENTICATED_USER (if cookie-based auth) > > > Names (and their ojects) may be looked up > > from the names/attributes of the default bound objects (at least, zope 2.5.0): > > context, container, script, traverse_subpath > > > > when your script is called, these are defined. > > context is the caller (usually some zpt/dtml-document), > > container the containing folder > > > > as these objects are objects in data.fs, > > data.fs is an object collection organized as a tree > > (ObjectManager is one of the base classes of Folder), > > close to any object (and its attributes) are accessible from your py script > > (security aside). > > execution pereforms in a restricted environment, > > the zope book dtml-appendix contains a list of restricted code. -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From gilles@objectis.net Thu May 2 11:33:44 2002 From: gilles@objectis.net (Gilles Lenfant) Date: Thu, 2 May 2002 12:33:44 +0200 Subject: [Zope] zope server crashing References: <5.1.0.14.0.20020418173603.00aff978@mail.hurrah.com> <5.1.0.14.0.20020418173603.00aff978@mail.hurrah.com> <5.1.0.14.0.20020419134102.00afbf60@mail.hurrah.com> <002201c1f147$55bce7a0$e70f0c3f@LocalHost> Message-ID: <006b01c1f1c4$dada2ce0$0601a8c0@provence> Have a look at the size of your var/Z2.log file... On Windows 98, it cannot go beyond 2Gb AFAIK. HTH --Gilles Lenfant ----- Original Message -----=20 From: "Bill Kerr" To: Cc: "Paul Trezise" Sent: Wednesday, May 01, 2002 9:35 PM Subject: [Zope] zope server crashing : I'm new at this [...] From rbeer@uni-goettingen.de Thu May 2 11:30:58 2002 From: rbeer@uni-goettingen.de (Ragnar Beer) Date: Thu, 2 May 2002 12:30:58 +0200 Subject: [Zope] RESPONSE.redirect and 301 Message-ID: <20020502123058.512939b5.rbeer@uni-goettingen.de> Howdy, as far as I can see RESPONSE.redirect sends a '302 Moved Temporarily' status in the header but I need to send a '301 Moved Permanently'. What do I have to do to send the latter status? Ragnar From lewicki@provider.pl Thu May 2 12:19:24 2002 From: lewicki@provider.pl (Pawel Lewicki) Date: Thu, 2 May 2002 13:19:24 +0200 Subject: [Zope] Zope+Python source-code security References: <000001c1ef6b$ce6c0790$1ae063d9@domowy><002401c1f060$d1011400$2fe163d9@domowy> <15566.58283.20909.132716@linux.local> Message-ID: <002001c1f1cb$f1e8b760$66e063d9@domowy> Thank you very much for all pieces of advice. As I can see there is no fully protected solution :) Somehow this is an advantage because I can use whatever I want (Zope+Python :) Pawel Lewicki From jens@zope.com Thu May 2 13:17:28 2002 From: jens@zope.com (Jens Vagelpohl) Date: Thu, 2 May 2002 08:17:28 -0400 Subject: [Zope] RESPONSE.redirect and 301 In-Reply-To: <20020502123058.512939b5.rbeer@uni-goettingen.de> Message-ID: <91DE5EAE-5DC6-11D6-9F9B-00039363690C@zope.com> just tell it to do so. RESPONSE.redirect( 'new/url/path', status=301 ) jens On Thursday, May 2, 2002, at 06:30 , Ragnar Beer wrote: > Howdy, > > as far as I can see RESPONSE.redirect sends a '302 Moved Temporarily' > status in the header but I need to send a '301 Moved Permanently'. What do > I have to do to send the latter status? > > Ragnar > From jean@upfrontsystems.co.za Thu May 2 13:47:19 2002 From: jean@upfrontsystems.co.za (Jean Jordaan) Date: Thu, 2 May 2002 14:47:19 +0200 Subject: [Zope] Transaction status codes in the ZODB? Message-ID: Hi all. When I run 'fsrecover.py' from Zope 2.5.1b1 (source release, python 2.1, linux2) on my Data.fs, I get 710888 errors like:: __main__.ErrorFound: invalid status, ^@, at 23141234 This is output by the following in 'fsrecover.py':: if status not in ' up': error('invalid status, %s, at %s', status, pos) Where are the status codes documented? How do they get set to invalid values? From FileStorage.py I can make some guesses: 'u' == undone 'c' == checkpoint ' ' == dunno? status=packing and 'p' or ' ' But how/where does status get assigned values such as ^@ (ascii value zero)? The returned codes are: ^@, ^F, , ^M, ^R, ^_, %, +, 7, <, @, D, T, ^, k, {, ~, ^?, <8E>, <92>, <95>, <96>, <98>, <9A>, , , , , , , , , , , , , , for what that's worth .. -- Jean Jordaan Upfront Systems http://www.upfrontsystems.co.za From kedai@kedai.com.my Thu May 2 13:13:34 2002 From: kedai@kedai.com.my (Bak @ kedai) Date: Thu, 2 May 2002 20:13:34 +0800 Subject: [Zope] abandonware and new.zope.org Message-ID: <00a801c1f1d2$cddb1dc0$615eb8ca@defaultcn> From: Marc Lindahl To: Milos Prudek ; zope@zope.org Date: Wednesday, May 01, 2002 4:37 AM Subject: Re: [Zope] abandonware and new.zope.org >That would be very useful for us product developers, to know what people are >really using! Even a download counter, rating system, etc.... > at least comments/rating is available at http;//www.my-zope.org unfortunately, there's little activity/feedback not sure whether there's problem with the site or something else anyways, this is a stop gap measure until new.zope.org materialize give it a spin From Dirk.Datzert@rasselstein-hoesch.de Thu May 2 14:04:52 2002 From: Dirk.Datzert@rasselstein-hoesch.de (Dirk Datzert) Date: Thu, 2 May 2002 15:04:52 +0200 Subject: [Zope] products/module search Message-ID: <007001c1f1d9$f2842bb0$3e28011c@rag2> This is a multi-part message in MIME format. ------=_NextPart_000_006E_01C1F1EA.B5FAAC30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm looking for a product or python-modul, which does one or more of the = following steps: 1. save an external url in the properties, with/without check on = existance of the url 2. can do a remote-http to this external url 3. strip unwanted tags out ( I think this is stripogram for ) 4. rewrite a-tags on a special role products or python-moduls are welcome :-) Thanks, Dirk ------=_NextPart_000_006E_01C1F1EA.B5FAAC30 Content-Type: text/x-vcard; name="Dirk Datzert.vcf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Dirk Datzert.vcf" BEGIN:VCARD VERSION:2.1 N:Datzert;Dirk FN:Dirk Datzert ORG:;Andernach TEL;WORK;VOICE:+49 2631 81 4595 TEL;WORK;FAX:+49 2631 81 15 4595 ADR;WORK:;;Andernach LABEL;WORK:Andernach KEY;X509;ENCODING=3DBASE64: = MIIDVTCCAr6gAwIBAgIPAM2aAAAAAkJs9V5JP7ynMA0GCSqGSIb3DQEBBAUAMIG8MQswCQYD = VQQGEwJERTEQMA4GA1UECBMHSGFtYnVyZzEQMA4GA1UEBxMHSGFtYnVyZzE6MDgGA1UEChMx = VEMgVHJ1c3RDZW50ZXIgZm9yIFNlY3VyaXR5IGluIERhdGEgTmV0d29ya3MgR21iSDEiMCAG = A1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMSBDQTEpMCcGCSqGSIb3DQEJARYaY2VydGlm = aWNhdGVAdHJ1c3RjZW50ZXIuZGUwHhcNMDExMTEyMTIwMTM1WhcNMDMwMTAyMTIwMTM1WjBp = MQswCQYDVQQGEwJERTEQMA4GA1UEBxMHTmV1d2llZDEVMBMGA1UEAxMMRGlyayBEYXR6ZXJ0 = MTEwLwYJKoZIhvcNAQkBFiJEaXJrLkRhdHplcnRAcmFzc2Vsc3RlaW4taG9lc2NoLmRlMIGf = MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCog/5TyCRdMjACIM/U23qq0n0LUEeb+X3WpIn5 = 2UHosqQMDdLDEtlUOMSKTrqcsp3lHTOQWwj65/T3cI85brb7PkJDtbCI57MVTtMIKByd946g = uIOe6xti0H+lJAscIO1a6FqFjjJLhudWpDqaWgW95qGaFVT1me2xPEaoiampxQIDAQABo4Gq = MIGnMDMGCWCGSAGG+EIBCAQmFiRodHRwOi8vd3d3LnRydXN0Y2VudGVyLmRlL2d1aWRlbGlu = ZXMwEQYJYIZIAYb4QgEBBAQDAgWgMF0GCWCGSAGG+EIBAwRQFk5odHRwczovL3d3dy50cnVz = dGNlbnRlci5kZS9jZ2ktYmluL2NoZWNrLXJldi5jZ2kvQ0Q5QTAwMDAwMDAyNDI2Q0Y1NUU0 = OTNGQkNBNz8wDQYJKoZIhvcNAQEEBQADgYEAOHB5sq4AdTAwizcmGPgdnfPo9btBu1d/PRNO = D/xoIhXlI4A0ehRZCBGuOup0L78YBj+DZUMDOK3H6+5M8rOfCazkcYlcfdxZ9LeNRkMy+RRx PbmXelKB7UjM6IfJyZiQzm/jTwxFle3L+W8TMSPwmAdTJOo0YkikHCAlxNLMn4w=3D EMAIL;PREF;INTERNET:Dirk.Datzert@rasselstein-hoesch.de REV:20020502T130452Z END:VCARD ------=_NextPart_000_006E_01C1F1EA.B5FAAC30-- From jmartinez@emediamillworks.com Thu May 2 14:29:41 2002 From: jmartinez@emediamillworks.com (Jorge O. Martinez) Date: Thu, 02 May 2002 09:29:41 -0400 Subject: [zope] python scripts References: <003101c1ef63$291a3a30$da494e18@cr536745a> <3CCD4537.50292D1E@beehive.de> <3CD03615.6020708@emediamillworks.com> <3CD114BF.D0DA3DCC@beehive.de> Message-ID: <3CD13F45.6090107@emediamillworks.com> Thanks! I'll try that. hans wrote: > "Jorge O. Martinez" wrote: > > >>Hi: >> >> > Names (and their ojects) may be looked up >> > from the names/attributes of the default bound objects (at least, >>zope > 2.5.0): >> > context, container, script, traverse_subpath >> >>The above is what I'd like to do; however, could anybody suggest some >>code or a product to look them up? Sorry for the basic question, but >>still getting to know python and Zope ;-) >> >>I mean something similar to what does for request >>(shows cookies, paths, etc.). > > > context.REQUEST ? > > >>Or if possible I'd like to find a way to learn what methods (sorry if >>this is not the right term) are available for a given object (let's say >>for a 'Folder' or a DTML document. Is there a howto. I have taken a look >>at the apendices, but I am still not sure I quite get it. > > > Folder, hmm > http://www.zope.org/Documentation/ZopeBook/AppendixB.stx > class Folder > (also look at /lib/python/OFS/Folder.py) > but you can't do anything except adding a folder. > however, the code for folder shows it is (among others) > derived from OjectManager. AppendixB class ObjectManager > (and the sourcecode also) contains a lot of useful methods > like objectItems( [list of] string ) where the string denotes the > wanted meta_type, like so (from the top of my head) > objectItems( ['DTMLDocument'] ) > this gets you a list of tuples (id, obj) of DTML Documents contained in the folder. > > >>hans wrote: >> >>>"Ian!" wrote: >>> >>> >>> >>>>I am having a very hard time writing python scripts for zope. I don't know >>>>which objects do what, and I can't find out where to look up the relevant >>>>documentation. >>>> >>>>I brought this up in an earlier post to the list, but I didn't get a >>>>response. I've read through the zope book (at >>>>http://www.zope.org/Documentation/ZopeBook/contents ), but it doesn't really >>>>cover what I'm looking for - it doesn't really seem to be a guide to writing >>>>scripts. >>>> >>>>The Zope API reference seems to be the reference for people who are >>>>developing products or external methods for zope, because all of those >>>>modules can't imported from within a python script under zope, even though >>>>it seems like stuff I would want to use. >>>>http://www.zope.org/Documentation/ZopeBook/AppendixB.stx >>>> >>>>The Zope help from within the zope management interface contains the same >>>>API reference, as well as some other stuff that (as far as I can tell) isn't >>>>what I'm looking for. >>>> >>>>I want to get the current CMF member and change some of it's extra data >>>>attributes (attributes which I added with the management interface >>>>portal_memberdata) - I don't know how to do this, but more importantly I >>>>don't know where to look up how to do it. Can anyone help me out? Sorry for >>>>being such a lost newbie =) >>> > > never bothered abt CMF. however, REQUEST most probably contains > AUTHENTICATED_USER (if cookie-based auth) > > >>>Names (and their ojects) may be looked up >>>from the names/attributes of the default bound objects (at least, zope 2.5.0): >>>context, container, script, traverse_subpath >>> >>>when your script is called, these are defined. >>>context is the caller (usually some zpt/dtml-document), >>>container the containing folder >>> >>>as these objects are objects in data.fs, >>>data.fs is an object collection organized as a tree >>>(ObjectManager is one of the base classes of Folder), >>>close to any object (and its attributes) are accessible from your py script >>>(security aside). >>>execution pereforms in a restricted environment, >>>the zope book dtml-appendix contains a list of restricted code. >> > > -- > ------------------------------------------------------------- > Who's got only a hammer sees the world as a nail > hans augustin (software developer) hans@beehive.de > beehive elektronische medien GmbH http://www.beehive.de > phone: +49 30 847-82 0 fax: +49 30 847-82 299 > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > -- Jorge O. Martinez MIS Senior Associate eMediaMillWorks 1100 Mercantile Lane, Suite 119 Largo, MD 20774 E-mail => jmartinez@eMediaMillWorks.com Phone => (301)883-2482 ext. 105 Fax => (301)883-9754 From kedai@kedai.com.my Thu May 2 14:04:32 2002 From: kedai@kedai.com.my (Bak @ kedai) Date: Thu, 2 May 2002 21:04:32 +0800 Subject: [Zope] products/module search Message-ID: <00af01c1f1d9$e7c61440$615eb8ca@defaultcn> kebasdata? http://www.zope.org/Members/kedai/KebasData -----Original Message----- From: Dirk Datzert To: zope@zope.org Date: Thursday, May 02, 2002 9:03 PM Subject: [Zope] products/module search Hi, I'm looking for a product or python-modul, which does one or more of the following steps: 1. save an external url in the properties, with/without check on existance of the url 2. can do a remote-http to this external url 3. strip unwanted tags out ( I think this is stripogram for ) 4. rewrite a-tags on a special role products or python-moduls are welcome :-) Thanks, Dirk From manini@flashnet.it Thu May 2 14:09:19 2002 From: manini@flashnet.it (Luca Manini) Date: Thu, 2 May 2002 15:09:19 +0200 Subject: [Zope] Acquiring object from Products instances Message-ID: <15569.14975.931388.391994@gargle.gargle.HOWL> Hi, I've a product that defines a classe ageForm. I've a PythonScript that adds an ageForm instance to a folder. After adding the instance it calls a method on it. This methods tries to access an objects using acquisition. Image I have something like this: + f (Folder) + o (object to acquire) + i (ageForm istance) + s (script that creates i and calls i.m) so the script s is like this: i = f.manageAddForlder ..... i.m () the ageForm method is like this: def m(self): o.doSomething() the ageForm class inherits from SimpleItem.SimpleItem and from a simple Python base class. Any hint? TIA, Luca From hans@beehive.de Thu May 2 16:12:00 2002 From: hans@beehive.de (hans) Date: Thu, 02 May 2002 16:12:00 +0100 Subject: [zope] python scripts References: <003101c1ef63$291a3a30$da494e18@cr536745a> <3CCD4537.50292D1E@beehive.de> <3CD03615.6020708@emediamillworks.com> <3CD114BF.D0DA3DCC@beehive.de> <3CD13F45.6090107@emediamillworks.com> Message-ID: <3CD1573E.B1261902@beehive.de> "Jorge O. Martinez" wrote: > Thanks! I'll try that. > > hans wrote: > > "Jorge O. Martinez" wrote: > > > > > >>Hi: > >> > >> > Names (and their ojects) may be looked up > >> > from the names/attributes of the default bound objects (at least, > >>zope > 2.5.0): > >> > context, container, script, traverse_subpath > >> > >>The above is what I'd like to do; however, could anybody suggest some > >>code or a product to look them up? Sorry for the basic question, but > >>still getting to know python and Zope ;-) > >> > >>I mean something similar to what does for request > >>(shows cookies, paths, etc.). > > > > > > context.REQUEST ? > > > > > >>Or if possible I'd like to find a way to learn what methods (sorry if > >>this is not the right term) are available for a given object (let's say > >>for a 'Folder' or a DTML document. Is there a howto. I have taken a look > >>at the apendices, but I am still not sure I quite get it. > > > > > > Folder, hmm > > http://www.zope.org/Documentation/ZopeBook/AppendixB.stx > > class Folder > > (also look at /lib/python/OFS/Folder.py) > > but you can't do anything except adding a folder. > > however, the code for folder shows it is (among others) > > derived from OjectManager. AppendixB class ObjectManager > > (and the sourcecode also) contains a lot of useful methods > > like objectItems( [list of] string ) where the string denotes the > > wanted meta_type, like so (from the top of my head) > > objectItems( ['DTMLDocument'] ) > > this gets you a list of tuples (id, obj) of DTML Documents contained in the folder. oh, PS: this is how to get down in the tree to go up, object.aq_parent not that amy-and-bob-do-the-kindergarten-stuff, but real knowledge: http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html also, python is essential. http://www.python.org/doc/current/ref/ref.html http://www.python.org/doc/current/lib/lib.html and concise the book by beazley > >>hans wrote: > >> > >>>"Ian!" wrote: > >>>>I am having a very hard time writing python scripts for zope. I don't know > >>>>which objects do what, and I can't find out where to look up the relevant > >>>>documentation. > >>>> > >>>>I brought this up in an earlier post to the list, but I didn't get a > >>>>response. I've read through the zope book (at > >>>>http://www.zope.org/Documentation/ZopeBook/contents ), but it doesn't really > >>>>cover what I'm looking for - it doesn't really seem to be a guide to writing > >>>>scripts. > >>>> > >>>>The Zope API reference seems to be the reference for people who are > >>>>developing products or external methods for zope, because all of those > >>>>modules can't imported from within a python script under zope, even though > >>>>it seems like stuff I would want to use. > >>>>http://www.zope.org/Documentation/ZopeBook/AppendixB.stx > >>>> > >>>>The Zope help from within the zope management interface contains the same > >>>>API reference, as well as some other stuff that (as far as I can tell) isn't > >>>>what I'm looking for. > >>>> > >>>>I want to get the current CMF member and change some of it's extra data > >>>>attributes (attributes which I added with the management interface > >>>>portal_memberdata) - I don't know how to do this, but more importantly I > >>>>don't know where to look up how to do it. Can anyone help me out? Sorry for > >>>>being such a lost newbie =) > >>> > > > > never bothered abt CMF. however, REQUEST most probably contains > > AUTHENTICATED_USER (if cookie-based auth) > > > > > >>>Names (and their ojects) may be looked up > >>>from the names/attributes of the default bound objects (at least, zope 2.5.0): > >>>context, container, script, traverse_subpath > >>> > >>>when your script is called, these are defined. > >>>context is the caller (usually some zpt/dtml-document), > >>>container the containing folder > >>> > >>>as these objects are objects in data.fs, > >>>data.fs is an object collection organized as a tree > >>>(ObjectManager is one of the base classes of Folder), > >>>close to any object (and its attributes) are accessible from your py script > >>>(security aside). > >>>execution pereforms in a restricted environment, > >>>the zope book dtml-appendix contains a list of restricted code. -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From marc@bowery.com Thu May 2 15:40:23 2002 From: marc@bowery.com (Marc Lindahl) Date: Thu, 02 May 2002 10:40:23 -0400 Subject: [Zope] abandonware and new.zope.org In-Reply-To: <00a801c1f1d2$cddb1dc0$615eb8ca@defaultcn> Message-ID: Hey, that's cool! Is there source for the site available? :) on 5/2/02 8:13 AM, Bak @ kedai at kedai@kedai.com.my scrivened: > From: Marc Lindahl > To: Milos Prudek ; zope@zope.org > Date: Wednesday, May 01, 2002 4:37 AM > Subject: Re: [Zope] abandonware and new.zope.org > > >> That would be very useful for us product developers, to know what people > are >> really using! Even a download counter, rating system, etc.... >> > > at least comments/rating is available at > http;//www.my-zope.org > > unfortunately, there's little activity/feedback > not sure whether there's problem with the site or something else > > anyways, this is a stop gap measure until new.zope.org materialize > > give it a spin > > > From Bruce Dykes" Okay, I'm trying to publish the data from an excel spreadsheet via an ODBC connection. The connection starts okay, and I found this SQL snippet from a Java site: select URL from [qas$] where Month='March' and Year=2000 Note that the table name is the name of the worksheet with a $ appended to the end. You have to append the $ in order for the query to work. Why? Because. The brackets are there because $ is a reserved character in SQL. Life is never easy. ----------------------- Now all I want to do is SELECT *...I don't need anything fancier than that, I'm just trying to publish the entire worksheet. No variation on the above code snippet seems to work. Has anybody gotten SQL queries into excel to work? And how did you do it? thanks in advance bkd As an aside, I'm currently publishing this document via Apache, with an excellent program, xlhtml set up as a handler....but that's proven less than useful as of late. From nu@goa.hu Thu May 2 16:22:35 2002 From: nu@goa.hu (marci) Date: Thu, 02 May 2002 17:22:35 +0200 Subject: [Zope] Acquiring object from Products instances References: <15569.14975.931388.391994@gargle.gargle.HOWL> Message-ID: <3CD159BB.9050206@goa.hu> Hello, I think this is what you need: http://www.zopelabs.com/cookbook/1001368850 m Luca Manini wrote: >Hi, > >I've a product that defines a classe ageForm. >I've a PythonScript that adds an ageForm instance to a folder. >After adding the instance it calls a method on it. >This methods tries to access an objects using acquisition. > >Image I have something like this: > >+ f (Folder) > + o (object to acquire) > + i (ageForm istance) > + s (script that creates i and calls i.m) > >so the script s is like this: > >i = f.manageAddForlder ..... >i.m () > >the ageForm method is like this: > >def m(self): > o.doSomething() > >the ageForm class inherits from SimpleItem.SimpleItem and from a >simple Python base class. > > > Any hint? > TIA, Luca > > > From Jean-Francois.Doyon@CCRS.NRCan.gc.ca Thu May 2 15:56:48 2002 From: Jean-Francois.Doyon@CCRS.NRCan.gc.ca (Jean-Francois.Doyon@CCRS.NRCan.gc.ca) Date: Thu, 2 May 2002 10:56:48 -0400 Subject: [Zope] Problems adding attribute to custom object Message-ID: <7CDD7B94357FD5119E800002A537C46E230078@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I'm trying to add a new attribute to all objects of a certain meta_type on my site. These are objects that already exist and are already instantiated. But, no matter how I go about it, I always end up with the same end result: Error Type: TypeError Error Value: attribute-less object (assign or del) I've treid using portal_catalog search results, and then something like : setattr(a,'newporperty',''), but that gives me the error above. I also tried o.property = '', but that didn't help ... I also tried creating myobject = o.getObject() ... no go ... Then I found some examples on various web sites that use ZopeFind to locate their objects ... tried that, still no luck. What am I missing here? One thing, this is a custom object I added to the CMFDefault product, could that be part of the problem? This object otherwise works great within Zope and the CMF. The traceback output varies depending on how I try to go about it, but here is the lastest one: File Script (Python), line 14, in addPropertyToObjectType (Object: english) File /usr/local/Zope-2.5.0/lib/python/RestrictedPython/Guards.py, line 107, in guarded_setattr (Object: density) File /usr/local/Zope-2.5.0/lib/python/RestrictedPython/Guards.py, line 72, in handler "English" is a Portal Folder, "density" is one of my custom objects .... Help ? Thanks in advance, J.F. From beyerlin@magic-garden.de Thu May 2 16:12:37 2002 From: beyerlin@magic-garden.de (Marc Beyerlin) Date: Thu, 2 May 2002 17:12:37 +0200 Subject: [Zope] Starting with zope Message-ID: <19B481CA418DC04CA76EEF2B90B905F102EA9A@srv-mail.magic-garden.local> Hello zopes, I need some help with starting up with zope on a openbsd with apache = 1.3. please send me some links, the zope.org is very confusing. Greetings, marc ------------------------------------------------------- magic garden GmbH - Agentur f=FCr Informationsarchitektur Hermannstr. 15 - 70178 Stuttgart (Am Feuersee) www.magic-garden.de =A6 beyerlin@magic-garden.de Tel. (07 11) 619 57-42 =A6 Fax (07 11) 615 01 38 From hans@beehive.de Thu May 2 17:23:06 2002 From: hans@beehive.de (hans) Date: Thu, 02 May 2002 17:23:06 +0100 Subject: [Zope] Starting with zope References: <19B481CA418DC04CA76EEF2B90B905F102EA9A@srv-mail.magic-garden.local> Message-ID: <3CD167E9.5765EE23@beehive.de> Marc Beyerlin wrote: > Hello zopes, > I need some help with starting up with zope on a openbsd with apache 1.3. > please send me some links, the zope.org is very confusing. online http://www.zope.org/Members/michel/ZB http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html http://www.zope.org/Documentation/How-To/index_html?&sort_on=date&sort_order=reverse offline: check amzon for zope -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From tpassin@mitretek.org Thu May 2 16:24:15 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Thu, 2 May 2002 11:24:15 -0400 Subject: [Zope] SQL to Excel References: <025301c1f1e7$3e65e890$5102020a@graphnet.com> Message-ID: <009601c1f1ed$6ba25b30$f70510ac@mitretek.org> [Bruce Dykes] > Okay, I'm trying to publish the data from an excel spreadsheet via an ODBC > connection. > > The connection starts okay, and I found this SQL snippet from a Java site: > > select URL from [qas$] where Month='March' and Year=2000 > > Note that the table name is the name of the worksheet with a $ appended to > the end. You have to append the $ in order for the query to work. Why? > Because. The brackets are there because $ is a reserved character in SQL. > Life is never easy. > ----------------------- > > Now all I want to do is SELECT *...I don't need anything fancier than that, > I'm just trying to publish the entire worksheet. No variation on the above > code snippet seems to work. > > Has anybody gotten SQL queries into excel to work? And how did you do it? > > thanks in advance > bkd > > As an aside, I'm currently publishing this document via Apache, with an > excellent program, xlhtml set up as a handler....but that's proven less than > useful as of late. I just tried in using your syntax. It worked fine. By that, I mean that the Test tab of the connection page returned a reasonable-looking result when I typed select * from [land$] into the query box (here, "land" is the name of the worksheet). I am using Zope 2.3.3 on Win2000. Maybe you better say what you mean by "[doesn't] seem to work". Cheers, Tom P From pydan@danshafer.com Thu May 2 16:35:03 2002 From: pydan@danshafer.com (Dan Shafer) Date: Thu, 02 May 2002 08:35:03 -0700 Subject: [Zope] Still Plagued With Date Formatting Bug in Text Field In-Reply-To: <200205021257.16723.kedai@kedai.com.my> References: <5.1.0.14.0.20020501214614.0f3c3a00@mail.hurrah.com> <5.1.0.14.0.20020501074605.0f38da68@mail.hurrah.com> <5.1.0.14.0.20020501214614.0f3c3a00@mail.hurrah.com> Message-ID: <5.1.0.14.0.20020502082924.00aba740@mail.hurrah.com> At 12:57 PM 5/2/2002 +0800, Bakhtiar A Hamid wrote: >On Thursday 02 May 2002 12:47 pm, Dan Shafer wrote: > > Thanks, Casey, on two fronts. First, this worked! Problem solved. Second, I > > never heard of ZopeTime. I don't find it in the Zope Book anywhere. It is > > certainly cleaner to use than (_.DateTime()), which I always have syntax > > issues with when I try to format its output. > > > >i would suggest getting ZQR >http://www.zope.org/Members/ZQR > >it may be a bit outdated, but it still applies. it never left my desktop :) I have it. I printed it out. I forgot I had it. I have now put it in a big red binder so I won't forget it again. Thanks for the reminder. I tend to treat the printed manual as sort of semi-official and figure if it isn't in there and it isn't in the Tips and How-Tos (which I've also downloaded to my desktop and search all the time), then it's time to ask. I've added ZQR to my human search path. >and get Dieter's excellent DocFinder or a Zope Product wrapper >DocFinderEverywhere so that all available methods will be visible. I find DocFinderEverywhere, but not the original. I'll install it and experiment with it. Thanks for the pointer. So much to learn about! >just my .02 > >-- > > http://www.kedai.com.my/ http://www.kedai.com.my/eZine > http://www.zope.org/Members/kedai http://www.my-zope.org > If you SMELLLL... From beyerlin@magic-garden.de Thu May 2 16:52:16 2002 From: beyerlin@magic-garden.de (Marc Beyerlin) Date: Thu, 2 May 2002 17:52:16 +0200 Subject: [Zope] Help needed Message-ID: <19B481CA418DC04CA76EEF2B90B905F102EA9C@srv-mail.magic-garden.local> Hello again, Thanx hans for your answer,but Where can i find help for starting zope with apache?=20 I really dont know how to start zope to see the manage site Marc ------------------------------------------------------- magic garden GmbH - Agentur f=FCr Informationsarchitektur Hermannstr. 15 - 70178 Stuttgart (Am Feuersee) www.magic-garden.de =A6 beyerlin@magic-garden.de Tel. (07 11) 619 57-42 =A6 Fax (07 11) 615 01 38 From juliank@wrdc.com Thu May 2 17:03:58 2002 From: juliank@wrdc.com (Julian Knight) Date: Thu, 2 May 2002 17:03:58 +0100 Subject: [Zope] Relative url query Message-ID: <000001c1f1f3$06527a20$0a00000a@wrdcjuliank> Dear all, I know I can get the absolute url reference to an object as in: " rel="stylesheet" type="text/css"> But how to I get a RELATIVE referance? Sorry if this is an obvious question but I've just started on Zope & Python so its all a little confusing! -- Julian Knight, Senior Consultant WRDC Ltd, Leeds, UK. +44 (0) 113 245 4788 http://www.wrdc.com From milos.prudek@tiscali.cz Thu May 2 08:57:38 2002 From: milos.prudek@tiscali.cz (Milos Prudek) Date: Thu, 02 May 2002 09:57:38 +0200 Subject: [Zope] color-syntax editor for dtml References: <47BCBF3251382B45893950D07804082475AFD8@novamail.nv.cc.va.us> <00ff01c1f13c$53a07140$f70510ac@mitretek.org> <200205011433.28511.casey@zope.com> <01b001c1f14b$275eccd0$f70510ac@mitretek.org> <1020284712.1557.21.camel@npa01zz001> Message-ID: <3CD0F172.9030805@tiscali.cz> Jason Earl wrote: > Now, I realize that text editors are a highly personal affair, but I > can't for the life of me figure out why it is that Emacs doesn't get > more attention, especially amongst Zopistas. Emacs will happily edit Emacs is very different from vim (or vice-versa :-)), so people who use mainly vim and are very proficient in vim find it difficult to adapt to. Other issues: - emacs is huge. This means that it is often not installed on many systems (even though it can run on those systems). Vim is always installed. And if not vim, then at least vi. - emacs is very very stable. Vim is rock stable. It just never crashed on me. Let's not start a flamewar. The above are the reasons why I personally prefer vim to emacs. Do you know if emacs supports DTML highligting even for &dtml-var; entity syntax? -- Milos Prudek From edward_van_h@bigfoot.com Thu May 2 17:07:10 2002 From: edward_van_h@bigfoot.com (EvH) Date: Thu, 02 May 2002 18:07:10 +0200 Subject: [Zope] Re: Zope digest, Vol 1 #2082 - 8 msgs In-Reply-To: <20020502160013.31477.16754.Mailman@mail.python.org> Message-ID: <5.1.0.14.2.20020502180518.00a63568@mail.club-internet.fr> At 12:00 02/05/2002 -0400, "Marc Beyerlin" wrote: >I need some help with starting up with zope on a openbsd with apache 1.3. You'll find "The Zope Book" as free download on www.zope.org. It's a bit outdated (doesn't provide enough infos on Page Templates), and not enough code for my taste. Otherwise, you could order the following books: - Zope Bible, Scott Robertson, Michael Bernstein - Zope , Jerry Spicklemire, Steve Spicklemire, Kevin Friedly, Kim Brand, New Riders; ISBN: 0735711100 Evh. From robin@xemacs.org Thu May 2 17:22:33 2002 From: robin@xemacs.org (Robin S. Socha) Date: Thu, 02 May 2002 11:22:33 -0500 Subject: [Zope] Re: color-syntax editor for dtml In-Reply-To: <3CD0F172.9030805@tiscali.cz> (Milos Prudek's message of "Thu, 02 May 2002 09:57:38 +0200") References: <47BCBF3251382B45893950D07804082475AFD8@novamail.nv.cc.va.us> <00ff01c1f13c$53a07140$f70510ac@mitretek.org> <200205011433.28511.casey@zope.com> <01b001c1f14b$275eccd0$f70510ac@mitretek.org> <1020284712.1557.21.camel@npa01zz001> <3CD0F172.9030805@tiscali.cz> Message-ID: * Milos Prudek writes: > Jason Earl wrote: >> Now, I realize that text editors are a highly personal affair, but I >> can't for the life of me figure out why it is that Emacs doesn't get >> more attention, especially amongst Zopistas. Emacs will happily edit > > Emacs is very different from vim (or vice-versa :-)), Indeed. vim is an editor. (X)Emacs is a development environment. Editing with Emacs goes way beyond writing text and highlighting their syntax. If you find anything closely resembling http://www.zope.org/Members/alburt/dtml_mode.html for vim, you may call me whatever name you fancy. But you won't. It's a philosophy thing - you can whack together 20 programs and run them from or beside vim; or you can use an integrated tool like XEmacs and benefit from one (admittedly slightly archaic) user interface for things like ftp, CVS, DTML, XML, HTML... you name it. > so people who use mainly vim and are very proficient in vim find it > difficult to adapt to. Not at all. And neither vice versa. I use both, but for different purposes: vim is a great and fast editor. I use it to edit texts. I don't use it for any sort of programming, mainly because I'm used to saying things like C-x C-q and watch the file check itself into CVS. > Other issues: > > - emacs is huge. This means that it is often not installed on many > systems (even though it can run on those systems). Vim is always > installed. And if not vim, then at least vi. Yes, Emacs is huge. Eighty Megs And Constantly Swapping. But how large is vim plus nsgmls plus a web browser plus an ftp client plus... > - emacs is very very stable. Vim is rock stable. It just never crashed > on me. It's crashed on me. Both of them have. Very rarely. > Do you know if emacs supports DTML highligting even for &dtml-var; > entity syntax? If not (I don't use syntax highlighting), it can be easily added. Remember: XEmacs is the extensible, customizable, self-documenting real-time display editor. And then some. Besides which, XEmacs looks 1000x slicker than vim: http://my.gnus.org/Members/robin/Wiki/CustomSetup From chrism@zope.com Thu May 2 17:33:13 2002 From: chrism@zope.com (Chris McDonough) Date: Thu, 2 May 2002 12:33:13 -0400 Subject: [Zope] Help needed References: <19B481CA418DC04CA76EEF2B90B905F102EA9C@srv-mail.magic-garden.local> Message-ID: <015001c1f1f7$31eb60d0$6917a8c0@kurtz> Dont use apache. Just install and start Zope as per the Zope Book and vi= sit the management interface on port 8080 ala http://localhost:8080/manage ----- Original Message ----- From: "Marc Beyerlin" To: Sent: Thursday, May 02, 2002 11:52 AM Subject: [Zope] Help needed Hello again, Thanx hans for your answer,but Where can i find help for starting zope with apache? I really dont know how to start zope to see the manage site Marc ------------------------------------------------------- magic garden GmbH - Agentur f=FCr Informationsarchitektur Hermannstr. 15 - 70178 Stuttgart (Am Feuersee) www.magic-garden.de =A6 beyerlin@magic-garden.de Tel. (07 11) 619 57-42 =A6 Fax (07 11) 615 01 38 _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From pw_lists@slinkp.com Thu May 2 17:27:52 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Thu, 2 May 2002 09:27:52 -0700 Subject: [Zope] Re: color-syntax editor for dtml In-Reply-To: ; from robin@xemacs.org on Thu, May 02, 2002 at 11:22:33AM -0500 References: <47BCBF3251382B45893950D07804082475AFD8@novamail.nv.cc.va.us> <00ff01c1f13c$53a07140$f70510ac@mitretek.org> <200205011433.28511.casey@zope.com> <01b001c1f14b$275eccd0$f70510ac@mitretek.org> <1020284712.1557.21.camel@npa01zz001> <3CD0F172.9030805@tiscali.cz> Message-ID: <20020502092752.A401@slinkp.com> > > Do you know if emacs supports DTML highligting even for &dtml-var; > > entity syntax? It looks exactly like any other entity in emacs' html-mode. Highlighted purple in my setup. -- "Welcome to Muppet Labs, where the future is made - today!" From pw_lists@slinkp.com Thu May 2 17:29:11 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Thu, 2 May 2002 09:29:11 -0700 Subject: [Zope] Re: color-syntax editor for dtml In-Reply-To: <20020502092752.A401@slinkp.com>; from pw_lists@slinkp.com on Thu, May 02, 2002 at 09:27:52AM -0700 References: <47BCBF3251382B45893950D07804082475AFD8@novamail.nv.cc.va.us> <00ff01c1f13c$53a07140$f70510ac@mitretek.org> <200205011433.28511.casey@zope.com> <01b001c1f14b$275eccd0$f70510ac@mitretek.org> <1020284712.1557.21.camel@npa01zz001> <3CD0F172.9030805@tiscali.cz> <20020502092752.A401@slinkp.com> Message-ID: <20020502092910.A8051@slinkp.com> On Thu, May 02, 2002 at 09:27:52AM -0700, Paul Winkler wrote: > > > Do you know if emacs supports DTML highligting even for &dtml-var; > > > entity syntax? > > It looks exactly like any other entity in emacs' html-mode. > Highlighted purple in my setup. Forgot to say: I haven't tried dtml-mode. I don't use dtml any more if I can help it. :) -- "Welcome to Muppet Labs, where the future is made - today!" From complaw@hal-pc.org Thu May 2 17:30:48 2002 From: complaw@hal-pc.org (complaw@hal-pc.org) Date: Thu, 2 May 2002 16:30:48 GMT Subject: [Zope] Problems adding attribute to custom object Message-ID: Is your new class completely custom, or did you derive it from an existing class (e.g., DTML Document)? Something that has worked for me in the past is to do a search on the set of objects... for obj in context.objectValues('MyClassMetaName'): .. and then use the base class addProperty method to add the additional property. You can also put a try/except block in your code to handle exceptions. Hope that helps. Ron > Hello, > > I'm trying to add a new attribute to all objects of a certain meta_type on > my site. These are objects that already exist and are already instantiated. > > But, no matter how I go about it, I always end up with the same end result: > > Error Type: TypeError > Error Value: attribute-less object (assign or del) > > I've treid using portal_catalog search results, and then something like : > setattr(a,'newporperty',''), but that gives me the error above. I also tried > o.property = '', but that didn't help ... > > I also tried creating myobject = o.getObject() ... no go ... > > Then I found some examples on various web sites that use ZopeFind to locate > their objects ... tried that, still no luck. > > What am I missing here? One thing, this is a custom object I added to the > CMFDefault product, could that be part of the problem? This object otherwise > works great within Zope and the CMF. > > The traceback output varies depending on how I try to go about it, but here > is the lastest one: > > File Script (Python), line 14, in addPropertyToObjectType > (Object: english) > File /usr/local/Zope-2.5.0/lib/python/RestrictedPython/Guards.py, line > 107, in guarded_setattr > (Object: density) > File /usr/local/Zope-2.5.0/lib/python/RestrictedPython/Guards.py, line 72, > in handler > > "English" is a Portal Folder, "density" is one of my custom objects .... > > Help ? > > Thanks in advance, > > J.F. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From IGOR@emun.com Thu May 2 17:39:07 2002 From: IGOR@emun.com (Igor Leturia) Date: Thu, 2 May 2002 18:39:07 +0200 Subject: [Zope] How to use a ZSQLMethod from a Python Script Message-ID: <0C4BCA0F254FD24D841A296F62878BF48F70@www.emun.com> >Igor Leturia writes: > > I want to call a ZSQLMethod from a Python Script. In Zope.org, I > > couldn't find a specific how-to on the subject, but accidentally I found > > some other how-to's in which there are examples that use ZSQLMethods > > from Python scripts. It seemed very easy, so I tried it that way: > >=20 > > res =3D context.mysqlmethod() > >=20 > > It gives an error message, 'resource not found'. Both the=20 >script and > > the sql method are in the same folder. What's going wrong? > > .... > > Dieter Maurer writes: > > >If it does not help, the precise error message (Error=20 >Type, Error Value > > >and traceback) is necessary to help... > > > > >=20 > > 'container' doesn't work either. As for the error type=20 >and value, I > > don't know, this is the message I get: > >=20 > > Site Error > > An error was encountered while publishing this resource.=20 > > Resource not found > > Sorry, the requested resource does not exist. > > Check the URL and try again. > >Please run your Zope in debug mode (start it with "-D" option). > > It will give you better error messages and tracebacks. > This is the traceback when running in debug mode: Traceback (innermost last): File C:\Intranet\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\Intranet\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Intranet\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\Intranet\lib\python\ZPublisher\Publish.py, line 173, in publish File C:\Intranet\lib\python\ZPublisher\HTTPResponse.py, line 308, in setBody File C:\Intranet\lib\python\ZPublisher\HTTPResponse.py, line 547, in notFoundError NotFound: (see above) From Jean-Francois.Doyon@CCRS.NRCan.gc.ca Thu May 2 18:43:43 2002 From: Jean-Francois.Doyon@CCRS.NRCan.gc.ca (Jean-Francois.Doyon@CCRS.NRCan.gc.ca) Date: Thu, 2 May 2002 13:43:43 -0400 Subject: [Zope] Problems adding attribute to custom object Message-ID: <7CDD7B94357FD5119E800002A537C46E23007C@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, Thanks for the suggestion, I'l take a lok at that ... As for the Object, it's completely custom in that I wrote it and doesn't subclass anything else. I obviously used the other CMF types as a base to write my own though ... I guess I'll have ot look at how I wrote it, but from looking at others such as CMF document and son I don't *think* I missed anything. J.F. -----Original Message----- From: complaw@hal-pc.org [mailto:complaw@hal-pc.org] Sent: Thursday, May 02, 2002 12:31 PM To: Jean-Francois.Doyon@ccrs.nrcan.gc.ca Cc: zope@zope.org Subject: Re: [Zope] Problems adding attribute to custom object Is your new class completely custom, or did you derive it from an existing class (e.g., DTML Document)? Something that has worked for me in the past is to do a search on the set of objects... for obj in context.objectValues('MyClassMetaName'): .. and then use the base class addProperty method to add the additional property. You can also put a try/except block in your code to handle exceptions. Hope that helps. Ron > Hello, > > I'm trying to add a new attribute to all objects of a certain meta_type on > my site. These are objects that already exist and are already instantiated. > > But, no matter how I go about it, I always end up with the same end result: > > Error Type: TypeError > Error Value: attribute-less object (assign or del) > > I've treid using portal_catalog search results, and then something like : > setattr(a,'newporperty',''), but that gives me the error above. I also tried > o.property = '', but that didn't help ... > > I also tried creating myobject = o.getObject() ... no go ... > > Then I found some examples on various web sites that use ZopeFind to locate > their objects ... tried that, still no luck. > > What am I missing here? One thing, this is a custom object I added to the > CMFDefault product, could that be part of the problem? This object otherwise > works great within Zope and the CMF. > > The traceback output varies depending on how I try to go about it, but here > is the lastest one: > > File Script (Python), line 14, in addPropertyToObjectType > (Object: english) > File /usr/local/Zope-2.5.0/lib/python/RestrictedPython/Guards.py, line > 107, in guarded_setattr > (Object: density) > File /usr/local/Zope-2.5.0/lib/python/RestrictedPython/Guards.py, line 72, > in handler > > "English" is a Portal Folder, "density" is one of my custom objects .... > > Help ? > > Thanks in advance, > > J.F. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From david.kyte@microamps.com Thu May 2 19:12:09 2002 From: david.kyte@microamps.com (David Kyte) Date: Thu, 2 May 2002 19:12:09 +0100 Subject: [Zope] ZmailIn Message-ID: Hi, Wonder if you can help me. Using ZmailIn - zope 2.3.0 ZmailIn.1.0.0 linux redhat 6.2 The email appears to get into zope by the look of the traceback, but fails for some reason. /zm1 is the MailClient and it executes a python script doMail. Currently this does absolutley nothing - it was trying to create a dtml document. Any suggestions gratefully received as my head now hurts :-( TIA David Kyte >From root Thu May 2 17:37:27 2002 Return-Path: Received: from localhost (localhost) by uknl.net (8.9.3/8.9.3) with internal id RAA24086; Thu, 2 May 2002 17:37:27 +0100 Date: Thu, 2 May 2002 17:37:27 +0100 From: Mail Delivery Subsystem Message-Id: <200205021637.RAA24086@uknl.net> To: root@uknl.net MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="RAA24086.1020357447/uknl.net" Subject: Returned mail: unknown mailer error 1 Auto-Submitted: auto-generated (failure) Status: RO This is a MIME-encapsulated message --RAA24086.1020357447/uknl.net The original message was received at Thu, 2 May 2002 17:37:27 +0100 from root@localhost ----- The following addresses had permanent fatal errors ----- |/etc/smrsh/eg1 (expanded from: zope@uknl.net) ----- Transcript of session follows ----- zm1
Zope

Zope Error

Zope has encountered an error while publishing this resource.

Error Type: TypeError
Error Value: no arguments expected


Troubleshooting Suggestions

  • The URL may be incorrect.
  • The parameters passed to this resource may be incorrect.
  • A resource that this resource relies on may be encountering an error.

For more detailed information about the error, please refer to the HTML source for this page.

If the error persists please contact the site maintainer. Thank you for your patience.

Powered by Zope

554 |/etc/smrsh/eg1... unknown mailer error 1 --RAA24086.1020357447/uknl.net Content-Type: message/delivery-status Reporting-MTA: dns; uknl.net Arrival-Date: Thu, 2 May 2002 17:37:27 +0100 Final-Recipient: RFC822; zope@uknl.net X-Actual-Recipient: RFC822; |/etc/smrsh/eg1@uknl.net Action: failed Status: 5.0.0 Last-Attempt-Date: Thu, 2 May 2002 17:37:27 +0100 --RAA24086.1020357447/uknl.net Content-Type: message/rfc822 Return-Path: Received: (from root@localhost) by uknl.net (8.9.3/8.9.3) id RAA24084 for zope@uknl.net; Thu, 2 May 2002 17:37:27 +0100 Date: Thu, 2 May 2002 17:37:27 +0100 From: root Message-Id: <200205021637.RAA24084@uknl.net> To: zope@uknl.net hello --RAA24086.1020357447/uknl.net-- From tom.nixon@aim23.com Thu May 2 19:06:53 2002 From: tom.nixon@aim23.com (Tom Nixon) Date: Thu, 2 May 2002 19:06:53 +0100 Subject: [Zope] ZPT reverse ordering Message-ID: <008c01c1f204$23b3c720$5b01a8c0@tom> I want to list items on a page with the newest at the top. I have got part of the way there with this code: Two problems with this though: 1) I want it sorted by the creation date, rather than modification date. 2) I need the results reversed so newest is at the top, not bottom. I suspect I need to create a python script to build the list. Does anyone have the code to do this? Cheers Tom From jdhunter@ace.bsd.uchicago.edu Thu May 2 19:32:03 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Thu, 02 May 2002 13:32:03 -0500 Subject: [Zope] adding class instance Message-ID: [This is related to a question I posted earlier but have been unable to solve it. I am reposting with more accurate and detailed information] In the Zope management interface, I have created a Product NewProduct which contains a ZClass NewClass. I have installed and instance of NewProduct at http::/myhost.com:8080/summer/jdh/newtest If I visit http::/myhost.com:8080/summer/jdh/newtest/manage with Manager privileges for the newtest folder, I can add New Class instances to that folder. All is well. I would like, however, to have a file http::/myhost.com:8080/summer/jdh/newtest/index_html where the manager could add New Class instances without entering the manager interface, with something like: add a new class But this gives me get an unauthorized access error because zope is trying to create the class instance in the Control_Panel/Products/NewProduct/ folder which the newtest manager does not have access to. If I use the link above as a root manager, the NewClass instance is created in Control_Panel/Products/NewProduct/. If I try: add a new class which from my read of the zope book is how it should be done, I get the error: Error Type: NameError Error Value: global name 'NewClass' is not defined The offending line in NewClass_add is Can someone advise me how to proceed to enable a properly authenticated user to add a NewClass instance without visiting the manager interface? Thanks, John Hunter From jdhunter@ace.bsd.uchicago.edu Thu May 2 19:45:33 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Thu, 02 May 2002 13:45:33 -0500 Subject: [Zope] add instance of ZClass as authenticated user In-Reply-To: <15566.57429.64780.97672@linux.local> (Dieter Maurer's message of "Tue, 30 Apr 2002 20:20:05 +0200") References: <15566.57429.64780.97672@linux.local> Message-ID: >>>>> "Dieter" == Dieter Maurer writes: Dieter> http:////manage_addProduct//ProjectSubmission_addForm Beautiful. Thank you very much, works like a charm. John Hunter From jdhunter@ace.bsd.uchicago.edu Thu May 2 19:47:18 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Thu, 02 May 2002 13:47:18 -0500 Subject: [Zope] IGNORE adding class instance In-Reply-To: (John Hunter's message of "Thu, 02 May 2002 13:32:03 -0500") References: Message-ID: Oops, I see Dieter answered my question in the thread 'add instance of ZClass as authenticated user'. Damn! If only I hadn't missed that post I would have saved myself a grueling morning. John Hunter From jpenny@universal-fasteners.com Thu May 2 19:57:45 2002 From: jpenny@universal-fasteners.com (Jim Penny) Date: Thu, 2 May 2002 14:57:45 -0400 Subject: [Zope] add instance of ZClass as authenticated user In-Reply-To: References: <15566.57429.64780.97672@linux.local> Message-ID: <20020502185745.GD31103@universal-fasteners.com> On Thu, May 02, 2002 at 01:45:33PM -0500, John Hunter wrote: > >>>>> "Dieter" == Dieter Maurer writes: > > Dieter> http:////manage_addProduct//ProjectSubmission_addForm > Just in case, Dieter is one of the real Zope good guys. There are many others I put in this category. But for shear willingness to answer questions day after day, Dieter deserves special praise. Jim Penny From mpeti_k02@mail.com Thu May 2 20:35:58 2002 From: mpeti_k02@mail.com (laurent mpeti kabila) Date: Thu, 2 May 2002 21:35:58 +0200 Subject: [Zope] (no subject) Message-ID: REQUEST FOR URGENT BUSINESS ASSISTANCE -------------------------------------- Your contact was availed to me by the chamber of commerce=2E It was given to me because of my diplomatic status as I did not disclose the actual reasons for which I sought your contact=2E But I was assured That you are reputable and trustworthy if you will be of assistance=2E I am Laurent Mpeti Kabila =28Jnr=29 the second son of Late President LAURENT DESIRE KABILA the immediate Past president of the DEMOCRATIC REPUBLIC OF CONGO in Africa who was murdered by his opposition through his personal bodyguards in his bedroom on Tuesday 16th January=2C 2001=2E I have the privilege of being mandated by my father colleagues to seek your immediate and urgent co-operation to receive into your bank account the sum of US $25m=2E =28twenty-five million Dollars=29 and some thousands carats of Diamond=2E This money and treasures was lodged in a vault with a security firm in Europe and South-Africa=2E SOURCES OF DIAMONDS AND FUND In August 2000=2C my father as a defence minister and president has a meeting with his cabinet and armychief about the defence budget for 2000 to 2001 which was US $700m=2E so he directed one of his best friend=2E Frederic Kibasa Maliba who was a minister of mines and a political party leader known as the Union Sacree de=2C I=11 opposition radicale et ses allies =28USORAL=29 to buy arms with US $200m on 5th January 2001=3B for him to finalized the arm=12s deal=2C my father was murdered=2E f=2EK=2E Maliba =28FKM=29 and I have decided to keep the money with a foreigner after which he will use it to contest for the political election=2E Inspite of all this we have resolved to present your or your company for the firm to pay it into your nominated account the above sum and diamonds=2E This transaction should be finalized within seven =287=29 working days and for your co-operation and partnership=2C we have unanimously agreed that you will be entitled to 5=2E5% of the money when successfully receive it in your account=2E The nature of your business is not relevant to the successful execution of this transaction what we require is your total co-operation and commitment to ensure 100% risk-free transaction at both ends and to protect the persons involved in this transactio! n=2C strict confidence and utmost secrecy is required even after the successful conclusion of this transaction=2E If this proposal is acceptable to you=2C kindly provide me with your personal telephone and fax through my E-mail box for immediate commencement of the transaction=2E I count on your honour to keep my secret=2C SECRET=2E Looking forward for your urgent reply Thanks=2E Best Regards MPETI L=2E KABILA =28Jnr=29 From casey@zope.com Thu May 2 20:44:22 2002 From: casey@zope.com (Casey Duncan) Date: Thu, 2 May 2002 15:44:22 -0400 Subject: [Zope] (no subject) In-Reply-To: References: Message-ID: <200205021544.22568.casey@zope.com> On Thursday 02 May 2002 03:35 pm, laurent mpeti kabila allegedly wrote: > I count on your honour to keep my > secret, SECRET. You have my word ;^) From vsbabu@vsbabu.org Thu May 2 20:36:23 2002 From: vsbabu@vsbabu.org (vsbabu@vsbabu.org) Date: Thu, 2 May 2002 14:36:23 -0500 Subject: [Zope] boolean weirdness Message-ID: <20020502143623.A39@vsbabu.org> Hi, We've a ZClass in which there is a property fund_size called boolean. We had to use a radio group in the form like fund_size:boolean and values as 1 and 0 for true and false. However, when we had to retrieve it for pre-checking the radio group according to the value in the property sheet, after some trial and error we found that works instead of as would've expected due to "boolean" property. Took some time to get to the string comparison... $.02 From casey@zope.com Thu May 2 21:08:33 2002 From: casey@zope.com (Casey Duncan) Date: Thu, 2 May 2002 16:08:33 -0400 Subject: [Zope] boolean weirdness In-Reply-To: <20020502143623.A39@vsbabu.org> References: <20020502143623.A39@vsbabu.org> Message-ID: <200205021608.33570.casey@zope.com> I think the problem is that the string "0" is not a false value. Both "0"= and=20 "1" are true values. All non-empty strings are true in Python. Generally you would use integer values in a boolean. The integer 0 is ind= eed=20 considered false. From a web form, you can use marshalling to make the va= lue=20 into an integer such as: True False See: http://www.zope.org/Members/Zen/howto/FormVariableTypes for more details on marshalling. Its very useful. Alternately, you could use an empty string as a false value. hth, Casey On Thursday 02 May 2002 03:36 pm, vsbabu@vsbabu.org allegedly wrote: > Hi, >=20 > We've a ZClass in which there is a property fund_size called boolean. >=20 > We had to use a radio group in the form like fund_size:boolean and valu= es as=20 1 and 0 for true and false. >=20 > However, when we had to retrieve it for pre-checking the radio group=20 according to the value in the property sheet, after some trial and error = we=20 found that=20 > works instead of as = would've=20 expected due to "boolean" property. >=20 > Took some time to get to the string comparison... >=20 > $.02 >=20 >=20 > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists -=20 > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) >=20 From maxm@mxm.dk Thu May 2 21:52:56 2002 From: maxm@mxm.dk (Max M) Date: Thu, 02 May 2002 22:52:56 +0200 Subject: [Zope] What use is BTrees ??? Message-ID: <3CD1A728.5050506@mxm.dk> I am unshure on how BTrees works, but I suspect that they might be usefull in a project I am doing, so I thought I might ask here. I have an object which hase a dict as an attribute, in which I store other objects. I know this is a relative expensive way to do it as everytime an object is added to the dict the full object will be stored in the ZODB. As far as I understand, the BTree is like a dict. So do I understand it right that if I use a BTree as a attribute instead of a dict, it will only store the elements that are added/changed in the ZODB but otherwise act as a dict? I use integers as keys in the dict regards Max M From dieter@handshake.de Thu May 2 21:48:30 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 2 May 2002 22:48:30 +0200 Subject: [Zope] Help needed In-Reply-To: <19B481CA418DC04CA76EEF2B90B905F102EA9C@srv-mail.magic-garden.local> References: <19B481CA418DC04CA76EEF2B90B905F102EA9C@srv-mail.magic-garden.local> Message-ID: <15569.42526.111832.321891@linux.local> Marc Beyerlin writes: > Hello again, > Thanx hans for your answer,but > Where can i find help for starting zope with apache? > I really dont know how to start zope to see the manage site Tell Google to search "www.zope.org" for "Zope apache"... Dieter From dieter@handshake.de Thu May 2 20:50:35 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 2 May 2002 21:50:35 +0200 Subject: [Zope] Set _allowed_meta_types on folder instances without creating a new product? In-Reply-To: <000001c1f15b$fe739470$6401a8c0@laptop> References: <15568.18074.1405.45132@linux.local> <000001c1f15b$fe739470$6401a8c0@laptop> Message-ID: <15569.39051.289896.236509@linux.local> Jeff Kowalczyk writes: > > I told you how to define "_allowed_meta_types" on a per instance > > basis but did not check that "_allowed_meta_types" has the desired > effect. > > When your message above arrived, I tried to find a use > > of "_allowed_meta_types", but the Zope sources do not > > reference it. Where do you know about it? > > I've been using it in mxmObjectManager derived product classes to limit > the Metatype list. > ... > It works exactly as expected, but it would be very useful to apply this > to existing folders which are specialized in purpose, but require no > special class of their own. To apply it to existing folder, you need to redefine their "all_meta_types" method - in a similar spirit the "mxmObjectManager" did... Dieter From dieter@handshake.de Thu May 2 21:45:27 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 2 May 2002 22:45:27 +0200 Subject: [Zope] Acquiring object from Products instances In-Reply-To: <15569.14975.931388.391994@gargle.gargle.HOWL> References: <15569.14975.931388.391994@gargle.gargle.HOWL> Message-ID: <15569.42343.8940.467604@linux.local> Luca Manini writes: > I've a product that defines a classe ageForm. > I've a PythonScript that adds an ageForm instance to a folder. > After adding the instance it calls a method on it. > This methods tries to access an objects using acquisition. > ... Apparently, you do not tell us what your problem is... I expect, the problems cause is that constructors in Zope usually do not return the constructed object (but either "None" or the id of the constructed object). The standard idiom is: om.manage_addProduct[].(id,....) obj= getattr(om,id) Dieter From dieter@handshake.de Thu May 2 21:47:47 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 2 May 2002 22:47:47 +0200 Subject: [Zope] Problems adding attribute to custom object In-Reply-To: <7CDD7B94357FD5119E800002A537C46E230078@s5-ccr-r1.ccrs.nrcan.gc.ca> References: <7CDD7B94357FD5119E800002A537C46E230078@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <15569.42483.383739.739006@linux.local> Jean-Francois.Doyon@CCRS.NRCan.gc.ca writes: > ... > Error Type: TypeError > Error Value: attribute-less object (assign or del) > > I've treid using portal_catalog search results, and then something like : > setattr(a,'newporperty',''), but that gives me the error above. I also tried > o.property = '', but that didn't help ... Usually, you cannot assign attributes in Python Scripts. Use an External Method (or methods in your product) to do that. Dieter From dieter@handshake.de Thu May 2 21:38:44 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 2 May 2002 22:38:44 +0200 Subject: [Zope] zope as ftp-server In-Reply-To: <1020318671.3cd0d3cf6a927@your.trash.net> References: <1020318671.3cd0d3cf6a927@your.trash.net> Message-ID: <15569.41940.778504.818716@linux.local> mich wyser writes: > As i want to manage anything with zope, I also want to use Zope as pure ftp- > server. The idea is to let admins manage users/closed groups by the ZMI and a > to give a simple public interface over the ftp-file-structure for the end user > > My idea was to take LocalFs or ExtFile and store the Files externally on the > File System. When I tried recently, LocalFS did not support FTP (LocalFS objects are not FTP listable). Would probably be possible to fix. > Now i see some Problems/Questions > > 1. Is there any Possibility to turn off ObjeAct-Acquisiton ? What do you mean by this? Zope's standard FTP support refuses to provide FTP services for acquired objects (there's a patch from me that removes this restriction, but you do not need it to apply). > 2. How can i do Logging / Quotas Logging should not be too difficult. Zope already logs some FTP activity. If it is not enough, you add what you need. Quotas is a bit more difficult, as there is no provision to manage the amount of data below a point. Someone did Quata checking, however. Search the mailing list arvhices. > 3. Stability of ftp-server in Zope FTP is not easy across a firewall, but you probably know that. Search the mailing list archives for more information. Recently, I did no longer see major problem reports (beside firewall issues). Dieter From dieter@handshake.de Thu May 2 21:41:43 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 2 May 2002 22:41:43 +0200 Subject: [Zope] zope server crashing In-Reply-To: <002201c1f147$55bce7a0$e70f0c3f@LocalHost> References: <5.1.0.14.0.20020418173603.00aff978@mail.hurrah.com> <5.1.0.14.0.20020419134102.00afbf60@mail.hurrah.com> <002201c1f147$55bce7a0$e70f0c3f@LocalHost> Message-ID: <15569.42119.33894.237495@linux.local> Bill Kerr writes: > ... > 2002-05-02T01:04:38 ERROR(200) ZServer uncaptured python exception, closing > channel requests:> (exceptions.IOError:[Errno 28] No space left on device > ... > Files\ZopeWeb\ZServer\medusa\logger.py|log|77] [C:\Program > Files\ZopeWeb\ZServer\medusa\logger.py|write|53] [C:\Program > Files\ZopeWeb\ZServer\medusa\logger.py|maybe_flush|65]) The error message is completely clear: Zope tries to write a log entry (usually to "\var\Z2.log") and you operating system returns an error "no space left on device". Up to you to determine why your operating system does this. The most expected answer would be: there is no space on this partition... Dieter From jtk@adelphia.net Thu May 2 22:07:48 2002 From: jtk@adelphia.net (Jeff Kowalczyk) Date: Thu, 2 May 2002 17:07:48 -0400 Subject: [Zope] Set _allowed_meta_types on folder instances without creating a new product? In-Reply-To: <15569.39051.289896.236509@linux.local> Message-ID: <000001c1f21d$6a3c88d0$6401a8c0@laptop> > it would be very useful to apply this > to existing folders which are specialized in purpose, but > require no special class of their own. [Dieter] To apply it to existing folder, you need to redefine their "all_meta_types" method - in a similar spirit the "mxmObjectManager" did... How do I redefine a method (as opposed to setting a property) on an existing object? I don't want to subclass Folder into a full metatype for each combination of metatypes allowed, but I could see making a series of def methods: scripts or a product module that I could 'attach' as overrides to instances of regular, already created Folders as needed. Is that possible? From =?ISO-8859-15?B?R2VpciBC5mtob2x0?= Thu May 2 22:15:13 2002 From: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= (=?ISO-8859-15?B?R2VpciBC5mtob2x0?=) Date: Thu, 2 May 2002 23:15:13 +0200 Subject: [Zope] ZPT reverse ordering In-Reply-To: <008c01c1f204$23b3c720$5b01a8c0@tom> References: <008c01c1f204$23b3c720$5b01a8c0@tom> Message-ID: <19919476525.20020502231513@funcom.com> Hello Tom, Thursday, May 2, 2002, 8:06:53 PM, you wrote: TN> 2) I need the results reversed so newest is at the top, not bottom. i think this will help getting it reversed tal:repeat="subitems python:sequence.sort(thelist,(('bobobase_modification_time','desc'),))"> :-) -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team From =?ISO-8859-15?B?R2VpciBC5mtob2x0?= Thu May 2 22:33:26 2002 From: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= (=?ISO-8859-15?B?R2VpciBC5mtob2x0?=) Date: Thu, 2 May 2002 23:33:26 +0200 Subject: [Zope] Relative url query In-Reply-To: <000001c1f1f3$06527a20$0a00000a@wrdcjuliank> References: <000001c1f1f3$06527a20$0a00000a@wrdcjuliank> Message-ID: <13220569257.20020502233326@funcom.com> Hello Julian, Thursday, May 2, 2002, 6:03:58 PM, you wrote: JK> Dear all, JK> I know I can get the absolute url reference to an object as in: JK> " JK> rel="stylesheet" type="text/css"> JK> But how to I get a RELATIVE referance? absolute_url(relative=1) will get you a root-relative path (a bit confusing, yes, as it is not really a relative path...) might be what you need... :-) hth -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team From andreas@andreas-jung.com Thu May 2 22:37:49 2002 From: andreas@andreas-jung.com (Andreas Jung) Date: Thu, 2 May 2002 17:37:49 -0400 Subject: [Zope] What use is BTrees ??? References: <3CD1A728.5050506@mxm.dk> Message-ID: <002801c1f221$cd8a73d0$02010a0a@suxlap> See http://www.zope.org/Members/ajung/BTrees/FrontPage -aj ----- Original Message ----- From: "Max M" To: Sent: Thursday, May 02, 2002 16:52 Subject: [Zope] What use is BTrees ??? > I am unshure on how BTrees works, but I suspect that they might be > usefull in a project I am doing, so I thought I might ask here. > > I have an object which hase a dict as an attribute, in which I store > other objects. I know this is a relative expensive way to do it as > everytime an object is added to the dict the full object will be stored > in the ZODB. > > As far as I understand, the BTree is like a dict. > > So do I understand it right that if I use a BTree as a attribute instead > of a dict, it will only store the elements that are added/changed in the > ZODB but otherwise act as a dict? > > I use integers as keys in the dict > > regards Max M > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From jamey@infr.com Thu May 2 22:59:39 2002 From: jamey@infr.com (James Sintz) Date: Thu, 02 May 2002 17:59:39 -0400 Subject: [Zope] ZCatalog problems - maybe Message-ID: I have recently upgraded to 2.5.1 and the following doesn't seem to ever evaluate as true any more. It has worked in several different versions of Zope with the last one being 2.4.3. When I upgraded to 2.5.0 and discovered this would never evaluate as true I re-index all the items in my catalog. some code Any ideas why it would have stopped working. I have made no other changes except the upgrade. I tried importing my files and re-indexing and moving the data.fs. Thanks Jamey From andreas@andreas-jung.com Thu May 2 23:02:41 2002 From: andreas@andreas-jung.com (Andreas Jung) Date: Thu, 2 May 2002 18:02:41 -0400 Subject: [Zope] ZCatalog problems - maybe References: Message-ID: <00ba01c1f225$213e7e60$02010a0a@suxlap> Please file a collector issue for this problem. -aj ----- Original Message ----- From: "James Sintz" To: Sent: Thursday, May 02, 2002 17:59 Subject: [Zope] ZCatalog problems - maybe > I have recently upgraded to 2.5.1 and the following doesn't seem to ever > evaluate as true any more. It has worked in several different versions > of Zope with the last one being 2.4.3. When I upgraded to 2.5.0 and > discovered this would never evaluate as true I re-index all the items in > my catalog. > > a="Catalog( { 'meta_type' : 'news', > 'news_goLiveDate' : [ _.DateTime(now), _.DateTime(now)], > 'goLiveDate_usage' : 'range:min:max' } )" > > > some code > > > > Any ideas why it would have stopped working. I have made no other > changes except the upgrade. I tried importing my files and re-indexing > and moving the data.fs. > > Thanks > > Jamey > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From russ@viz.com Thu May 2 23:24:38 2002 From: russ@viz.com (Russell Uman) Date: Thu, 2 May 2002 15:24:38 -0700 Subject: [Zope] passing request variables in zope Message-ID: <01a101c1f228$26272dc0$d101a8c0@viz.com> howdy. i've been passing some variables through the url link and then accessing the request namespace in the target page my favorite ice cream is vanilla i would like to pass this variable without cluttering up the url. i know that i could also use cookies, or sessions, or a form to pass this variable. is there any other way i could pass this variable? i guess i would like to be able to create POST variables by hand and then send them off to the next page, whatever page that is. is this what the response object is for? am i just being really boneheaded? thanks... From jmunoz@telefonica.net Thu May 2 23:43:35 2002 From: jmunoz@telefonica.net (=?ISO-8859-1?Q?Juli=E1n_Mu=F1oz?=) Date: Thu, 2 May 2002 22:43:35 +0000 (GMT) Subject: [Zope] properties security ? Message-ID: I would like to know howto limit the access to the properties of a folder. For example, now everybody can view them doing a xml-rpc query like (in python): >>> w=3Dxmlrpclib.Server('http://www.my_server.com/') >>> w.propertyItems() Disabling "Access contents information" permission of the folder for anonymous solves this. But I haven't found any reference about this, and I don't know if this is correct. At a first glance, changing this permission is annoying, because many other objects acquire this property from there (the folder is the root folder of a project), and "nothing" works well .... Is there another permission ? (It doesn't seem...) Or is storing sensible datas in folder properties a really bad idea ? Thank you ! --=20 __o _ \<_ (_)/(_) Saludos de Juli=E1n EA4ACL -.- From dman@dman.ddts.net Fri May 3 01:59:08 2002 From: dman@dman.ddts.net (dman) Date: Thu, 2 May 2002 19:59:08 -0500 Subject: [Zope] zope hangs Message-ID: <20020503005908.GA17807@dman.ddts.net> --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm running zope 2.5.1 with python 2.1.3 on a good debian system. Sometimes, though, zope seems to just hang. It is still bound to the socket, and I can telnet to the socket (the kernel gives back the SYN-ACK), but I can't do anything else. Usually a restart of zope solves this, but right now I've restarted zope about a dozen times (and even waited for the kernel to finish closing the tcp connections) but I still can't get any connection from zope. The Z2.log shows nothing. The debug log file only shows the servers starting up and nothing after that. Where should I look for a solution? TIA, -D --=20 Windows, hmmm, does it come with a GUI interface that works or just pretty blue screens? =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzR4NwACgkQO8l8XBKTpRS4ZwCcCdWUrSRqHicJRO72ejRP1EEU 0b8An13yhpZfiR9d4autvc500pBjQMhR =2fX7 -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn-- From kedai@kedai.com.my Fri May 3 02:32:25 2002 From: kedai@kedai.com.my (Bakhtiar A Hamid) Date: Fri, 3 May 2002 09:32:25 +0800 Subject: [Zope] add instance of ZClass as authenticated user In-Reply-To: <20020502185745.GD31103@universal-fasteners.com> References: <20020502185745.GD31103@universal-fasteners.com> Message-ID: <200205030932.25701.kedai@kedai.com.my> On Friday 03 May 2002 02:57 am, Jim Penny wrote: > On Thu, May 02, 2002 at 01:45:33PM -0500, John Hunter wrote: > > >>>>> "Dieter" =3D=3D Dieter Maurer writes: > > > > Dieter> > > http:////manage_addProduct//ProjectSubmission_= addF > >orm > > Just in case, Dieter is one of the real Zope good guys. There are many > others I put in this category. But for shear willingness to answer > questions day after day, Dieter deserves special praise. > > Jim Penny > and, as norman drabble would've said - Dieter deserves four thumbs up! http://www.comics.com/comics/drabble/archive/drabble-20020501.html --=20 =09http://www.kedai.com.my/ http://www.kedai.com.my/eZine =09http://www.zope.org/Members/kedai http://www.my-zope.org =09If you SMELLLL...=20 From kedai@kedai.com.my Fri May 3 02:40:08 2002 From: kedai@kedai.com.my (Bakhtiar A Hamid) Date: Fri, 3 May 2002 09:40:08 +0800 Subject: [Zope] abandonware and new.zope.org In-Reply-To: References: Message-ID: <200205030940.08602.kedai@kedai.com.my> On Thursday 02 May 2002 10:40 pm, Marc Lindahl wrote: > Hey, that's cool! Is there source for the site available? :) > well, as dario found out, there's not much of a source there :P much of the methods are in the zope instance. i have not transferred tha= t to=20 the python products yet. grab it at http://www.my-zope.org/rep oh, and send me patches :) --=20 =09http://www.kedai.com.my/ http://www.kedai.com.my/eZine =09http://www.zope.org/Members/kedai http://www.my-zope.org =09We don't need no, no no no, no parental guidance here From nu@goa.hu Fri May 3 03:34:54 2002 From: nu@goa.hu (marci) Date: Fri, 03 May 2002 04:34:54 +0200 Subject: [Zope] zope hangs References: <20020503005908.GA17807@dman.ddts.net> Message-ID: <3CD1F74E.8040609@goa.hu> I've seen this appear on debian only: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=142890 Haven't found the solution... m dman wrote: >I'm running zope 2.5.1 with python 2.1.3 on a good debian system. >Sometimes, though, zope seems to just hang. It is still bound to the >socket, and I can telnet to the socket (the kernel gives back the >SYN-ACK), but I can't do anything else. Usually a restart of zope >solves this, but right now I've restarted zope about a dozen times >(and even waited for the kernel to finish closing the tcp connections) >but I still can't get any connection from zope. The Z2.log shows >nothing. The debug log file only shows the servers starting up and >nothing after that. Where should I look for a solution? > >TIA, >-D > > > From krams@krims.ch Fri May 3 05:02:27 2002 From: krams@krims.ch (Daniel Meier) Date: Fri, 3 May 2002 06:02:27 +0200 Subject: [Zope] squid with zope on mac os x Message-ID: <008001c1f257$56838160$6801a8c0@manifakt.com> hi there squid with zope on mac os x is there anybody who has done this before? if yes, how? kind regards daniel From maxm@mxm.dk Fri May 3 07:26:59 2002 From: maxm@mxm.dk (Max M) Date: Fri, 03 May 2002 08:26:59 +0200 Subject: [Zope] What use is BTrees ??? References: <3CD1A728.5050506@mxm.dk> <002801c1f221$cd8a73d0$02010a0a@suxlap> Message-ID: <3CD22DB3.4000509@mxm.dk> Andreas Jung wrote: >See > >http://www.zope.org/Members/ajung/BTrees/FrontPage > Doh ... thanks Max M From maik.jablonski@uni-bielefeld.de Fri May 3 07:56:58 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Fri, 03 May 2002 08:56:58 +0200 Subject: [Zope] ZmailIn References: Message-ID: <3CD234BA.30902@uni-bielefeld.de> David Kyte wrote: > Using ZmailIn - zope 2.3.0 ZmailIn.1.0.0 > linux redhat 6.2 > > The email appears to get into zope by the look of the > traceback, but fails for some reason. > Any suggestions gratefully received as my head now hurts :-( hi david, not really helpful for your original problem, but maybe another way: have a look at MailBoxer http://www.zope.org/Members/mjablonski/MailBoxer MailBoxer has a script called smtp2zope.py which transfers mails from your MTA to Zope via a simple URL/Post-Request... very easy to configure and use. greetings, maik. -- maik jablonski http://www.sachunterricht-online.de universitaet bielefeld http://www.zfl.uni-bielefeld.de zentrum fuer lehrerbildung tlph://+49.(0).521.106.4234 From zopestoller@thomas-guettler.de Fri May 3 08:00:49 2002 From: zopestoller@thomas-guettler.de (Thomas Guettler) Date: Fri, 03 May 2002 09:00:49 +0200 Subject: [Zope] What use is BTrees ??? References: <3CD1A728.5050506@mxm.dk> Message-ID: <3CD235A1.30105@thomas-guettler.de> Max M wrote: > I am unshure on how BTrees works, but I suspect that they might be > usefull in a project I am doing, so I thought I might ask here. > > I have an object which hase a dict as an attribute, in which I store > other objects. I know this is a relative expensive way to do it as > everytime an object is added to the dict the full object will be stored > in the ZODB. > > As far as I understand, the BTree is like a dict. > > So do I understand it right that if I use a BTree as a attribute instead > of a dict, it will only store the elements that are added/changed in the > ZODB but otherwise act as a dict? > > I use integers as keys in the dict Be sure, that you only use objects which can be compared to each other as keys. This means only use integers xor strings. Otherwise you can't access the objects anymore because the internal sorting gets confused. Unfortunately you don't get an exception if you try to insert different keys. thomas From kerrb@senet.com.au Thu May 2 20:10:19 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Fri, 3 May 2002 04:40:19 +0930 Subject: [Zope] change password References: <3CD1A728.5050506@mxm.dk> <002801c1f221$cd8a73d0$02010a0a@suxlap> <3CD22DB3.4000509@mxm.dk> Message-ID: <003901c1f20d$01053660$d60f0c3f@LocalHost> how can a user, not the root folder manager, change their own password? - Bill From zopestoller@thomas-guettler.de Fri May 3 08:14:56 2002 From: zopestoller@thomas-guettler.de (Thomas Guettler) Date: Fri, 03 May 2002 09:14:56 +0200 Subject: [Zope] Searching Developer: Mapping WebDAV to Drive Letter Message-ID: <3CD238F0.4070408@thomas-guettler.de> During the last evenings I investigated a little how difficult it would be to write Windows NT Internal File System which mounts a webdav server to a drive letter (like Teamdrive, or WebDrive). This way we could get rid of the problems we have with WebDAV and MS-Office. I is an interesting challenge. The building blocks are already there: neon: (WebDAV Client Library) http://www.webdav.org/neon/ Examples of an IFS (Internal Filesystem Driver): http://www.acc.umu.se/~bosse/ I thought about doing it myself, but I have a fulltime job. Maybe someone at a university could convince his professor to do this in a project. thomas From kerrb@senet.com.au Thu May 2 20:16:12 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Fri, 3 May 2002 04:46:12 +0930 Subject: [Zope] acquisition or inheritance? References: <3CD1A728.5050506@mxm.dk> <3CD235A1.30105@thomas-guettler.de> Message-ID: <004401c1f20d$d375e4a0$d60f0c3f@LocalHost> why does the zope literature use the term acquisition and not inheritance? - Bill From kerrb@senet.com.au Thu May 2 20:24:01 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Fri, 3 May 2002 04:54:01 +0930 Subject: [Zope] Zope Button References: <3CD1A728.5050506@mxm.dk> <3CD235A1.30105@thomas-guettler.de> Message-ID: <004801c1f20e$eb67d900$d60f0c3f@LocalHost> why can't I find the folder in which the Zope Button (that displays in the standard_html_footer) resides on my computer -- I can see the button but can't find it right click > View Source <3CD235A1.30105@thomas-guettler.de> <004401c1f20d$d375e4a0$d60f0c3f@LocalHost> Message-ID: <3CD23D1B.3020901@thomas-guettler.de> Bill Kerr wrote: > why does the zope literature use the term acquisition and not inheritance? Because it is completly different. acquisition is inheritance by containment. It is explained in the zope book, you can get from zope.org Please don't reply to email if you want to start a new thread. thomas From oliver.erlewein@sqs.de Fri May 3 08:53:33 2002 From: oliver.erlewein@sqs.de (oliver.erlewein@sqs.de) Date: Fri, 3 May 2002 09:53:33 +0200 (MET DST) Subject: [Zope] change password Message-ID: <200205030753.JAA10155@BM-DS004.pallas.de> Hi Bill Make a DTML or Python function, which changes the password (see API reference in THE ZOPE BOOK) and then give the function a Proxy Role that has a role that can "Manage Users". You can use the Manager role for testing but I'd advise to make a specialized role. Regards Oliver Erlewein From zanotti.m@apss.tn.it Fri May 3 09:37:24 2002 From: zanotti.m@apss.tn.it (Zanotti Michele) Date: Fri, 3 May 2002 10:37:24 +0200 Subject: R: [Zope] acquisition or inheritance? Message-ID: I think inheritance is a "genetic" concept, an object inherits an = attribute and has it forever, where acquisition depends on the container the = object has, and then on his context. There are several how-tos about = acquisition where you can find better explanations, see also http://webdev.zopeonarope.com/ and http://www.byte.com/documents/s=3D705/byt20010614s0001/ Michele > -----Messaggio originale----- > Da: Bill Kerr [mailto:kerrb@senet.com.au]=20 > Inviato: gioved=EC 2 maggio 2002 21.16 > A: zope@zope.org > Oggetto: [Zope] acquisition or inheritance? >=20 >=20 > why does the zope literature use the term acquisition and not=20 > inheritance? > - Bill >=20 >=20 >=20 > _______________________________________________ > Zope maillist - Zope@zope.org=20 > http://lists.zope.org/mailman/listinfo/zope > ** No cross=20 > posts or HTML encoding! ** > (Related lists -=20 > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) >=20 From hans@beehive.de Fri May 3 10:39:50 2002 From: hans@beehive.de (hans) Date: Fri, 03 May 2002 10:39:50 +0100 Subject: [Zope] acquisition or inheritance? References: <3CD1A728.5050506@mxm.dk> <3CD235A1.30105@thomas-guettler.de> <004401c1f20d$d375e4a0$d60f0c3f@LocalHost> Message-ID: <3CD25AE6.1D9EC186@beehive.de> Bill Kerr wrote: > why does the zope literature use the term acquisition and not inheritance? inheritance looks up names only *inside* the object. in zope, objects also are placed in space, have neigbours etc. aquisition looks up names also in the *neighbourhood* :-) ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From tom.nixon@aim23.com Fri May 3 10:39:29 2002 From: tom.nixon@aim23.com (Tom Nixon) Date: Fri, 3 May 2002 10:39:29 +0100 Subject: [Zope] ZPT reverse ordering In-Reply-To: <19919476525.20020502231513@funcom.com> Message-ID: <001801c1f286$6d03ce70$5b01a8c0@tom> > TN> 2) I need the results reversed so newest is at the top, > not bottom. > > i think this will help getting it reversed > > tal:repeat="subitems > > python:sequence.sort(thelist,(('bobobase_modification_time','d > esc'),))"> Thanks for your help. I get an error when I try this though: Error Type: TALESError Error Value: exceptions.AttributeError on 'None' object has no attribute 'getitem' in "", at line 160, column 3 If I take out the 'desc' then it works fine. Any ideas? Hang on a minute, I just fixed it! I replaced bobobase_modification_time with bobobase_creation_time, and left out the 'desc'. It now shows the most recent first. T. From Geir Bækholt Fri May 3 10:50:38 2002 From: Geir Bækholt (Geir Bækholt) Date: Fri, 3 May 2002 11:50:38 +0200 Subject: [Zope] ZPT reverse ordering In-Reply-To: <001801c1f286$6d03ce70$5b01a8c0@tom> References: <001801c1f286$6d03ce70$5b01a8c0@tom> Message-ID: <160868251920.20020503115038@funcom.com> on or about, Friday, May 03, 2002, we have reason to believe that Tom Nixon= wrote something along the lines of : >> i think this will help getting it reversed >> tal:repeat=3D"subitems >> python:sequence.sort(thelist,(('bobobase_modification_time','d >> esc'),))"> TN> Thanks for your help. I get an error when I try this though: TN> Error Type: TALESError TN> Error Value: exceptions.AttributeError on 'None' object has no attribute TN> 'getitem' in "", at line 160, column 3 sorry .. my fault , you need a comparisations function in there too. still untested: sort(thelist,(('bobobase_modification_time','cmp','desc'),)) TN> If I take out the 'desc' then it works fine. Any ideas=3F TN> Hang on a minute, I just fixed it! I replaced bobobase_modification_time TN> with bobobase_creation_time, and left out the 'desc'. It now shows the TN> most recent first. well . the "desc" setting could come in handy anyway.. :-) :-) --=20 Geir B=E6kholt web-developer geirh@funcom.com funcom oslo | webdev-team From chrisw@nipltd.com Fri May 3 11:11:49 2002 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 03 May 2002 11:11:49 +0100 Subject: [Zope] Zope Button References: <3CD1A728.5050506@mxm.dk> <3CD235A1.30105@thomas-guettler.de> <004801c1f20e$eb67d900$d60f0c3f@LocalHost> Message-ID: <3CD26265.ED3549F@nipltd.com> Bill Kerr wrote: > > where is this p_ folder? UTSL... ...or alternatively, why do you care? ;-) And PLEASE stop starting new threads by replying to other messages, those of us with threading mail clients find it irritating! cheers, Chris From jens@zope.com Fri May 3 12:39:39 2002 From: jens@zope.com (Jens Vagelpohl) Date: Fri, 3 May 2002 07:39:39 -0400 Subject: [Zope] squid with zope on mac os x In-Reply-To: <008001c1f257$56838160$6801a8c0@manifakt.com> Message-ID: <737DE89D-5E8A-11D6-9A49-00039363690C@zope.com> that should not be any different from setting up squid and zope on other unices. i don't know about squid, but here's how to build zope on OS X: http://www.zope.org/Members/jens/docs/zope_osx jens On Friday, May 3, 2002, at 12:02 , Daniel Meier wrote: > hi there > > squid with zope on mac os x > is there anybody who has done this before? > if yes, how? > > kind regards > > daniel > > From Nicolas =?iso-8859-15?Q?=C9vrard?= Fri May 3 12:42:34 2002 From: Nicolas =?iso-8859-15?Q?=C9vrard?= (=?iso-8859-1?Q?Nicolas_=C9vrard?=) Date: Fri, 3 May 2002 13:42:34 +0200 Subject: [Zope] Can I do this in a python products ?? Message-ID: <20020503114234.GA731@nicolas.solirem.be> Hello, everyone, Since this is my first post on this lis, I will introduce myself shortly. I'm a developper in a small enterprise which has a huge internet project, since I am a great user of linux and of python I naturally tough about doing all my job in Zope. At first I played with dtml-scripting and so on. But now I'd like to make a little product and when I'll be fluent in this kind of programming, I will migrate the whole site to Product-like programming. Now, my question : I do this in the initialization of my product : fd = open('the_file') line = fd.readline() while line : process_line(line) line = fd.readline() The file 'the_file' is in the base directory of the product but I keep getting 'No such file'. I then decided to put this file on the Zope Directory where my product will be localized but the same problem arose. Is it possible to have some kind of a rc-file for a product the need to be parsed (this file residing either in the product directory or in the zope directory). Maybe I'm all wrong and that's not the way I ought to think in Zope ... -- Évrard Nicolas SOLIREM SA - Projet Smartainers 1, rue de l'épervier Tel: +32 4 248 08 85 B-4040 Herstal Fax: +32 4 248 05 78 From srengasamy@firstam.com Fri May 3 12:54:34 2002 From: srengasamy@firstam.com (Rengasamy, Samy) Date: Fri, 03 May 2002 06:54:34 -0500 Subject: [Zope] Relative url query Message-ID: absolute_url(relative=1), should give you the relative path. Samy Rengasamy. From: "Julian Knight" To: Date: Thu, 2 May 2002 17:03:58 +0100 Organization: WRDC Subject: [Zope] Relative url query Dear all, I know I can get the absolute url reference to an object as in: " rel="stylesheet" type="text/css"> But how to I get a RELATIVE referance? Sorry if this is an obvious question but I've just started on Zope & Python so its all a little confusing! -- Julian Knight, Senior Consultant WRDC Ltd, Leeds, UK. +44 (0) 113 245 4788 http://www.wrdc.com From Ulrich Wisser Fri May 3 13:41:21 2002 From: Ulrich Wisser (Ulrich Wisser) Date: Fri, 3 May 2002 14:41:21 +0200 Subject: [Zope] whois Message-ID: <197264552490.20020503144121@publisher.de> Hello, I downloaded and installed the whoistool from zope.org. After some little tweaking I got it working. But one problem is left and I believe it is a more general one. The Tag looks like this or My problem is the server part. I need to set the server programatically. Means I want to call a DTML Document like this http://zope.org/showwhois?domain=company.com&server=whois.corenic.com I wrote the Tag as follows: But that doesn't work. The server variable is not evealuated. Instead whois tries to look for 'server' which is not really what I intended. How can I make Zope load the whois Module in it's namespace? In that case I could say Which would be perfect to me. Thanks Ulli -- Searchengine Know How - Webpromotion - Optimization - Internal Search World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06 From casey@zope.com Fri May 3 14:13:58 2002 From: casey@zope.com (Casey Duncan) Date: Fri, 3 May 2002 09:13:58 -0400 Subject: [Zope] Searching Developer: Mapping WebDAV to Drive Letter In-Reply-To: <3CD238F0.4070408@thomas-guettler.de> References: <3CD238F0.4070408@thomas-guettler.de> Message-ID: <200205030913.58582.casey@zope.com> Check out WebDrive: http://www.southrivertech.com/products/webdrive/index= =2Ehtml hth, -Casey On Friday 03 May 2002 03:14 am, Thomas Guettler allegedly wrote: > During the last evenings I investigated a little how > difficult it would be to write Windows > NT Internal File System > which mounts a webdav server to a drive letter (like > Teamdrive, or WebDrive). This way we could get > rid of the problems we have with WebDAV and MS-Office. >=20 > I is an interesting challenge. The building blocks are > already there: >=20 > neon: (WebDAV Client Library) > http://www.webdav.org/neon/ >=20 > Examples of an IFS (Internal Filesystem Driver): > http://www.acc.umu.se/~bosse/ >=20 > I thought about doing it myself, but I have a fulltime > job. Maybe someone at a university could convince his > professor to do this in a project. >=20 > thomas >=20 >=20 >=20 > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists -=20 > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) >=20 From mail@peterbe.com Fri May 3 14:14:29 2002 From: mail@peterbe.com (Peter Bengtsson) Date: Fri, 03 May 2002 14:14:29 +0100 Subject: [Zope] Successful use of ZPT and macros in Python Product? Message-ID: <5.1.0.14.0.20020503141337.01f17ae0@mail.grenna.net> Successful use of ZPT and macros in Python Product? ..., has anybody seen that? From mlapera@colorbyte.com Fri May 3 14:17:42 2002 From: mlapera@colorbyte.com (Michael LaPera) Date: Fri, 3 May 2002 09:17:42 -0400 Subject: [Zope] Built in support for renaming multiple titles (a la manage_renameObjects)? Message-ID: <269A24C2-5E98-11D6-B9FE-0050E4D9FD60@colorbyte.com> I have a project were I'm generating random ID's and displaying only the titles (instead of ids and titles) though a custom CMF "folder_contents" skin. I want the user to be able to bulk rename the titles simular to OFS.CopySupport.manage_renameObjects. Is there any built in functionality for bulk title renaming or do I need to write it? Thanks, Michael LaPera From spinwing@inwind.it Fri May 3 14:27:08 2002 From: spinwing@inwind.it (Stefano Vedovelli) Date: Fri, 3 May 2002 15:27:08 +0200 Subject: [Zope] Re: How to use a ZSQLMethod from a Python Script In-Reply-To: <20020503114702.10579.48248.Mailman@mail.python.org> References: <20020503114702.10579.48248.Mailman@mail.python.org> Message-ID: <200205031527.08244.spinwing@inwind.it> Hello under zope 2.5.1, I have a folder called temp. In the folder I have a=20 connection object, a zsql method called test_sql and a python script=20 called test_zsql. The script is: from Products.PythonScripts.standard import html_quote res =3D context.test_sql() for name in res.names(): print name dict =3D res.data_dictionary() for key in dict.keys(): print dict[key] return printed Works good. Sure you do not have some other issues? Note that I run=20 under Linux and as far as I can see you run it under Windows. regards Stefano On Friday 03 May 2002 13:47, zope-request@zope.org wrote: > >Igor Leturia writes: > > > I want to call a ZSQLMethod from a Python Script. In Zope.org, > > I > couldn't find a specific how-to on the subject, but > > accidentally I found some other how-to's in which there are examples=20 > > that use ZSQLMethods > from Python scripts. It seemed very easy, so=20 I tried > > it that way: > > > res =3D context.mysqlmethod() > > > It gives an error message, 'resource not found'.=20 From hans@beehive.de Fri May 3 15:31:49 2002 From: hans@beehive.de (hans) Date: Fri, 03 May 2002 15:31:49 +0100 Subject: [Zope] Built in support for renaming multiple titles (a la manage_renameObjects)? References: <269A24C2-5E98-11D6-B9FE-0050E4D9FD60@colorbyte.com> Message-ID: <3CD29F52.EDDD141@beehive.de> Michael LaPera wrote: > I have a project were I'm generating random ID's and displaying only the > titles (instead of ids and titles) though a custom CMF > "folder_contents" skin. I want the user to be able to bulk rename the > titles simular to OFS.CopySupport.manage_renameObjects. > > Is there any built in functionality for bulk title renaming or do I need > to write it? - abuse of Find (recent thread here) - http://www.zope.org/Members/shh/ReplaceSupport http://www.zope.org/Members/cguardia/replace/ hth ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From casey@zope.com Fri May 3 14:37:39 2002 From: casey@zope.com (Casey Duncan) Date: Fri, 3 May 2002 09:37:39 -0400 Subject: [Zope] Zope Button In-Reply-To: <004801c1f20e$eb67d900$d60f0c3f@LocalHost> References: <3CD1A728.5050506@mxm.dk> <3CD235A1.30105@thomas-guettler.de> <004801c1f20e$eb67d900$d60f0c3f@LocalHost> Message-ID: <200205030937.39465.casey@zope.com> As I think you have found (or not found ;^), there is none. Zope is an ob= ject=20 publishing system. The cute little folders and file icons you see are jus= t an=20 illusionary file-system-ish object hierarchy called OFS. So back to your question, p_ is not a folder at all. It is an object=20 (technically its a class, but that is neither here nor there) which is an= =20 attribute of (IOW its attached to) the root folder, which is a folder (bu= t a=20 special one). The p_ attribute is defined in the Zope code as a container= for=20 Zope software to put things in that are built into the system.=20 In technobabble terms, it is a special global "namespace" for the Zope=20 software itself to store resources it uses. This namespace is separated=20 (under the name p_) from the rest of the OFS so that you can define your = own=20 objects with just about any name, including "ZopeButton", without obscuri= ng=20 the ones in p_. So where does it come from? ZopeButton comes from a file in your Zope=20 installation. The Zope software wraps this file in a special ImageFile ob= ject=20 (which knows how to load image files as object) and then "mounts" it in p= _.=20 There are all kinds of other images in there as well, mostly all for use = by=20 the ZMI: icons, decorations, other powered by icons, etc. If you don't=20 believe me, check out $Zope/lib/python/OFS/misc_.py -Casey On Thursday 02 May 2002 03:24 pm, Bill Kerr allegedly wrote: > why can't I find the folder in which the Zope Button (that displays in = the > standard_html_footer) resides on my computer -- I can see the button bu= t > can't find it > right click > View Source >=20 > where is this p_ folder? >=20 > -- Bill From hans@beehive.de Fri May 3 15:36:06 2002 From: hans@beehive.de (hans) Date: Fri, 03 May 2002 15:36:06 +0100 Subject: [Zope] Re: How to use a ZSQLMethod from a Python Script References: <20020503114702.10579.48248.Mailman@mail.python.org> <200205031527.08244.spinwing@inwind.it> Message-ID: <3CD2A053.C7B90CFE@beehive.de> > > >Igor Leturia writes: > > > > I want to call a ZSQLMethod from a Python Script. In Zope.org, > > > I > couldn't find a specific how-to on the subject, but > > > accidentally I found some other how-to's in which there are examples > > > that use ZSQLMethods > from Python scripts. It seemed very easy, so > I tried > > > it that way: > > > > res = context.mysqlmethod() > > > > It gives an error message, 'resource not found'. http://www.zope.org/Members/spinwing/ZSQL_Results ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From dman@dman.ddts.net Fri May 3 14:51:42 2002 From: dman@dman.ddts.net (dman) Date: Fri, 3 May 2002 08:51:42 -0500 Subject: [Zope] ZPT reverse ordering In-Reply-To: <001801c1f286$6d03ce70$5b01a8c0@tom> References: <19919476525.20020502231513@funcom.com> <001801c1f286$6d03ce70$5b01a8c0@tom> Message-ID: <20020503135142.GA22124@dman.ddts.net> --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 03, 2002 at 10:39:29AM +0100, Tom Nixon wrote: | > python:sequence.sort(thelist,(('bobobase_modification_time','d | > esc'),))"> |=20 | Thanks for your help. I get an error when I try this though: |=20 | Error Type: TALESError | Error Value: exceptions.AttributeError on 'None' object has no attribute | 'getitem' in "", at line 160, column 3 >>> l =3D [ 3 , 2 ] >>> print l [3, 2] >>> print l.sort() None >>> print l [2, 3] >>>=20 The sort() method modifies the list in-place and returns None. You are trying to iterate over the return value of sort(), which doesn't have a getitem method. The simplest solution is to sort the list after you have a reference to it. Eg: tal:define=3D"l python:[3,2] ; foo l.sort()" As a side effect it creates 'foo' as a reference to None, but that isn't significant. -D --=20 An anxious heart weighs a man down, but a kind word cheers him up. Proverbs 12:25 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzSle4ACgkQO8l8XBKTpRTeggCeNzdLBt2xrJNW6m/HdkISgFZq hCkAoJ0utnpPYCtORmmUxYrHPwy7t7Iq =tzU7 -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn-- From dman@dman.ddts.net Fri May 3 14:56:20 2002 From: dman@dman.ddts.net (dman) Date: Fri, 3 May 2002 08:56:20 -0500 Subject: [Zope] zope hangs In-Reply-To: <3CD1F74E.8040609@goa.hu> References: <20020503005908.GA17807@dman.ddts.net> <3CD1F74E.8040609@goa.hu> Message-ID: <20020503135620.GB22124@dman.ddts.net> --wq9mPyueHGvFACwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 03, 2002 at 04:34:54AM +0200, marci wrote: | dman wrote: |=20 | >I'm running zope 2.5.1 with python 2.1.3 on a good debian system. | >Sometimes, though, zope seems to just hang. It is still bound to the | >socket, and I can telnet to the socket (the kernel gives back the | >SYN-ACK), but I can't do anything else. Usually a restart of zope | >solves this, but right now I've restarted zope about a dozen times | >(and even waited for the kernel to finish closing the tcp connections) | >but I still can't get any connection from zope. The Z2.log shows | >nothing. The debug log file only shows the servers starting up and | >nothing after that. Where should I look for a solution? | I've seen this appear on debian only: | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D142890 |=20 | Haven't found the solution... That doesn't sound too good :-(. After reading the reports I had an idea, ..., moving /var/lib/zope/Products out of the way allows me to connect to zope again. Apparently one of the products I tried to install isn't working right. The other times I've seen the problem occur the symptons were much more like the existing reports describe. -D =20 --=20 Like a gold ring in a pig's snout is a beautiful woman who shows no discretion. Proverbs 11:22 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --wq9mPyueHGvFACwf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzSlwQACgkQO8l8XBKTpRS9+wCgjGGJKcO71FZFAgVNw1sAhbdb 9jgAoIFV+8A0XoG9OHB94qEcQgxV2pM5 =ThMU -----END PGP SIGNATURE----- --wq9mPyueHGvFACwf-- From TilleA@rki.de Fri May 3 14:57:31 2002 From: TilleA@rki.de (Tille, Andreas) Date: Fri, 3 May 2002 15:57:31 +0200 (CEST) Subject: [Zope] Bug in Zope-Book CVS Message-ID: Hello, im the Debian maintainer of the Zope Book and there is a bug report which can be read under: http://bugs.debian.org/142451 Unfortunetely I do not understand structured text and I'm not able to fix this problem. I guess the authors have currently other problems than fixing this bug and I do not really want to apply the patch the bug reporter sended against the HTML output. Thus I would like to ask wether somebody is sane enough to fix the stx source AdvZPT.stx to get well prepared HTML output. For those who do not know about what file I'm talking about. It can be obtained via CVS-Web from http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/zope-book/Book/AdvZPT.stx Thanks for any help Andreas. From olpa@sybcom.de Fri May 3 15:05:38 2002 From: olpa@sybcom.de (Oliver Pabst) Date: 03 May 2002 16:05:38 +0200 Subject: [Zope] Tracker and Scheduler Message-ID: <1020434739.5646.10.camel@bastion.forteresse.net> Hi Zope folks, as I saw in the Tracker source, it should be possible to trigger the execute_rules method to tell the Tracker to resend old Tracker issues to the supporters to alert them. Does someone know who you can trigger this with a cron job or so? -- --- --- Oliver Pabst .-------------------------. mailto:olpa@sybcom.de : : phone :+49 681 56600600 : project department : SYBCOM GmbH fax :+49 681 56600660 : : http://www.sybcom.de From renfro@tntech.edu Fri May 3 15:06:58 2002 From: renfro@tntech.edu (Mike Renfro) Date: Fri, 3 May 2002 09:06:58 -0500 Subject: [Zope] Bug in Zope-Book CVS In-Reply-To: ; from TilleA@rki.de on Fri, May 03, 2002 at 03:57:31PM +0200 References: Message-ID: <20020503090658.A27483@ch208h> On Fri, May 03, 2002 at 03:57:31PM +0200, Tille, Andreas wrote: > Unfortunetely I do not understand structured text and I'm not able > to fix this problem. I guess the authors have currently other > problems than fixing this bug and I do not really want to apply the > patch the bug reporter sended against the HTML output. I think the authors forgot the whitespace before each of the problem-causing tags. Try putting a blank line between the line ending with :: and the line that begins with , and make sure to keep the indentation the same as it is now. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From pw_lists@slinkp.com Fri May 3 15:23:13 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Fri, 3 May 2002 07:23:13 -0700 Subject: R: [Zope] acquisition or inheritance? In-Reply-To: ; from zanotti.m@apss.tn.it on Fri, May 03, 2002 at 10:37:24AM +0200 References: Message-ID: <20020503072313.A24376@slinkp.com> On Fri, May 03, 2002 at 10:37:24AM +0200, Zanotti Michele wrote: > I think inheritance is a "genetic" concept, an object inherits an attribute > and has it forever, where acquisition depends on the container the object > has, and then on his context. There are several how-tos about acquisition > where you can find better explanations, see also > http://webdev.zopeonarope.com/ and > http://www.byte.com/documents/s=705/byt20010614s0001/ The way I think of it is this: Inheritance is fixed when an object is instantiated. It can never change during the object's lifetime.* Acquisition is completely dynamic. Move an object to a different container (folder) at any time, and you're suddenly acquiring different things. * well, that's true in most programming languages... in python, nearly anything can be changed at any time so I wouldn't be surprised if there's a sneaky way to change an object's superclasses at run time. -- "Welcome to Muppet Labs, where the future is made - today!" From zopestoller@thomas-guettler.de Fri May 3 15:27:04 2002 From: zopestoller@thomas-guettler.de (Thomas Guettler) Date: Fri, 03 May 2002 16:27:04 +0200 Subject: [Zope] Searching Developer: Mapping WebDAV to Drive Letter References: <3CD238F0.4070408@thomas-guettler.de> <200205030913.58582.casey@zope.com> Message-ID: <3CD29E38.3020506@thomas-guettler.de> Casey Duncan wrote: > Check out WebDrive: http://www.southrivertech.com/products/webdrive/index.html I thought about an open source alternative. BTW, I am testing a demo version of teamdrive right now. MSWord (2002) crashes sometimes if it tries to save a document. Has someone experience with webdrive vs. teamdrive on zope? thomas From nu@goa.hu Fri May 3 16:29:00 2002 From: nu@goa.hu (marci) Date: Fri, 03 May 2002 17:29:00 +0200 Subject: [Zope] zope hangs References: <20020503005908.GA17807@dman.ddts.net> <3CD1F74E.8040609@goa.hu> <20020503135620.GB22124@dman.ddts.net> Message-ID: <3CD2ACBC.2090301@goa.hu> dman wrote: >On Fri, May 03, 2002 at 04:34:54AM +0200, marci wrote: >| dman wrote: >| >| >I'm running zope 2.5.1 with python 2.1.3 on a good debian system. >| >Sometimes, though, zope seems to just hang. It is still bound to the >| >socket, and I can telnet to the socket (the kernel gives back the >| >SYN-ACK), but I can't do anything else. Usually a restart of zope >| >solves this, but right now I've restarted zope about a dozen times >| >(and even waited for the kernel to finish closing the tcp connections) >| >but I still can't get any connection from zope. The Z2.log shows >| >nothing. The debug log file only shows the servers starting up and >| >nothing after that. Where should I look for a solution? > >| I've seen this appear on debian only: >| http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=142890 >| >| Haven't found the solution... > >That doesn't sound too good :-(. After reading the reports I had an >idea, ..., moving /var/lib/zope/Products out of the way allows me to > did you mean /usr/lib/zope/lib/python/Products ? >connect to zope again. Apparently one of the products I tried to >install isn't working right. The other times I've seen the problem >occur the symptons were much more like the existing reports describe. > >-D > > > m From tpassin@mitretek.org Fri May 3 15:59:34 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Fri, 3 May 2002 10:59:34 -0400 Subject: [Zope] Can I do this in a python products ?? References: <20020503114234.GA731@nicolas.solirem.be> Message-ID: <006101c1f2b3$23765570$f70510ac@mitretek.org> [Nicolas Évrard] Now, my question : I do this in the initialization of my product : fd = open('the_file') line = fd.readline() while line : process_line(line) line = fd.readline() The file 'the_file' is in the base directory of the product but I keep getting 'No such file'. I then decided to put this file on the Zope Directory where my product will be localized but the same problem arose. Is it possible to have some kind of a rc-file for a product the need to be parsed (this file residing either in the product directory or in the zope directory). [Tom P] You should always make sure a module can find out the right location for a file rather than relying on a guess or default location. When I use external scripts, I generally use a path relative to the module or package that contains the program. That way I can move the code to another installation on another directory tree or drive and still have things work. There are several possibilities. Here are some: 1) Use an environmental variable. This means you have to remember to set the variable before running Zope. 2) Put your code into a package (put it into a directory on the python path and put an __init__.py file into that directory). When you import the package, you can get the complete path from the package's __file__attribute. For example, if you have a package called "altlas": import atlas,os.path PATH=os.path.dirname(atlas.__file__) 3) A variation on 2) is to create a variable in the package's __init__.py file: import os.path BASEPATH=os.path.dirname(__file__) Now when you import the package, the BASEPATH variable is available. To do this, you may need to put your code into subdirectories or subpackages under the package. 4) You could also try making the path be relative to that of Zope by using os.cwd() or sys.argv[0], but that might be less robust. Cheers, Tom P From manini@flashnet.it Fri May 3 15:10:31 2002 From: manini@flashnet.it (Luca Manini) Date: Fri, 3 May 2002 16:10:31 +0200 Subject: [Zope] Inheritance (?) problem Message-ID: <15570.39511.177903.32758@gargle.gargle.HOWL> Hi, I have a pure-python (no Zope classes around) 'form' class like this: class form: def __init__(self, id): self.id = id def actionTarget(self, REQUEST={}): "Main entry point." return 'foo' >From this class I derive a subclass class zopeForm (SimpleItem.SimpleItem, form): def actionTarget(self, REQUEST={}): "Main entry point." # ... other thing done here... form.actionTarget (self, REQUEST) The zopeForm class is part of a product so I have instances of zopeForm (say 'zf') in a folder (say 'foo'). Now I would like to visit the URL ...../foo/zf/actionTarget but I get the following error: Error Type: TypeError Error Value: unbound method must be called with class instance 1st argument but 'self' in the call to form.actionTarget should be a zopeForm instance! If I change zopeForm.actionTarget to: def actionTarget(self, REQUEST={}): "Main entry point. Passing http REQUEST" raise self I get Error Type: TypeError Error Value: exceptions must be strings, classes, or instances and if I change it to: def actionTarget(self, REQUEST={}): "Main entry point. Passing http REQUEST" raise str(self) I get Error Type: Error Value: None It seems I'm missing something.... Any hint? TIA, Luca From news@conquered.org Fri May 3 16:32:46 2002 From: news@conquered.org (Luis Cortes) Date: Fri, 3 May 2002 09:32:46 -0600 Subject: [Zope] ZOPE/PYTHON CLASS ES (El Paso/Las Cruces/Juarez Area ) Message-ID: <004a01c1f2b8$0d4710f0$3a600a0a@LUISLAPTOP> This is a multi-part message in MIME format. ------=_NextPart_000_0045_01C1F285.7BF10610 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hello, I am an instructor at New Horizons El Paso and I wanted to see if = there was any interest in a Zope/Python class in the El Paso TX /Las = Cruces NM /Juarez Mex area. I have 6 years software engineering = experience and would like to teach either course IF there are people = interested. If YOU are, please zap me an email and cc: jessej@nh-elpaso.com and = let us know! Thanks, Luis. ------=_NextPart_000_0045_01C1F285.7BF10610 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Hello,
 
    I am an instructor = at New=20 Horizons El Paso and I wanted to see if there was any interest in a = Zope/Python class in the El Paso TX /Las Cruces NM /Juarez Mex = area.  I=20 have 6 years software engineering experience and would like to teach = either=20 course IF there are people interested.
 
    If YOU are, please = zap me an=20 email and cc: jessej@nh-elpaso.com and=20 let us know!
 
Thanks,
Luis.
 
 
 
 
 
------=_NextPart_000_0045_01C1F285.7BF10610-- From tom.nixon@aim23.com Fri May 3 16:50:27 2002 From: tom.nixon@aim23.com (Tom Nixon) Date: Fri, 3 May 2002 16:50:27 +0100 Subject: [Zope] ZPT reverse ordering In-Reply-To: <001801c1f286$6d03ce70$5b01a8c0@tom> Message-ID: <00e901c1f2ba$3f7dea60$5b01a8c0@tom> > I replaced bobobase_modification_time > with bobobase_creation_time, and left out the 'desc'. It now shows the > most recent first. I was talking nonsense! The correct result was a fluke. There's no such thing as bobobase_creation_time. I see it's in the collector. I hope it gets implemented soon, I can't imagine it's too big a job. http://collector.zope.org/Zope/188 T. From s.morris@bangor.ac.uk Fri May 3 18:16:01 2002 From: s.morris@bangor.ac.uk (Sion Morris) Date: Fri, 3 May 2002 17:16:01 +0000 Subject: [Zope] Microsoft Word, Excel and Powerpoint with CMF Message-ID: <710F0D3E-5EB9-11D6-A161-000393876536@bangor.ac.uk> Hi, On the BasicCMFUsage movie, on zope.com, it shows MSWord File, Excel and Powerpoint as content types. Is that functionality available to ordinary CMF users? Having this functionality would help my case for having Zope as a web intranet application here at work. The type of site I have in mind is a store for every day documents and communications. As most of these documents are created in MSWord, Excel and Powerpoint it would be nice if the CMF could index and display them. I have already tried NuxDocument but it failed to work on CMF1.2 (the author has been notified). Regards, Sion From Christian.Fissgus@haufe.de Fri May 3 17:17:52 2002 From: Christian.Fissgus@haufe.de (Christian.Fissgus@haufe.de) Date: Fri, 3 May 2002 18:17:52 +0200 Subject: [Zope] SQL to Excel Message-ID: <08231599A3E6E64CAE8FA66619243E4002427B9D@vg100cl1> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1F2BE.1381B460" ------_=_NextPart_001_01C1F2BE.1381B460 Content-Type: text/plain; charset="iso-8859-1" > select URL from [qas$] where Month='March' and Year=2000 > > Note that the table name is the name of the worksheet with a > $ appended to > the end. You have to append the $ in order for the query to work. Why? Because spreadsheets aren't tables... You have several ways of telling, which data you want: [qas$] refers to the entire worksheet qas [qas$B2:G20] refers to the unnamed range B2:G20 or you can use named ranges: then you can use the name of the range like any "normal" table ( select * from myRangeInQas ) > Because. The brackets are there because $ is a reserved > character in SQL. > Life is never easy. > ----------------------- > > Now all I want to do is SELECT *...I don't need anything > fancier than that, > I'm just trying to publish the entire worksheet. No variation > on the above > code snippet seems to work. > > Has anybody gotten SQL queries into excel to work? And how > did you do it? The way you described works fine for me... Does the first row of your worksheet show the columnnames? Any of them starting with blank ? Maybe you tell us, what happens when "it doesn't work"... Chris ------_=_NextPart_001_01C1F2BE.1381B460 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [Zope] SQL to Excel

> select URL from [qas$] where Month=3D'March' and = Year=3D2000
>
> Note that the table name is the name of the = worksheet with a
> $ appended to
> the end. You have to append the $ in order for = the query to work. Why?

Because spreadsheets aren't tables... You have = several ways of telling, which data you want:
[qas$] refers to the entire worksheet qas
[qas$B2:G20] refers to the unnamed range = B2:G20
or you can use named ranges: then you can use the = name of the range like any "normal" table ( select * from = myRangeInQas )

> Because. The brackets are there because $ is a = reserved
> character in SQL.
> Life is never easy.
> -----------------------
>
> Now all I want to do is SELECT *...I don't need = anything
> fancier than that,
> I'm just trying to publish the entire = worksheet. No variation
> on the above
> code snippet seems to work.
>
> Has anybody gotten SQL queries into excel to = work? And how
> did you do it?

The way you described works fine for me...
Does the first row of your worksheet show the = columnnames? Any of them starting with blank ?

Maybe you tell us, what happens when "it doesn't = work"...

Chris

------_=_NextPart_001_01C1F2BE.1381B460-- --------------InterScan_NT_MIME_Boundary-- From pydan@danshafer.com Fri May 3 17:25:52 2002 From: pydan@danshafer.com (Dan Shafer) Date: Fri, 03 May 2002 09:25:52 -0700 Subject: [Zope] Two Cosmetic Issues Message-ID: <5.1.0.14.0.20020503092012.029f4ce8@mail.hurrah.com> I use Zope on both Mac and Win2K in the course of a day. In recent weeks, I have moved my Mac environment to OS X. I have noticed a couple of cosmetic issues that, while really cosmetic, do have an impact on the usability of the ZMI for me. First, on both Windows and Mac, the "Narrower" button seems to have zero effect. I click it many, many times because I think perhaps the incremental change built in is small. It never moves. Not a pixel. This is a problem because for some reason the width at which it is seton my Win2K box is such that I get horizontal scrolling in object editors that extend the width of the available area. This makes editing a real pain. On my Mac, for reasons having, I'm sure, to do with arcania like aspect ratios, I don't get horizontal scrolling but I still cannot make the window narrower. Second, on OS X, the default font used in the object editors is not well suited to the display parameters. All text entered into text objects is a bit hard to read and, when selected, is broken and thin. I have reset my system to turn off anti-aliasing below 12 points, to no effect. Anyone have any ideas how, e.g., I might fix these problems myself? Runniing Zope 2.3.3 on Linux. From sean@havenco.com Fri May 3 20:33:44 2002 From: sean@havenco.com (Sean Hastings) Date: Fri, 3 May 2002 12:33:44 -0700 Subject: [Zope] ZClasses vs. Python Products Message-ID: Help! I Have chosen Zope to do a new web app. It is a 2 man project - 1 Programer - 1 UI Designer with programing experience. I am trying to decide whether to build the App using Zclasses or Python Product. I found this URL "http://zdp.zope.org/portals/developers/designstrategies/products" It lists advantages of Python product as: 1. You can upgrade them. 2. You can write all of your logic in Python. 3. You write your UI in DTML. 4. You can manage all of this using CVS However: 1. it then says why it is harder to change things in a python product. 2. I can still use python scrips with Zclasses 3. I can still write the UI in DTML 4. There appears to be a CVS extension for Zope available. On Zope IRC I was told that there are some scalability, stability, and code mainatanance issues issues with Zclasses but did not recieve any elaboration on that. What are the issues? It seems like I lose a lot of the advantages of Zope's second veiw by using a Python Product - in that I can't have my UI person atatch DTML methods to the classes I write. What future developments can I expect? Will ZClasses become better in the future? Will more second Veiw handles be added for Python Products? Might code be written to generate a Python Product directly from a ZClass based Product? The consensus on Zope IRC was that "ZClasses suck", but I am failing to see the advantage of not just building a product with ZClasses from within Zope. What am I Missing? Can anyone direct me to further information - or give me an example of a situation where I would be in bad shape to have chosen ZClasses over Python Product? I need to make this decision soon. --Sean Hastings --sean@havenco.com From Tom Deprez" Hi, I need to offer keywords to users to choose from to use to index documents. There will be so much keywords that the only way to present them in a proper way is probably through a tree view. Now, what would be the best way to make this: 1) create a 'tree' keyword python product and create zope management interfaces for that. Thus we've one product which keeps the keys internally 2) create a keyword product and build the tree in the ZODB as like you could build a hierarchy with folders 3) use plain folders for the keywords. I'm not sure which would be the best choice. Anybody who can give me some advice? Thanks in advance, Tom. From dman@dman.ddts.net Fri May 3 17:53:47 2002 From: dman@dman.ddts.net (dman) Date: Fri, 3 May 2002 11:53:47 -0500 Subject: [Zope] zope hangs In-Reply-To: <3CD2ACBC.2090301@goa.hu> References: <20020503005908.GA17807@dman.ddts.net> <3CD1F74E.8040609@goa.hu> <20020503135620.GB22124@dman.ddts.net> <3CD2ACBC.2090301@goa.hu> Message-ID: <20020503165347.GE23461@dman.ddts.net> --vni90+aGYgRvsTuO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 03, 2002 at 05:29:00PM +0200, marci wrote: | dman wrote: | >That doesn't sound too good :-(. After reading the reports I had an | >idea, ..., moving /var/lib/zope/Products out of the way allows me to |=20 | did you mean /usr/lib/zope/lib/python/Products ? No. Excerpt from /usr/share/doc/zope/README.Debian.gz beginning on line 29 : Note that you can install local products in /var/lib/zope/Products. The import directory is /var/lib/zope/import. Extensions should be installed into /var/lib/zope/Extensions. You'll have to create these directories on your own. You should not touch /usr/lib/zope and subdirectories, since it is reserved for Debian packages only. The Products I had installed aren't available as packages (AFAIK). -D --=20 "GUIs normally make it simple to accomplish simple actions and impossible to accomplish complex actions." --Doug Gwyn (22/Jun/91 in comp.unix.wizards) =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --vni90+aGYgRvsTuO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzSwJsACgkQO8l8XBKTpRTWHQCdEYx0Z3qbP/rUk3RtE5DOi1jI FkMAn1krBYO9SeNOACf+Ay7TU+c3+hT7 =OzAS -----END PGP SIGNATURE----- --vni90+aGYgRvsTuO-- From darcyc@engin.umich.edu Fri May 3 17:58:39 2002 From: darcyc@engin.umich.edu (Darcy Clark) Date: Fri, 3 May 2002 12:58:39 -0400 Subject: [Zope] Global Product Registry and broken ZClass instances ? Message-ID: <1BC88FD1968349449B02BF6018227F34016E0E48@engin-mail1.engin.umich.edu> I was happily working on my Zope server this morning when all of a sudden all instances of one of my custom ZClasses broke (i.e. they were no longer editable through the ZMI). Initially I though it was something that I had done, but nothing I had done recently could have possibly had any effect on this particular ZClass. So then I went back through the transaction log on the off chance that I had done something that might have caused the problem and I found this transaction : "Rebuilt global product registry by Zope 2002-05-03 10:53:21 AM" It's something that Zope did automatically without my involvement and it was exactly the same time that I first saw the problem. Anyway I undid this transaction and all is peachy again. My ZClass is based on few other Products, but all the other Products are still installed and they are all working to the best of my knowledge. Why would rebuilding the Global Product Registry cause all of my ZClass instances to break ? What the heck is the Global Product Registry ? I don't see mention of it in any of the documentation. thanks for any info., Darcy From casey@zope.com Fri May 3 18:09:55 2002 From: casey@zope.com (Casey Duncan) Date: Fri, 3 May 2002 13:09:55 -0400 Subject: [Zope] Two Cosmetic Issues In-Reply-To: <5.1.0.14.0.20020503092012.029f4ce8@mail.hurrah.com> References: <5.1.0.14.0.20020503092012.029f4ce8@mail.hurrah.com> Message-ID: <200205031309.55906.casey@zope.com> On Friday 03 May 2002 12:25 pm, Dan Shafer allegedly wrote: > I use Zope on both Mac and Win2K in the course of a day. In recent week= s, I=20 > have moved my Mac environment to OS X. I have noticed a couple of cosme= tic=20 > issues that, while really cosmetic, do have an impact on the usability = of=20 > the ZMI for me. >=20 > First, on both Windows and Mac, the "Narrower" button seems to have zer= o=20 > effect. I click it many, many times because I think perhaps the increme= ntal=20 > change built in is small. It never moves. Not a pixel. This is a proble= m=20 > because for some reason the width at which it is seton my Win2K box is = such=20 > that I get horizontal scrolling in object editors that extend the width= of=20 > the available area. This makes editing a real pain. On my Mac, for reas= ons=20 > having, I'm sure, to do with arcania like aspect ratios, I don't get=20 > horizontal scrolling but I still cannot make the window narrower. This will be fixed in Zope 2.6. The current CVS contains the fix. -Casey From srengasamy@firstam.com Fri May 3 18:16:55 2002 From: srengasamy@firstam.com (Rengasamy, Samy) Date: Fri, 03 May 2002 12:16:55 -0500 Subject: [Zope] Quick Slide Show or Presentation on Zope Message-ID: I am supposed to do a presentation on Zope for my co-workers. I was wondering if any of you have already done it and can you share it, Please. Thanks, Samy Rengasamy. From pydan@danshafer.com Fri May 3 18:36:46 2002 From: pydan@danshafer.com (Dan Shafer) Date: Fri, 03 May 2002 10:36:46 -0700 Subject: [Zope] Two Cosmetic Issues In-Reply-To: <200205031309.55906.casey@zope.com> References: <5.1.0.14.0.20020503092012.029f4ce8@mail.hurrah.com> <5.1.0.14.0.20020503092012.029f4ce8@mail.hurrah.com> Message-ID: <5.1.0.14.0.20020503103629.029c2d40@mail.hurrah.com> Fantastic! Glad to hear it's a bug and not a feature I don't understand! ;-) At 01:09 PM 5/3/2002 -0400, Casey Duncan wrote: >On Friday 03 May 2002 12:25 pm, Dan Shafer allegedly wrote: > > I use Zope on both Mac and Win2K in the course of a day. In recent > weeks, I > > have moved my Mac environment to OS X. I have noticed a couple of cosmetic > > issues that, while really cosmetic, do have an impact on the usability of > > the ZMI for me. > > > > First, on both Windows and Mac, the "Narrower" button seems to have zero > > effect. I click it many, many times because I think perhaps the > incremental > > change built in is small. It never moves. Not a pixel. This is a problem > > because for some reason the width at which it is seton my Win2K box is > such > > that I get horizontal scrolling in object editors that extend the width of > > the available area. This makes editing a real pain. On my Mac, for reasons > > having, I'm sure, to do with arcania like aspect ratios, I don't get > > horizontal scrolling but I still cannot make the window narrower. > >This will be fixed in Zope 2.6. The current CVS contains the fix. > >-Casey From dieter@handshake.de Fri May 3 18:27:30 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 3 May 2002 19:27:30 +0200 Subject: [Zope] Successful use of ZPT and macros in Python Product? In-Reply-To: <5.1.0.14.0.20020503141337.01f17ae0@mail.grenna.net> References: <5.1.0.14.0.20020503141337.01f17ae0@mail.grenna.net> Message-ID: <15570.51330.444443.565762@linux.local> Peter Bengtsson writes: > Successful use of ZPT and macros in Python Product? > ..., has anybody seen that? Would you accept CMF as an example? Dieter From dieter@handshake.de Fri May 3 18:19:17 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 3 May 2002 19:19:17 +0200 Subject: [Zope] properties security ? In-Reply-To: References: Message-ID: <15570.50837.62592.292456@linux.local> =?ISO-8859-1?Q?Juli=E1n_Mu=F1oz?= writes: > ... > Or is storing sensible datas in folder properties a really bad idea ? Zope security framework gives you some flexibility, but you cannot do every special requirements completely straight forward. Put your sensible properties in special objects (rather than on folders used for organizing insensible content). Protect these special objects in a special way (e.g. remove "Access contents information" from Anonymous). Of course, access to these properties now becomes a bit more cumbersome, but increased security has its price... Dieter From dieter@handshake.de Fri May 3 18:29:16 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 3 May 2002 19:29:16 +0200 Subject: [Zope] Inheritance (?) problem In-Reply-To: <15570.39511.177903.32758@gargle.gargle.HOWL> References: <15570.39511.177903.32758@gargle.gargle.HOWL> Message-ID: <15570.51436.361237.690091@linux.local> Luca Manini writes: > I have a pure-python (no Zope classes around) 'form' class like this: > > class form: > > def __init__(self, id): > self.id = id > > def actionTarget(self, REQUEST={}): > "Main entry point." > return 'foo' > > >From this class I derive a subclass > > class zopeForm (SimpleItem.SimpleItem, form): > > def actionTarget(self, REQUEST={}): > "Main entry point." > # ... other thing done here... > form.actionTarget (self, REQUEST) > > The zopeForm class is part of a product so I have instances of > zopeForm (say 'zf') in a folder (say 'foo'). Now I would like to visit > the URL > > ...../foo/zf/actionTarget > > but I get the following error: > > Error Type: TypeError > Error Value: unbound method must be called with > class instance 1st argument > > but 'self' in the call to form.actionTarget should be a zopeForm > instance! This is an ExtensionClass/Python incompatibility, documented with ExtensionClass. You need "inheritedAttribute" to work around the problem, documented too. Dieter From dieter@handshake.de Fri May 3 18:05:34 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 3 May 2002 19:05:34 +0200 Subject: [Zope] Set _allowed_meta_types on folder instances without creating a new product? In-Reply-To: <000001c1f21d$6a3c88d0$6401a8c0@laptop> References: <15569.39051.289896.236509@linux.local> <000001c1f21d$6a3c88d0$6401a8c0@laptop> Message-ID: <15570.50014.124966.701555@linux.local> Jeff Kowalczyk writes: > > it would be very useful to apply this > > to existing folders which are specialized in purpose, but > > require no special class of their own. > > [Dieter] To apply it to existing folder, you need to redefine their > "all_meta_types" method - in a similar spirit the "mxmObjectManager" > did... > > How do I redefine a method (as opposed to setting a property) on an > existing object? > > I don't want to subclass Folder into a full metatype for each > combination of metatypes allowed, but I could see making a series of def > methods: scripts or a product module that I could 'attach' as overrides > to instances of regular, already created Folders as needed. Is that > possible? I did not meant, that you modify "all_meta_types" for each folder type you want to restrict but that you combine the "_allowed_meta_types" with a single modified "all_meta_types" that respects this attribute when it is available. Your options for such a modification: * directly modify the source you want to retain a patch in order to be able to apply it to new Zope releases or you work with CVS (and its "import" command). * make a monkey patch (this modifies the class at initialization time) There are documentation about this at Zope.org. "TransparentFolder" is an example how to make a monkey patch for "ObjectManager". Dieter From dieter@handshake.de Fri May 3 18:12:41 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 3 May 2002 19:12:41 +0200 Subject: [Zope] How to use a ZSQLMethod from a Python Script In-Reply-To: <0C4BCA0F254FD24D841A296F62878BF48F70@www.emun.com> References: <0C4BCA0F254FD24D841A296F62878BF48F70@www.emun.com> Message-ID: <15570.50441.694509.169643@linux.local> Igor Leturia writes: > > > I want to call a ZSQLMethod from a Python Script. In Zope.org, I > > > couldn't find a specific how-to on the subject, but accidentally I > found > > > some other how-to's in which there are examples that use ZSQLMethods > > > from Python scripts. It seemed very easy, so I tried it that way: > > > > > > res = context.mysqlmethod() > > > > > > It gives an error message, 'resource not found'. Both the > >script and > > > the sql method are in the same folder. What's going wrong? > .... > > This is the traceback when running in debug mode: > Traceback (innermost last): > File C:\Intranet\lib\python\Zope\__init__.py, line 221, in > zpublisher_exception_hook > (Object: Traversable) > File C:\Intranet\lib\python\ZPublisher\Publish.py, line 173, in > publish > File C:\Intranet\lib\python\ZPublisher\HTTPResponse.py, line 308, in > setBody > File C:\Intranet\lib\python\ZPublisher\HTTPResponse.py, line 547, in > notFoundError > NotFound: (see above) Either this tranceback comes from a secondary problem (not very likely) or it did not happen in your python script at all. Are you sure, your URL is correct? Furthermore, are you sure, this is debug mode. When I get similar errors (debug mode), I see: : Cannot locate object at: http://localhost:8080/Haufe/Partner/Logos/cccc : .... : : File /home/dieter/Haufe/src/Zope/lib/python/ZPublisher/BaseRequest.py, line 308, in traverse : File /home/dieter/Haufe/src/Zope/lib/python/ZPublisher/HTTPResponse.py, line 482, in debugError : NotFound: (see above) Dieter From dieter@handshake.de Fri May 3 17:17:40 2002 From: dieter@handshake.de (dieter@handshake.de) Date: Fri, 3 May 2002 18:17:40 +0200 Subject: [OT] Emacs versus Vim (was: Re: [Zope] color-syntax editor for dtml) In-Reply-To: <3CD0F172.9030805@tiscali.cz> References: <47BCBF3251382B45893950D07804082475AFD8@novamail.nv.cc.va.us> <00ff01c1f13c$53a07140$f70510ac@mitretek.org> <200205011433.28511.casey@zope.com> <01b001c1f14b$275eccd0$f70510ac@mitretek.org> <1020284712.1557.21.camel@npa01zz001> <3CD0F172.9030805@tiscali.cz> Message-ID: <15570.47140.600669.457233@linux.local> Milos Prudek writes: > Emacs is very different from vim (or vice-versa :-)), so people who us= e=20 > mainly vim and are very proficient in vim find it difficult to adapt t= o. Do you know "viper"? It provides most of "vi" in Emacs. Viele Gr=FC=DFe Dieter From davismarques169@hotmail.com Fri May 3 18:43:19 2002 From: davismarques169@hotmail.com (davis marques) Date: Fri, 03 May 2002 10:43:19 -0700 Subject: [Zope] zope w. apache security question Message-ID: I'm running Zope with Apache/PCGI and am wondering if there's any means by which you can prevent people from getting the /manage login dialog from outside a designated domain or IP range? Davis _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From mail@peterbe.com Fri May 3 18:32:55 2002 From: mail@peterbe.com (Peter Bengtsson) Date: Fri, 03 May 2002 18:32:55 +0100 Subject: [Zope] ZClasses vs. Python Products In-Reply-To: Message-ID: <5.1.0.14.0.20020503183053.01f1fa68@mail.grenna.net> As a quick guideline-answer: ZClasses are more convenient for small plugins Python Products are better suited for bigger projects. At 12:33 2002-05-03 -0700, Sean Hastings wrote: >Help! > >I Have chosen Zope to do a new web app. It is a 2 man project - 1 >Programer - 1 UI Designer with programing experience. > >I am trying to decide whether to build the App using Zclasses or Python >Product. > >I found this URL >"http://zdp.zope.org/portals/developers/designstrategies/products" >It lists advantages of Python product as: > 1. You can upgrade them. > 2. You can write all of your logic in Python. > 3. You write your UI in DTML. > 4. You can manage all of this using CVS > >However: > 1. it then says why it is harder to change things in a python product. > 2. I can still use python scrips with Zclasses > 3. I can still write the UI in DTML > 4. There appears to be a CVS extension for Zope available. > >On Zope IRC I was told that there are some scalability, stability, and code >mainatanance issues issues with Zclasses but did not recieve any elaboration >on that. What are the issues? > >It seems like I lose a lot of the advantages of Zope's second veiw by using >a Python Product - in that I can't have my UI person atatch DTML methods to >the classes I write. > >What future developments can I expect? Will ZClasses become better in the >future? Will more second Veiw handles be added for Python Products? Might >code be written to generate a Python Product directly from a ZClass based >Product? > >The consensus on Zope IRC was that "ZClasses suck", but I am failing to see >the advantage of not just building a product with ZClasses from within Zope. >What am I Missing? Can anyone direct me to further information - or give me >an example of a situation where I would be in bad shape to have chosen >ZClasses over Python Product? > >I need to make this decision soon. > >--Sean Hastings >--sean@havenco.com > > > > >_______________________________________________ >Zope maillist - Zope@zope.org >http://lists.zope.org/mailman/listinfo/zope >** No cross posts or HTML encoding! ** >(Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From pieterb@gewis.nl Fri May 3 19:00:27 2002 From: pieterb@gewis.nl (Pieter Biemond prive ) Date: Fri, 3 May 2002 20:00:27 +0200 (CEST) Subject: [Zope] Zope/Apache and Microsoft Active Directory Message-ID: <20020503180027.1CF7F21133@gewis.win.tue.nl> Hello, Did anybody ever get Zope and/or Apache to authenticate against a Micrsoft Active Directory? I tried using LDAPUserfolder on Zope 2.5.1/Python 2.1.3 but I'm getting all sorts of errors, e.g. Logging: ldapuser not found (getUser) User-info: (###Error###: ldap.OPERATIONS_ERROR, {'desc': 'Operations error', 'info': '000020D6: SvcErr: DSID-03100690, problem 5012 (DIR_ERROR), data 0\n'}) Did anybody else have more luck, or any idea where to start debugging? Pieter From mail@peterbe.com Fri May 3 18:49:41 2002 From: mail@peterbe.com (Peter Bengtsson) Date: Fri, 03 May 2002 18:49:41 +0100 Subject: [Zope] Successful use of ZPT and macros in Python Product? In-Reply-To: <15570.51330.444443.565762@linux.local> References: <5.1.0.14.0.20020503141337.01f17ae0@mail.grenna.net> <5.1.0.14.0.20020503141337.01f17ae0@mail.grenna.net> Message-ID: <5.1.0.14.0.20020503184732.01f085d0@mail.grenna.net> At 19:27 2002-05-03 +0200, Dieter Maurer wrote: >Peter Bengtsson writes: > > Successful use of ZPT and macros in Python Product? > > ..., has anybody seen that? >Would you accept CMF as an example? Not sure of the difference between the way you use them in CMF and the way you use them in regular python products. If it is the same then, I vaguely remember that this Plone thing might be the one. All my little .zpt files start with and this doesn't work unless StandardLook has once been visited. From pw_lists@slinkp.com Fri May 3 19:35:56 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Fri, 3 May 2002 11:35:56 -0700 Subject: [Zope] ZClasses vs. Python Products In-Reply-To: ; from sean@havenco.com on Fri, May 03, 2002 at 12:33:44PM -0700 References: Message-ID: <20020503113556.C12591@slinkp.com> Just to comment on a couple of your issues, I don't know about all of them... On Fri, May 03, 2002 at 12:33:44PM -0700, Sean Hastings wrote: > However: > 1. it then says why it is harder to change things in a python product. First of all, the "__setstate__()" tip they mention is pretty easy and will update all existing objects. Secondly, __setstate__() is only necessary for *data* attributes; methods are automatically updated when the Product code is loaded, e.g. when Zope starts. Thirdly, you can force Product code to reload by using the Refresh product. Saves a *lot* of time vs. restarting Zope every time you want to check some changes. > 2. I can still use python scrips with Zclasses Yes, but it's a bit hobbled. See e.g. the Advanced Scripting chapter of the Zope Book: http://www.zope.org/Documentation/ZopeBook/ScriptingZope.stx ... the section "Security Restrictions". Code in Python Products can do *anything*. --PW "Welcome to Muppet Labs, where the future is made - today!" From barryp@medicine.nodak.edu Fri May 3 19:58:07 2002 From: barryp@medicine.nodak.edu (Barry Pederson) Date: Fri, 03 May 2002 13:58:07 -0500 Subject: [Zope] zope w. apache security question References: Message-ID: <3CD2DDBF.9000806@medicine.nodak.edu> davis marques wrote: > I'm running Zope with Apache/PCGI and am wondering if there's any means > by which you can prevent people from getting the /manage login dialog > from outside a designated domain or IP range? Maybe something in the apache config like: order deny, allow deny from all allow from 192.168.1.0/24 to deny access to addresses outside the 192.168.1.x subnet (for example) to things that end with '/manage' or have '/manage/' somewhere else (haven't tried it in apache, but that RE seems to work ok in Python) Barry From jmartinez@eMediaMillWorks.com Fri May 3 19:58:13 2002 From: jmartinez@eMediaMillWorks.com (Jorge O. Martinez) Date: Fri, 03 May 2002 14:58:13 -0400 Subject: [Zope] Quick Slide Show or Presentation on Zope References: Message-ID: <3CD2DDC5.2070802@emediamillworks.com> Hi: I found this useful to understand what zope is... hope it helps... http://www.bris.ac.uk/ISC/zope/zfest/zope/ Regards, Jorge M. Rengasamy, Samy wrote: > I am supposed to do a presentation on Zope for my co-workers. > I was wondering if any of you have already done it and can you share it, > Please. > > Thanks, > > Samy Rengasamy. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > -- Jorge O. Martinez MIS Senior Associate eMediaMillWorks 1100 Mercantile Lane, Suite 119 Largo, MD 20774 E-mail => jmartinez@eMediaMillWorks.com Phone => (301)883-2482 ext. 105 Fax => (301)883-9754 From jlagarde@bigfoot.com Fri May 3 20:06:12 2002 From: jlagarde@bigfoot.com (jlagarde@bigfoot.com) Date: Fri, 3 May 2002 12:06:12 -0700 Subject: [Zope] Anybody working on docutils (ReStructuredText) stuff? Message-ID: <000201c1f2d5$9e440be0$c206a8c0@lagardej> Howdy, I notice that the 0.1 version of docutils (http://docutils.sourceforge.net) has been recently released. Tried it, and it seems to do a pretty good job of rendering documents, even at this early version number. Anybody currently working on using this somewhere in Zope? I've been experimenting with backtalk recently, and although the backtalk part is great, the structured text part just does not do a good enough job for any serious document publishing IMO (see http://docutils.sourceforge.net/spec/rst/problems.html for a much better descriptions of the problems with STX than I could ever give). I had a look at the sources of backtalk and docutils (I was already somewhat familiar with the STX code), and the interfaces seem different enough that a replacement of STX with docutils in backtalk seems nontrivial (to me anyway). I guess that a simple docutilsDocument product should be relatively straightforward though. At this point I will probably still try to use the current version of backtalk to do what I want, but it requires a lot of work on the original docs to make them come out bearably OK looking. However, If someone reveals that they're working on that stuff and may have something out shortly, I might work on something else instead for a while in the hope of using a docutils version later on. BTW, thanks to Chris McDonough and other contributors for the current version of backtalk, and to Richard Jones for pointing me to ReStructuredText(now wrapped inside docutils), as I was working on improving structured text myself at the time, clearly a futile effort given the depth of thought that went into ReStructuredText. Cheers, Jean From jens@zope.com Fri May 3 20:31:45 2002 From: jens@zope.com (Jens Vagelpohl) Date: Fri, 3 May 2002 15:31:45 -0400 Subject: [Zope] Zope/Apache and Microsoft Active Directory In-Reply-To: <20020503180027.1CF7F21133@gewis.win.tue.nl> Message-ID: <674866BA-5ECC-11D6-878D-003065C7DEAE@zope.com> LDAPUserFolder does not support Active Directory. this is not likely to change any time soon. the reason is that Active Directory, just like any M$ product, does not use well-defined standards like most other LDAP server products do. jens On Friday, May 3, 2002, at 02:00 , Pieter Biemond (prive) wrote: > Hello, > > Did anybody ever get Zope and/or Apache to authenticate against a > Micrsoft Active Directory? I tried using LDAPUserfolder on Zope > 2.5.1/Python 2.1.3 but I'm getting all sorts of errors, e.g. > > Logging: > ldapuser not found (getUser) > > User-info: > (###Error###: ldap.OPERATIONS_ERROR, {'desc': 'Operations error', > 'info': '000020D6: SvcErr: DSID-03100690, problem 5012 (DIR_ERROR), data > 0\n'}) > > Did anybody else have more luck, > or any idea where to start debugging? > > Pieter > From robert@redcor.ch Fri May 3 20:53:34 2002 From: robert@redcor.ch (Robert Rottermann) Date: Fri, 3 May 2002 21:53:34 +0200 Subject: [Zope] Problem with ZODCBD and Zope 2.51 (urgent!) Message-ID: <000701c1f2dc$35bb2a70$d6c4a2d9@karin> Hi there, I installed ZODBCDB (newest version for 2.4 with Python 2.1) Under Python 2.4 everything works fine. Under 2.51 when I try execute a SQL-Statement like select * from Employees where Name = 'David' I get the following error: ---------------------------------------------------------------------------- ---- Error, sql.error: ('07001', -3010, '[Microsoft][ODBC Microsoft Access Driver] 1 Parameter wurden erwartet, aber es wurden zu wenig Parameter \xfcbergeben.') --> Translation. 1 Parameter was expected, none where given ---------------------------------------------------------------------------- ---- SQL used: select * from Employees where Name = 'David' ---------------------------------------------------------------------------- ---- What is the problem? I am giving a speech on Zope next week and would like to show a DB connection to MS-Access. Therefore help is needed urgently. Thank you very much www.redcor.ch From paul.browning@bristol.ac.uk Fri May 3 21:24:30 2002 From: paul.browning@bristol.ac.uk (Paul Browning) Date: Fri, 03 May 2002 21:24:30 +0100 Subject: [Zope] Quick Slide Show or Presentation on Zope Message-ID: <31258667.1020461069@[192.168.1.2]> --On 03 May 2002 14:58 -0400 "Jorge O. Martinez" wrote: > Hi: > > I found this useful to understand what zope is... hope it helps... > > http://www.bris.ac.uk/ISC/zope/zfest/zope/ Uh-oh. That's a bit dated. Slightly less dated (but still dated) is http://www.business.city.ac.uk/ero/150101.html though the HTML version seems to have gone walkabout. See also the Pro Zope Material at http://www.zope.org/Members/BwanaZulia/zope.html Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ From Jean-Francois.Doyon@CCRS.NRCan.gc.ca Fri May 3 21:26:50 2002 From: Jean-Francois.Doyon@CCRS.NRCan.gc.ca (Jean-Francois.Doyon@CCRS.NRCan.gc.ca) Date: Fri, 3 May 2002 16:26:50 -0400 Subject: [Zope] standard_error_message not being used on 404's ??? Message-ID: <7CDD7B94357FD5119E800002A537C46E23008D@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, For some reason, it seems that my "standard_error_message" is not being = used on 404 errors !? It get s used by Zope when internal errors occur, such as problems with Python scripting or something, but not on 404's ... Is this normal ? How do I alter the messages for 404's ? Thank you, Jean-Fran=E7ois Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410 From pydan@danshafer.com Fri May 3 21:53:41 2002 From: pydan@danshafer.com (Dan Shafer) Date: Fri, 03 May 2002 13:53:41 -0700 Subject: [Zope] Either I'm an Idiot or dtml-in is broken and/or poorly documented Message-ID: <5.1.0.14.0.20020503134332.029f4900@mail.hurrah.com> I know lots of you use to iterate over stuff. So I assume it works. But I am absolutely bewildered. I cannot get the simplest example of this function to work. Here's my really difficult test, stored in a DTML document (opening angle brackets omitted): dtml-var standard_html_header> dtml-in objectValues> title:
/dtml-in dtml-var standard_html_footer> Call me goofy but I sort of expect this to produce a list of the titles or IDs of all the objects in the folder in which the DTML Document is stored. It never produces any output whatsoever. I put in a dtml-else that prints a heading "Nothing Found" and that always prints. This is frustrating because as far as I can tell, I am following examples in all three of the Zope books I own to the letter, yet I cannot produce any output at all. Nothing. Nada. Zip. I actually *need* to be able to iterate over all the DTML Methods and DTML Documents in this folder, check a property's value, and based on that value include or exclude the documents and their URLs from a table or list. As you can see, for reasons I just don't understand, I'm very far from that goal. I've searched PQR, I've searched the online tips and HowTos. What in the world could I be doing wrong here? I *have* placed this document in a folder which contains other objects: DTML documents and methods, Python scripts, and other folders. I have also tried substituting objectItems for objectValues. No joy. I've tried enclosing objectValues and objectItems in quotation marks and calling them as expressions. I've tried making the argument to objectValues and objectItems a one-item list with a string value. I am now officially lost and desperate. From cbeaumon@msri.org Fri May 3 22:49:15 2002 From: cbeaumon@msri.org (Chris Beaumont) Date: Fri, 3 May 2002 13:49:15 -0800 Subject: [Zope] DCOracle 2 and long text fields..How to use them? Message-ID: Hello, Maybe someone here can help.. I had thought that DCOracle 2 (now) supported long text fields, but when I tried to insert more than 2k into one (after upgrading) I got a 'string literal too long' error from Oracle. Is there some trick to this or am I running into a DCO2 or Oracle limitation? I'm using Oracle 7 which (I think) is supposed to support up to 32k in long text fields.. I'd hate to have to continue working around this in the way I have, by using Oracle7's 2k(max) varchar2 columns and splitting text in Python on input/concatenating them together on output.. That is just ugly.. There must be a better way... Also, is there any way to use the LONG RAW datatype to store images? We are using Zope with Oracle as a CMS and need the long text capability for descriptions within web pages.. BTW...We are a nonprofit and can't afford the upgrade to Oracle 8/9.. etc. -Chris From mqm@magma.ca Fri May 3 21:58:07 2002 From: mqm@magma.ca (Marcio Marchini) Date: Fri, 3 May 2002 16:58:07 -0400 Subject: [Zope] Quick Slide Show or Presentation on Zope In-Reply-To: <31258667.1020461069@[192.168.1.2]> Message-ID: <001d01c1f2e5$3a0715e0$0100a8c0@celeron2k> > See also the Pro Zope Material at > > http://www.zope.org/Members/BwanaZulia/zope.html For those who care, The Xen link is broken: Xen - A web-based project management system, based in Zope. (at least for me) marcio From Oleg Broytmann Fri May 3 21:57:36 2002 From: Oleg Broytmann (Oleg Broytmann) Date: Sat, 4 May 2002 00:57:36 +0400 Subject: [Zope] Either I'm an Idiot or dtml-in is broken and/or poorly documented In-Reply-To: <5.1.0.14.0.20020503134332.029f4900@mail.hurrah.com>; from pydan@danshafer.com on Fri, May 03, 2002 at 01:53:41PM -0700 References: <5.1.0.14.0.20020503134332.029f4900@mail.hurrah.com> Message-ID: <20020504005736.B24778@phd.pp.ru> On Fri, May 03, 2002 at 01:53:41PM -0700, Dan Shafer wrote: > Here's my really difficult test, stored in a DTML document (opening angle > brackets omitted): > > dtml-in objectValues> The object is a DTML Document. DTML Documents have its own namespaces, and thus objectValues() iterates over the Document subobjects. Alas, the list of subobjects is empty - DTML Documents do not have subobjects. Your object should be DTML Method! DTML Methods do not hve its own namespaces, and objectValues() will happily iterate over objects in a folder. Another approach will be in your DTML Document. Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From dman@dman.ddts.net Fri May 3 22:15:48 2002 From: dman@dman.ddts.net (dman) Date: Fri, 3 May 2002 16:15:48 -0500 Subject: [Zope] logout for users? Message-ID: <20020503211548.GA28338@dman.ddts.net> --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Is there a way I can provide for an authenticated user to un-authenticate themself? I don't really expect this to be useful for most users, but when testing my application I need to log on as several different users and see that each one works. It would be nice if I could do that without restarting my browser. -D --=20 Contrary to popular belief, Unix is user friendly. It just happens to be selective about who it makes friends with. -- Dave Parnas =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzS/gQACgkQO8l8XBKTpRSe5gCeNAsUdOE969op+NOO34gYWHVJ OUwAoMimPqhHpE/BlzQQZmMkiQXeKu1e =61pU -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY-- From dman@dman.ddts.net Fri May 3 22:23:55 2002 From: dman@dman.ddts.net (dman) Date: Fri, 3 May 2002 16:23:55 -0500 Subject: [Zope] ZRoundup Message-ID: <20020503212355.GB28338@dman.ddts.net> --NDin8bjvE/0mNLFQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I need to choose an issue tracking system to deploy at my current employer. Roundup looks good and it even has an existing zope product. However I ran into a problem installing it and haven't gotten any info on the roundup mailling list. I installed the ZRoundup product as usual and it is listed in the "add" menu. However I get this error when I click the submit button to add an instance : ~~~~ Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: http://deborah.iteams.org:9673/roundup-support/manage_addZRoundup ~~~~ The Folder where I am trying to add the ZRoundup object is http://deborah.iteams.org:9673/roundup-support/. The product contains the following snippets in __init__.py and ZRoundup.py respectively : ~~~~ # product initialisation import ZRoundup def initialize(context): context.registerClass( ZRoundup, meta_type =3D 'Z Roundup', constructors =3D ( ZRoundup.manage_addZRoundupForm, ZRoundup.manage_addZRoundup ) ) ~~~~ ~~~~ modulesecurity.declareProtected('View management screens', 'manage_addZRoundupForm')=20 modulesecurity.declareProtected('Add Z Roundups', 'manage_addZRoundup') def manage_addZRoundup(self, id, instance_home, REQUEST): """Add a ZRoundup product """ ~~~~ I don't know anything about developing Products. Can anyone tell me what is wrong with it? -D --=20 A wise servant will rule over a disgraceful son, and will share the inheritance as one of the brothers. Proverbs 17:2 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --NDin8bjvE/0mNLFQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzS/+sACgkQO8l8XBKTpRT3EQCaAmMAJXsNOfEEwW6sEagzF2vu k3UAoKBN9oYoPQcOaRSqslH1ZyWPYgiA =HEQ0 -----END PGP SIGNATURE----- --NDin8bjvE/0mNLFQ-- From cbrown@ep.newtimes.com Fri May 3 23:14:09 2002 From: cbrown@ep.newtimes.com (Colyn Brown) Date: Fri, 03 May 2002 14:14:09 -0800 Subject: [Zope] logout for users? In-Reply-To: <20020503211548.GA28338@dman.ddts.net> Message-ID: simply use manage_zmi_logout > From: dman > Date: Fri, 3 May 2002 16:15:48 -0500 > To: zope@zope.org > Subject: [Zope] logout for users? > > > Is there a way I can provide for an authenticated user to > un-authenticate themself? I don't really expect this to be useful for > most users, but when testing my application I need to log on as > several different users and see that each one works. It would be nice > if I could do that without restarting my browser. > > -D > > -- > > Contrary to popular belief, Unix is user friendly. > It just happens to be selective about who it makes friends with. > -- Dave Parnas > > GnuPG key : http://dman.ddts.net/~dman/public_key.gpg > > From dman@dman.ddts.net Fri May 3 22:51:14 2002 From: dman@dman.ddts.net (dman) Date: Fri, 3 May 2002 16:51:14 -0500 Subject: [Zope] logout for users? In-Reply-To: References: <20020503211548.GA28338@dman.ddts.net> Message-ID: <20020503215113.GC28338@dman.ddts.net> --Fig2xvG2VGoz8o/s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 03, 2002 at 02:14:09PM -0800, Colyn Brown wrote: | > From: dman | >=20 | > Is there a way I can provide for an authenticated user to | > un-authenticate themself? I don't really expect this to be useful for | > most users, but when testing my application I need to log on as | > several different users and see that each one works. It would be nice | > if I could do that without restarting my browser. |=20 | simply use manage_zmi_logout Thanks! That works perfectly. -D --=20 The light of the righteous shines brightly, but the lamp of the wicked is snuffed out. Proverbs 13:9 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --Fig2xvG2VGoz8o/s Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzTBlEACgkQO8l8XBKTpRRHTACfXsGzKDDlCq94245Zis6RJJba p/YAoKE717PgXEhyiMWZZsgtFiZHzpDY =AEXv -----END PGP SIGNATURE----- --Fig2xvG2VGoz8o/s-- From =?ISO-8859-15?B?R2VpciBC5mtob2x0?= Fri May 3 22:52:12 2002 From: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= (=?ISO-8859-15?B?R2VpciBC5mtob2x0?=) Date: Fri, 3 May 2002 23:52:12 +0200 Subject: [Zope] DCOracle 2 and long text fields..How to use them? In-Reply-To: References: Message-ID: <6714257951.20020503235212@funcom.com> Hello Chris, You have to use bind-variables or a stored procedure. Oracle or the adapter (not sure which) don't want those huge strings in the middle of an SQL statement it has to parse.. :-) hth Friday, May 3, 2002, 11:49:15 PM, you wrote: CB> Hello, CB> Maybe someone here can help.. CB> I had thought that DCOracle 2 (now) supported long text fields, but CB> when I tried to insert more than 2k into one (after upgrading) I got CB> a 'string literal too long' error from Oracle. CB> Is there some trick to this or am I running into a DCO2 or Oracle limitation? CB> I'm using Oracle 7 which (I think) is supposed to support up to 32k CB> in long text fields.. CB> I'd hate to have to continue working around this in the way I have, CB> by using Oracle7's 2k(max) varchar2 columns and splitting text in CB> Python on input/concatenating them together on output.. That is just CB> ugly.. CB> There must be a better way... CB> Also, is there any way to use the LONG RAW datatype to store images? CB> We are using Zope with Oracle as a CMS and need the long text CB> capability for descriptions within web pages.. CB> BTW...We are a nonprofit and can't afford the upgrade to Oracle 8/9.. etc. CB> -Chris -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team From rjones@ekit-inc.com Sat May 4 00:32:40 2002 From: rjones@ekit-inc.com (Richard Jones) Date: Sat, 4 May 2002 09:32:40 +1000 Subject: [Zope] ZRoundup In-Reply-To: <20020503212355.GB28338@dman.ddts.net> References: <20020503212355.GB28338@dman.ddts.net> Message-ID: <200205040932.40825.rjones@ekit-inc.com> On Sat, 4 May 2002 07:23, dman wrote: > I need to choose an issue tracking system to deploy at my current > employer. Roundup looks good and it even has an existing zope > product. However I ran into a problem installing it and haven't > gotten any info on the roundup mailling list. I responded to your query in that mailing list with a request for additional information, which you did not reply to. I assumed the problem had gone away. > I installed the ZRoundup product as usual and it is listed in the > "add" menu. However I get this error when I click the submit button > to add an instance : Do you get any errors when Zope starts up? Are there any errors in the Products entry of the Control Panel? > ~~~~ > Site Error > > An error was encountered while publishing this resource. > > Resource not found > Sorry, the requested resource does not exist. > > Check the URL and try again. > > Resource: > http://deborah.iteams.org:9673/roundup-support/manage_addZRoundup > ~~~~ Is any further information embedded in this page if you view the source? > The Folder where I am trying to add the ZRoundup object is > http://deborah.iteams.org:9673/roundup-support/. > > The product contains the following snippets in __init__.py and > ZRoundup.py respectively : > > ~~~~ > # product initialisation > import ZRoundup > def initialize(context): > context.registerClass( > ZRoundup, meta_type = 'Z Roundup', > constructors = ( > ZRoundup.manage_addZRoundupForm, ZRoundup.manage_addZRoundup > ) > ) > ~~~~ > > ~~~~ > modulesecurity.declareProtected('View management screens', > 'manage_addZRoundupForm') > > modulesecurity.declareProtected('Add Z Roundups', 'manage_addZRoundup') > def manage_addZRoundup(self, id, instance_home, REQUEST): > """Add a ZRoundup product """ > ~~~~ > > > I don't know anything about developing Products. Can anyone tell me > what is wrong with it? Sorry, but without further information, it's really hard for me to see what's going wrong. Richard From dman@dman.ddts.net Sat May 4 01:46:30 2002 From: dman@dman.ddts.net (dman) Date: Fri, 3 May 2002 19:46:30 -0500 Subject: [Zope] ZRoundup In-Reply-To: <200205040932.40825.rjones@ekit-inc.com> References: <20020503212355.GB28338@dman.ddts.net> <200205040932.40825.rjones@ekit-inc.com> Message-ID: <20020504004630.GA30075@dman.ddts.net> --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 04, 2002 at 09:32:40AM +1000, Richard Jones wrote: | On Sat, 4 May 2002 07:23, dman wrote: | > I need to choose an issue tracking system to deploy at my current | > employer. Roundup looks good and it even has an existing zope | > product. However I ran into a problem installing it and haven't | > gotten any info on the roundup mailling list. |=20 | I responded to your query in that mailing list with a request for | additional information, which you did not reply to. I assumed the | problem had gone away. http://sourceforge.net/mailarchive/message.php?msg_id=3D1496623 (the archives are actually usable now, wow :-)) | > I installed the ZRoundup product as usual and it is listed in the | > "add" menu. However I get this error when I click the submit button | > to add an instance : |=20 | Do you get any errors when Zope starts up? Are there any errors in | the Products entry of the Control Panel? No to both. | > ~~~~ | > Site Error | > | > An error was encountered while publishing this resource. | > | > Resource not found | > Sorry, the requested resource does not exist. | > | > Check the URL and try again. | > | > Resource: | > http://deborah.iteams.org:9673/roundup-support/manage_addZRoundup | > ~~~~ |=20 | Is any further information embedded in this page if you view the | source? Hrm, I just tried again to see but it worked. Go figure. The only thing I can think of is that zope was stopped and restarted several times in between (along with many other changes, but not to roundup). | Sorry, but without further information, it's really hard for me to | see what's going wrong. Completely understandable. I'll assume you just missed my other message (referenced above). I'll play with it some more now and let you know if I run into any more difficulties. Thanks, -D --=20 The teaching of the wise is a fountain of life, turning a man from the snares of death. Proverbs 13:14 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzTL2YACgkQO8l8XBKTpRQ3ewCePb6i72MvkgynMFT1rr7w8l3z ZBEAoL0VSjJASTMx66MD4kOqlG65phUO =BfjX -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP-- From pydan@danshafer.com Sat May 4 02:10:38 2002 From: pydan@danshafer.com (Dan Shafer) Date: Fri, 03 May 2002 18:10:38 -0700 Subject: [Zope] Learning Python Syntax for Zope Objects and DTML Operations Message-ID: <5.1.0.14.0.20020503175900.029c8e38@mail.hurrah.com> What is the recommended way to learn how to carry out both API access and DTML equvalence in Python scripts? I find myself frequently spending what seems like an inordinate amount of time trying to translate the way DTML deals with something into a Python equivalent. Th Zope Book basically waves its arms and says to consult the appendices but they don't really tell someone lilke me, who doesn't already have a good idea what's going on, how to do this mapping. Only by way of example, I've been working on learning iterators in DTML and finding the syntax pretty opaque. If I have a collection of DTML Methods in a folder, some of them having a property called "status" and I want to produce a list of *only* those DTML methods that *have* that property and have it set to some value, I get into some gnarly DTML code. So I figure, what the heck,I know how to do iterators in Python in my sleep, I'll write a Python script. But I can't figure out how to reference the objects, let alone iterate over them. I'll probably figure this out myself before too long, but I'm looking for a basic learning experience here. Surely someone somewhere has written some definitive material on how to talk to Zope and ZODB via Python with sufficient detail to be usable? From yury@cozydot.com Sat May 4 05:09:13 2002 From: yury@cozydot.com (Yury German) Date: Sat, 4 May 2002 00:09:13 -0400 (EDT) Subject: [Zope] Redirection to a special page based on user ID In-Reply-To: References: Message-ID: <1171.192.168.0.50.1020485353.squirrel@webmail.cozydot.com> Hello All, I am looking for some help in something I am trying to do. What I want is to present someone with a log-on page that will authenticate them against zope ID's and then redirec them to a page based on their ID. So basically something in terms of mr. john smith logs in to page www.xxxyyy.com/login.html When the system authenticates the login for jsmith it redirects him to a directory www.xxxyyy.com/somedir/jsmith/ Does someone know how to do this???? If you have some code and a detailed explenation it would be wonderful. Thank you Yury From johnschinnerer@yahoo.com Sat May 4 09:09:44 2002 From: johnschinnerer@yahoo.com (John Schinnerer) Date: Sat, 4 May 2002 01:09:44 -0700 (PDT) Subject: [Zope] ZClasses vs. Python Products In-Reply-To: <5.1.0.14.0.20020503183053.01f1fa68@mail.grenna.net> Message-ID: <20020504080944.29131.qmail@web13407.mail.yahoo.com> Aloha, I have also gotten the impression, from mail archives etc. etc., that python is the overall better way to create products. So far I've done one simple Catalog-aware product with ZClasses and am about to try a simple python product. Thanks for the link on auto-updating attributes, etc. - I didn't know that wouldn't happen with python products. The main issue I read/heard about was inefficiencies and implementation issues using ZClasses with Catalogs (which is what I'm doing). I gathered that ZClasses use Catalogs sloppily and/or inefficiently, and there were a couple 'gotchas' and/or kludges in ZClass implementation that I can't recall offhand. I know that the auto-recataloging does not work as described in the ZB and ZDG examples...I have to manually poke the Catalog to catalog a changed attribute value. If anyone has a concise scoop on ZClass weaknesses, please post... :-) John S. --- Peter Bengtsson wrote: > As a quick guideline-answer: > ZClasses are more convenient for small plugins > Python Products are better suited for bigger projects. > > > At 12:33 2002-05-03 -0700, Sean Hastings wrote: > >Help! > > > >I Have chosen Zope to do a new web app. It is a 2 man project - 1 > >Programer - 1 UI Designer with programing experience. > > > >I am trying to decide whether to build the App using Zclasses or > Python > >Product. ... __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From pw_lists@slinkp.com Sat May 4 16:57:57 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Sat, 4 May 2002 11:57:57 -0400 Subject: [Zope] ZClasses vs. Python Products In-Reply-To: <20020504080944.29131.qmail@web13407.mail.yahoo.com> References: <5.1.0.14.0.20020503183053.01f1fa68@mail.grenna.net> <20020504080944.29131.qmail@web13407.mail.yahoo.com> Message-ID: <20020504155757.GA412@slinkp.com> On Sat, May 04, 2002 at 01:09:44AM -0700, John Schinnerer wrote: > Aloha, > > I have also gotten the impression, from mail archives etc. etc., that > python is the overall better way to create products. So far I've done > one simple Catalog-aware product with ZClasses and am about to try a > simple python product. Thanks for the link on auto-updating > attributes, etc. - I didn't know that wouldn't happen with python > products. You didn't ask for this, but I'm going to take the opportunity to write a bried essay on the topic of object persistence in python. Helps me get it clearer in my own mind. :) It all has to do with the way python resolves names. Let's take a simple class as an example: >>> class Foo: ... def draw(self): print "I'm drawing at", x, y ... >>> f = Foo() >>> f.x = 10 >>> f.y = 20 >>> f.draw() I'm drawing at 10 20 OK so far. but where does python get the values of x, y, and the code for draw()? What python does when you say "foo.bar" is this: 1) does foo have bar in its local namespace? If so, use it. If not: 2) does the class (of which foo is an instance) have bar in its namespace? If so, use it. If not: 3) does the first superclass of this class have bar in its instance? If so, use it. If not... keep going up the chain of superclasses until you find it... In the case of methods, they don't live in the object's own namespace; they'll be found in the namespace of the instantiated class or a superclass. This makes sense because objects of the same class want to share the code for their methods, rather than having copies in each instance. (This is different than C++ where each object really *does* get a copy of the code, AFAIK). So when python tries to resolve f.draw(), it finds no draw in f and goes up to the class f was instantiated from, and finds it there. Data members will have different values for each object, or else what's the point of having more than one instance? So when python tries to resolve f.x, it immediately finds it in f's namespace and uses that. So what happens if, in the example above, I now do this: >>> class Foo(): ... def draw(self): print "new method drawing at", x, y ... >>> f.draw() I'm drawing at 10 20 Huh??? What happened here? Didn't I just tell you that methods are looked up in the class namespace? Why is f still drawing the old way? Well, names are actually just references to memory locations. And it turns out that when you redefine Foo, the new class code lives at a new memory location. The object f still has a reference to its parent class's location. The old code won't be removed from memory as long as there is at least one object (f) that has a reference to it. But now, if we make f persistent, e.g. by using pickle, the object is saved to disk with the *name* of its instantiating class, not the memory location. After all, if you run your program more than once, it's highly unlikely that any of the memory locations are going to be the same. So if you re-load the pickled object, what actually happens is that you get a *new* object of the same class, and its data members will be assigned the old values. But method code will be looked up in the current memory location of a class with the right name, so the methods could have changed completely since you saved the object, and the new methods will be used. Let's see an example, in the same python session as before: >>> f.draw() I'm drawing at 10 20 >>> import pickle >>> outfile = open("test.dump", "w") >>> pickle.dump(f, outfile) We've now saved the f object to the file "test.dump". Now let's reload it from there: >>> infile = open("test.dump", "r") >>> f = pickle.load(myfile) >>> f.draw() New method at 10 20 See? f.x and f.y have their old values, and f.draw() is getting the new code from the new Foo. Now substitute the ZODB for pickle, and you have some idea of what's going on in Zope. -- Paul Winkler home: http://www.slinkp.com "Muppet Labs, where the future is made - today!" From mail@peterbe.com Sat May 4 17:10:57 2002 From: mail@peterbe.com (Peter Bengtsson) Date: Sat, 04 May 2002 17:10:57 +0100 Subject: [Zope] Annoying ambiguous name Message-ID: <5.1.0.14.0.20020504170436.01e0e578@mail.grenna.net> I define a method like this: ListIssues = PageTemplateFile('zpt/ListIssues', globals(), __name__='ListIssues') Then I want to make a shortcut to that method like this: listissues = ListIssues But then I get that annoying message:: 2002-05-04T16:04:13 PROBLEM(100) Init Ambiguous name for method of Products.IssueTrackerProduct.IssueTracker.IssueTracker: "ListIssues" != "listissues" How do I get this right?? I also tried (outside the class): IssueTracker.__dict__['listissues'] = IssueTracker.ListIssues but still the same old error. Anybody knows how to solve this? Peter From ed@greengraphics.net Sat May 4 10:00:54 2002 From: ed@greengraphics.net (Ed Colmar) Date: Sat, 4 May 2002 02:00:54 -0700 (PDT) Subject: [Zope] decaring a list in python Message-ID: Hey everyone. I've got an easy one here, but it's got me somewhat confused... I declare in my product: self.skins_loaded = ['default', 'minimal'] when I use it in a I get "strings are not allowed". Ok, fine, so I go to my edit form, which is marshalling "skins_loaded:lines" and I put them on two lines.... Then it works as it should... How can I get this to happen from the start? I must be missing something really obvious. thanks for any clues! -e- -- Green Graphics ::: Print and Web Design ::: 510.923.0000 From pieterb@gewis.nl Sat May 4 18:24:51 2002 From: pieterb@gewis.nl (Pieter Biemond prive ) Date: Sat, 4 May 2002 19:24:51 +0200 (CEST) Subject: [Zope] Zope/Apache and Microsoft Active Directory In-Reply-To: <674866BA-5ECC-11D6-878D-003065C7DEAE@zope.com> Message-ID: <20020504172451.DB45421137@gewis.win.tue.nl> Jens wrote: > LDAPUserFolder does not support Active Directory. this is not likely to > change any time soon. the reason is that Active Directory, just like any > M$ product, does not use well-defined standards like most other LDAP > server products do. Do you think it is possible to extend LDAPUserFolder to add Active Directory support? Anybody willing to help working this out? Anybody know if it's possible to make a hack from Active Directory to export & convert all LDAP-info to an OpenLDAP-server? The best practice to manage large user-accounts is probably to authenticate Apache to an (Open)LDAP-server and to use the same (Open)LDAP-server to authenticate for Zope. Is there a way to only authenticate once, and give the security-information to Zope? Pieter From gregory_r_warnes@groton.pfizer.com Sat May 4 18:31:37 2002 From: gregory_r_warnes@groton.pfizer.com (Warnes, Gregory R) Date: Sat, 4 May 2002 13:31:37 -0400 Subject: [Zope] timeout, thread, and external connections Message-ID: <97E365D56960A642A79B2EE0ADA14E803F4C57@Groexmbcr10.pfizer.com> Hi, I'm writing a tool similar to MatlabDA for the open-source stat package 'R'. Since R isn't thread safe and is very stateful, I've written code to start up, communicate with, and close independent R processes. This is all working properly. Now, I want to the connection to the external process to 'timeout' after a period of inactivity, so I won't end up with an slowly increasing number of R processes hanging around not doing anything. I have code to 'pickle' the session information and terminate the external R process and to start up a new process and 'unpickle' the state. This will let me 'restore' the connection when a new request comes in. What I don't have is code to implement the timeout feature. Is there as 'standard' method for doing this within Zope? My initial thought is to create a new thread when the connection object is created. Its sole purpose will be to sleep for the timeout length, check whether the connection object has been access during the sleep interval. If it has, then it will reset reset the counter and go back to sleep. If there has not been any access, it will lock the connection object, call the pickle routine, close the connection, and terminate itself. Has anyone else implemented something like this? Are there any 'gotchas' or problems threading under zope. Are there other, better, strategies? For instance, is there a 'callback after interval' function exposed by zope to remove the need for the new thread? Thanks, Greg LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. From gspeer@linkline.com Sat May 4 18:36:59 2002 From: gspeer@linkline.com (Gary Speer) Date: Sat, 4 May 2002 10:36:59 -0700 Subject: [Zope] How to import files via FTP and set attributes. Message-ID: <012301c1f392$4b362920$0602a8c0@linkline.com> I'm mildly experienced at Zope, yet haven't found the 'simple' way to execute the following. I been going in circles on this and all suggestions as to how to approach the problem would be appreciated. Rather than correct the approaches I have been trying, I think it best to get a fresh perspective. Big Picture Objective: User FTPs a batch of files into an empty zope folder along with a text document called contents.txt. contents.txt has one line per uploaded file in CSV or similar parseable layout that begins with the file name. After the upload, the user triggers a posting process (a 'process the upload' form buttom with Action=Do_It(). The executed Do_it object reads the text file and loops once per line, for each line, it parses it into a file name and several attributes. The object then writes the uploaded file content to a target folder as a zope object having these attributes. I am stuck at looping on and parsing the content of the contents.txt file to get and pass the attributes to the add object method. I figure the solution is best executed with Python in the context of Zope, but I'm stuck at figuring out the syntax for this namespace. 1) syntax to loop on the content of a file, one line at a time. 2) string syntax to parse the line into variables (I don't think an array is needed.) 3) modify object syntax to update each file's attributes with the variables (or add a new object such as an image object with the imported file's contents.) Suggestions, syntax, or pointers to how-tos all gratefully accepted. Thank you! Gary From allison@sumeru.stanford.EDU Sat May 4 19:14:46 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Sat, 4 May 2002 11:14:46 -0700 (PDT) Subject: [Zope] Transactions and rollback Message-ID: I am building a Zope site where a manager enrolls users. A manager completes a form that gathers information about the user. When submitted, the action routine does two things -- .. updates a MySQL database with the user information .. updates acl_users locally to manage the login The MySQL is of a vintage that supports transactions so (per the Zope book) that update will go as a transaction and will either succeed or fail. Likewise, the acl_user update is a transaction and will either succeed or fail. My code needs to keep everything in sync and treat everything as a single transaction, committing only when both the MySQL and the ZOODB updates succeed, otherwise backing out. The problem is figuring out how to do this. Is there a general mechanism? If there isn't, then another approach is to do the acl_user update first since it can be undone (assuming I can get a handle on the transaction), then the MySQL transaction. If the latter fails, I can back out of the acl_user transaction by undoing it. I am using Z SQL methods for the MySQL side of things--they provide a nice wrapper. A few things are unclear from the docs. What exception gets raised by a Z SQL method if it does not commit? On the acl_users side, the updates are managed through External Methods as noted in the code. Currently they just make calls on UserFolder per the in-line documentation. This can fail. For example, what exception is raised when an attempt is made to add a name already in use. (Are these documented somewhere?) I presume that an exception in the External Method will get exported out to an enclosing block so it can be captured and delt with in the web portion of the system. If I need to back off a committed transaction in the ZOODB, how is that done programatically. Presumably I can do the equivalent of the undo management screen progrmatically, but to do do, I need the handle of the transaction I want/need to undo. I don't see how to get it. Thanks for help. From alejandro.montenegro@alumnos.utfsm.cl Sun May 5 03:32:27 2002 From: alejandro.montenegro@alumnos.utfsm.cl (alejandro.montenegro@alumnos.utfsm.cl) Date: Sat, 4 May 2002 22:32:27 -0400 Subject: [Zope] Building SCAMMA with Zope Message-ID: <1020565947.3cd499bb753d5@webmail2.alumnos.utfsm.cl> Hi.. We are a team of students that want to try Zope's capabilities..in this m= oment=20 we are building a SW called SCAMMA.. SCAMMA is a WAP/WEB site that supports the catalogation and monitorizatio= n of=20 sea species. Every class of sea species has an information of her own, that is why the= =20 access to a class of sea species must be differentiated. The technical requirements are: =09 - Interface system-user via FLASH and WEB/WAP (HTML and/or XML an= d WML) - Data Bases with potential escalability(to support modules of sea species classes). - Feedback by the authorized users(to support the monitorization).=20 - It must be able to comunicate with an statistic system(program) to=20 analize the data generated by the system. - It must be able to generate (or comunicate with other programs that generate) oceanic charts. - It must have all the functionalities of a ordinary portal such as forums, mailing list, mail, chat, publication of data(papers), = etc. - It must be capable of manipulate various types of multimedial content such as photos, videos, charts, maps, pdf, etc. Doubts: - How is the complexity of interacction with others DB, (i.e. excluding the ZODB), such as Postgresql. - Can u put flash animations?, can u treat them as objects?, and materialize them in the ZODB. - Can Zope easily interact with other programs in or out the server?. - How would you estimate the performance of a site (developed with Zope) of this characterictics. - Can Zope dinamicly generate any multimedial content, such as images or flash animations. If you think Zope is the perfect tool for this, or that we need to dev= elop=20 a special module to zope, or can answer some of the doubts, or just want = to=20 make any kind of comment .. please send a mail to the list. I hope Zope has the capabilities to do this, and much more.. If you want to know more about SCAMMA visit sourceforge.net regards.. Alex Montenegro Student of computer engineering Technical University Federico Santa Mar=ECa PS: On the Doubts part when i ask if Zope can do something?, i mean if Zo= pe or=20 any existent module or component or proyect(future components) can do tha= t=20 something. PS: sorry about the english, we are chilean. =20 From dirk.datzert@rasselstein-hoesch.de Sun May 5 08:25:25 2002 From: dirk.datzert@rasselstein-hoesch.de (Dirk Datzert) Date: Sun, 05 May 2002 09:25:25 +0200 Subject: [Zope] Building SCAMMA with Zope References: <1020565947.3cd499bb753d5@webmail2.alumnos.utfsm.cl> Message-ID: <3CD4DE65.7AC96C5@rasselstein-hoesch.de> alejandro.montenegro@alumnos.utfsm.cl schrieb: > > Doubts: > - How is the complexity of interacction with others DB, (i.e. > excluding the ZODB), such as Postgresql. you need to install a standard DB-Connector ( existing product ) create a DB-Connector object create your DB-queries in Zope (best with Znolk-Wizard) you can use a product called DBObject for your modularisation of your DB-model > > - Can u put flash animations?, yes > can u treat them as objects?, yes > and materialize them in the ZODB. yes > > - Can Zope easily interact with other programs in or out the > server?. short: yes: long: which programms ? > > - How would you estimate the performance of a site (developed > with Zope) of this characterictics. performance is not a problem > > - Can Zope dinamicly generate any multimedial content, such as > images or flash animations. yes for images you need Python-Imaging library (free) installed on the server http://www.pythonware.com/products/pil/ for flash you need a product Zwiff http://www.zope.org/Members/sspickle/Zwiff > > From itamar@maximam.com Sun May 5 10:23:10 2002 From: itamar@maximam.com (Itamar Shtull-Trauring) Date: Sun, 05 May 2002 12:23:10 +0300 Subject: [Zope] ODBC issue with 8-bit chars || ZmxODBCDA query Message-ID: <3CD4F9FE.2060002@maximam.com> Hi all, A question about ZODBCDA (on Zope 2.5) querying an Access database. The result of the query includes Hebrew, i.e. 8-bit characters. On one computer (running XP) the hebrew is returned correctly. On another (running W2K) queries replace the hebrew with *question marks*! Any idea what may cause ODBC queries to convert 8-bit chars to question marks, and how to solve this? A related question -- has anyone updated ZmxODBCDA to work with the lastest mxODBC? The author (Dylan Jay) tells me he hasn't had the time, so if anyone does have this code he'd probably rerelease the DA. Thanks in advance! From chrisw@nipltd.com Sun May 5 10:32:58 2002 From: chrisw@nipltd.com (Chris Withers) Date: Sun, 05 May 2002 10:32:58 +0100 Subject: [Zope] standard_error_message not being used on 404's ??? References: <7CDD7B94357FD5119E800002A537C46E23008D@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <3CD4FC4A.8AF10E02@nipltd.com> Jean-Francois.Doyon@CCRS.NRCan.gc.ca wrote: > > Is this normal ? No. > How do I alter the messages for 404's ? Have you already modified standard_error_message? If so, then you may have introduced a bug. If an error occurs while rendering standard_error_message, you will get the hard coded one instead. cheers, Chris From manini@flashnet.it Sat May 4 17:32:17 2002 From: manini@flashnet.it (Luca Manini) Date: Sat, 4 May 2002 18:32:17 +0200 Subject: [Zope] Inheritance (?) problem In-Reply-To: <15570.51436.361237.690091@linux.local> References: <15570.39511.177903.32758@gargle.gargle.HOWL> <15570.51436.361237.690091@linux.local> Message-ID: <15572.3345.674162.239808@gargle.gargle.HOWL> >>>>> "Dieter" == Dieter Maurer writes: > Luca Manini writes: [...] When overriding a superclass (base) method (foo) in a subclass (sub), one often wants to call the inherited one. In 'pure' (bare?) Python you can do this: class sub (base): def foo(self, arg): sub.foo (self, arg) I tried this with sub inheriting from SimpleItem.SimpleItem and from an external 'pure python' class and it does not work. > This is an ExtensionClass/Python incompatibility, documented > with ExtensionClass. You need "inheritedAttribute" to work > around the problem, documented too. > Dieter As always, Dieter (thanks) solved the problem! . 1) documented means (I think) read ..../zope/lib/python/StructuredText/regressions/ExtensionClass.stx funny place for that piece of really interesting info. 2) You need inheritedAttribute means (I do that way and it works): class sub (base): def foo(self, arg): sub.inheritedAttribute ('foo') (self, arg) Any other trick like this in constructing (product's) Zope classes from 'pure-python' ones? I do prefere to have as much python code as possible out of Zope (so that it can be use without Zope), and overriding inherited methods is (I think) a very basic tool in this. bye, Luca From kerrb@senet.com.au Sun May 5 02:15:32 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Sun, 5 May 2002 10:45:32 +0930 Subject: [Zope] ViewAndCopyOnly role Message-ID: <001701c1f3d2$5bd8c860$580e0c3f@LocalHost> how should I set a role for users of a folder where they can view and copy files only? I've set these permissions: View Management Screen (for seeing the files) Access Contents Info, View (for rendering the files) Add Doc, Images, Files (for copying the files) This almost works but the problem is that with Add Doc, Images, Files (which I need for copying) the users can also add things to this folder and I don't want them to be able to do this. I think I want a permission that allows copying but not adding. - Bill From allison@sumeru.stanford.EDU Sun May 5 19:28:24 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Sun, 5 May 2002 11:28:24 -0700 (PDT) Subject: [Zope] can below error be resolved in anyway? In-Reply-To: <000001c1e896$7cd8dc90$0a01a8c0@gaming> Message-ID: On Sat, 20 Apr 2002, Peter Stams wrote: > Zope Error > > Zope has encountered an error while publishing this resource. > Error Type: Bad Request > Error Value: Invalid file name amphora.zexp > _____ > Hmmm... amphora.zexp is a exported object. See page 26-27 of The Zope Book for information. You need to import before you can publish it... From norvelle@Ag.arizona.edu Sun May 5 21:52:37 2002 From: norvelle@Ag.arizona.edu (Erik M Norvelle) Date: Sun, 5 May 2002 13:52:37 -0700 (MST) Subject: [Zope] Bizarre changes in the meaning of "self" (mixed DTML/python scripts) Message-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---559023410-851401618-1020631957=:24573 Content-Type: TEXT/PLAIN; charset=US-ASCII Greetings: I am developing a calendar product, which allows for the addition of event objects to the main calendar object. The problem I am having is that after I use DTML scripts to perform calls to python code, the meaning of the "self" variable in the python code undergoes a strange change. I'll do my best to describe the problem below (Note that all goes well until step 5, where things get weird) 1) For instance, assume I have added (via ZMI) an instance of my ZCalendar product (call it MyCalendar). ZCalendar is coded as a Python package. 2) The default method (index_html) provides a listing of all the currently registered events, as well as provides a button to add a new event. 3) That button calls a DTML method (called add_event) on the MyCalendar instance. add_event.dtml has a form whose action is to collect information about the new event, and then (when the Submit button is clicked) call a method called "addEvent" on the MyCalendar object. 4) addEvent takes the information collected by the add_event DTML Method, and creates a new ZCalEvent object, and inserts it into a Folder called 'Events'. No surprises there, and everything works just fine until then. 5) Once addEvent is finished adding the new event, it performs the command "return self.index_html(REQUEST)". The idea here is that I want the user taken back to the main Calendar view after adding an event. I do *NOT* want them taken to any part of the management interface. 6) By the time we get here, the URL has become "http://localhost:8080/MyCalendar/addEvent", and thus Zope interprets "self" as referring to the method instance of "addEvent". Zope still manages (via acquisition) to find the index_html method, but the resulting call is something like "MyCalendar.addEvent.index_html(REQUEST)", rather than "MyCalendar.index_html(REQUEST)" 7) Needless to say, entities which are visible to MyCalendar are not visible to addEvent, and so when Zope gets to index_html, it reports an AttributeError. There are a variety of refrences I make in index_html which only make sense when it is being called on MyCalendar, and not when it is being called on the addEvent method instance. The way I eventually got around this is to change addEvent to perform a redirect instead of a return: "REQUEST.REPONSE.redirect(REQUEST['URL1'] + '/index_html')". This works, but is an egregious hack, since it depends upon the (potentially unpredictable) value of REQUEST['URL1'], which might or might not be correct in all instances. How can I do things the "correct" way, and make sure that in the context of MyCalendar.addEvent, "self" refers to "MyCalendar" and not its "addEvent" method (as is normal in all OOP languages I have ever met so far). Attached is a copy of the code I have so far (with the ugly hack included). If anyone can take a look and tell me how to avoid this situation, I would appreciate it greatly! Direct replies to me at norvelle@ag.arizona.edu would be most welcome, since this is such a high-traffic list. TKA, Erik Norvelle Support Systems Analyst, Sr. The University of Arizona ---559023410-851401618-1020631957=:24573 Content-Type: APPLICATION/octet-stream; name="ZCalendar.tgz" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Archive containing Python Zope Product Content-Disposition: attachment; filename="ZCalendar.tgz" H4sIAOGW1TwAA+w9a3Pb1nKHpB4WIseOnee9bXpGbkuql6EIvuRHPbFjW4mn sZxYTj2Vx6OBCFBCBBIMAFpWxhl+cL60f6DTf9WZ3n/RP9HdPQ8AFCnJssTc 2wBOIAA82LNnz57dPbt7DjbvWZ7Ts61g5a5tP3KiXd8OK/0DdpZH1axWG40G q8KxulqVf036C4fZqsH1aqPVrLZaLROuzUa1UWW8eqZYTDgGYWQFnLOf/b5z VLnjfv8rPba2bL+9tcVv86WlpY1dK3Bs7rnbgRUc8H7gv3Tt3g63eJc4g3f8 gNsHPavrti3PO+CWbbvwe3+w7bltWSjkncDv8o7rOSHANIytrZdOEL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7WBw/x/GfDf3Z7 1eP3Duw3nizIO/rmlvr3d6w/fs++3/17o+Wgp2z4N4+8/vCrz6+yvF9duXzF ps9OvJMdnPVl57d/NuAPDZ/XHTswd/Hk7205OeLDTeVjVu1vq8jLSjr13+N+ +8yQreVjxjwwc+ZHJ7f2/+ALx5q1X1UcO13rPkF+erLk6RVfCM4ftKzp3Fud vTu3Ick6xfLzo2u/x62+6/iug9CTz0V09bkvUdf/CfL/OpwFofYfQWD7/xIi 8cT/KPb/3hvte4//YeYq9qLCkD9MmDBhwoQJEyZMmDBhwoQJEyZMmDBhwoQJ EyZMmDBhwoQJEyZMmDBhwuQikf8H7GQDCQBAAQA= ---559023410-851401618-1020631957=:24573-- From dieter@handshake.de Sun May 5 21:20:36 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:20:36 +0200 Subject: [Zope] Annoying ambiguous name In-Reply-To: <5.1.0.14.0.20020504170436.01e0e578@mail.grenna.net> References: <5.1.0.14.0.20020504170436.01e0e578@mail.grenna.net> Message-ID: <15573.37908.475129.989149@linux.local> Peter Bengtsson writes: > ... Search the mailing list archives for "Init Ambiguous". A solution has been given several times... Dieter From dieter@handshake.de Sun May 5 21:22:20 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:22:20 +0200 Subject: [Zope] decaring a list in python In-Reply-To: References: Message-ID: <15573.38012.456379.517482@linux.local> Ed Colmar writes: > I declare in my product: > > self.skins_loaded = ['default', 'minimal'] > > when I use it in a I get "strings are not allowed". Your "dtml-in" does not see this definition (I cannot tell you what it sees, but it is not this one)... Dieter From dieter@handshake.de Sun May 5 20:59:35 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 21:59:35 +0200 Subject: [Zope] Global Product Registry and broken ZClass instances ? In-Reply-To: <1BC88FD1968349449B02BF6018227F34016E0E48@engin-mail1.engin.umich.edu> References: <1BC88FD1968349449B02BF6018227F34016E0E48@engin-mail1.engin.umich.edu> Message-ID: <15573.36647.89557.554376@linux.local> Darcy Clark writes: > ... > What the heck is the Global Product Registry ? I don't > see mention of it in any of the documentation. What you see in "Control_Panel" --> "Product management". Hm, the documentation would probably read: The "global product registry" is the registry where all products are registered/managed. Do you need such documentation? Dieter From dieter@handshake.de Sun May 5 21:36:15 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:36:15 +0200 Subject: [Zope] Transactions and rollback In-Reply-To: References: Message-ID: <15573.38847.712038.320785@linux.local> Dennis Allison writes: > > I am building a Zope site where a manager enrolls users. A manager > completes a form that gathers information about the user. When submitted, > the action routine does two things -- > > .. updates a MySQL database with the user information > .. updates acl_users locally to manage the login Use "exUserFolder" to get the user information directly from the MySQL database. Forget about the standard "acl_users"... Dieter From dieter@handshake.de Sun May 5 21:09:06 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:09:06 +0200 Subject: [Zope] Successful use of ZPT and macros in Python Product? In-Reply-To: <5.1.0.14.0.20020503184732.01f085d0@mail.grenna.net> References: <5.1.0.14.0.20020503141337.01f17ae0@mail.grenna.net> <5.1.0.14.0.20020503184732.01f085d0@mail.grenna.net> Message-ID: <15573.37218.393153.90607@linux.local> Peter Bengtsson writes: > ... > All my little .zpt files start with metal:use-macro="here/StandardLook/macros/standard"> and this doesn't work > unless StandardLook has once been visited. I remember this has been a bug in earlier ZPT versions. I used ZPT in a product and did not experience this problem. However, meanwhile, we moved the product to CMF. The original product is not used since about 1/2 a year... Dieter From dieter@handshake.de Sun May 5 21:25:50 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:25:50 +0200 Subject: [Zope] timeout, thread, and external connections In-Reply-To: <97E365D56960A642A79B2EE0ADA14E803F4C57@Groexmbcr10.pfizer.com> References: <97E365D56960A642A79B2EE0ADA14E803F4C57@Groexmbcr10.pfizer.com> Message-ID: <15573.38222.417936.388504@linux.local> Warnes, Gregory R writes: > ... > Now, I want to the connection to the external process to 'timeout' after a > period of inactivity I would not worry about my own timeouts or my own process management but delegate that to the ZODB. When you assign a process wrapper for your process to a "_v_" attribute, then the wrapper instance is destroyed when the objects is flushed from the ZODB cache. This would be a good time to kill the process. Dieter From dieter@handshake.de Sun May 5 21:18:39 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:18:39 +0200 Subject: [Zope] Redirection to a special page based on user ID In-Reply-To: <1171.192.168.0.50.1020485353.squirrel@webmail.cozydot.com> References: <1171.192.168.0.50.1020485353.squirrel@webmail.cozydot.com> Message-ID: <15573.37791.136834.410614@linux.local> Yury German writes: > .... > When the system authenticates the login for jsmith it redirects him to a > directory www.xxxyyy.com/somedir/jsmith/ Redirection is done with "RESPONSE.redirct()". Documented in the embedded online help: "Zope help" --> "API Reference" --> "Response". Dieter From dieter@handshake.de Sun May 5 20:45:14 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 21:45:14 +0200 Subject: [Zope] Inheritance (?) problem In-Reply-To: <15572.3345.674162.239808@gargle.gargle.HOWL> References: <15570.39511.177903.32758@gargle.gargle.HOWL> <15570.51436.361237.690091@linux.local> <15572.3345.674162.239808@gargle.gargle.HOWL> Message-ID: <15573.35786.238322.511961@linux.local> Luca Manini writes: > .... > > This is an ExtensionClass/Python incompatibility, documented > > with ExtensionClass. You need "inheritedAttribute" to work > > around the problem, documented too. > ... > 1) documented means (I think) read > > ..../zope/lib/python/StructuredText/regressions/ExtensionClass.stx > > funny place for that piece of really interesting info. A more natural place is ".../zope/lib/Components/ExtensionClass/doc" Dieter From dieter@handshake.de Sun May 5 21:14:19 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:14:19 +0200 Subject: [Zope] Learning Python Syntax for Zope Objects and DTML Operations In-Reply-To: <5.1.0.14.0.20020503175900.029c8e38@mail.hurrah.com> References: <5.1.0.14.0.20020503175900.029c8e38@mail.hurrah.com> Message-ID: <15573.37531.40105.140827@linux.local> Dan Shafer writes: > .... > If I have a collection of DTML Methods in > .... > But I can't figure out how to reference the objects, let > alone iterate over them. Please read about "Bindings" in the Python Script documentation. This will tell you how to access the objects. Please look into the Python Language Reference (or an elementary Python book) for "for" to learn about iteration in Python. Your solution will somehow look like: for o in context.objectValues(['DTML Method']): # do something with your object Dieter From dieter@handshake.de Sun May 5 21:02:48 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:02:48 +0200 Subject: [Zope] zope w. apache security question In-Reply-To: References: Message-ID: <15573.36840.813862.23995@linux.local> davis marques writes: > I'm running Zope with Apache/PCGI and am wondering if there's any means by > which you can prevent people from getting the /manage login dialog from > outside a designated domain or IP range? Probably yes, though I did not yet try it: I would use a rewrite rule that redirects URLs containing "manage" (after a '/') to a page saying "forbidden". This will definitely work. Apache supports conditional rewrite rules. I would look whether the condition can be specified based on the incoming IP. I am not sure whether this is possible, but if it is, your problem is solved. Dieter From dieter@handshake.de Sun May 5 21:05:56 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:05:56 +0200 Subject: [Zope] Zope/Apache and Microsoft Active Directory In-Reply-To: <20020503180027.1CF7F21133@gewis.win.tue.nl> References: <20020503180027.1CF7F21133@gewis.win.tue.nl> Message-ID: <15573.37028.924073.225047@linux.local> Pieter Biemond (prive) writes: > Did anybody ever get Zope and/or Apache to authenticate against a > Micrsoft Active Directory? I tried using LDAPUserfolder on Zope > 2.5.1/Python 2.1.3 but I'm getting all sorts of errors, e.g. > > Logging: > ldapuser not found (getUser) > > User-info: > (###Error###: ldap.OPERATIONS_ERROR, {'desc': 'Operations error', > 'info': '000020D6: SvcErr: DSID-03100690, problem 5012 (DIR_ERROR), data > 0\n'}) > > Did anybody else have more luck, > or any idea where to start debugging? I would consult the ADS documentation to find out what "SvcErr: DSID-03100690" and "problem 5012" mean... I am always facinated by Microsoft (and Oracle) error messages.... Dieter From dieter@handshake.de Sun May 5 21:35:14 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:35:14 +0200 Subject: [Zope] How to import files via FTP and set attributes. In-Reply-To: <012301c1f392$4b362920$0602a8c0@linkline.com> References: <012301c1f392$4b362920$0602a8c0@linkline.com> Message-ID: <15573.38786.619295.569069@linux.local> Gary Speer writes: > ... > I am stuck at looping on and parsing the content of the contents.txt > file to get and pass the attributes to the add object method. When you have a file object "F", "str(F)" gives you the file content (a string). When you have a string "s", "s.split(separator)" splits "s" at "separators" into a list of strings. Provided your CSV separators are not imbedded into the content, applyind this twice will parse the CSV string. Look at the PropertyManager API (Embedded Zope help -> "Zope Help" -> "API Reference" -> "PropertyManager") to learn how to add and change properties (aka attributes). Look at the "Image" API (I guess, you will find it ;-)) how to create an Image object from a string or file. Dieter From dieter@handshake.de Sun May 5 21:38:13 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 5 May 2002 22:38:13 +0200 Subject: [Zope] ViewAndCopyOnly role In-Reply-To: <001701c1f3d2$5bd8c860$580e0c3f@LocalHost> References: <001701c1f3d2$5bd8c860$580e0c3f@LocalHost> Message-ID: <15573.38965.34674.916173@linux.local> Bill Kerr writes: > how should I set a role for users of a folder where they can view and copy > files only? > I've set these permissions: > View Management Screen (for seeing the files) > Access Contents Info, View (for rendering the files) > Add Doc, Images, Files (for copying the files) > > This almost works but the problem is that with Add Doc, Images, Files (which > I need for copying) the users can also add things to this folder and I don't > want them to be able to do this. I think I want a permission that allows > copying but not adding. If you mean "copy out", I think you need "Add Files" only at the destination and not the source. When you meant "copy in", I would say, your requirement is a bit inconsistent as a "copy in" is not that different from an "add". Dieter From pydan@danshafer.com Sun May 5 22:52:27 2002 From: pydan@danshafer.com (Dan Shafer) Date: Sun, 05 May 2002 14:52:27 -0700 Subject: [Zope] Learning Python Syntax for Zope Objects and DTML Operations In-Reply-To: <15573.37531.40105.140827@linux.local> References: <5.1.0.14.0.20020503175900.029c8e38@mail.hurrah.com> <5.1.0.14.0.20020503175900.029c8e38@mail.hurrah.com> Message-ID: <5.1.0.14.0.20020505145021.029ebe70@mail.hurrah.com> Thanks for the response, Dieter. At 10:14 PM 5/5/2002 +0200, Dieter Maurer wrote: >Dan Shafer writes: > > .... > > If I have a collection of DTML Methods in > > .... > > But I can't figure out how to reference the objects, let > > alone iterate over them. >Please read about "Bindings" in the Python Script documentation. >This will tell you how to access the objects. This was the missing piece for me. Is there any *specific* Python Script documentation you have in mind? I will go rummaging about and see what I can locate but if you have a specific pointer, that would be helpful and time-saving. >Please look into the Python Language Reference (or an elementary >Python book) for "for" to learn about iteration in Python. I knew I had to use a "for" construct, the problem was creating the rest of the line, as you have done here. Is this syntax *always* consistent? I.e., is it always context.someDTMLfunction(['list of', 'string arguments'])? Thanks again. I'll get this soon, I'm sure! >Your solution will somehow look like: > > for o in context.objectValues(['DTML Method']): > # do something with your object > > >Dieter From mail@peterbe.com Sun May 5 23:47:30 2002 From: mail@peterbe.com (Peter Bengtsson) Date: Sun, 05 May 2002 23:47:30 +0100 Subject: [Zope] Annoying ambiguous name (using PageTemplateFile()) In-Reply-To: <15573.37908.475129.989149@linux.local> References: <5.1.0.14.0.20020504170436.01e0e578@mail.grenna.net> <5.1.0.14.0.20020504170436.01e0e578@mail.grenna.net> Message-ID: <5.1.0.14.0.20020505234055.01eaa998@mail.grenna.net> At 22:20 2002-05-05 +0200, Dieter Maurer wrote: >Peter Bengtsson writes: > > ... >Search the mailing list archives for "Init Ambiguous". I did! A lot; but it didn't help. ListIssues = listissues = PageTemplateFile('zpt/ListIssues', globals(), __name__='ListIssues') ListIssues._setName('ListIssues') # line 1162 But I get this:: Traceback (innermost last): File C:\Program\zope240_2\lib\python\OFS\Application.py, line 552, in import_p roduct File E:\Zope\zope240_2\lib\python\Products\IssueTrackerProduct\__init__.py, li ne 1, in ? File E:\Zope\zope240_2\lib\python\Products\IssueTrackerProduct\IssueTracker.py , line 104, in ? File E:\Zope\zope240_2\lib\python\Products\IssueTrackerProduct\IssueTracker.py , line 1162, in IssueTracker AttributeError: class Traversable has no attribute '_setName' The class looks like this:: class IssueTracker(Folder.Folder, CatalogAware, Persistent): and the zope version is 2.4.0 I looked at all my other products and they all use DTMLFile() or HTMLFile(). I use PageTemplateFile(). From mail@peterbe.com Sun May 5 23:50:35 2002 From: mail@peterbe.com (Peter Bengtsson) Date: Sun, 05 May 2002 23:50:35 +0100 Subject: [Zope] Successful use of ZPT and macros in Python Product? In-Reply-To: <15573.37218.393153.90607@linux.local> References: <5.1.0.14.0.20020503184732.01f085d0@mail.grenna.net> <5.1.0.14.0.20020503141337.01f17ae0@mail.grenna.net> <5.1.0.14.0.20020503184732.01f085d0@mail.grenna.net> Message-ID: <5.1.0.14.0.20020505234745.01e5d7d8@mail.grenna.net> At 22:09 2002-05-05 +0200, you wrote: >Peter Bengtsson writes: > > ... > > All my little .zpt files start with > metal:use-macro="here/StandardLook/macros/standard"> and this doesn't > work > > unless StandardLook has once been visited. >I remember this has been a bug in earlier ZPT versions. > >I used ZPT in a product and did not experience this problem. >However, meanwhile, we moved the product to CMF. The original >product is not used since about 1/2 a year... ...but you had something like:: metal:use-macro="here/StandardLook/macros/standard" Any chance I can have a look at that product? What I need to do now each time I refresh my product is to refresh http://localhost:8080//StandardLook If not, I get the attached error message:: Undefined Sorry, a site error occurred. Traceback (innermost last): File C:\Program\zope240_2\lib\python\ZPublisher\Publish.py, line 223, in publish_module File C:\Program\zope240_2\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Program\zope240_2\lib\python\Zope\__init__.py, line 226, in zpublisher_exception_hook (Object: LockableItem) File C:\Program\zope240_2\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Program\zope240_2\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File C:\Program\zope240_2\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: index_html) File C:\Program\zope240_2\lib\python\Shared\DC\Scripts\Bindings.py, line 324, in __call__ (Object: index_html) File C:\Program\zope240_2\lib\python\Shared\DC\Scripts\Bindings.py, line 354, in _bindAndExec (Object: index_html) File C:\Program\zope240_2\lib\python\Products\PageTemplates\PageTemplateFile.py, line 163, in _exec (Object: index_html) File C:\Program\zope240_2\lib\python\Products\PageTemplates\PageTemplate.py, line 156, in pt_render (Object: index_html) (Info: {'container': , 'here': , 'modules': Hi, Please help me zope gods......... I have been trying to use/learn xmlrpclib with zope using this example: http://www.xml.com/pub/a/2000/01/xmlrpc/index2.html I followed the example and I was able to read the document_src of the 'Test' DTML Method after I repaired the modified xmlrpclib file: http://www.zope.org/Members/teyc/pipermailXMLRPCWoes However, I cant do it again!?. If I connect to the zope server as such: import xmlrpclib z = xmlrpclib.Server('http://localhost:8080/Test', xmlrpclib.BasicAuthTransport('administrator','password')) and attempt to view the document_src method of 'Test' I get a 'resource not found' error. I know the object exists because the URL of http://localhost:8080/Test returns the DTML document in my browser and also the error returned in my python interpreter has the title of the DTML document. What am I doing wrong here? Thanks in advance, Derek Basch __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From jens@zope.com Mon May 6 05:09:54 2002 From: jens@zope.com (Jens Vagelpohl) Date: Mon, 6 May 2002 00:09:54 -0400 Subject: [Zope] Zope/Apache and Microsoft Active Directory In-Reply-To: <20020504172451.DB45421137@gewis.win.tue.nl> Message-ID: <1F027B08-60A7-11D6-9086-00039363690C@zope.com> >> LDAPUserFolder does not support Active Directory. this is not likely to >> change any time soon. the reason is that Active Directory, just like any >> M$ product, does not use well-defined standards like most other LDAP >> server products do. > Do you think it is possible to extend LDAPUserFolder to add Active > Directory support? Anybody willing to help working this out? anything is possible given enough sweat and tears... however, you know it' ll break with the next minor release of "active directory" because things tend to change in unpredictable ways in M$ products... > Anybody know if it's possible to make a hack from Active Directory to > export & convert all LDAP-info to an OpenLDAP-server? have "active directory" spit out an LDIF file and then mangle the ldif so it conforms to a normal standard schema to be loaded into openldap would be one way. if it can spit out ldif files, that is. > The best practice to manage large user-accounts is probably to > authenticate Apache to an (Open)LDAP-server and to use the same > (Open)LDAP-server to authenticate for Zope. Is there a way to only > authenticate once, and give the security-information to Zope? if you can teach apache to set a cookie that can be understood by some cookie-based user folder maybe. it's hard to use an outside system for authentication and then expect zope to do the right thing, though. jens From wgarcia@esrf.fr Mon May 6 07:57:25 2002 From: wgarcia@esrf.fr (William GARCIA) Date: Mon, 06 May 2002 08:57:25 +0200 Subject: [Zope] Use of the different displays with Imagemagick. Message-ID: <5.1.0.14.1.20020506084905.00aa94e8@mailserv.esrf.fr> --=====================_521176750==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed ImageMagick is installed on the server I work. When I create a Photo product instance, if I see the properties of the image, several displays have been generated. I would like to display a thumbnail with : but Zope generated the next error : Error Type: AttributeError Error Value: __call__ Traceback (innermost last): File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 114, in publish File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: test_photo_imagemagick) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 98, in publish File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: testimagemagick) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: testimagemagick) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 127, in __call__ (Object: testimagemagick) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: testimagemagick) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: image(display='thumbnail')) (Info: image) File , line 2, in f Thanks in advance for the help you can give to me. William. --=====================_521176750==_.ALT Content-Type: text/html; charset="us-ascii" ImageMagick is installed on the server I work. When I create a Photo product instance, if I see the properties of the image, several displays have been generated.
I would like to display a thumbnail with :<dtml-var expr="image(display='thumbnail')">  

but Zope generated the next error :
Error Type: AttributeError
Error Value: __call__

Traceback (innermost last):
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: test_photo_imagemagick)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: testimagemagick)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: testimagemagick)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 127, in __call__
    (Object: testimagemagick)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: testimagemagick)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval
    (Object: image(display='thumbnail'))
    (Info: image)
  File <string>, line 2, in f

Thanks in advance for the help you can give to me.
William.
--=====================_521176750==_.ALT-- From rnshas@yahoo.co.in Mon May 6 08:37:46 2002 From: rnshas@yahoo.co.in (=?iso-8859-1?q?Raj=20NS?=) Date: Mon, 6 May 2002 08:37:46 +0100 (BST) Subject: [Zope] Either I'm an Idiot or dtml-in is broken and/or poorly Message-ID: <20020506073746.68042.qmail@web8101.in.yahoo.com> Try same DTML codes on DTML Method ( Not DTML Document) ________________________________________________________________________ For live cricket scores download Yahoo! Score Tracker at: http://in.sports.yahoo.com/cricket/tracker.html From cppbala@yahoo.com Mon May 6 10:49:48 2002 From: cppbala@yahoo.com (Bala) Date: Mon, 6 May 2002 02:49:48 -0700 (PDT) Subject: [Zope] operational error!!!(databse MySQL) Message-ID: <20020506094948.15442.qmail@web20101.mail.yahoo.com> Hi All, I installed zope in my machine and testing and learning with small test programs for database access. when I try to open a ZMySQL connection with the commands as Id : MySQL_database_connection Title : Z MySQL Database Connection Connection String : testdb bala testpassword and then when I press add I am getting the error as Error Type: OperationalError Error Value: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)") I am using OS : Linux 7.1 (kernel 2.4.2) Zope : Zope-2.5.1 python : python-2.1.3 mysql : mysq-3.23.49 ZMySQLDA : ZMySQLDA-2.0.7 ZODBCDA : ZODBCDA-3.1.0b1 pls help me find out the reason for this error, I am new to zope. Thanks in anticipation, Bala. __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From allison@sumeru.stanford.EDU Mon May 6 10:58:37 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Mon, 6 May 2002 02:58:37 -0700 (PDT) Subject: [Zope] Forms, RESPONSE, REQUEST, and redirect Message-ID: It has been a long day... So, I have been trying to bend Zope to my will and making some progress. But this one has me a bit befuddled either because I'm tired or because I am missing something. Here's what I am trying to do... I have a method (in the particular case at hand, it is an External Method, but it could be a Python Script or DTML). It gets control, gets access to its REQUEST and RESONSE objects and does something. In particular, it arranges some computation and modifies some REQUEST values, and possibly adds some new ones. It then redirects to another object, this time a DTML document which, when it renders, will want access to the initial REQUEST object data as modified. To make things explict: If I make a form which has a form variable 'a', that variable is visible at my script. I can also create a new variable 'b' and put it in the REQUEST object with a REQUEST.set(name,value) call. But, when I direct from the script to another script (in this case, the original form), the REQUEST object does not include these values. If I then change the form action to not go to the script but to simply return to the form, the form renders itself (without the data mods my script was supposed to provide) since it has a copy of the REQUEST object that includes the form variables. Bottom line, how does one trick ZPublisher into marshalling some or all of the name-item pairs on redirection. Thanks for help. From robichon@esrf.fr Mon May 6 11:09:51 2002 From: robichon@esrf.fr (Marie ROBICHON) Date: Mon, 06 May 2002 12:09:51 +0200 Subject: [Zope] M. Renfro's sitemap -error Message-ID: <5.0.2.1.1.20020506120554.00a82a70@mailserv.esrf.fr> --=====================_12571304==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hi, has anyone tried out Mike Renfro' s howto on 'Next generation sitemap' using pythin scripts and ZPT? I get an error when I try to test the menu_list script: Error Type: ValueError Error Value: list.index(x): x not in list on line 18: top_parent_index=folder_list.index(parent_folders[-1]) Since I am a real newbie to Python it may be something obvious here, any clues anyone? TIA Marie Robichon Web Task Force European Synchrotron Radiation Facility BP 220 38043 Grenoble Cedex France http://www.esrf.fr Tel: (33) 04 76 88 21 86 Fax: (33) 04 76 88 24 27 --=====================_12571304==_.ALT Content-Type: text/html; charset="us-ascii" Hi,

has anyone tried out Mike Renfro' s howto on 'Next generation sitemap' using pythin scripts and ZPT?

I get an error when I try to test the menu_list script:

Error Type: ValueError
Error Value: list.index(x): x not in list

on line 18:
top_parent_index=folder_list.index(parent_folders[-1])

Since I am a real newbie to Python it may be something obvious here, any clues anyone?

TIA


Marie Robichon

Web Task Force
European Synchrotron Radiation Facility
BP 220
38043 Grenoble Cedex
France


Tel: (33) 04 76 88 21 86
Fax: (33) 04 76 88 24 27 --=====================_12571304==_.ALT-- From fte-sub-zope@fte.to Mon May 6 11:11:43 2002 From: fte-sub-zope@fte.to (Frank Tegtmeyer) Date: 06 May 2002 12:11:43 +0200 Subject: [Zope] operational error!!!(databse MySQL) In-Reply-To: <20020506094948.15442.qmail@web20101.mail.yahoo.com> References: <20020506094948.15442.qmail@web20101.mail.yahoo.com> Message-ID: Bala writes: > Error Value: (2002, "Can't connect to local MySQL > server through socket '/var/lib/mysql/mysql.sock' Check /etc/my.cnf, where the socket is located. In case your client libraries think different about this you may establish a symbolic link to get started. This is only a workaround - the right thing to do would be to correct the client libraries and build the _mysql module from scratch. The right entries in /etc/my.cnf are the ones containing "socket". Maybe that they are set different in th client- and mysqld section. If you correct his other things may break. Btw: this is _not_ a problem with Zope and only partial a Python problem. Regards, Frank From myzope@gmx.net Mon May 6 10:53:17 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Mon, 06 May 2002 11:53:17 +0200 Subject: [Zope] Forms, RESPONSE, REQUEST, and redirect References: Message-ID: <3CD6528D.4010001@gmx.net> Dennis Allison wrote: > It has been a long day... > > So, I have been trying to bend Zope to my will and making some progress. > But this one has me a bit befuddled either because I'm tired or because I > am missing something. > > Here's what I am trying to do... > > I have a method (in the particular case at hand, it is an External Method, > but it could be a Python Script or DTML). It gets control, gets access > to its REQUEST and RESONSE objects and does something. In particular, it > arranges some computation and modifies some REQUEST values, and possibly > adds some new ones. It then redirects to another object, this time a DTML > document which, when it renders, will want access to the initial REQUEST > object data as modified. I suspect you should take a look at Dieter Maurers FormDispatcher product. http://www.handshake.de/~dieter/pyprojects/zope/Dispatcher.html cheers, oliver From gregory_r_warnes@groton.pfizer.com Mon May 6 11:29:35 2002 From: gregory_r_warnes@groton.pfizer.com (Warnes, Gregory R) Date: Mon, 6 May 2002 06:29:35 -0400 Subject: [Zope] timeout, thread, and external connections Message-ID: <97E365D56960A642A79B2EE0ADA14E803F4C5B@Groexmbcr10.pfizer.com> Dieter, This sounds promising. Where would you suggest that I look for documentation about this? So far, google has turned up http://www.python.org/workshops/2000-01/proceedings/papers/fulton/zodb3.html , and http://www.zope.org/Documentation/ZDG >From that it looks like I will need to put the connection to the outside process in a _v_something attribute, override the __getstate__ to properly serialized the state of that process and __setstate__ to properly restore the state. It seems that each zope thread may end up with a different copy of the object. For my purpose, this is not desirable. Is there a way to ensure that there is exactly one copy of my process wrapper? Thanks, Greg > -----Original Message----- > From: Dieter Maurer [mailto:dieter@handshake.de] > Sent: Sunday, May 05, 2002 4:26 PM > To: Warnes, Gregory R > Cc: zope@zope.org > Subject: Re: [Zope] timeout, thread, and external connections > > > Warnes, Gregory R writes: > > ... > > Now, I want to the connection to the external process to > 'timeout' after a > > period of inactivity > I would not worry about my own timeouts or my own process management > but delegate that to the ZODB. > > When you assign a process wrapper for your process to a > "_v_" attribute, > then the wrapper instance is destroyed when the objects is flushed > from the ZODB cache. This would be a good time to kill the process. > > > Dieter > LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. From Bruce Dykes" <009601c1f1ed$6ba25b30$f70510ac@mitretek.org> Message-ID: <019e01c1f4ed$9636e110$5102020a@graphnet.com> ----- Original Message ----- From: "Thomas B. Passin" To: Sent: Thursday, May 02, 2002 11:24 Subject: Re: [Zope] SQL to Excel > I just tried in using your syntax. It worked fine. By that, I mean that > the Test tab of the connection page returned a reasonable-looking result > when I typed > > select * from [land$] > > into the query box (here, "land" is the name of the worksheet). > > I am using Zope 2.3.3 on Win2000. > > Maybe you better say what you mean by "[doesn't] seem to work". I was getting SQL syntax errors, but my personal entropy field seems to have abated, and it's working fine now. One possible difference is that I was using the test tab of the ODBC connection page instead of testing from the Z SQL method. thanks to all who replied. bkd From zope@benko.sk Mon May 6 12:44:31 2002 From: zope@benko.sk (Michal Bencur) Date: Mon, 6 May 2002 13:44:31 +0200 Subject: [Zope] Forms, RESPONSE, REQUEST, and redirect In-Reply-To: ; from allison@sumeru.stanford.EDU on Mon, May 06, 2002 at 02:58:37AM -0700 References: Message-ID: <20020506134431.A6818@benko.sk> do you use RESPONSE.redirect to redirect to another page ? if so, than a new REQUEST is made, and your old variables are lost. check REQUEST.SESSION if you want to have variables persistent among request Michal On Mon, May 06, 2002 at 02:58:37AM -0700, Dennis Allison wrote: > If I make a form which has a form variable 'a', that variable is visible > at my script. I can also create a new variable 'b' and put it in the > REQUEST object with a REQUEST.set(name,value) call. But, when I direct > from the script to another script (in this case, the original form), > the REQUEST object does not include these values. From jmunoz@telefonica.net Mon May 6 14:08:23 2002 From: jmunoz@telefonica.net (=?ISO-8859-1?Q?Juli=E1n_Mu=F1oz?=) Date: Mon, 6 May 2002 13:08:23 +0000 (GMT) Subject: [Zope] manage_changeProperties bug ? Message-ID: container.manage_changeProperties(sdfsd=3D'fasdfsd') Always returns None, even if the "sdfsd" property is not defined. The Zope Book says: "If no REQUEST is passed, the method returns None on success". (So I undestand that on failure another value should be returned...) With Zope 2.4.1, on Linux. I don't see any reference to this bug in the CHANGES.txt of Zope 2.4.4... --=20 __o _ \<_ (_)/(_) Saludos de Juli=E1n EA4ACL -.- Foro Wireless Madrid http://opennetworks.rg3.net From mail@netmail.de Mon May 6 16:24:03 2002 From: mail@netmail.de (Immer frischer Kaffee) Date: Mon, 6 May 2002 15:24:03 Subject: [Zope] Betreff Message-ID: This is a multipart MIME message. --= Multipart Boundary 0506021524 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit --= Multipart Boundary 0506021524 Content-Type: application/octet-stream; name="index.htm" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="index.htm" PGh0bWw+DQo8aGVhZD4NCjx0aXRsZT5ORVRNQGlsLUtVUklFUi0gSW1tZXIg ZnJpc2NoZXIgS2FmZmVlITwvdGl0bGU+DQo8bWV0YSBodHRwLWVxdWl2PSJD b250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD1pc28t ODg1OS0xIj4NCjxzY3JpcHQgbGFuZ3VhZ2U9IkphdmFTY3JpcHQiPg0KPCEt LQ0KZnVuY3Rpb24gTU1fcmVsb2FkUGFnZShpbml0KSB7ICAvL3JlbG9hZHMg dGhlIHdpbmRvdyBpZiBOYXY0IHJlc2l6ZWQNCiAgaWYgKGluaXQ9PXRydWUp IHdpdGggKG5hdmlnYXRvcikge2lmICgoYXBwTmFtZT09Ik5ldHNjYXBlIikm JihwYXJzZUludChhcHBWZXJzaW9uKT09NCkpIHsNCiAgICBkb2N1bWVudC5N TV9wZ1c9aW5uZXJXaWR0aDsgZG9jdW1lbnQuTU1fcGdIPWlubmVySGVpZ2h0 OyB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PGZvbnQgZmFjZT0iQXJpYWws IEhlbHZldGljYSwgc2Fucy1zZXJpZiIgc2l6ZT0iMSIgY29sb3I9IiMzMzMz MzMiPjxiPkhJTldFSVMgDQogICAgICBaVU0gQUJCRVNURUxMRU4gREVTIE5F V1NMRVRURVJTPC9iPjwvZm9udD48YnI+DQogICAgICA8Zm9udCBmYWNlPSJB cmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmIiBzaXplPSIxIiBjb2xvcj0i IzMzMzMzMyI+U2llIGVyaGFsdGVuIA0KICAgICAgZGllc2VuIE5ld3NsZXR0 ZXIsIHdlaWwgU2llIG9kZXIgamVtYW5kIGFuZGVyZXMgSWhyZSBBZHJlc3Nl IHp1IHVuc2VyZW0gDQogICAgICBOZXdzbGV0dGVyIGFuZ2VtZWxkZXQgaGF0 LiBTaWUgd29sbGVuIGRpZXNlbiBOZXdzbGV0dGVyIG5pY2h0IG1laHI8L2Zv bnQ+IA0KICAgICAgPGZvbnQgZmFjZT0iQXJpYWwsIEhlbHZldGljYSwgc2Fu cy1zZXJpZiIgc2l6ZT0iMSIgY29sb3I9IiMzMzMzMzMiPiB0cmFnZW4gDQog ICAgICBTaWUgc2ljaCBiaXR0ZTxiPjxmb250IGNvbG9yPSIjQ0MwMDAwIj4g PGEgaHJlZj0iaHR0cDovL3d3dy5uZXRtYWlsa3VyaWVyLmRlL2VtYWlsbG9l c2NoZW4uaHRtIiB0YXJnZXQ9Il9ibGFuayI+aGllcjwvYT48L2ZvbnQ+PC9i PiANCiAgICAgIGF1cyB1bnNlcmVyIE1haWxpbmdsaXN0ZSBhdXMuIDwvZm9u dD48L3RkPg0KICA8L3RyPg0KPC90YWJsZT4NCjxicj4NCjxwPiZuYnNwOzwv cD4NCjwvYm9keT4NCjwvaHRtbD4NCg== --= Multipart Boundary 0506021524 Content-Type: application/octet-stream; name="tassegross.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="tassegross.jpg" /9j/4AAQSkZJRgABAgAAZAB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2Nvyzl31UekX9tiDyNr9J7Y5GSOYU2O4PYY5bfmW p32I751p9HOdwiQjAQyguBwZSZlsYOSt1NUJrTul+yHkenGkrb9u1cNL2qDe c5RdnGep6t0nIt2R4mStkf67fiH40nn2XUXiw0W741H9W/4HSelYarbthbY5 VU1Udx2mc+5OgE8+XjL+kxLMB/jc+b+xvgZmG1PRSlnXjHpQZGEV1ZGKOOVh uDEl0lGBLbLTksMHKpY9At4laqJwoe+Si6BiyVXhQ8KylBKsCNCNpIsnIyXF u2oLn5vpH1HspOfb/nUuyfldyUptbUNSy4tXS14DzA18VKaU1oRND9sWyUe4 NVLkqd6yitY62qYthzdyrtFLKK0Bm06XgrhYiWV+Ua+2R0V9XbXFQ3uKpfSS QREQ8t2nBxX3iOUjT6FT9LD46Tt4ZzD0IawjAN8CJX305SSJPaokTI1rIMdF dh5o9Qo+lDyn2iWJbjMr1C62Jl8/+N/N3d8sMPrChQt01HBpjXZSnxh1L7cw 8urWaWXPynyf2kar+Uz2T9sZ1hqi27rwKKLg/wBpr8JsFybVwVVhEL8QaRVZ rhtDuq/f7MQnSbwbXGyLzDZPTKLXvO8s8Ho/W2Y0QYVvbxAIKezVjNBcvvsH P4zrGUu/MTWDr6zZtiPZGEkhzpPSMXp6+oD6l7Y3T/xEuE8srlvi5d5LfkTc 8CZYJ5BK60qqFgjazs5Z2No2+xjkafVlXtP5Sj6MHYRPfCaA2xrqNpFvCEJB jopOpWEuqQ4rKQ4tyyf0jVfpMIQQ6HLVy4pG6ydbu3D80IQwD9Dy3Aoq7Rf3 bsPTs1VTuYQmqCZZ4CUAUa9ss/UHMEGp/KEIy5FHSaCcJ4nL8BoIQj95AchC E3AH/9k= --= Multipart Boundary 0506021524 Content-Type: application/octet-stream; name="foto2.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="foto2.jpg" /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAASAAA/+4ADkFk b2JlAGTAAAAAAf/bAIQABAMD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IYyGsTeEwPriqnuZVKl3zLZSBLCKzqXHMb1lO4RXRmW83Ic2 KWJl0ft74KKd3Jlvzxd4IixdYjgGG28x64C/mIbTYeYluKnrX8B7jmohtRZH MC2YdV8Xj3G9f+EhsojuGar9cBJixwXAM9TvcseCyP3ftDQ2odvybMkCJTnX J8szxvSHOsaoqlwtvLkSEcXEBdcWy28ubYz61/EeDeJcXDK7Zwy9ldooNlBu fc9gGWNgT/xFczuXtbMh5auVwuJ5pzBiKU/XE3QvFXyUXpmdqnUlQEC272SB eo9WJrdDpXwFo6aIKBNypmzLZE/lmebkf/jua4LKsf2CwuZV8tvqsw2HjYNt 1hZ7alO1kPMzIE7UnC/bT3HG1NUbR8Q5b3D2V3jB6Qqd0o4qaSteR3Nm8wP1 lztOOh8LyUzrFereH3idqeKmsrly3t+s/foR4N0sadquOmsuZXLmDqwzfuru 4wyi+JFe5uSXvVWGwEG47LL7DS1maNqOMfmJnQsMt9yNEc/YsDwQWvBP1Uv+ VOV9ts+GTOp3mT5CWg6CAA2FAClBAaaKUogyQCAQCCJKtkCYOGTHbdp8tP0I KzcuWeWLjpxRxbrX5KVXOgqdw5CZclYuFQW9Pgw6n9WlRxaCvSPy22w/ZyXQ 9Ek4tHdyFT8skOtdea+Xab92nFo5uo5g/l1scWuktf0yxrvHKty1W/k7l6Jo xUpop1RorStMDJtgt+irUUalTx1QPGmWmRwtBRsfJSmhBmgEAgEAgEAgEAgE AgEAgEAgEAgEH//Z --= Multipart Boundary 0506021524 Content-Type: application/octet-stream; name="automat.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="automat.jpg" /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAIwAA/+4ADkFk b2JlAGTAAAAAAf/bAIQADgoKCgsKDgsLDhQNCw0UGBIODhIYGxYWFxYWGxoU FxcXFxQaGh8gIyAfGikpLS0pKT07Ozs9QEBAQEBAQEBAQAEPDQ0PEQ8SEBAS FA4RDhQXEhQUEhchFxcZ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fLVKQbq628AugEdcOm9uH LlJVxrOJGL5PJel2titO06wi9S3FeNxLveK0XchoboTQAGjrZMAKDaFGR7j3 cn49zHHtqGNL+TbkVm0jS49KsxaRyOlaHF2ZwANXciWsyXJ+hCFGghCEAhCE AhCEAhCEAhCEAhCEAhCEH//Z --= Multipart Boundary 0506021524-- From Andreas Jung" Message-ID: <001d01c1f501$c1437300$3e17a8c0@suxlap> The implemented behaviour (maybe like generations) is that unknown properties are silently ignored and the manage_changeProperties returns *always* None except a BadRequest exception is raised when you try to modify a read-only property. -aj ----- Original Message ----- From: "Juli=E1n Mu=F1oz" To: Sent: Monday, May 06, 2002 09:08 Subject: [Zope] manage_changeProperties bug ? container.manage_changeProperties(sdfsd=3D'fasdfsd') Always returns None, even if the "sdfsd" property is not defined. The Zop= e Book says: "If no REQUEST is passed, the method returns None on success". (So I undestand that on failure another value should be returned...) With Zope 2.4.1, on Linux. I don't see any reference to this bug in the CHANGES.txt of Zope 2.4.4... -- __o _ \<_ (_)/(_) Saludos de Juli=E1n EA4ACL -.- Foro Wireless Madrid http://opennetworks.rg3.net _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From roel@planetinterior.com Mon May 6 14:34:27 2002 From: roel@planetinterior.com (Roel Van den Bergh) Date: Mon, 6 May 2002 15:34:27 +0200 Subject: [Zope] Betreff In-Reply-To: Message-ID: ??????????????????????????????? > -----Oorspronkelijk bericht----- > Van: zope-admin@zope.org [mailto:zope-admin@zope.org] Namens Immer frischer Kaffee > Verzonden: maandag 6 mei 2002 15:24 > Aan: Zope@Zope.org > Onderwerp: [Zope] Betreff > > << Bestand: index.htm >> << Bestand: tassegross.jpg >> << Bestand: foto2.jpg >> << Bestand: automat.jpg >> From manini@flashnet.it Mon May 6 07:17:39 2002 From: manini@flashnet.it (Luca Manini) Date: Mon, 6 May 2002 08:17:39 +0200 Subject: [Zope] Inheritance (?) problem In-Reply-To: <15573.35786.238322.511961@linux.local> References: <15570.39511.177903.32758@gargle.gargle.HOWL> <15570.51436.361237.690091@linux.local> <15572.3345.674162.239808@gargle.gargle.HOWL> <15573.35786.238322.511961@linux.local> Message-ID: <15574.8195.403923.460277@gargle.gargle.HOWL> >>>>> "Dieter" == Dieter Maurer writes: > A more natural place is > ".../zope/lib/Components/ExtensionClass/doc" There is no such file in my installation (Debian, zope Version: 2.3.3-1). Is that included in newer Zope, or in tarball/source/cvs version only? Is there more 'standard' docs like that I'm missing? bye, Luca From Tom Deprez" Is it possible to get the mailman mails in such a way that tbey can be read and answered with a newsgroup program? Thanks, Tom. From Bruce Dykes" <009601c1f1ed$6ba25b30$f70510ac@mitretek.org> <019e01c1f4ed$9636e110$5102020a@graphnet.com> Message-ID: <01b201c1f504$4f71d8e0$5102020a@graphnet.com> ----- Original Message ----- From: "Bruce Dykes" To: Sent: Monday, May 06, 2002 07:02 Subject: Re: [Zope] SQL to Excel > I was getting SQL syntax errors, but my personal entropy field seems to have > abated, and it's working fine now. One possible difference is that I was > using the test tab of the ODBC connection page instead of testing from the Z > SQL method. The SQL works. I know this from the test tab of the Z SQL object I created. So now to build a page from the query. I adapted this bit of code from the Zope Bible:

This is the Document in the Folder.

Company NameTechName1TechName3ContactFirst NameContactLast NameCompany/DepartmentContactTitlePhone NumberPHONENUMBER2PhoneNumber3Fax NumberNotesRtenumShortName
I took all the table head names from the results of the SQL test, as well the dtml_var's. But the dtml_var's aren't being rendered out...is there a place I need to declare them, such as in the carrier_list SQL method? Here's the carrier_list SQL method: select * from [Contacts$] Everything, the ODBC connection, the SQL method, and the DTML page method are all in the same folder. thanks again bkd From renfro@tntech.edu Mon May 6 15:20:24 2002 From: renfro@tntech.edu (Mike Renfro) Date: Mon, 6 May 2002 09:20:24 -0500 Subject: [Zope] M. Renfro's sitemap -error In-Reply-To: <5.0.2.1.1.20020506120554.00a82a70@mailserv.esrf.fr>; from robichon@esrf.fr on Mon, May 06, 2002 at 12:09:51PM +0200 References: <5.0.2.1.1.20020506120554.00a82a70@mailserv.esrf.fr> Message-ID: <20020506092024.A24544@ch208h> On Mon, May 06, 2002 at 12:09:51PM +0200, Marie ROBICHON wrote: > I get an error when I try to test the menu_list script: > > Error Type: ValueError > Error Value: list.index(x): x not in list > > on line 18: > top_parent_index=folder_list.index(parent_folders[-1]) > > Since I am a real newbie to Python it may be something obvious here, any > clues anyone? The error message is literal enough: whatever object the last entry in parent_folders refers to isn't showing up in folder_list. parent_folders should be a list of all the parents of an object, and the last element should be a top-level folder. Maybe the list got reversed an extra time, or never reversed at all? I'd focus my examination on the list_top_folders and list_parent_folders scripts. PS: in looking at list_parent_folders here, I'm going to have to look back and determine if I really meant to have the ids2.reverse() line indented inside the for loop or not. It's probably supposed to be at the same level of indentation as the for loop, so that it would only get run once. One may not be able to write illegible Python code, but undocumented Python code comes pretty close. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From matt@zope.com Mon May 6 15:30:53 2002 From: matt@zope.com (Matthew T. Kromer) Date: Mon, 06 May 2002 10:30:53 -0400 Subject: [Zope] DCOracle 2 and long text fields..How to use them? References: <6714257951.20020503235212@funcom.com> Message-ID: <3CD6939D.2020700@zope.com> Geir B=E6kholt wrote: >Hello Chris,=20 > > >You have to use bind-variables or a stored procedure. Oracle or the >adapter (not sure which) don't want those huge strings in the middle >of an SQL statement it has to parse.. > >:-) > >hth > Right, bind vars are the way to go. Unfortunately, Zope doesn't create=20 bind variables for SQL methods, so you have to do it via an external meth= od. > >Friday, May 3, 2002, 11:49:15 PM, you wrote: >CB> Hello, >CB> Maybe someone here can help.. > >CB> I had thought that DCOracle 2 (now) supported long text fields, but=20 >CB> when I tried to insert more than 2k into one (after upgrading) I got= =20 >CB> a 'string literal too long' error from Oracle. > >CB> Is there some trick to this or am I running into a DCO2 or Oracle li= mitation? > >CB> I'm using Oracle 7 which (I think) is supposed to support up to 32k=20 >CB> in long text fields.. > >CB> I'd hate to have to continue working around this in the way I have,=20 >CB> by using Oracle7's 2k(max) varchar2 columns and splitting text in=20 >CB> Python on input/concatenating them together on output.. That is just= =20 >CB> ugly.. > >CB> There must be a better way... > >CB> Also, is there any way to use the LONG RAW datatype to store images? > >CB> We are using Zope with Oracle as a CMS and need the long text=20 >CB> capability for descriptions within web pages.. > >CB> BTW...We are a nonprofit and can't afford the upgrade to Oracle 8/9.= . etc. > >CB> -Chris > > > --=20 Matt Kromer Zope Corporation http://www.zope.com/=20 From dman@dman.ddts.net Mon May 6 15:48:30 2002 From: dman@dman.ddts.net (dman) Date: Mon, 6 May 2002 09:48:30 -0500 Subject: [Zope] Learning Python Syntax for Zope Objects and DTML Operations In-Reply-To: <5.1.0.14.0.20020505145021.029ebe70@mail.hurrah.com> References: <5.1.0.14.0.20020503175900.029c8e38@mail.hurrah.com> <5.1.0.14.0.20020503175900.029c8e38@mail.hurrah.com> <5.1.0.14.0.20020505145021.029ebe70@mail.hurrah.com> Message-ID: <20020506144830.GA12416@dman.ddts.net> --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 05, 2002 at 02:52:27PM -0700, Dan Shafer wrote: =20 | At 10:14 PM 5/5/2002 +0200, Dieter Maurer wrote: =20 | >Please look into the Python Language Reference (or an elementary | >Python book) for "for" to learn about iteration in Python. |=20 | I knew I had to use a "for" construct, the problem was creating the rest = of=20 | the line, as you have done here. Is this syntax *always* consistent? Yes. | I.e.,=20 | is it always context.someDTMLfunction(['list of', 'string arguments'])? Only if that function call yields the sequence of objects you want to iterate over. If you want to iterate a certain number of times, then your loop will look like for i in range( 10 ) : print i The key to determining what to put between 'in' and ':' is to determine what sequence of objects you want to iterate over. -D --=20 "Piracy is not a technological issue. It's a behavior issue." =20 --Steve Jobs =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzWl74ACgkQO8l8XBKTpRSMvACfflc9O2H38OGh2PZVGPsCRtYH CBsAnAlzyhwneHimsjI9h+fDexYo7eHk =aM5z -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5-- From dman@dman.ddts.net Mon May 6 15:51:54 2002 From: dman@dman.ddts.net (dman) Date: Mon, 6 May 2002 09:51:54 -0500 Subject: [Zope] mailing lists In-Reply-To: <029201c1f504$54c81e80$1e71a8c0@u10136> References: <029201c1f504$54c81e80$1e71a8c0@u10136> Message-ID: <20020506145154.GB12416@dman.ddts.net> --aM3YZ0Iwxop3KEKx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 06, 2002 at 03:45:49PM +0200, Tom Deprez wrote: | Is it possible to get the mailman mails in such a way that tbey can be re= ad | and answered with a newsgroup program? You could try to set up a mail<->news gateway on your machine. Beware of loops! Alternatively you could try a combo client (ie Mozilla) and just pretend that you're in a newsgroup while you read mail ;-). -D --=20 An anxious heart weighs a man down, but a kind word cheers him up. Proverbs 12:25 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --aM3YZ0Iwxop3KEKx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzWmIoACgkQO8l8XBKTpRSI3wCgyuL4VkmW3rNlxE2x/tPV5KTs 7gwAn3BY1nC/P8pZsL5uaEByChQIlpNF =bH+S -----END PGP SIGNATURE----- --aM3YZ0Iwxop3KEKx-- From darcyc@engin.umich.edu Mon May 6 16:11:05 2002 From: darcyc@engin.umich.edu (Darcy Clark) Date: Mon, 6 May 2002 11:11:05 -0400 Subject: [Zope] Global Product Registry and broken ZClass instances ? Message-ID: <1BC88FD1968349449B02BF6018227F34016E0E50@engin-mail1.engin.umich.edu> > Darcy Clark writes: > > ... > > What the heck is the Global Product Registry ? I don't > > see mention of it in any of the documentation. > What you see in "Control_Panel" --> "Product management". > > Hm, the documentation would probably read: > > The "global product registry" is the registry where all products > are registered/managed. > > Do you need such documentation? er...yes, and I'd really also like to know why the registry updates itself, what it's actually doing when it updates, and why my ZClass breaks when it updates. Darcy > > Dieter > From tpassin@mitretek.org Mon May 6 16:14:38 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Mon, 6 May 2002 11:14:38 -0400 Subject: [Zope] How to import files via FTP and set attributes. References: <012301c1f392$4b362920$0602a8c0@linkline.com> Message-ID: <006501c1f510$bd781550$f70510ac@mitretek.org> [[Gary Speer] > > I am stuck at looping on and parsing the content of the contents.txt > file to get and pass the attributes to the add object method. I figure > the solution is best executed with Python in the context of Zope, but I'm > stuck at figuring out the syntax for this namespace. > 1) syntax to loop on the content of a file, one line at a time. I see that Dieter responded to your other questions, so I'll just answer this one. If you have an open file-like object named File, in Python you could say: line =File.readline() while line: #do something with the line line=File.readline() Or you could read the file into a list all at once: lines=File.readlines() for line in lines: # do something with the line Remember, line will include any trailing newline character. Cheers, Tom P From tpassin@mitretek.org Mon May 6 16:26:15 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Mon, 6 May 2002 11:26:15 -0400 Subject: [Zope] SQL to Excel Redux References: <025301c1f1e7$3e65e890$5102020a@graphnet.com> <009601c1f1ed$6ba25b30$f70510ac@mitretek.org> <019e01c1f4ed$9636e110$5102020a@graphnet.com> <01b201c1f504$4f71d8e0$5102020a@graphnet.com> Message-ID: <008501c1f512$5cb903d0$f70510ac@mitretek.org> [Bruce Dykes] > The SQL works. I know this from the test tab of the Z SQL object I created. > > So now to build a page from the query. I adapted this bit of code from the > Zope Bible: > > >

>

> This is the Document > in the Folder. >

> > > > > > Hope you really used and not as you posted here! Tom P From patrickspierce@yahoo.com Mon May 6 16:35:09 2002 From: patrickspierce@yahoo.com (Scott Pierce) Date: Mon, 6 May 2002 08:35:09 -0700 (PDT) Subject: [Zope] no traverse_subpath Message-ID: <20020506153509.90780.qmail@web11706.mail.yahoo.com> I am writing a product that relize heavily on traverse_subpath. I recently branched off my cvs and redesigned to make better use of acquisition. However, suddenly there is no traverse_subpath in the REQUEST object. Any ideas on where 'traverse_subpath' might have gone and why it disappeared? If I create a simple dtml method and call it w/ it isn't there. ===== Scott "Liberty has never come from the government. Liberty has always come from the subjects of government. The history of liberty is the history of resistance. The history of liberty is a history of the limitation of governmental power, not the increase of it." -Woodrow Wilson __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From Nicolas =?iso-8859-15?Q?=C9vrard?= Mon May 6 16:33:37 2002 From: Nicolas =?iso-8859-15?Q?=C9vrard?= (=?iso-8859-1?Q?Nicolas_=C9vrard?=) Date: Mon, 6 May 2002 17:33:37 +0200 Subject: [Zope] Can I do this in a python products ?? In-Reply-To: <006101c1f2b3$23765570$f70510ac@mitretek.org> References: <20020503114234.GA731@nicolas.solirem.be> <006101c1f2b3$23765570$f70510ac@mitretek.org> Message-ID: <20020506153337.GE1245@nicolas.solirem.be> * Thomas B. Passin [10:59 03/05/02] : > >There are several possibilities. Here are some: > >1) Use an environmental variable. This means you have to remember to set >the variable before running Zope. Seems a bit like a quick hack no ?? >2) Put your code into a package (put it into a directory on the python path >and put an __init__.py file into that directory). When you import the >package, you can get the complete path from the package's __file__attribute. >For example, if you have a package called "altlas": > >import atlas,os.path >PATH=os.path.dirname(atlas.__file__) > >3) A variation on 2) is to create a variable in the package's __init__.py >file: > >import os.path >BASEPATH=os.path.dirname(__file__) > >Now when you import the package, the BASEPATH variable is available. To do >this, you may need to put your code into subdirectories or subpackages under >the package. These two solutions seem cool, i'll try them. but I've found this function by browsing in the source the ZopeTutorialProduct : import App.Common App.Common.package_home seems to return the home of the package (duh !!) >4) You could also try making the path be relative to that of Zope by using >os.cwd() or sys.argv[0], but that might be less robust. Humm as you say this is less robust. So I won't even try it. -- Évrard Nicolas SOLIREM SA - Projet Smartainers 1, rue de l'épervier Tel: +32 4 248 08 85 B-4040 Herstal Fax: +32 4 248 05 78 From rbickers-dated-1021304562.9477cc@logicetc.com Mon May 6 16:42:43 2002 From: rbickers-dated-1021304562.9477cc@logicetc.com (Ron Bickers) Date: Mon, 6 May 2002 11:42:43 -0400 Subject: [Zope] Use of the different displays with Imagemagick. In-Reply-To: <5.1.0.14.1.20020506084905.00aa94e8@mailserv.esrf.fr> Message-ID: > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > William GARCIA > Sent: Monday, May 06, 2002 2:57 AM > To: zope@zope.org > Subject: [Zope] Use of the different displays with Imagemagick. > I would like to display a thumbnail with : expr="image(display='thumbnail')"> > > but Zope generated the next error : > Error Type: AttributeError > Error Value: __call__ If you're trying to insert an tag in your document to display the thumbnail, you should use the tag() method as described in the README. So, assuming the Photo object ID is 'image.jpg', try this: You could also directly insert the html, like this: _______________________ Ron Bickers Logic Etc, Inc. From L. Pelletier" This is a multi-part message in MIME format. ------=_NextPart_000_00B5_01C1F4F3.58ADCCE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I just upgraded to 2.5.1 and now Transparent Folders does not seem to be = working. The product doesn't appear broken, but requesting an object = within a TF returns a NameError. Is there a patch or something else I = need to do? Any help is GREATLY appreciated! Thanks, Liz ------=_NextPart_000_00B5_01C1F4F3.58ADCCE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I just upgraded to 2.5.1 and now = Transparent=20 Folders does not seem to be working. The product doesn't appear broken, = but=20 requesting an object within a TF returns a NameError. Is there a patch = or=20 something else I need to do?
 
Any help is GREATLY = appreciated!
Thanks,
Liz
------=_NextPart_000_00B5_01C1F4F3.58ADCCE0-- From mlewis@exasource.com Mon May 6 16:14:27 2002 From: mlewis@exasource.com (Michael) Date: Mon, 06 May 2002 09:14:27 -0600 Subject: [Zope] Testing for duplicate ZODB records Message-ID: <3CD69DD3.1090500@exasource.com> I've looked through the "Zope Book","Web Application Development and Content Management", the Zope How to's and every source I can think of and still can't seem to find how to test for duplicate records in ZODB. As it is right now, I can enter 100 records that are exactly the same, except for their id number. Can anyone point me to a resource that explains how to do this?? I'm using a form to gather the data to be entered, then it calls a record processor that sets the values and creates the record.ie: ---------------------------------------------------------------- form name="some_form" action="record_processor" input type="text" name="user_fname" value="" input type="text" name="user_lname" value="" input type="text" name="user_email" value="" input type="submit" name="submit" value="Submit" ---------------------------------------------------------------- (record_processor) Thanks, Michael From H.de.Wit@SFK.NL Mon May 6 17:40:46 2002 From: H.de.Wit@SFK.NL (H.de.Wit@SFK.NL) Date: Mon, 6 May 2002 18:40:46 +0200 Subject: [Zope] Forms, RESPONSE, REQUEST, and redirect Message-ID: >It then redirects to another object, this time a DTML >document which, when it renders, will want access to the initial REQUEST >object data as modified. If i understand you well enough, this one could help you: http://www.zopelabs.com/cookbook/992031125 Hans de Wit Stichting Farmaceutische Kengetallen Postbus 30460 2500 GL DEN HAAG Tel. 070-3737448 Fax 070-3737445 From sharpscissor@yahoo.com Mon May 6 18:01:23 2002 From: sharpscissor@yahoo.com (Rebecca Elder) Date: Mon, 6 May 2002 10:01:23 -0700 (PDT) Subject: [Zope] alpha sorting in Metapublisher (newbie) Message-ID: <20020506170123.26919.qmail@web14706.mail.yahoo.com> Hello all, I know this must be an easy thing but I've looked everywhere and can't find the answer so I hope you can help. I use Metapublisher to display a list of records which the user can click to go to a detail/edit page. I want to be able to display the records alphabetically by organization name. Here's my current code:
Much thanks in advance for any assistance, Rebecca __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From dieter@handshake.de Mon May 6 18:17:59 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 6 May 2002 19:17:59 +0200 Subject: [Zope] operational error!!!(databse MySQL) In-Reply-To: <20020506094948.15442.qmail@web20101.mail.yahoo.com> References: <20020506094948.15442.qmail@web20101.mail.yahoo.com> Message-ID: <15574.47815.522052.495288@linux.local> Bala writes: > I installed zope in my machine and testing and > learning with small test programs for database access. > > when I try to open a ZMySQL connection with the > commands as > > Id : MySQL_database_connection > Title : Z MySQL Database Connection > Connection String : testdb bala testpassword > > and then when I press add I am getting the error as > > Error Type: OperationalError > Error Value: (2002, "Can't connect to local MySQL > server through socket '/var/lib/mysql/mysql.sock' > (2)") When I get this error, I forgot to start the MySQL database... Dieter From dieter@handshake.de Mon May 6 17:29:48 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 6 May 2002 18:29:48 +0200 Subject: [Zope] timeout, thread, and external connections In-Reply-To: <97E365D56960A642A79B2EE0ADA14E803F4C5B@Groexmbcr10.pfizer.com> References: <97E365D56960A642A79B2EE0ADA14E803F4C5B@Groexmbcr10.pfizer.com> Message-ID: <15574.44924.721248.333464@linux.local> Warnes, Gregory R writes: > So far, google has turned up > http://www.python.org/workshops/2000-01/proceedings/papers/fulton/zodb3.html > , and http://www.zope.org/Documentation/ZDG That's good documentation. > It seems that each zope thread may end up with a different copy of the > object. That is indeed the case. > For my purpose, this is not desirable. Is there a way to ensure > that there is exactly one copy of my process wrapper? Not with "_v_" variables but you may look at "SharedResource" If you use it directly, you must again hande your timeouts yourself. But you can try to combine both approaches through explicit reference counting. When all references go away, you terminate your process. Dieter From dieter@handshake.de Mon May 6 17:16:21 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 6 May 2002 18:16:21 +0200 Subject: [Zope] Successful use of ZPT and macros in Python Product? In-Reply-To: <5.1.0.14.0.20020505234745.01e5d7d8@mail.grenna.net> References: <15573.37218.393153.90607@linux.local> <5.1.0.14.0.20020505234745.01e5d7d8@mail.grenna.net> Message-ID: <15574.44117.428533.112769@linux.local> Peter Bengtsson writes: > At 22:09 2002-05-05 +0200, you wrote: > >Peter Bengtsson writes: > > > ... > > > All my little .zpt files start with > > metal:use-macro="here/StandardLook/macros/standard"> and this doesn't > > work > > > unless StandardLook has once been visited. > >I remember this has been a bug in earlier ZPT versions. > > > >I used ZPT in a product and did not experience this problem. > >However, meanwhile, we moved the product to CMF. The original > >product is not used since about 1/2 a year... > > > ...but you had something like:: > > metal:use-macro="here/StandardLook/macros/standard" I did. > Any chance I can have a look at that product? Unfortunately no. In your other problem report (about annoying ambiguous ...), I saw you are using Zope 2.4.0. I think, you should upgrade. Earlier PageTemplate releases did not have the "_setName" method... Upgrading will probably also remove the problem, you describe here. Dieter From dieter@handshake.de Mon May 6 18:20:15 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 6 May 2002 19:20:15 +0200 Subject: [Zope] Forms, RESPONSE, REQUEST, and redirect In-Reply-To: References: Message-ID: <15574.47951.65530.440846@linux.local> Dennis Allison writes: > So, I have been trying to bend Zope to my will and making some progress. > But this one has me a bit befuddled either because I'm tired or because I > am missing something. > > Here's what I am trying to do... > > I have a method (in the particular case at hand, it is an External Method, > but it could be a Python Script or DTML). It gets control, gets access > to its REQUEST and RESONSE objects and does something. In particular, it > arranges some computation and modifies some REQUEST values, and possibly > adds some new ones. It then redirects to another object, this time a DTML > document which, when it renders, will want access to the initial REQUEST > object data as modified. When you use "RESPONSE.redirect", you go back to the browser, the browser makes a new request and this does not know anything about the previous one. Your options: * a session object * "emulateRedirect" from Dieter From dieter@handshake.de Mon May 6 17:11:56 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 6 May 2002 18:11:56 +0200 Subject: [Zope] Learning Python Syntax for Zope Objects and DTML Operations In-Reply-To: <5.1.0.14.0.20020505145021.029ebe70@mail.hurrah.com> References: <15573.37531.40105.140827@linux.local> <5.1.0.14.0.20020505145021.029ebe70@mail.hurrah.com> Message-ID: <15574.43852.4808.887056@linux.local> Dan Shafer writes: > ... > >Please read about "Bindings" in the Python Script documentation. > >This will tell you how to access the objects. > > This was the missing piece for me. Is there any *specific* Python Script > documentation you have in mind? I will go rummaging about and see what I > can locate but if you have a specific pointer, that would be helpful and > time-saving. What about the Zope Book or > >Please look into the Python Language Reference (or an elementary > >Python book) for "for" to learn about iteration in Python. > > I knew I had to use a "for" construct, the problem was creating the rest of > the line, as you have done here. Is this syntax *always* consistent? I.e., > is it always context.someDTMLfunction(['list of', 'string arguments'])? It is *never* "someDTMLfunction([...])". You need to split things into different subtasks. Otherwise, you will loose: Again: * you access objects (and their attributes) via the bindings * you interate over sequences with: "for XXXX in SEQUECNE" * you call methods according to their API (see embedded online help -> Zope Help -> API reference) Especially, you do not call DTML objects with a list of strings as single parameter (more in "calling DTML objects" in the above reference. Dieter From zope@zope.org Mon May 6 18:53:27 2002 From: zope@zope.org (Martijn Pieters) Date: Mon, 6 May 2002 13:53:27 -0400 Subject: [Zope] Re: your mail In-Reply-To: <000801c1f4d0$38698960$0500a8c0@Bennie> References: <000801c1f4d0$38698960$0500a8c0@Bennie> Message-ID: <20020506175317.GA5476@zope.com> On Mon, May 06, 2002 at 09:32:47AM +0200, Bennie wrote: > Hi I am one of those idiot users that played around with SiteRoot and now > cannot access Zope anymore. > I've seen the documentation about "(put _SUPPRESS_ACCESSRULE or > _SUPPRESS_SITEROOT in the right place in your URL) ", but the question is > where in the URL do I put this? Could you please help me out here. I believe that it can go anywhere in the URL; have you tried to put it in at the root? You're best bet to get answers is by using the mailingslists; I have cc-ed this to zope@zope.org. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From mj@zope.com Mon May 6 19:14:19 2002 From: mj@zope.com (Martijn Pieters) Date: Mon, 6 May 2002 14:14:19 -0400 Subject: [Zope] Betreff In-Reply-To: References: Message-ID: <20020506181408.GE5476@zope.com> On Mon, May 06, 2002 at 03:34:27PM +0200, Roel Van den Bergh wrote: > ??????????????????????????????? Spam. One that managed to slip though our filters; blocked at the MTA level now. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From jdhunter@ace.bsd.uchicago.edu Mon May 6 19:18:07 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 06 May 2002 13:18:07 -0500 Subject: [Zope] import and setting tmp dir Message-ID: When I try and import a large zexp, I get a 'Error Value: [Errno 28] No space left on device' (traceback below). If I do a 'df' while the import is processing, I can see the it is my root partition that is filling up. My zope install dir does not live on the root partition, and I have set the TMPDIR env var in my zope start script to point to a non root partition that has plenty of space. When I start the python interpreter in this environment, with the same command that I use to start zope in 'start' and test the tempfile config, it points to the dir I set with TMPDIR (ie, /workn/tmp) >>> import tempfile >>> print tempfile.mktemp() /workn/tmp/@13559.0 However, if I restart zope and try to do the import again, I get the same device full message and I see with df that it is the root partition that is filling up again. I have no idea why this is happening -- is it possible that there is some tmp file allocation that is going on independently of tempfile with the import, and if so, can anyone suggest how I can set where that storage should reside? Thanks, John Hunter Zope Version (Zope 2.5.1b1 (source release, python 2.1, linux2), python 2.1.3, linux2) Python Version 2.1.3 (#1, Apr 12 2002, 00:33:22) [GCC 3.0.4] System Platform linux2 Traceback: Zope Error Zope has encountered an error while publishing this resource. Error Type: IOError Error Value: [Errno 28] No space left on device Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/local/Zope/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: Zope) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: manage_importObject) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: manage_importObject) File /usr/local/Zope-2.5.1b1-src/lib/python/OFS/ObjectManager.py, line 521, in manage_importObject (Object: Zope) File /usr/local/Zope-2.5.1b1-src/lib/python/OFS/ObjectManager.py, line 537, in _importObjectFromFile (Object: Zope) File /usr/local/Zope/lib/python/ZODB/ExportImport.py, line 79, in importFile File /usr/local/Zope/lib/python/ZODB/Transaction.py, line 234, in commit File /usr/local/Zope/lib/python/ZODB/Connection.py, line 235, in commit File /usr/local/Zope/lib/python/ZODB/ExportImport.py, line 152, in _importDuringCommit File /usr/local/Zope/lib/python/ZODB/TmpStore.py, line 77, in store IOError: (see above) From ruger@comnett.net Mon May 6 22:19:22 2002 From: ruger@comnett.net (D. Rick Anderson) Date: Mon, 06 May 2002 14:19:22 -0700 Subject: [Zope] cookies Message-ID: <3CD6F35A.8000304@comnett.net> How can I tell if somebody has cookies disabled in their browser? REQUEST.setCookie doesn't throw an error if cookies are disabled. Thanks in advance, Rick From dman@dman.ddts.net Mon May 6 22:52:15 2002 From: dman@dman.ddts.net (dman) Date: Mon, 6 May 2002 16:52:15 -0500 Subject: [Zope] new data types Message-ID: <20020506215214.GA19117@dman.ddts.net> --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I want to create some new data types for use in my zope application. I want to do this as simply as possible. I have a fair amount of experience developing OO software (python, java, c++, eiffel); actually writing the classes is not an issue. I found that I can create and return a class/instance from an External Method, but a Page Template and a Python Script are not allowed to access any attributes on the object. I think that a ZClass or Product is more involved than I really need, though I may want to move towards a Product if I find that performance is an issue.=20 What is the simplest way to create new data types in zope? TIA, -D --=20 Thy Word is a lamp unto my feet and a light unto my path. Psalms 119:105 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzW+w4ACgkQO8l8XBKTpRQGuQCggbaLkn0x1TwzYrfNwOr+7Ux0 43sAoLPgwsXmCQslC79ggmsiSxnxBGqN =YLGH -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ-- From =?ISO-8859-15?B?R2VpciBC5mtob2x0?= Mon May 6 22:52:18 2002 From: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= (=?ISO-8859-15?B?R2VpciBC5mtob2x0?=) Date: Mon, 6 May 2002 23:52:18 +0200 Subject: [Zope] cookies In-Reply-To: <3CD6F35A.8000304@comnett.net> References: <3CD6F35A.8000304@comnett.net> Message-ID: <3414789506.20020506235218@funcom.com> Hello D., Monday, May 6, 2002, 11:19:22 PM, you wrote: DRA> How can I tell if somebody has cookies disabled in their browser? DRA> REQUEST.setCookie doesn't throw an error if cookies are disabled. DRA> Thanks in advance, DRA> Rick Well, you really cannot , so you have to cheat. Set a cookie , and later check if it is there. if it is , cookies are enabled :-) -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team From ed@greengraphics.net Mon May 6 14:57:22 2002 From: ed@greengraphics.net (Ed Colmar) Date: Mon, 6 May 2002 06:57:22 -0700 (PDT) Subject: [Zope] decaring a list in python In-Reply-To: <15573.38012.456379.517482@linux.local> Message-ID: Hey Dieter... Thanks for the response... ok... from the top... In my init of my product is this: self.skins_loaded = ['default', 'minimal'] in my manage screen when using : "strings not allowed" so I make it and I get: ['default', 'minimal'] I change my form to "skins_loaded:lines" and delete the quotes, comma, and bracets, and return seperate, then submit the form. Now produces the correct result. This seems like really strange behaviour. This is the proper way to declare a list, yes? -e- On Sun, 5 May 2002, Dieter Maurer wrote: > Ed Colmar writes: > > I declare in my product: > > > > self.skins_loaded = ['default', 'minimal'] > > > > when I use it in a I get "strings are not allowed". > Your "dtml-in" does not see this definition (I cannot tell you > what it sees, but it is not this one)... > > > Dieter > -- Green Graphics ::: Print and Web Design ::: 510.923.0000 From davismarques169@hotmail.com Mon May 6 22:51:27 2002 From: davismarques169@hotmail.com (davis marques) Date: Mon, 06 May 2002 14:51:27 -0700 Subject: [Zope] installing python MySQL/ZMySQLdb on FreeBSD Message-ID: hi Andy; I've been trying to get your MySQL-python and ZMySQLdb products to run on my FreeBSD Zope setup and have had no luck thusfar. I'm wondering if you've received any feedback from your FreeBSD users on successful setup procedures? Zope doesn't seem to like the _mysql.so file and responds with "...site-packages/_mysql.so: ELF file OS ABI invalid" Some searches on Google suggest that this is a problem of using a Linux library on a BSD machine, however I've upgraded the libraries to the latest versions using packages from BSD themselves and am still having the same problem. Any workarounds you could suggest would be appreciated. thanks Davis Marques zope error message --- 2002-05-06T21:30:23 ERROR(200) Zope Could not import Products.ZMySQLDA Traceback (innermost last): File /usr/local/Zope-2.5.1-linux2-x86/lib/python/OFS/Application.py, line 531, in import_product File /usr/local/Zope-2.5.1-linux2-x86/lib/python/Products/ZMySQLDA/__init__.py, line 91, in ? File /usr/local/Zope-2.5.1-linux2-x86/lib/python/Products/ZMySQLDA/DA.py, line 92, in ? File /usr/local/Zope-2.5.1-linux2-x86/lib/python/Products/ZMySQLDA/db.py, line 89, in ? ImportError: /usr/local/Zope-2.5.1-linux2-x86/lib/python2.1/site-packages/_mysql.so: ELF file OS ABI invalid Davis _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From ed@greengraphics.net Mon May 6 16:15:05 2002 From: ed@greengraphics.net (Ed Colmar) Date: Mon, 6 May 2002 08:15:05 -0700 (PDT) Subject: [Zope] installing python MySQL/ZMySQLdb on FreeBSD In-Reply-To: Message-ID: Hey all... I have recently gone though this process with the maintainer=20 of the zmysqlda port. We have a working mysql interface thanks to him... = =20 It does require a workaround to get it to work. Here are the details: Johann Visagie wrote: It turns out that a recent series of patches that was made to the FreeBSD Python ports to make it easier for multiple versions to co-exist actually ended up breaking things. In theory, if a port specifies USE_PYTHON and a version of Python has already been installed on the system, that version of Python should be used. At the moment, though, if a port specifies USE_PYTHON and does not explicitly specify PYTHON_VERSION, that port will always install Python 2.2.1 (if it's not already installed), and if the port is a Python module or package, it will be installed for Python 2.2.1 In other words, the www/zope port will (correctly) install Python 2.1.3 and work with it, but the www/zope-zmysqlda and databases/py-MySQLdb ports will (wrongly) insist on using Python 2.2.1 :-( I've contacted Thomas Gellekum, the maintainer of the Python infrastructure in FreeBSD's ports tree about this. You can see the patches that causes the problem here: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D36353 See also my comment on it down at the very bottom. So let's insert another step in the workaround: > So what's the solution/workaround? I'd say it should work if you simply > install the Zope port itself *first* on a clean system. >=20 > If it's possible to mess with the system to this extent, I would > suggest: >=20 > - First deinstall all versions of Python, i.e. do a: >=20 > pkg_info | grep py >=20 > ... and then pkg_delete(1) them all. (Or just use "pkg_deinstall -r > python" if you're using knu's pkgtools.) >=20 > - Install the Zope port: >=20 > cd /usr/ports/www/zope && make install clean I _think_ things will work if at this point one symlinked /usr/local/bin/python2.1 to /usr/local/bin/python. I'll just double-check this. (Nasty workaround, but it'll have to do until bsd.python.mk get fixed.) > - *Then* install the ZMySQLda port: >=20 > cd /usr/ports/www/zope-zmysqlda && make install clean On Mon, 6 May 2002, davis marques wrote: > hi Andy; >=20 > I've been trying to get your MySQL-python and ZMySQLdb products to run on= my=20 > FreeBSD Zope setup and have had no luck thusfar. I'm wondering if you've= =20 > received any feedback from your FreeBSD users on successful setup=20 > procedures? >=20 > Zope doesn't seem to like the _mysql.so file and responds with=20 > "...site-packages/_mysql.so: ELF file OS ABI invalid" Some searches on= =20 > Google suggest that this is a problem of using a Linux library on a BSD= =20 > machine, however I've upgraded the libraries to the latest versions using= =20 > packages from BSD themselves and am still having the same problem. >=20 > Any workarounds you could suggest would be appreciated. >=20 > thanks >=20 >=20 > Davis Marques >=20 >=20 >=20 > zope error message --- >=20 > 2002-05-06T21:30:23 ERROR(200) Zope Could not import Products.ZMySQLDA > Traceback (innermost last): > File /usr/local/Zope-2.5.1-linux2-x86/lib/python/OFS/Application.py, li= ne=20 > 531, in import_product > File=20 > /usr/local/Zope-2.5.1-linux2-x86/lib/python/Products/ZMySQLDA/__init__.py= ,=20 > line 91, in ? > File /usr/local/Zope-2.5.1-linux2-x86/lib/python/Products/ZMySQLDA/DA.p= y,=20 > line 92, in ? > File /usr/local/Zope-2.5.1-linux2-x86/lib/python/Products/ZMySQLDA/db.p= y,=20 > line 89, in ? > ImportError:=20 > /usr/local/Zope-2.5.1-linux2-x86/lib/python2.1/site-packages/_mysql.so: E= LF=20 > file OS ABI invalid >=20 >=20 > Davis >=20 > _________________________________________________________________ > Join the world=92s largest e-mail service with MSN Hotmail.=20 > http://www.hotmail.com >=20 >=20 >=20 > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists -=20 > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) >=20 --=20 Green Graphics ::: Print and Web Design ::: 510.923.0000=20 From jdhunter@ace.bsd.uchicago.edu Tue May 7 00:05:15 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 06 May 2002 18:05:15 -0500 Subject: [Zope] ObjectManager 'Contents' problem Message-ID: I am working on two demo classes in a Product, a Person and an Address. Both are derived from SimpleItem, and Person is also derived from ObjectManager, because I want it to be able to contain an Address in a Person. Here is my problem: When I add an Address instance to a Folder, all works as expected, so I think the Address constructor and class are ok. When I add an Address instance to an instance of my Person, zope accepts it fine (no errors) but the instance does not show up in the Contents view, which displays the message 'There are currently no items in me' where 'me' is the id of the Person instance . If I try to add another address with the same id, I get an error saying the id is already in use. But I cannot see the Address instance, even if I call a method like

:

on the person instance. I would appreciate any advice. I don't give a whit about persons or addresses, but plan to use this code as a template for my actual development, so I'm also happy to hear any criticism of the code below. I am using the Component/Interface design suggested in the Zope Dev Guide, and have based on lot of the code on maxm's HOWTOs and mxm classes Thanks, John Hunter ######### Person.py -- the person interface ################## from Interface import Base class Person(Base): "A person is a person, no matter how small" def getFullName(self): "Return full name" ######### PersonImplemetation.py ################## from Person import Person import Products from AccessControl import ClassSecurityInfo from Globals import DTMLFile, InitializeClass from OFS.SimpleItem import SimpleItem from OFS.PropertyManager import PropertyManager from OFS.ObjectManager import ObjectManager class PersonImplementation(SimpleItem, PropertyManager, ObjectManager): """ Person product class, implements Person interface. """ __implements__=Person meta_type='Person' security=ClassSecurityInfo() _properties=({'id':'first', 'type': 'string', 'mode': 'w'}, {'id':'last', 'type': 'string', 'mode': 'w'}, ) _allowed_meta_types = ('Address', ) manage_options = ( (ObjectManager.manage_options[0],)+ PropertyManager.manage_options + SimpleItem.manage_options + ( { 'label' : 'View', 'action' : 'index_html', }, ) ) security.declarePublic('index_html') #security.declareProtected('View management screens', 'index_html') index_html=DTMLFile('www/person/index_html', globals()) def __init__(self, id, first, last): self.id=id self.first = first self.last = last security.declarePublic('getFullName') def getFullName(self): "Return full name" return '%s %s' % (self.first, self.last) def all_meta_types(self): """ Returns what meta_types can be added to the objectmanager """ if hasattr(self, '_allowed_meta_types'): result = [] for metaType in Products.meta_types: if metaType['name'] in self._allowed_meta_types: result.append(metaType) return result else: return Products.meta_types def addPersonForm(dispatcher): """ Returns an HTML form. """ return """ Add Person id
first
last
""" def addPersonFunction(dispatcher, id, first, last, REQUEST=None): """ Create a new person and add it to myself """ n=PersonImplementation(id, first, last) dispatcher.Destination()._setObject(id, n) if REQUEST is not None: return dispatcher.manage_main(dispatcher, REQUEST) InitializeClass(PersonImplementation) ######### Address.py -- the interface ################## from Interface import Base class Address(Base): "Where to find me" def getAddress(self): "Return full address" ######### AddressImplemetation.py ################## from Address import Address from AccessControl import ClassSecurityInfo from Globals import DTMLFile, InitializeClass from OFS.SimpleItem import SimpleItem from OFS.PropertyManager import PropertyManager class AddressImplementation(SimpleItem, PropertyManager): """ Address product class, implements Address interface. """ __implements__=Address meta_type='Address' security=ClassSecurityInfo() _properties=({'id':'street', 'type': 'string', 'mode': 'w'}, {'id':'city', 'type': 'string', 'mode': 'w'}, {'id':'state', 'type': 'string', 'mode': 'w'}, {'id':'zip', 'type': 'string', 'mode': 'w'}, ) manage_options = \ PropertyManager.manage_options + \ SimpleItem.manage_options + \ ( { 'label' : 'View', 'action' : 'index_html', }, ) security.declarePublic('index_html') #security.declareProtected('View management screens', 'index_html') index_html=DTMLFile('www/address/index_html', globals()) def __init__(self, id, street, city, state, zip): self.id=id self.street = street self.city = city self.state = state self.zip = zip security.declarePublic('getAddress') def getAddress(self): "Return full address" return '%s\n%s, %s %s' % (self.street, self.city, self.state, self.zip) def addAddressForm(dispatcher): """ Returns an HTML form. """ return """ Add Address
id
street
city
state
zip
""" def addAddressFunction(dispatcher, id, street, city, state, zip, REQUEST=None): """ Create a new address and add it to myself """ n=AddressImplementation(id, street, city, state, zip) dispatcher.Destination()._setObject(id, n) if REQUEST is not None: return dispatcher.manage_main(dispatcher, REQUEST) InitializeClass(AddressImplementation) ############### Product __init__.py ##################### from PersonImplementation import PersonImplementation, addPersonForm, addPersonFunction from AddressImplementation import AddressImplementation, addAddressForm, addAddressFunction def initialize(registrar): registrar.registerClass( PersonImplementation, constructors = (addPersonForm, addPersonFunction), icon="www/images/User_icon.gif", ) registrar.registerClass( AddressImplementation, constructors = (addAddressForm, addAddressFunction), ) From dman@dman.ddts.net Tue May 7 00:44:55 2002 From: dman@dman.ddts.net (dman) Date: Mon, 6 May 2002 18:44:55 -0500 Subject: [Zope] new data types In-Reply-To: <20020506215214.GA19117@dman.ddts.net> References: <20020506215214.GA19117@dman.ddts.net> Message-ID: <20020506234455.GA20009@dman.ddts.net> --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 06, 2002 at 04:52:15PM -0500, dman wrote: =20 | What is the simplest way to create new data types in zope? Never mind, I found the right docs now. -D --=20 How to shoot yourself in the foot with Java: You find that Microsoft and Sun have released imcompatible class libraries both implementing Gun objects. You then find that although there are plenty of feet objects implemented in the past in many other languages, you cannot get access to one. But seeing as Java is so cool, you dont care and go around shooting anything else you can find. (written by Mark Hammond) =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzXFXcACgkQO8l8XBKTpRQ1UgCgpWLGw6ApMVd6JuwuhHU8g0nF PdwAnAlwRROlJHc5n3VqTSCg8yD6PGyD =0Ggg -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK-- From mlewis@exasource.com Tue May 7 01:21:06 2002 From: mlewis@exasource.com (Michael) Date: Mon, 06 May 2002 18:21:06 -0600 Subject: [Zope] Help! Message-ID: <3CD71DF2.7040103@exasource.com> I have 3 different versions of Zope running on my machine. 2.33, 2.41, 2,43. I was working on my site in 2.41 and shut it down and started up 2.33 to export some items. I then shut down 2.33 and fired up 2.41 again and when I logged into the management interface, everything was gone. My site folder, all of my installed products, and the wierdest thing of all, I had to delete the default index_html file in my root folder to get apache to work properly, and it is back! It looks just like I just installed it from the tarball. I checked the 2.43 site and everything in it is gone also. The 2.33 install is still fine. I have backups, but is this normal behavior??? Michael From george@ellenburg.org Tue May 7 02:46:52 2002 From: george@ellenburg.org (George M. Ellenburg) Date: Mon, 6 May 2002 21:46:52 -0400 Subject: [Zope] Zope Questions Message-ID: <200205062147.11655@athlon> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Greets. I'm (slowly) learning Zope, and loving every bit of it, but have run into a few snags. I'm quite comfortable with PHP, which I know is the source of a lot of my problems as Zope and PHP are two entirely different paradigms. There's just so much information on the Zope website, that I'm having a difficult time finding the answers to certain problems, which unfortunately have left me in somewhat of a quagmire. Can someone point me to the location where I might find more information on the following, with regards to Zope: - Variable Passing through GET request Here's what I'm trying to do: I'm trying to create a "tool-tip" (which is actually contained in a frame) and would like to pass a parameter to the DTML document which contains the HTML, etc. for the tool-tip. Something like: Q: Is there a magical Zope variable that contains the arguments passed on a GET URI (as in PHP?) Q: Must any variable be declared first? - "case" statement Q: Does there exist the equivalent of a shell "case" statement in Zope? (This is in line with my previous questions). Thanks in advance. Any help would be greatly appreciated. - -- George M. Ellenburg 3 Years and counting of being 100% Microsoft-free; and much more productive. Proud user of ASK , the Active Spam Killer! - --- Sweater, n.: A garment worn by a child when its mother feels chilly. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE81zIUFItzMEWZZdgRApKRAJ4tDvN/aNCTF9n0/R8VzYoRij/N1QCgi/M8 /ufg+lqQKRebOAcTE0UdAvw= =gikE -----END PGP SIGNATURE----- From hancock@anansispaceworks.com Mon May 6 15:41:06 2002 From: hancock@anansispaceworks.com (Terry Hancock) Date: Mon, 06 May 2002 07:41:06 -0700 Subject: [Zope] Zope KeyError from nowhere Message-ID: <3CD69602.DBEFF9C0@anansispaceworks.com> Hi all, I ran into a major "Huh?" today in the middle of working with my development prototype in Zope. I was doing a lot of edit/test cycles in a Zope subfolder, as I have been doing for the last few months. I also periodically pack the database (though it's been a few days since I did). I don't spend a lot of time at the "Root Folder" though I generally pass through it at least once a day, and did this morning. Anyway, I happened to go back into it and got a weird error: Error Type: KeyError Error Value: Folder (traceback at end of message) (there is no object in the Root Folder named "Folder" as far as I can remember). This is displayed in the Root Folder object display window, whenever I go to the top level of the management interface. Now, this won't go away -- I tried reloading the page, restarting the Zope server from the control panel and by using start/stop scripts, etc. The fsrecover.py script says there's nothing to recover, and tranalyzer doesn't seem to show anything out of the ordinary -- the last few edits are to objects far down the tree that I was working on (and I have no trouble viewing those folders). Nevertheless the error/traceback just won't go away. Is it a bug? I'm not sure how to troubleshoot this. I guess the next step is to pick through the Zope source files mentioned in the traceback, but I thought I'd ask if anyone could recognize what happened. Any ideas much appreciated! Terry Full traceback: Traceback (innermost last): File /usr/local/narya/z2.4.3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/narya/z2.4.3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/narya/z2.4.3/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: Zope) File /usr/local/narya/z2.4.3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/narya/z2.4.3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_main) File /usr/local/narya/z2.4.3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_main) File /usr/local/narya/z2.4.3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: manage_main) File /usr/local/narya/z2.4.3/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: manage_main) File /usr/local/narya/z2.4.3/lib/python/App/special_dtml.py, line 244, in _exec (Object: manage_main) File /usr/local/narya/z2.4.3/lib/python/DocumentTemplate/DT_In.py, line 711, in renderwob (Object: objectItems) File /usr/local/narya/z2.4.3/lib/python/DocumentTemplate/DT_In.py, line 839, in sort_sequence (Object: objectItems) File /usr/local/narya/z2.4.3/lib/python/ZODB/Connection.py, line 544, in setstate File /usr/local/narya/z2.4.3/lib/python/ZODB/Connection.py, line 227, in _persistent_load (Info: Folder) File /usr/local/narya/z2.4.3/lib/python/ZODB/Connection.py, line 160, in __getitem__ (Info: Folder) File /usr/local/narya/z2.4.3/lib/python/ZODB/FileStorage.py, line 588, in load (Object: /usr/local/narya/zope/var/Data.fs) File /usr/local/narya/z2.4.3/lib/python/ZODB/FileStorage.py, line 564, in _load (Object: /usr/local/narya/zope/var/Data.fs) KeyError: (see above) -- ------------------------------------------------------ Terry Hancock hancock@anansispaceworks.com Anansi Spaceworks http://www.anansispaceworks.com ------------------------------------------------------ From chrism@zope.com Tue May 7 03:28:53 2002 From: chrism@zope.com (Chris McDonough) Date: Mon, 06 May 2002 22:28:53 -0400 Subject: [Zope] Zope Questions References: <200205062147.11655@athlon> Message-ID: <3CD73BE5.1070408@zope.com> Hi George, The answer is that it depends on what kind of object intercepts the GET request. If it's a DTML Method, you can just say: or if you want to use it as an argument to a function: If it's a Python Script, you need to do a bit more work: a = context.REQUEST.get('a') somefunction(a) If it's a Page Template.. it goes something like:
The value of the "a" variable from the request
More information about all of this is available primarily in the Zope Book at http://www.zope.org/Documentation/ZopeBook/ . HTH, - C George M. Ellenburg wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Greets. > > I'm (slowly) learning Zope, and loving every bit of it, but have run into a > few snags. I'm quite comfortable with PHP, which I know is the source of a > lot of my problems as Zope and PHP are two entirely different paradigms. > > There's just so much information on the Zope website, that I'm having a > difficult time finding the answers to certain problems, which unfortunately > have left me in somewhat of a quagmire. > > Can someone point me to the location where I might find more information on > the following, with regards to Zope: > > - Variable Passing through GET request > > Here's what I'm trying to do: > I'm trying to create a "tool-tip" (which is actually contained in a frame) > and would like to pass a parameter to the DTML document which contains the > HTML, etc. for the tool-tip. > Something like: >
> Q: Is there a magical Zope variable that contains the arguments passed on a > GET URI (as in PHP?) > Q: Must any variable be declared first? > > - "case" statement > Q: Does there exist the equivalent of a shell "case" statement in Zope? > (This is in line with my previous questions). > > Thanks in advance. Any help would be greatly appreciated. > > - -- > George M. Ellenburg > > 3 Years and counting of being 100% Microsoft-free; and much more productive. > Proud user of ASK , the Active Spam Killer! > - --- > Sweater, n.: > A garment worn by a child when its mother feels chilly. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (FreeBSD) > Comment: For info see http://www.gnupg.org > > iD8DBQE81zIUFItzMEWZZdgRApKRAJ4tDvN/aNCTF9n0/R8VzYoRij/N1QCgi/M8 > /ufg+lqQKRebOAcTE0UdAvw= > =gikE > -----END PGP SIGNATURE----- > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) -- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones" From chrism@zope.com Tue May 7 03:33:13 2002 From: chrism@zope.com (Chris McDonough) Date: Mon, 06 May 2002 22:33:13 -0400 Subject: [Zope] import and setting tmp dir References: Message-ID: <3CD73CE9.9060700@zope.com> John, It sounds like you've done everything right. One painful way to find out where it *is* writing the tempfile may be to run Python/Zope under strace and do the import. - C John Hunter wrote: > When I try and import a large zexp, I get a 'Error Value: [Errno 28] > No space left on device' (traceback below). If I do a 'df' while the > import is processing, I can see the it is my root partition that is > filling up. > > My zope install dir does not live on the root partition, and I have > set the TMPDIR env var in my zope start script to point to a non root > partition that has plenty of space. When I start the python > interpreter in this environment, with the same command that I use to > start zope in 'start' and test the tempfile config, it points to the > dir I set with TMPDIR (ie, /workn/tmp) > > >>>>import tempfile >>>>print tempfile.mktemp() >>> > /workn/tmp/@13559.0 > > However, if I restart zope and try to do the import again, I get the > same device full message and I see with df that it is the root > partition that is filling up again. > > I have no idea why this is happening -- is it possible that there is > some tmp file allocation that is going on independently of tempfile > with the import, and if so, can anyone suggest how I can set where > that storage should reside? > > Thanks, > John Hunter > > Zope Version > (Zope 2.5.1b1 (source release, python 2.1, linux2), python 2.1.3, linux2) > Python Version > 2.1.3 (#1, Apr 12 2002, 00:33:22) > [GCC 3.0.4] > System Platform > linux2 > > > Traceback: > > Zope Error > Zope has encountered an error while publishing this resource. > Error Type: IOError > Error Value: [Errno 28] No space left on device > Troubleshooting Suggestions > The URL may be incorrect. > The parameters passed to this resource may be incorrect. > A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please > refer to the HTML source for this page. > If the error persists please contact the site maintainer. > Thank you for your patience. > > Traceback (innermost last): > File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module > File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 114, in publish > File /usr/local/Zope/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook > (Object: Zope) > File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 98, in publish > File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 88, in mapply > (Object: manage_importObject) > File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 39, in call_object > (Object: manage_importObject) > File /usr/local/Zope-2.5.1b1-src/lib/python/OFS/ObjectManager.py, line 521, in manage_importObject > (Object: Zope) > File /usr/local/Zope-2.5.1b1-src/lib/python/OFS/ObjectManager.py, line 537, in _importObjectFromFile > (Object: Zope) > File /usr/local/Zope/lib/python/ZODB/ExportImport.py, line 79, in importFile > File /usr/local/Zope/lib/python/ZODB/Transaction.py, line 234, in commit > File /usr/local/Zope/lib/python/ZODB/Connection.py, line 235, in commit > File /usr/local/Zope/lib/python/ZODB/ExportImport.py, line 152, in _importDuringCommit > File /usr/local/Zope/lib/python/ZODB/TmpStore.py, line 77, in store > IOError: (see above) > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) -- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones" From dman@dman.ddts.net Tue May 7 04:31:19 2002 From: dman@dman.ddts.net (dman) Date: Mon, 6 May 2002 22:31:19 -0500 Subject: [Zope] Zope Questions In-Reply-To: <200205062147.11655@athlon> References: <200205062147.11655@athlon> Message-ID: <20020507033119.GA21295@dman.ddts.net> --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 06, 2002 at 09:46:52PM -0400, George M. Ellenburg wrote: | Here's what I'm trying to do: | | I'm trying to create a "tool-tip" (which is actually contained in a | frame) and would like to pass a parameter to the DTML document which | contains the HTML, etc. for the tool-tip. Something like: | | Q: Is there a magical Zope variable that contains the arguments | passed on a GET URI (as in PHP?) Take a look at the REQUEST object. It will contain all the form parameters and other information. It is always (and only) available when an object is "called from the web". | Q: Must any variable be declared first? Variables are not declared[1] in python; but accessing a non-existant variable is an error. I'm not sure with dtml, but is probably the same way. [1] : C, C++ and Java require variable declarations. They are separate statements from assignment. | - "case" statement | Q: Does there exist the equivalent of a shell "case" statement in Z= ope? | (This is in line with my previous questions). Python does not have a case statement. You can use an if-else ladder instead, or use a dictionary with function objects as the values. The dictionary technique is often done like this : def handler1() : print "block 1" def handler2() : print "block 2" def handler3() : print "block 3" switch =3D { 'a' : handler1 , 'b' : handler2 , 'c' : handler3 } choice =3D raw_input( "Choose a, b, or c " ) if not switch.has_key( choice ) : print "invalid choice" else : # this is the switch/case statement here switch[choice]() I don't know if that fits in to your framework at all or not. I'm still quite inexperienced at web app design and development, though I've done a fair amount of python and java programming. HTH, -D --=20 I tell you the truth, everyone who sins is a slave to sin. Now a slave has no permanent place in the family, but a son belongs to it forever. So if the Son sets you free, you will be free indeed. John 8:34-36 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzXSocACgkQO8l8XBKTpRRr4QCdH+LtOaoZ3W+vLBlvgNkRZHJq EJEAn2o+OAlORVxs8LlxMUWPS3wNIcWP =UGO4 -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0-- From jdhunter@ace.bsd.uchicago.edu Tue May 7 04:42:49 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 06 May 2002 22:42:49 -0500 Subject: [Zope] import and setting tmp dir In-Reply-To: <3CD73CE9.9060700@zope.com> (Chris McDonough's message of "Mon, 06 May 2002 22:33:13 -0400") References: <3CD73CE9.9060700@zope.com> Message-ID: >>>>> "Chris" == Chris McDonough writes: Chris> One painful way to find out where it *is* writing the Chris> tempfile may be to run Python/Zope under strace and do the Chris> import. Hi Chris, Thanks for the response. I tried the strace. I am only getting system calls up to the point where the zope server starts. Ie, nothing is reported by the strace after the zope message 2002-05-07T03:22:03 INFO(0) ZServer PCGI Server started at Mon May 6 22:22:03 2002 Unix socket: /usr/local/Zope-2.5.1b1-src/var/pcgi.soc which is the last log entry after the server starts when I execute the ./start script. I am using strace like 'strace ./start'. I have also tried in my ./start script: exec strace /usr/local/bin/python2.1 \ $INST_HOME/z2.py \ -D "$@" Are either of these the correct way? In any case, nothing in the strace as executed above matches 'tmp'. I also grepped the output for '^open' and didn't see anything interesting. For the record, if I simply do a copy/paste from the manager interface and without invoking import/export, i get the same behavior. That is, if I choose a copy operation that is sufficiently large that I can execute multiple df's and see the change in the Use% column, the root partition is being used for the copy. Possibly something in the transaction system is using a tmp file not supplied by tempfile.py? Thanks, John Hunter From Geir Bækholt Tue May 7 07:44:58 2002 From: Geir Bækholt (Geir Bækholt) Date: Tue, 7 May 2002 08:44:58 +0200 Subject: [Zope] DCOracle 2 and long text fields..How to use them? In-Reply-To: <3CD6939D.2020700@zope.com> References: <6714257951.20020503235212@funcom.com> <3CD6939D.2020700@zope.com> Message-ID: <1951202771624.20020507084458@funcom.com> Stored procedures worked excellent for me. Less hassle than external methods in some cases , especially if (like me) you have a Database Administrator to handle them instead of doing it yourself.. ;-) Lazyness is a great virtue on or about, Monday, May 06, 2002, we have reason to believe that Matthew T= . Kromer wrote something along the lines of : MTK> Right, bind vars are the way to go. Unfortunately, Zope doesn't creat= e=20 MTK> bind variables for SQL methods, so you have to do it via an external m= ethod. --=20 Geir B=E6kholt web-developer geirh@funcom.com funcom oslo | webdev-team From uwe@schuerkamp.de Tue May 7 08:26:43 2002 From: uwe@schuerkamp.de (Uwe Schuerkamp) Date: Tue, 7 May 2002 09:26:43 +0200 Subject: [Zope] Zope newsgroup? Message-ID: <20020507072643.GE17814@nionex.net> Hi folks, is there a zope newsgroup out there in usenet-land? This mailing list is getting quite a bit of traffic, and I think it would be easier to organize in a newsgroup or two. Regards, uwe -- Uwe Schuerkamp Tel: +49 (0)5241 / 80 10 66, FAX: - / 6 23 38 Uwe.Schuerkamp@nionex.net Nionex GmbH, IWN5 (http://www.nionex.de/) GnuPG KeyID: 5887047D Avenwedder Str. 55, 33311 Guetersloh GnuPG Fingerprint: 2E 13 20 22 9A 3F 63 7F 67 6F E9 B1 A8 36 A4 61 From TilleA@rki.de Tue May 7 08:27:01 2002 From: TilleA@rki.de (Tille, Andreas) Date: Tue, 7 May 2002 09:27:01 +0200 (CEST) Subject: [Zope] Re: Acquiring object from Products instances In-Reply-To: <15569.42343.8940.467604@linux.local> Message-ID: On Thu, 2 May 2002, Dieter Maurer wrote: > Luca Manini writes: > > I've a product that defines a classe ageForm. > > I've a PythonScript that adds an ageForm instance to a folder. > > After adding the instance it calls a method on it. > > This methods tries to access an objects using acquisition. > > ... > Apparently, you do not tell us what your problem is... > > I expect, the problems cause is that constructors in Zope > usually do not return the constructed object (but either "None" > or the id of the constructed object). > > The standard idiom is: > > om.manage_addProduct[].(id,....) > obj= getattr(om,id) I tried it this way and it works perfectly if the new object is a folder or a dtml-document, but not for a tinytable object. A complete very simple example you can find at: http://www.foodborne-net.de/~tillea/MyFolder/MyFolder.tgz The relevant part is shown here: ob=MyFolder() ob.id=str(id) ob.title=title self._setObject(id, ob) ob=self._getOb(id) checkPermission=getSecurityManager().checkPermission ### From the example ... but does not work anyway ## ob = getattr(self, id) #we basically get the instance from the ZODB, now has AqWrapper ob.manage_addFolder('someid') #works as expected ob.manage_addTinyTable(id='link_table', title='TinyTableObject for '+ob.id, columns=column_names) The last line does not work because it does not put the TinyTable object into the new folder (where I was able to create the example folder named 'someid' but it will be created in the folder below. Is this perhaps a TinyTable bug? Kind regards Andreas. From robichon@esrf.fr Tue May 7 08:38:20 2002 From: robichon@esrf.fr (Marie ROBICHON) Date: Tue, 07 May 2002 09:38:20 +0200 Subject: [Zope] Re: folders with same names In-Reply-To: References: <5.0.2.1.1.20020429092127.00a71240@mailserv.esrf.fr> Message-ID: <5.0.2.1.1.20020507092307.00a8c290@mailserv.esrf.fr> At 02:10 02/05/02 +0000, you wrote: >--- In zope@y..., Marie ROBICHON wrote: > > Error Type: KeyError > > Error Value: Parameters > > > Does this mean that in Zope no two folders can have the same id? This > would > > cause problems when our contributors edit their parts of our site. Is > there > > a way around this other than naming the folders differently? I remember > > seeing something about tpId somewhere.... > >I'm having similar problem. I'm wanting to add an object to a container >with a form. I want to check the id of the object first, to see if >there's already one by that name in the database. If there is, I want to >send the user back to try another name. > >Problem is, after I pull the file ID from the REQUEST, I want to use a >dtml-if to check and see if it is there. When the object turns out to not >be there (a good thing, for my purposes) I get a keyerror. > >I noticed that there's a table of parameters you can add to dtml-var, and >it includes a "missing" option, in case the object isn't there. I wonder >if this trick works with dtml-if, as well. > >At any rate, we seem to be working on a similar problem. Have you found >any answers yet? > >Dave Walker No I haven' t found an answer to my problem yet. I think its a problem with acquisition and traversal: I haven't managed to find a way to 'set' the absolute_url so that Zope really gives me the object I want rather than it resolving the object by working down to the root to get the index_html then working back up until it gets the first object with the name.... I remember seeing in section 1.3 of chapter 3 of Dieter Maurer's (excellent) book http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html an explanation of why your problem occurs. What happens if the user tries to create an object whose id already exists? Does this raise an error anyway? If this raises an error couldn' t you trap this error and get the user to try again, rather than trying to check if it doesn' t exist? Getting the zen out of zope is certainly painful....and i'm hundreds of miles away yet... Marie Robichon Web Task Force European Synchrotron Radiation Facility BP 220 38043 Grenoble Cedex France http://www.esrf.fr Tel: (33) 04 76 88 21 86 Fax: (33) 04 76 88 24 27 From robin-dated-1021016808.77cf90@socha.net Tue May 7 08:54:12 2002 From: robin-dated-1021016808.77cf90@socha.net (Robin S. Socha) Date: Tue, 07 May 2002 02:54:12 -0500 Subject: [Zope] Re: Zope newsgroup? In-Reply-To: <20020507072643.GE17814@nionex.net> (Uwe Schuerkamp's message of "Tue, 7 May 2002 09:26:43 +0200") References: <20020507072643.GE17814@nionex.net> Message-ID: * Uwe Schuerkamp writes: > is there a zope newsgroup out there in usenet-land? Other than comp.lang.python? > This mailing list is getting quite a bit of traffic, and I think it > would be easier to organize in a newsgroup or two. What exactly are you expecting to gain from this? Since I use Gnus[1], I don't see any difference - it's all messages. I'd be really interested to lear what you're trying to gain. A dedicated news server on one of the Zope sites, though... Footnotes: [1] http://my.gnus.org/ - eh, it's Zope, so we're on topic... From Bruce Dykes" <009601c1f1ed$6ba25b30$f70510ac@mitretek.org> <019e01c1f4ed$9636e110$5102020a@graphnet.com> <01b201c1f504$4f71d8e0$5102020a@graphnet.com> <008501c1f512$5cb903d0$f70510ac@mitretek.org> Message-ID: <010401c1f5a1$08231060$5102020a@graphnet.com> ----- Original Message ----- From: "Thomas B. Passin" To: Sent: Monday, May 06, 2002 11:26 Subject: Re: [Zope] SQL to Excel Redux > Hope you really used and not as you posted here! D'OH! Okay, now that's fixed, I'm getting the error I initially expected: Error Type: KeyError Error Value: Company_Name This doesn't surprise me, as the Browse tab on the ODBC connector comes up empty, and this being an Excel spreadsheet, not a database table proper, there are no field names specifically assigned to the data. Now, where should the field names be declared/assigned? And as a more general question, in the ODBC connector docs, it says that not all databases support browsing...what is the specific limitation? I've been able to browse both Access and FoxPro databases, and I find it an invaluable tool. The Excels spreadsheet is the first thing that's ever come up blank for me, and that's kind of an odd duck anyway... thanks again bkd From fte-sub-zope@fte.to Tue May 7 09:46:51 2002 From: fte-sub-zope@fte.to (Frank Tegtmeyer) Date: 07 May 2002 10:46:51 +0200 Subject: [Zope] cookies In-Reply-To: <3CD6F35A.8000304@comnett.net> References: <3CD6F35A.8000304@comnett.net> Message-ID: > How can I tell if somebody has cookies disabled in their browser? > REQUEST.setCookie doesn't throw an error if cookies are disabled. How should it? It only sets a header in the response to the browser. You don't "push" the cookie through the channel into the users browser. After setting the cookie you could redirect to the same page (setting an URL parameter which indicates you already were there). Then you can test for the presence of the cookie. Regards, Frank From TilleA@rki.de Tue May 7 10:14:09 2002 From: TilleA@rki.de (Tille, Andreas) Date: Tue, 7 May 2002 11:14:09 +0200 (CEST) Subject: [Zope] Novell NDS (Was: LDAPUserFolder and Zope 2.5.1) In-Reply-To: <8209CD6A-5BA8-11D6-8A4F-003065C7DEAE@zope.com> Message-ID: On Mon, 29 Apr 2002, Jens Vagelpohl wrote: > if you don't know much about the internal structure of the LDAP database > you are connecting to you have a real problem. there is a ton of > configuration options that depend on knowing the database. Did anybody had success in using a Novell NDS directory which claims to be LDAP compatible? Any hints? Kind regards Andreas. From Phil Harris" Message-ID: <005101c1f5aa$4d3b6c70$5c773fc1@media1> Yes, I have a exUserFolder adaptor that connects to NDS via LDAP. I can mail it if you're interested. Phil ----- Original Message ----- From: "Tille, Andreas" To: "Jens Vagelpohl" Cc: "Zope user list" Sent: Tuesday, May 07, 2002 10:14 AM Subject: [Zope] Novell NDS (Was: LDAPUserFolder and Zope 2.5.1) > On Mon, 29 Apr 2002, Jens Vagelpohl wrote: > > > if you don't know much about the internal structure of the LDAP database > > you are connecting to you have a real problem. there is a ton of > > configuration options that depend on knowing the database. > Did anybody had success in using a Novell NDS directory which claims > to be LDAP compatible? > > Any hints? > > Kind regards > > Andreas. > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > From Metin.Deniz@commerzbankib.com Tue May 7 10:36:01 2002 From: Metin.Deniz@commerzbankib.com (Deniz, Metin) Date: Tue, 7 May 2002 11:36:01 +0200 Subject: [Zope] Upgrading problem Message-ID: <4D445EA25BABD411B7B800508BAF0AB702F93F09@xmx8fraib.fra.ib.commerzbank.com> Hi everybody, I'm trying to upgrade from an older release of zope to ZOPE 2.5.0. The installation was successful; i try to run start.bat manualy in a dos box. After running the batch file, a dos window pops up and disappears again. Can you please tell me what to do or what I'm doing wrong? Thanks Metin Deniz From cppbala@yahoo.com Tue May 7 10:48:33 2002 From: cppbala@yahoo.com (Bala) Date: Tue, 7 May 2002 02:48:33 -0700 (PDT) Subject: [Zope] Re: Operational error!!![Solved] Message-ID: <20020507094833.36715.qmail@web20101.mail.yahoo.com> Hi All, The operational error problem was solved, actually the problem with MySQL database, so I reinstalled MySQL using rpm, now it is working with MySQL. Thanks again for all, especially for Frank and Dieter. -Bala- > > --- Frank Tegtmeyer wrote: > > Bala writes: > > > > > Error Value: (2002, "Can't connect to local > MySQL > > > server through socket > '/var/lib/mysql/mysql.sock' > > > > Check /etc/my.cnf, where the socket is located. In > > case your client > > libraries think different about this you may > > establish a symbolic > > link to get started. This is only a workaround - > the > > right thing to do > > would be to correct the client libraries and build > > the _mysql module > > from scratch. > > The right entries in /etc/my.cnf are the ones > > containing "socket". > > Maybe that they are set different in th client- > and > > mysqld section. If > > you correct his other things may break. > > > > Btw: this is _not_ a problem with Zope and only > > partial a Python problem. > > > > Regards, Frank > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > > > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com From roel@planetinterior.com Tue May 7 10:50:28 2002 From: roel@planetinterior.com (Roel Van den Bergh) Date: Tue, 7 May 2002 11:50:28 +0200 Subject: [Zope] Upgrading problem In-Reply-To: <4D445EA25BABD411B7B800508BAF0AB702F93F09@xmx8fraib.fra.ib.commerzbank.com> Message-ID: you've probably running zope as a service, stop that first and then retry your start.bat > -----Oorspronkelijk bericht----- > Van: zope-admin@zope.org [mailto:zope-admin@zope.org]Namens Deniz, Metin > Verzonden: dinsdag 7 mei 2002 11:36 > Aan: 'zope@zope.org' > Onderwerp: [Zope] Upgrading problem > > > Hi everybody, > > I'm trying to upgrade from an older release of zope to ZOPE 2.5.0. > The installation was successful; i try to run start.bat manualy in a dos > box. > After running the batch file, a dos window pops up and disappears again. > > Can you please tell me what to do or what I'm doing wrong? > > > Thanks > > > Metin Deniz > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From david.kyte@microamps.com Tue May 7 11:16:14 2002 From: david.kyte@microamps.com (David Kyte) Date: Tue, 7 May 2002 11:16:14 +0100 Subject: [Zope] MySQL-python Message-ID: Hi, I am trying to install Zope251 on a cobalt raq3. Bin version appears to install Ok. However when I try to install MySQL-python 0.9.1 the product is broken because _mysql.so is looking for GLIBC_2.2 Can anyone suggest a fix. Cobalt 3s are based on redhat 6.0 which uses GLIBC_2.1 Any suggestions? Sorry if this is a bit off subject Thanks Dave From hans@beehive.de Tue May 7 12:17:40 2002 From: hans@beehive.de (hans) Date: Tue, 07 May 2002 12:17:40 +0100 Subject: [Zope] Zope Questions References: <200205062147.11655@athlon> Message-ID: <3CD7B7D3.A569B479@beehive.de> "George M. Ellenburg" wrote: > I'm (slowly) learning Zope, and loving every bit of it, but have run into a > few snags. I'm quite comfortable with PHP, which I know is the source of a > lot of my problems as Zope and PHP are two entirely different paradigms. > > There's just so much information on the Zope website, that I'm having a > difficult time finding the answers to certain problems, which unfortunately > have left me in somewhat of a quagmire. > > Can someone point me to the location where I might find more information on > the following, with regards to Zope: http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html > - Variable Passing through GET request > > Here's what I'm trying to do: > I'm trying to create a "tool-tip" (which is actually contained in a frame) > and would like to pass a parameter to the DTML document which contains the > HTML, etc. for the tool-tip. > Something like: > > Q: Is there a magical Zope variable that contains the arguments passed on a > GET URI (as in PHP?) > Q: Must any variable be declared first? the object is usually called request ( or REQUEST ), ZPublisher marshals them for you http://www.zope.org/Members/Zen/howto/FormVariableTypes > - "case" statement > Q: Does there exist the equivalent of a shell "case" statement in Zope? > (This is in line with my previous questions). no -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From maxm@mxm.dk Tue May 7 11:17:15 2002 From: maxm@mxm.dk (Max M) Date: Tue, 07 May 2002 12:17:15 +0200 Subject: [Zope] How do I get an attribute from object, without aquisition Message-ID: <3CD7A9AB.5080107@mxm.dk> I am trying to get at an attribute from an object. First I check if it exists via "hasattr(obj, id)" but the problem is that there are other objects with the id further up in the aquisition chain. So I get some objects that I don't want. How do i limit my hasattr() to just an object and not the aquisitioned attributes ?? regards Max M From fte-sub-zope@fte.to Tue May 7 11:17:28 2002 From: fte-sub-zope@fte.to (Frank Tegtmeyer) Date: 07 May 2002 12:17:28 +0200 Subject: [Zope] MySQL-python In-Reply-To: References: Message-ID: "David Kyte" writes: > Can anyone suggest a fix. Always build from source. Any other way prepares for disasters. At least my experience :) Regards, Frank From george@ellenburg.org Tue May 7 11:24:12 2002 From: george@ellenburg.org (George M. Ellenburg) Date: Tue, 7 May 2002 06:24:12 -0400 Subject: [Zope] Zope Questions In-Reply-To: <200205062147.11655@athlon> References: <200205062147.11655@athlon> Message-ID: <200205070624.37887@athlon> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 06 May 2002 09:46 pm, George M. Ellenburg wrote: > Can someone point me to the location where I might find more information on > the following, with regards to Zope: Thanks to all that have responded! You've given me some definite starting points. Cheers, - -- George M. Ellenburg 3 Years and counting of being 100% Microsoft-free; and much more productive. Proud user of ASK , the Active Spam Killer! - --- Cogito cogito ergo cogito sum -- "I think that I think, therefore I think that I am." -- Ambrose Bierce, "The Devil's Dictionary" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE816thFItzMEWZZdgRAocJAJ0RohNJiaxKAVzwsc4a+l8GzX2H8QCffMLW xMYOd+rcbUxBqIYtruCSQ/8= =AiGk -----END PGP SIGNATURE----- From lennart@torped.se Tue May 7 12:00:31 2002 From: lennart@torped.se (Lennart Regebro) Date: Tue, 7 May 2002 13:00:31 +0200 Subject: [Zope] How do I get rid of this message Message-ID: <004f01c1f5b6$68ff4f60$250aa8c0@torped.se> How do I get rid of this message: .\lib\python\SearchIndex\__init__.py:19: DeprecationWarning: The usage of the Se archIndex package is deprecated since Zope 2.4. This package is only kept for backwards compatibility for a while and will go away in a future release. Please use instead the re-factored modules in Products/PluginIndexes. warnings.warn("The usage of the SearchIndex package is deprecated since \ I upgraded a server from 2.3.3 to 2.5.1, by installing a new 2.5.1 instance, and copying the Data.fs. I don't use any SearchIndex any more, all the ZCatalogs have been recreated using PluginIndexes. I have removed the references to all old products (I think). What more can I do? //Lennart From maik.jablonski@uni-bielefeld.de Tue May 7 12:15:43 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Tue, 07 May 2002 13:15:43 +0200 Subject: [Zope] How do I get an attribute from object, without aquisition References: <3CD7A9AB.5080107@mxm.dk> Message-ID: <3CD7B75F.1060700@uni-bielefeld.de> Max M wrote: > I am trying to get at an attribute from an object. First I check if it > exists via "hasattr(obj, id)" but the problem is that there are other > objects with the id further up in the aquisition chain. So I get some > objects that I don't want. > > How do i limit my hasattr() to just an object and not the aquisitioned > attributes ?? hi max, this should work for you: hasattr(obj.aq_explicit,id) greetings, maik. From maxm@mxm.dk Tue May 7 12:22:16 2002 From: maxm@mxm.dk (Max M) Date: Tue, 07 May 2002 13:22:16 +0200 Subject: [Zope] How do I get an attribute from object, without aquisition References: <3CD7A9AB.5080107@mxm.dk> <3CD7B75F.1060700@uni-bielefeld.de> Message-ID: <3CD7B8E8.5010008@mxm.dk> Maik Jablonski wrote: > Max M wrote: > >> How do i limit my hasattr() to just an object and not the >> aquisitioned attributes ?? > > hasattr(obj.aq_explicit,id) Great ... thanks! regards Max M From lennart@torped.se Tue May 7 12:26:33 2002 From: lennart@torped.se (Lennart Regebro) Date: Tue, 7 May 2002 13:26:33 +0200 Subject: [Zope] How do I get rid of this message References: <004f01c1f5b6$68ff4f60$250aa8c0@torped.se> Message-ID: <006501c1f5ba$0d7b6f80$250aa8c0@torped.se> Never mind. I brutally deleted *all* products and rebooted and it worked. The question now is just how to do that from a Python Script. Hmmmm. ----- Original Message ----- From: "Lennart Regebro" To: Sent: Tuesday, May 07, 2002 1:00 PM Subject: [Zope] How do I get rid of this message > How do I get rid of this message: > > .\lib\python\SearchIndex\__init__.py:19: DeprecationWarning: The usage of > the Se > archIndex package is deprecated since Zope 2.4. > This package is only kept for backwards compatibility for a while > and will go away in a future release. > > Please use instead the re-factored modules in Products/PluginIndexes. > > warnings.warn("The usage of the SearchIndex package is deprecated since \ > > I upgraded a server from 2.3.3 to 2.5.1, by installing a new 2.5.1 instance, > and copying the Data.fs. I don't use any SearchIndex any more, all the > ZCatalogs have been recreated using PluginIndexes. I have removed the > references to all old products (I think). > > What more can I do? > > //Lennart > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > From wgarcia@esrf.fr Tue May 7 12:57:17 2002 From: wgarcia@esrf.fr (William GARCIA) Date: Tue, 07 May 2002 13:57:17 +0200 Subject: [Zope] Upload Photo objects in a localFS Message-ID: <5.1.0.14.1.20020507134535.00acd4a0@mailserv.esrf.fr> --=====================_625568078==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed I have a local file system named images. I would like to write-in photo objects. When I write an Image object with there is no problem, but when I try to write a Photo object with Zope generate the next error : Error Type: Bad Request Error Value: Cannot add objects of type 'Photo' to local directories. Traceback (innermost last): File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 114, in publish File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: recherche_indexation_mysql) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 98, in publish File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: 5addImageLFS) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: 5addImageLFS) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 127, in __call__ (Object: 5addImageLFS) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: 5addImageLFS) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.py, line 76, in render (Object: images) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: manage_addProduct['Photo'].manage_addPhoto(id_img, '', file)) (Info: id_img) File , line 2, in f File /zope/web/Products/Photo/Photo.py, line 655, in manage_addPhoto File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 547, in _setObject (Object: images) File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 571, in _safe_setOb (Object: images) File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 586, in _setOb (Object: images) Bad Request: (see above) The problem is certainly due to the fact contrarily to Image, the Photo product isn't included in the local file system properties If someone know how to include the Photo product in the localFS properties, I'm sincerely interested. Thanks in advance for the help or the ideas you can give to me. William. --=====================_625568078==_.ALT Content-Type: text/html; charset="us-ascii" I have a local file system named images.
I would like to write-in photo objects.
When I write an Image object with
<dtml-with images>
  <dtml-call "manage_addProduct['OFSP'].manage_addImage(REQUEST['id_img'],file,'')">
 </dtml-with>
there is no problem, but when I try to write a Photo object with
<dtml-with images>
  <dtml-call expr="manage_addProduct['Photo'].manage_addPhoto(id_img, '', file)">
 </dtml-with>

Zope generate the next error :
Error Type: Bad Request
Error Value: Cannot add objects of type 'Photo' to local directories.

Traceback (innermost last):
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: recherche_indexation_mysql)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: 5addImageLFS)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: 5addImageLFS)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 127, in __call__
    (Object: 5addImageLFS)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: 5addImageLFS)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.py, line 76, in render
    (Object: images)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval
    (Object: manage_addProduct['Photo'].manage_addPhoto(id_img, '', file))
    (Info: id_img)
  File <string>, line 2, in f
  File /zope/web/Products/Photo/Photo.py, line 655, in manage_addPhoto
  File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 547, in _setObject
    (Object: images)
  File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 571, in _safe_setOb
    (Object: images)
  File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 586, in _setOb
    (Object: images)
Bad Request: (see above)


The problem is certainly due to the fact contrarily to Image, the Photo product isn't included in the local file system properties
If someone know how to include the Photo product in the localFS properties, I'm sincerely interested.
Thanks in advance for the help or the ideas you can give to me.
William.
--=====================_625568078==_.ALT-- From maxm@mxm.dk Tue May 7 13:02:59 2002 From: maxm@mxm.dk (Max M) Date: Tue, 07 May 2002 14:02:59 +0200 Subject: [Zope] I cannot copy paste zClass based products Message-ID: <3CD7C273.4020805@mxm.dk> --------------080500070603060001080008 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I have an application where some of my Products are Python based and others are zClasses. As far as I remember it was possible to copy paste the zClass based objects when I first wrote the app. But somewhere along my upgrades I seem to have lost the ability to copy/paste those objects. My Python based products can be copied nicely. Has anybody got an idea as to why ??? regards Max M --------------------------------------- Error: "The object /ProjektNet/ does not support this operation" Traceback (innermost last): File C:\zope\zope251\lib\python\ZPublisher\Publish.py, line 150, in publish_module File C:\zope\zope251\lib\python\ZPublisher\Publish.py, line 114, in publish File C:\zope\zope251\lib\python\Zope\__init__.py, line 159, in zpublisher_exception_hook (Object: 2_semester) File C:\zope\zope251\lib\python\ZPublisher\Publish.py, line 98, in publish File C:\zope\zope251\lib\python\ZPublisher\mapply.py, line 88, in mapply (Object: manage_pasteObjects) File C:\zope\zope251\lib\python\ZPublisher\Publish.py, line 39, in call_object (Object: manage_pasteObjects) File C:\zope\zope251\lib\python\OFS\CopySupport.py, line 144, in manage_pasteObjects (Object: 2_semester) File C:\zope\zope251\lib\python\OFS\CopySupport.py, line 373, in _verifyObjectPaste (Object: 2_semester) Copy Error: (see above) RoboVenture ProjektNet Undervisere Kursusplan Emner Materiale Diskussion Kursister Skema Undervisere Kursusplan Emner Materiale Diskussion Kursister Skema Evaluering Max M 1 Undervisere Kursusplan Kursister --------------080500070603060001080008-- From jens@zope.com Tue May 7 13:03:25 2002 From: jens@zope.com (Jens Vagelpohl) Date: Tue, 7 May 2002 08:03:25 -0400 Subject: [Zope] Re: Novell NDS (Was: LDAPUserFolder and Zope 2.5.1) In-Reply-To: Message-ID: <6F920456-61B2-11D6-856B-00039363690C@zope.com> NDS is a fully standards-compliant LDAP server AFAIK. it should work without a problem. jens On Tuesday, May 7, 2002, at 05:14 , Tille, Andreas wrote: > On Mon, 29 Apr 2002, Jens Vagelpohl wrote: > >> if you don't know much about the internal structure of the LDAP database >> you are connecting to you have a real problem. there is a ton of >> configuration options that depend on knowing the database. > Did anybody had success in using a Novell NDS directory which claims > to be LDAP compatible? > > Any hints? > > Kind regards > > Andreas. From lynch@gould.mannlib.cornell.edu Tue May 7 13:07:24 2002 From: lynch@gould.mannlib.cornell.edu (Tim Lynch) Date: Tue, 07 May 2002 8:07:24 EDT Subject: [Zope] calling DTMLFile from an External Method Message-ID: <200205071207.IAA27161@gould.mannlib.cornell.edu> How do I make use of DTMLFile from an External Method? No matter what I try, I can't get it to work. I think I'm now close, but can't get past this latest problem: Here's my External Method: ---- from Globals import InitializeClass, DTMLFile, package_home from Acquisition import Implicit from Globals import Persistent from DocumentTemplate import HTML def tst1(): stuff = DTMLFile('Extensions/sample', globals()) results = stuff() return results ---- Here's the snippet of a DTML Method that invokes it:
---- But when I 'View' or otherwise invoke the DTML Method, I get Error Type: KeyError Error Value: __name__ I've looked back through the archives, but can't find an answer to this problem. What's wrong with my External Method and what do I need to add to get the DTMLFile call to work? -- Tim Lynch tim.lynch@cornell.edu Information Technology Section 607.255.9570 Albert R. Mann Library Cornell University Ithaca, NY 14853 From maxm@mxm.dk Tue May 7 13:17:34 2002 From: maxm@mxm.dk (Max M) Date: Tue, 07 May 2002 14:17:34 +0200 Subject: [Zope] calling DTMLFile from an External Method References: <200205071207.IAA27161@gould.mannlib.cornell.edu> Message-ID: <3CD7C5DE.8000700@mxm.dk> Tim Lynch wrote: >How do I make use of DTMLFile from an External Method? > >No matter what I try, I can't get it to work. I think I'm >now close, but can't get past this latest problem: > > > >Here's my External Method: > >---- >from Globals import InitializeClass, DTMLFile, package_home >from Acquisition import Implicit >from Globals import Persistent >from DocumentTemplate import HTML > >def tst1(): > > stuff = DTMLFile('Extensions/sample', globals()) > results = stuff() > > return results > First define the dml method "sample" somewhere in Zope. Ie. in the same folder as your external method: And then put something like this in the external method: def tst1(self): return self.sample(None, self) regards Max M From Phil Harris" Message-ID: <007601c1f5c2$18838ea0$5c773fc1@media1> apart from the fact that the passwords are not held in the ldap in anyway, the only way you know you've auth'ed correctly or not is wheteher an exception is raised or not. ----- Original Message ----- From: "Jens Vagelpohl" To: "Tille, Andreas" Cc: "Zope user list" Sent: Tuesday, May 07, 2002 1:03 PM Subject: [Zope] Re: Novell NDS (Was: LDAPUserFolder and Zope 2.5.1) > NDS is a fully standards-compliant LDAP server AFAIK. it should work > without a problem. > > jens > > > On Tuesday, May 7, 2002, at 05:14 , Tille, Andreas wrote: > > > On Mon, 29 Apr 2002, Jens Vagelpohl wrote: > > > >> if you don't know much about the internal structure of the LDAP database > >> you are connecting to you have a real problem. there is a ton of > >> configuration options that depend on knowing the database. > > Did anybody had success in using a Novell NDS directory which claims > > to be LDAP compatible? > > > > Any hints? > > > > Kind regards > > > > Andreas. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > From hans@beehive.de Tue May 7 14:29:22 2002 From: hans@beehive.de (hans) Date: Tue, 07 May 2002 14:29:22 +0100 Subject: [Zope] calling DTMLFile from an External Method References: <200205071207.IAA27161@gould.mannlib.cornell.edu> Message-ID: <3CD7D6B1.C1AE597E@beehive.de> Tim Lynch wrote: > How do I make use of DTMLFile from an External Method? > > No matter what I try, I can't get it to work. I think I'm > now close, but can't get past this latest problem: > > Here's my External Method: > > ---- > from Globals import InitializeClass, DTMLFile, package_home > from Acquisition import Implicit > from Globals import Persistent > from DocumentTemplate import HTML > > def tst1(): > > stuff = DTMLFile('Extensions/sample', globals()) > results = stuff() > results = self.stuff( REQUEST ) > > return results > > ---- > Here's the snippet of a DTML Method that invokes it: > > >
>
> > ---- > But when I 'View' or otherwise invoke the DTML Method, I get > > Error Type: KeyError > Error Value: __name__ > > I've looked back through the archives, but can't find an > answer to this problem. > > What's wrong with my External Method and what do I need to > add to get the DTMLFile call to work? From maxm@mxm.dk Tue May 7 13:33:27 2002 From: maxm@mxm.dk (Max M) Date: Tue, 07 May 2002 14:33:27 +0200 Subject: [Zope] Default sort order for objects in objectManagers ?? Message-ID: <3CD7C997.50403@mxm.dk> What decides the default sort order for the values returned when I do a "objectIds()" etc? I cannot find it on either Google or in the source. It seems that it's sorted in creation order. Is that correct and guaranteed? regards Max M From gagenellina@softlab.com.ar Tue May 7 10:19:32 2002 From: gagenellina@softlab.com.ar (Gabriel Genellina) Date: Tue, 07 May 2002 06:19:32 -0300 Subject: [Zope] Failed to import class atoi from module ZPublisher.Publish Message-ID: <5.1.0.14.0.20020507043210.023341a0@192.168.0.115> Hi Yesterday we upgraded from Zope 2.4.0 to 2.5.1 (binary release, python 2.1, win32-x86), python 2.1.3, win32) ZServer/1.1b1 and now, I cant access some folders, error is always the same: Error Type: SystemError Error Value: Failed to import class atoi from module ZPublisher.Publish Traceback (innermost last): File D:\Zope\website\lib\python\ZPublisher\Publish.py, line 150, in publish_module File D:\Zope\website\lib\python\ZPublisher\Publish.py, line 114, in publish File D:\Zope\website\lib\python\Zope\__init__.py, line 159, in zpublisher_exception_hook (Object: Gabriel) File D:\Zope\website\lib\python\ZPublisher\Publish.py, line 98, in publish File D:\Zope\website\lib\python\ZPublisher\mapply.py, line 88, in mapply (Object: manage_main) File D:\Zope\website\lib\python\ZPublisher\Publish.py, line 39, in call_object (Object: manage_main) File D:\Zope\website\lib\python\Shared\DC\Scripts\Bindings.py, line 252, in __call__ (Object: manage_main) File D:\Zope\website\lib\python\Shared\DC\Scripts\Bindings.py, line 283, in _bindAndExec (Object: manage_main) File D:\Zope\website\lib\python\App\special_dtml.py, line 172, in _exec (Object: manage_main) File D:\Zope\website\lib\python\DocumentTemplate\DT_In.py, line 637, in renderwob (Object: objectItems) File D:\Zope\website\lib\python\DocumentTemplate\DT_In.py, line 763, in sort_sequence (Object: objectItems) File D:\Zope\website\lib\python\ZODB\Connection.py, line 472, in setstate SystemError: (see above) I've been able to track the error to the SQLMethods contained in the folder. Every folder that had an SQL Method inside can't be accessed. Any attempt to access a string property (title, meta_type, src, arguments_src) of an SQLMethod gives the above error. Only old SQLMethods are afected (objects converted from 2.4 to 2.5); new SQLMethods work fine. Gabriel Genellina Softlab SRL From Andreas Jung" Message-ID: <007001c1f5c4$4f7f4320$3e17a8c0@suxlap> There is no predefined order. Use check the documentation for dtml-in how to sort inside or use the _.sequence.sort() to sort the sequence of objects. -aj ----- Original Message ----- From: "Max M" To: Sent: Tuesday, May 07, 2002 08:33 Subject: [Zope] Default sort order for objects in objectManagers ?? > What decides the default sort order for the values returned when I do a > "objectIds()" etc? > > I cannot find it on either Google or in the source. > > It seems that it's sorted in creation order. Is that correct and guaranteed? > > regards Max M > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From tdickenson@geminidataloggers.com Tue May 7 13:42:06 2002 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Tue, 07 May 2002 13:42:06 +0100 Subject: [Zope] Default sort order for objects in objectManagers ?? In-Reply-To: <3CD7C997.50403@mxm.dk> References: <3CD7C997.50403@mxm.dk> Message-ID: On Tue, 07 May 2002 14:33:27 +0200, Max M wrote: >What decides the default sort order for the values returned when I do a=20 >"objectIds()" etc? > >I cannot find it on either Google or in the source. > >It seems that it's sorted in creation order. Order in which they were added to the folder, which is almost the same thing. > Is that correct and guaranteed? No. It is possible that there will be an API for changing the order added to ObjectManager in Zope 2.6 Toby Dickenson tdickenson@geminidataloggers.com From jokke@kuva.fi Tue May 7 13:50:44 2002 From: jokke@kuva.fi (Jokke Heikkil=?ISO-8859-1?B?5A==?=) Date: Tue, 07 May 2002 15:50:44 +0300 Subject: [Zope] Any apache Rewrite experts out there? Message-ID: I just added zope to my site and have it serve all the public stuff. I want the apache still to serve all the user directories on our server, but I'm having real troubles to set up my httpd.conf to steer www.domain.com/~user to where it belongs while www.domain.com/ is taken to the zope. Currently the public www stuff resides in a folder WWW which is on the zope root. There's one VHM on the zope root also Below is the httpd.conf file as it is now, but it won't rewrite /~user requests right. Any help very much appreciated. jokke h. ---- ProxyPass / http://localhost:8080/VirtualHostBase/http/www.domain.com:80/VirtualHostRoot /WWW/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/www.domain.com:80/VirtualHostRoot /WWW/ RewriteEngine On Rewriterule /~(.+) http://users.domain.com/~$1 [R,L] RewriteRule /WWW/.* http://localhost:8080/VirtualHostBase/http/www.domain.com:80/VirtualHostRoot /WWW/ [R] RewriteRule /index.html http://localhost:8080/VirtualHostBase/http/www.domain.com:80/VirtualHostRoot /WWW/ [R] ServerName www.domain.com From dudek@cim.mcgill.edu Tue May 7 13:53:21 2002 From: dudek@cim.mcgill.edu (Gregory Dudek) Date: Tue, 7 May 2002 08:53:21 -0400 Subject: [Zope] [ANSWER] 500 error with IE on login Message-ID: <200205071253.IAA08552@Earth.McRCIM.McGill.EDU> This presents a longwindeded solution to a problem I posted here. I think I may not be unique in having this problem. Problem: A while back I posted a question here regarding a problem I was having with login screens. Specifically, users using MSIE on Windows were getting a "Server Error" page saying "The page cannot be displayed" (error 500) instead of my login page. The login folder product I was using was the Generic User folder product (GUF) but I am almost certain the problem afflicts other user folder products like Extensible User Folder. I am running zope 2.4 It turns out the problem is unique to MSIE (Internet Explorer) on the windows platform. As far as I know it does not occur with any other browser including mozilla, netscape (even on Windows) or even the Mac version of MSIE (Thanks due to complaw@hal-pc.org from this list in helping run tests). It seems to happen with version 5.5 and version 6.0 of MSIE but not on every machine -- differences might be a subversion/patch issue. Explanation (mainly due to Oliver Bleutgen via this list): the 500 error is generated by zope and appears in the page header. It's part of the mechanism for catching an access violation that leads to a request for login. The problem is that when MSIE sees this error it does not display the rest the login page that follows, but substitutes it's own internally generated page instead. Solutions / Work-around: There are 2 solutions, one based on users changing their preferences the second a code-hack to zope itself. First the easy but sub-optimal work-around: If the user turns off "friendly" error messages in their browser the intercept by internally generated pages can be avoided. Of course, forcing the user to do this is ugly. For a page I made giving detailed user-level instructions, see the following: http://abatonix.dyn.dhs.org/mudcritters/windowsLoginProblem A once-only pointer to this message is generated by the following DTML on my home page ( http://www.mudcritters.com ): =0) and (_.string.find(REQUEST.get('HTTP_USER_AGENT'),'MSIE')>=0)">
(Once-only obnoxious mega-sized message.)
WARNING: As a user of Internet Explorer on Windows, to login properly
click here.
Alternate solution: I modified zope not to give a 500 error as a default in such cases. Then things work fine with all browsers and nobody has to muck with any preferences. I actually think the 500 error in inappropriate in this case so I removed it. The code hack may have other side-effects although since most browsers ignore the 500 error I think it should be OK and it runs fine for me. In line 240 of lib/python/HTTPResponse.py (in the zope directory) change the lines: if type(status) is types.StringType: status=lower(status) if status_codes.has_key(status): status=status_codes[status] else: status = 500 self.status=status to read: if type(status) is types.StringType: status=lower(status) if status_codes.has_key(status): status=status_codes[status] else: status = 200 # GD changed above from 500 as a hack self.status=status Sorry this is so long, but I wanted to save the next poor soul who gets bitten by this. Greg Dudek http://www.cim.mcgill.ca/~dudek From hans@beehive.de Tue May 7 14:57:41 2002 From: hans@beehive.de (hans) Date: Tue, 07 May 2002 14:57:41 +0100 Subject: [Zope] Default sort order for objects in objectManagers ?? References: <3CD7C997.50403@mxm.dk> Message-ID: <3CD7DD55.879BE71E@beehive.de> Max M wrote: > What decides the default sort order for the values returned when I do a > "objectIds()" etc? > > I cannot find it on either Google or in the source. > > It seems that it's sorted in creation order. Is that correct and guaranteed? > > regards Max M Use the source, Luke ! sorry, just scrutuinized Folder (i recommend richters OrderedFolder, download from iuveno) The items (in ObjectManager) are added with setattr, which is an insert into the ObjManagers object dictionary and relies deeply on the hashing built into python dictionaries. item retrieval = getattr. This essentially makes retrieval order close to unpredictable. It has been suggested that zope 2.6 should have orderedFolders built in. (i personally would like to have a python ordered_dictionary :-) ) -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From tdickenson@geminidataloggers.com Tue May 7 14:03:39 2002 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Tue, 07 May 2002 14:03:39 +0100 Subject: [Zope] Default sort order for objects in objectManagers ?? In-Reply-To: <3CD7DD55.879BE71E@beehive.de> References: <3CD7C997.50403@mxm.dk> <3CD7DD55.879BE71E@beehive.de> Message-ID: On Tue, 07 May 2002 14:57:41 +0100, hans wrote: >Use the source, Luke ! Youve just proved that is not always good advice ;-) >sorry, just scrutuinized Folder (i recommend richters OrderedFolder, = download >from iuveno) >The items (in ObjectManager) are added with setattr, >which is an insert into the ObjManagers object dictionary >and relies deeply on the hashing built into python dictionaries. >item retrieval =3D getattr. >This essentially makes retrieval order close to unpredictable. It also maintains _objects, a tuple. It uses this order, not anything derived from __dict__, when computing objectIds etc. >It has been suggested that zope 2.6 should have orderedFolders built in. >(i personally would like to have a python ordered_dictionary :-) ) a BTree? Toby Dickenson tdickenson@geminidataloggers.com From bkc@murkworks.com Tue May 7 14:32:03 2002 From: bkc@murkworks.com (Brad Clements) Date: Tue, 7 May 2002 09:32:03 -0400 Subject: [Zope] Novell NDS (Was: LDAPUserFolder and Zope 2.5.1) In-Reply-To: References: <8209CD6A-5BA8-11D6-8A4F-003065C7DEAE@zope.com> Message-ID: <3CD799B7.29276.36F623F0@localhost> On 7 May 2002 at 11:14, Tille, Andreas wrote: > On Mon, 29 Apr 2002, Jens Vagelpohl wrote: > > > if you don't know much about the internal structure of the LDAP database > > you are connecting to you have a real problem. there is a ton of > > configuration options that depend on knowing the database. > Did anybody had success in using a Novell NDS directory which claims > to be LDAP compatible? > > Any hints? > > Kind regards > > Andreas. I'm using LDAPUserFolder to talk to eDirectory running on Linux.. Works fine. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From myzope@gmx.net Tue May 7 13:56:25 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Tue, 07 May 2002 14:56:25 +0200 Subject: [Zope] [ANSWER] 500 error with IE on login References: <200205071253.IAA08552@Earth.McRCIM.McGill.EDU> Message-ID: <3CD7CEF9.9030503@gmx.net> Gregory Dudek wrote: > This presents a longwindeded solution to a problem I posted here. I > think I may not be unique in having this problem. > > Problem: A while back I posted a question here regarding a problem I was > having with login screens. Specifically, users using > MSIE on Windows were getting a "Server Error" page > saying "The page cannot be displayed" (error 500) > instead of my login page. The login folder product I was using > was the Generic User folder product (GUF) > but I am almost certain the problem afflicts > other user folder products like Extensible User Folder. > I am running zope 2.4 > > It turns out the problem is unique to MSIE (Internet Explorer) > on the windows platform. As far as I know it does not occur with > any other browser including mozilla, netscape (even on Windows) > or even the Mac version of MSIE > (Thanks due to complaw@hal-pc.org from this list in helping run tests). > It seems to happen with version 5.5 and version 6.0 of MSIE but not on > every machine -- differences might be a subversion/patch issue. > > Explanation (mainly due to Oliver Bleutgen via this list): > the 500 error is generated by zope and appears in the page header. > It's part of the mechanism for catching an access violation that > leads to a request for login. The problem is that when MSIE sees this > error it does not display the rest the login page that follows, but > substitutes it's own internally generated page instead. > > Solutions / Work-around: There are 2 solutions, one based on users > changing their preferences the second a code-hack to zope itself. > > First the easy but sub-optimal work-around: > If the user turns off "friendly" error messages in their browser the > intercept by internally generated pages can be avoided. Of course, forcing > the user to do this is ugly. > > For a page > I made giving detailed user-level instructions, see the following: > http://abatonix.dyn.dhs.org/mudcritters/windowsLoginProblem > > A once-only pointer to this message is generated by the following > DTML on my home page ( http://www.mudcritters.com ): > > > =0) > and (_.string.find(REQUEST.get('HTTP_USER_AGENT'),'MSIE')>=0)"> >
> > > > (Once-only obnoxious mega-sized message.)
> > expires=(ZopeTime() + 365).rfc822(),path='/' )"> >
> WARNING: As a user of Internet Explorer on Windows, to > login properly click here. > >
>
> > > Alternate solution: I modified zope not to give a 500 > error as a default in such cases. Then things work fine with all > browsers and nobody has to muck with any preferences. > I actually think the 500 error in inappropriate in this case so > I removed it. The code hack may have other > side-effects although since most browsers ignore the 500 error I > think it should be OK and it runs fine for me. > > In line 240 of lib/python/HTTPResponse.py (in the > zope directory) change the lines: > if type(status) is types.StringType: > status=lower(status) > if status_codes.has_key(status): status=status_codes[status] > else: status = 500 > self.status=status > to read: > if type(status) is types.StringType: > status=lower(status) > if status_codes.has_key(status): status=status_codes[status] > else: status = 200 > # GD changed above from 500 as a hack > self.status=status > > Sorry this is so long, but I wanted to save the next poor soul > who gets bitten by this. Greg, thanks for following up with a writeup. You are quite right IMO in stating that a 500 Error for this special case is wrong. But maybe there is a better solution for this problem than to disable Error 500 completly. I just think that zope shouldn't send an error in this case, just an 302(?) redirect to the login page. Have you had a look at the user folder you use in order to see where it raises an exception (I guess that, but this might eventually lead to HTTPResponse tacking the error 500 to the response)? Maybe it's possible to patch the user folder(s) to set a 302 header? If it's the user folder can't be changed to do the right thing (which I doubt), I would say this is a bug in zope and should be added to the collector. cheers, oliver From maxm@mxm.dk Tue May 7 14:18:35 2002 From: maxm@mxm.dk (Max M) Date: Tue, 07 May 2002 15:18:35 +0200 Subject: [Zope] Default sort order for objects in objectManagers ?? References: <3CD7C997.50403@mxm.dk> <3CD7DD55.879BE71E@beehive.de> Message-ID: <3CD7D42B.5070100@mxm.dk> hans wrote: >Max M wrote: > >The items (in ObjectManager) are added with setattr, >which is an insert into the ObjManagers object dictionary >and relies deeply on the hashing built into python dictionaries. >item retrieval = getattr. >This essentially makes retrieval order close to unpredictable. > Yes if if the object dictionary is indeed an ordinary dict. But I have a sneaking suspicion that it is a Btree of sorts, and so the rules can be different. And the behaviour suggets that it is so. Try and create some objects in a folder and then view the objectIds(). They are allways ordered in the order they are created. regards Max M From bobc@p-wave.com Tue May 7 14:22:02 2002 From: bobc@p-wave.com (Bob Corriher) Date: Tue, 07 May 2002 09:22:02 -0400 Subject: [Zope] Searching Developer: Mapping WebDAV to Drive Letter Message-ID: <3CD7D4FA.5A699087@p-wave.com> Thomas Guettler wrote: I thought about an open source alternative. BTW, I am testing a demo version of teamdrive right now. MSWord (2002) crashes sometimes if it tries to save a document. Has someone experience with webdrive vs. teamdrive on zope? Hi Thomas, I have tried the trial versions of both Webdrive and Teamdrive on a NT 4.0 SP 6 workstation. Webdrive seemed to work with no problems, but Teamdrive caused frequent bluescreens, which stopped after I deinstalled it. This probably says more about NT than Teamdrive however, as I have to reinstall NT about every 3 or 4 months to keep everthing else working. Bob Corriher P-Wave Inc. From Anthony Baxter Tue May 7 08:34:05 2002 From: Anthony Baxter (Anthony Baxter) Date: Tue, 07 May 2002 17:34:05 +1000 Subject: [Zope] Zope newsgroup? In-Reply-To: Message from Uwe Schuerkamp of "Tue, 07 May 2002 09:26:43 +0200." <20020507072643.GE17814@nionex.net> Message-ID: <200205070734.g477Y5O25004@localhost.localdomain> >>> Uwe Schuerkamp wrote > is there a zope newsgroup out there in usenet-land? This mailing list > is getting quite a bit of traffic, and I think it would be easier to > organize in a newsgroup or two. You might think that, I disagree. But then, I read comp.lang.python via the mailing list. I think this has come up on a number of occasions, and no-one's volunteered to do the work to get the newsgroup created. I know I don't read usenet at all (except, as noted, for some that are gatewayed to/from email) and I suspect I'm not the only person on this list that wouldn't bother with the newsgroup. Anthony -- Anthony Baxter It's never too late to have a happy childhood. From Anthony Baxter Tue May 7 08:13:57 2002 From: Anthony Baxter (Anthony Baxter) Date: Tue, 07 May 2002 17:13:57 +1000 Subject: [Zope] DCOracle 2 and long text fields..How to use them? In-Reply-To: Message from Geir =?iso-8859-1?Q?B=E6kholt?= of "Tue, 07 May 2002 08:44:58 +0200." <1951202771624.20020507084458@funcom.com> Message-ID: <200205070713.g477Dvr24634@localhost.localdomain> >>> Geir B=E6kholt wrote > = > Stored procedures worked excellent for me. Less hassle than external > methods in some cases , especially if (like me) you have a Database > Administrator to handle them instead of doing it yourself.. > ;-) > Lazyness is a great virtue We're ripping a lot of the stored procs out of our system. They're almost impossible to debug when things go wrong. Anthony -- = Anthony Baxter = It's never too late to have a happy childhood. From hans@beehive.de Tue May 7 15:31:21 2002 From: hans@beehive.de (hans) Date: Tue, 07 May 2002 15:31:21 +0100 Subject: [Zope] Default sort order for objects in objectManagers ?? References: <3CD7C997.50403@mxm.dk> <3CD7DD55.879BE71E@beehive.de> Message-ID: <3CD7E538.912B8C39@beehive.de> Toby Dickenson wrote: > On Tue, 07 May 2002 14:57:41 +0100, hans wrote: > > >Use the source, Luke ! > > Youve just proved that is not always good advice ;-) very, very, sorry. YOU are right. > > >sorry, just scrutuinized Folder (i recommend richters OrderedFolder, download > >from iuveno) > >The items (in ObjectManager) are added with setattr, > >which is an insert into the ObjManagers object dictionary > >and relies deeply on the hashing built into python dictionaries. > >item retrieval = getattr. > >This essentially makes retrieval order close to unpredictable. > > It also maintains _objects, a tuple. It uses this order, not anything > derived from __dict__, when computing objectIds etc. > > >It has been suggested that zope 2.6 should have orderedFolders built in. > >(i personally would like to have a python ordered_dictionary :-) ) > > a BTree? no, something like OrderedFolder mostly to fix arbitrary ordering. a lot of navigation/sitemap tools would be obsoleted or simplified by that -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From jens@zope.com Tue May 7 14:31:31 2002 From: jens@zope.com (Jens Vagelpohl) Date: Tue, 7 May 2002 09:31:31 -0400 Subject: [Zope] How do I get rid of this message In-Reply-To: <004f01c1f5b6$68ff4f60$250aa8c0@torped.se> Message-ID: you can always find out the culprit by using the debugger. you can put a pdb.set_trace into the SearchIndex.__init__.py module and if you do "up" while in the debugger you can see where SearchIndex has been called from. i assume that the problem is the built-in HelpSystem. it has its own little hidden catalog. i'm afraid i can't offer a solution myself on how to upgrade that particular catalog :( jens On Tuesday, May 7, 2002, at 07:00 , Lennart Regebro wrote: > How do I get rid of this message: > > .\lib\python\SearchIndex\__init__.py:19: DeprecationWarning: The usage of > the Se > archIndex package is deprecated since Zope 2.4. > This package is only kept for backwards compatibility for a while > and will go away in a future release. > > Please use instead the re-factored modules in Products/PluginIndexes. > > warnings.warn("The usage of the SearchIndex package is deprecated since > \ > > I upgraded a server from 2.3.3 to 2.5.1, by installing a new 2.5.1 > instance, > and copying the Data.fs. I don't use any SearchIndex any more, all the > ZCatalogs have been recreated using PluginIndexes. I have removed the > references to all old products (I think). > > What more can I do? > > //Lennart > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From marq@europa.com Tue May 7 14:38:31 2002 From: marq@europa.com (Mark A. Lilly) Date: Tue, 7 May 2002 06:38:31 -0700 Subject: [Zope] javascript parsing error Message-ID: <004701c1f5cc$7a535660$0201a8c0@lala> Hello, There is a line of Javascript i have which i am including in a page template (i get the same error using it via DTML) which is this: for (var y=0; y < 12; y++) <--this is correct--> for (var y=0; y < 12; y++) <--this is what the script debugger shows--> ^^^^ i get an error which says i need a parenthesis before '12'. It is saying this, i believe, because the parser is translating the '<' from the original Javascript to '<' and then the browser is not reinterpreting that as '<' The exact same code works fine when i run it straight from Apache. Something in the Zope HTMLParser seems to change the Javascript so that it doesn't work. Is there a way to leave the original code alone? Thanks, mark From renfro@tntech.edu Tue May 7 14:36:11 2002 From: renfro@tntech.edu (Mike Renfro) Date: Tue, 7 May 2002 08:36:11 -0500 Subject: [Zope] Any apache Rewrite experts out there? In-Reply-To: ; from jokke@kuva.fi on Tue, May 07, 2002 at 03:50:44PM +0300 References: Message-ID: <20020507083611.B15853@ch208h> On Tue, May 07, 2002 at 03:50:44PM +0300, Jokke Heikkil? wrote: > Below is the httpd.conf file as it is now, but it won't rewrite /~user > requests right. > RewriteEngine On > > Rewriterule /~(.+) http://users.domain.com/~$1 [R,L] My regexp is "RewriteRule ^/~(.*) -" from http://www.zope.org/Members/mwr/VHosts_With_Zope_Default ; I'd have to look up the details of the differences between your version and mine in a regex book, but it's definitely working for me. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From Christian.Fissgus@haufe.de Tue May 7 14:55:22 2002 From: Christian.Fissgus@haufe.de (Christian.Fissgus@haufe.de) Date: Tue, 7 May 2002 15:55:22 +0200 Subject: [Zope] SQL to Excel Redux Message-ID: <08231599A3E6E64CAE8FA66619243E4002427BAB@vg100cl1> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --------------InterScan_NT_MIME_Boundary Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1F5CE.D48A3520" ------_=_NextPart_001_01C1F5CE.D48A3520 Content-Type: text/plain; charset="iso-8859-1" > Okay, now that's fixed, I'm getting the error I initially expected: > > Error Type: KeyError > Error Value: Company_Name > > This doesn't surprise me, as the Browse tab on the ODBC connector comes up > empty, and this being an Excel spreadsheet, not a database table proper, > there are no field names specifically assigned to the data. > > Now, where should the field names be declared/assigned? The best way would be to insert a new first row in your excel-sheet with the field names you want. Or: use the names which are shown when you test your ZSQL method. > > And as a more general question, in the ODBC connector docs, it says that not > all databases support browsing...what is the specific limitation? I've been > able to browse both Access and FoxPro databases, and I find it an invaluable > tool. The Excels spreadsheet is the first thing that's ever come up blank > for me, and that's kind of an odd duck anyway... If you really want to use the Browse tab, you have to use named ranges in your excel sheet (look in your excel manual how to name ranges); then you will see the named ranges just like 'normal' tables in a database. (and you can also do something like "select * from nameOfRange " as ZSQL method ...) chris ------_=_NextPart_001_01C1F5CE.D48A3520 Content-Type: text/html; charset="iso-8859-1" RE: [Zope] SQL to Excel Redux

> Okay, now that's fixed, I'm getting the error I initially expected:
>
> Error Type: KeyError
> Error Value: Company_Name
>
> This doesn't surprise me, as the Browse tab on the ODBC connector comes up
> empty, and this being an Excel spreadsheet, not a database table proper,
> there are no field names specifically assigned to the data.
>
> Now, where should the field names be declared/assigned?

The best way would be to insert a new first row in your excel-sheet with the field names you want.
Or: use the names which are shown when you test your ZSQL method.

>
> And as a more general question, in the ODBC connector docs, it says that not
> all databases support browsing...what is the specific limitation? I've been
> able to browse both Access and FoxPro databases, and I find it an invaluable
> tool. The Excels spreadsheet is the first thing that's ever come up blank
> for me, and that's kind of an odd duck anyway...

If you really want to use the Browse tab, you have to use named ranges in
your excel sheet (look in your excel manual how to name ranges);
then you will see the named ranges just like 'normal' tables in a database.
(and you can also do something like "select * from nameOfRange " as ZSQL method ...)

chris

 

------_=_NextPart_001_01C1F5CE.D48A3520-- --------------InterScan_NT_MIME_Boundary-- From zope@benko.sk Tue May 7 14:57:35 2002 From: zope@benko.sk (Michal Bencur) Date: Tue, 7 May 2002 15:57:35 +0200 Subject: [Zope] Zope hangs Message-ID: <20020507155735.A23954@benko.sk> Hi, I was running Zope 2.5.0 with Python 2.1.1, and I got into situation where I could not add Script(Python) into a Folder. Zope worked, I could edit other Scripts, add Folder, but adding Script or DTMLMethod simply hanged (browser received no answer). so I upgraded to Zope 2.5.1 (installed from source) Python 2.1.3 (#1, May 6 2002, 17:02:37) [GCC 2.95.3 19991030 (prerelease)] on linux2 the problem is still here, I cannot create Script(Python) nor DTML Method, adding Folder works. any idea ? Best regards, Michal From =?koi8-r?B?4c7E0sXKIPDV3snO?= Tue May 7 15:04:09 2002 From: =?koi8-r?B?4c7E0sXKIPDV3snO?= (=?koi8-r?B?4c7E0sXKIPDV3snO?=) Date: Tue, 7 May 2002 18:04:09 +0400 Subject: [Zope] Zope + omniORB4.0 Message-ID: <1091152667438.20020507180409@garant.ru> Could anybody help with next problem? I have: Zope-2.5.0 under Windows XP Python 2.1.3 Zope Product omniORB40 with omniORBpy APPSERVER (C++, TAO) Cycle 1. Step 1. Product's function (A) creates CORBA object (B) and transfers its object reference (C) to the APPSERVER. Step 2. APPSERVER call methods of B through C Step 3. A delete B and C If Zope running with option -t 1 on 10 users all works great If Zope running with option -t 10 on 10 users Zope suddenly stop responding after Step 1. What's wrong? Thanks, Andrew From zopestoller@thomas-guettler.de Tue May 7 15:06:40 2002 From: zopestoller@thomas-guettler.de (Thomas Guettler) Date: Tue, 07 May 2002 16:06:40 +0200 Subject: [Zope] Searching Developer: Mapping WebDAV to Drive Letter References: <3CD7D4FA.5A699087@p-wave.com> Message-ID: <3CD7DF70.6080309@thomas-guettler.de> Bob Corriher wrote: >> Thomas Guettler wrote: >> >> I thought about an open source alternative. >> >> BTW, I am testing a demo version of teamdrive right now. >> MSWord (2002) crashes sometimes if it tries to save >> a document. >> >> Has someone experience with webdrive vs. teamdrive on zope? >> >> > Hi Thomas, > > I have tried the trial versions of both Webdrive and Teamdrive on a NT > 4.0 SP 6 workstation. Webdrive seemed to work with no problems, but > Teamdrive caused frequent bluescreens, which stopped after I deinstalled > it. This probably says more about NT than Teamdrive however, as I have > to reinstall NT about every 3 or 4 months to keep everthing else > working. Both get even more unstable if you have an virus-scanner installed. WebDrive and Teamdrive are NT-IFS (Internal File Systems) and virus scanner use Filter Drivers which catch the read and write access to the drive. It is very likely that this causes trouble. At least with kaspersky anti virus. I am not good in organizing, but one solution would be to collect money to sponsor the development by a company or a good developer who is specialized in writing NT-IFS. OK, I am just dreaming, I think this will never happen. thomas From dm@petamem.com Tue May 7 15:00:02 2002 From: dm@petamem.com (Dan Meszaros) Date: Tue, 7 May 2002 16:00:02 +0200 (CEST) Subject: [Zope] escaping html tags during method calls Message-ID: Hi, i'm very confused by zope's behaviour when calling dtml methods. let's have method m1 that returns

hello

when i do i get: ... <p> hello </p> ... when i do i get ...

hello

... which is ok. unfortunatelly i need to call method, that is not in the same directory, parser forces me to use double-quotes. being not satisfied with the result mentioned above (first example) i tried can someone explain, why does it work that way? regards -dan From chrism@zope.com Tue May 7 15:11:55 2002 From: chrism@zope.com (Chris McDonough) Date: Tue, 7 May 2002 10:11:55 -0400 Subject: [Zope] import and setting tmp dir References: <3CD73CE9.9060700@zope.com> Message-ID: <002601c1f5d1$24d5b5c0$6717a8c0@dorothy> John, try strace ./start -t1 (single-threaded) ----- Original Message ----- From: "John Hunter" To: "Zope Users" Sent: Monday, May 06, 2002 11:42 PM Subject: Re: [Zope] import and setting tmp dir > >>>>> "Chris" == Chris McDonough writes: > > Chris> One painful way to find out where it *is* writing the > Chris> tempfile may be to run Python/Zope under strace and do the > Chris> import. > > Hi Chris, > > Thanks for the response. I tried the strace. I am only getting > system calls up to the point where the zope server starts. Ie, > nothing is reported by the strace after the zope message > > 2002-05-07T03:22:03 INFO(0) ZServer PCGI Server started at Mon May 6 22:22:03 2002 > Unix socket: /usr/local/Zope-2.5.1b1-src/var/pcgi.soc > > > which is the last log entry after the server starts when I execute the > ./start script. > > I am using strace like 'strace ./start'. I have also tried in my > ./start script: > > exec strace /usr/local/bin/python2.1 \ > $INST_HOME/z2.py \ > -D "$@" > > Are either of these the correct way? > > In any case, nothing in the strace as executed above matches 'tmp'. I > also grepped the output for '^open' and didn't see anything interesting. > > For the record, if I simply do a copy/paste from the manager interface > and without invoking import/export, i get the same behavior. That is, > if I choose a copy operation that is sufficiently large that I can > execute multiple df's and see the change in the Use% column, the root > partition is being used for the copy. > > Possibly something in the transaction system is using a tmp file not > supplied by tempfile.py? > > Thanks, > John Hunter > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From idzikowski@atsolute.com Tue May 7 17:18:29 2002 From: idzikowski@atsolute.com (Jan Idzikowski) Date: Tue, 7 May 2002 18:18:29 +0200 Subject: [Zope] Zope hangs In-Reply-To: <20020507155735.A23954@benko.sk> References: <20020507155735.A23954@benko.sk> Message-ID: <20020507181829.5206ea59.idzikowski@atsolute.com> On Tue, 7 May 2002 15:57:35 +0200 Michal Bencur wrote: mmm it listen, that you are use the emergancy user, try to create a new user and loggin with the new user. greetings jan > Hi, > > I was running Zope 2.5.0 with Python 2.1.1, and I got into situation where I could not add Script(Python) into a Folder. Zope worked, I could edit other Scripts, add Folder, but adding Script or DTMLMethod simply hanged (browser received no answer). > > so I upgraded to Zope 2.5.1 (installed from source) > Python 2.1.3 (#1, May 6 2002, 17:02:37) > [GCC 2.95.3 19991030 (prerelease)] on linux2 > > the problem is still here, I cannot create Script(Python) nor DTML Method, adding Folder works. > > any idea ? > > > Best regards, > Michal > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From dm@petamem.com Tue May 7 15:06:04 2002 From: dm@petamem.com (Dan Meszaros) Date: Tue, 7 May 2002 16:06:04 +0200 (CEST) Subject: [Zope] passing method name thru form parameter Message-ID: Hi, i need to pass the method name thru the url, for example method2 etc. how do i call the method in dtml document, that gets the method name as a parameter? doing: ... ... doesn't help, it just shows "methods.method1" string. regards -dan From zope@benko.sk Tue May 7 15:23:56 2002 From: zope@benko.sk (Michal Bencur) Date: Tue, 7 May 2002 16:23:56 +0200 Subject: [Zope] Zope hangs In-Reply-To: <20020507181829.5206ea59.idzikowski@atsolute.com>; from idzikowski@atsolute.com on Tue, May 07, 2002 at 06:18:29PM +0200 References: <20020507155735.A23954@benko.sk> <20020507181829.5206ea59.idzikowski@atsolute.com> Message-ID: <20020507162356.A24235@benko.sk> thanks for advice I tested it, and it works ... But tell me please, why ? Michal On Tue, May 07, 2002 at 06:18:29PM +0200, Jan Idzikowski wrote: > > mmm it listen, that you are use the emergancy user, try to create a new user and loggin with the new user. > > greetings jan From hans@beehive.de Tue May 7 16:30:30 2002 From: hans@beehive.de (hans) Date: Tue, 07 May 2002 16:30:30 +0100 Subject: [Zope] passing method name thru form parameter References: Message-ID: <3CD7F313.F6E7AE8@beehive.de> Dan Meszaros wrote: > Hi, > > i need to pass the method name thru the url, for example > > method2 > etc. > > how do i call the method in dtml document, that gets the method name > as a parameter? > > doing: > > ... > > ... > > doesn't help, it just shows "methods.method1" string. method2 and later assuming methods is a folder -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From dm@petamem.com Tue May 7 15:24:24 2002 From: dm@petamem.com (Dan Meszaros) Date: Tue, 7 May 2002 16:24:24 +0200 (CEST) Subject: [Zope] passing method name thru form parameter In-Reply-To: <3CD7F313.F6E7AE8@beehive.de> Message-ID: thanks, Hans, i had no problem with but it gives me no output :( i need to include the output of methods.method1 to that dtml page. seems not to be working, anyway. > Dan Meszaros wrote: > > > Hi, > > > > i need to pass the method name thru the url, for example > > > > method2 > > etc. > > > > how do i call the method in dtml document, that gets the method name > > as a parameter? > > > > doing: > > > > ... > > > > ... > > > > doesn't help, it just shows "methods.method1" string. > > > method2 > > and later > > > > assuming methods is a folder > > -- > ------------------------------------------------------------- > Who's got only a hammer sees the world as a nail > hans augustin (software developer) hans@beehive.de > beehive elektronische medien GmbH http://www.beehive.de > phone: +49 30 847-82 0 fax: +49 30 847-82 299 > > From idzikowski@atsolute.com Tue May 7 17:55:34 2002 From: idzikowski@atsolute.com (Jan Idzikowski) Date: Tue, 7 May 2002 18:55:34 +0200 Subject: [Zope] Zope hangs In-Reply-To: <20020507162356.A24235@benko.sk> References: <20020507155735.A23954@benko.sk> <20020507181829.5206ea59.idzikowski@atsolute.com> <20020507162356.A24235@benko.sk> Message-ID: <20020507185534.576d62f8.idzikowski@atsolute.com> On Tue, 7 May 2002 16:23:56 +0200 Michal Bencur wrote: hallo michal, i think you have rtfm ;) http://www.zope.org/Documentation/ZopeBook/UsingZope.stx and the http://www.zope.org/Documentation/Guides/ZAG greetings jan > thanks for advice > > I tested it, and it works ... > But tell me please, why ? > > > Michal > > On Tue, May 07, 2002 at 06:18:29PM +0200, Jan Idzikowski wrote: > > > > mmm it listen, that you are use the emergancy user, try to create a new user and loggin with the new user. > > > > greetings jan > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From jdhunter@ace.bsd.uchicago.edu Tue May 7 15:39:40 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Tue, 07 May 2002 09:39:40 -0500 Subject: [Zope] import and setting tmp dir In-Reply-To: <002601c1f5d1$24d5b5c0$6717a8c0@dorothy> ("Chris McDonough"'s message of "Tue, 7 May 2002 10:11:55 -0400") References: <3CD73CE9.9060700@zope.com> <002601c1f5d1$24d5b5c0$6717a8c0@dorothy> Message-ID: >>>>> "Chris" == Chris McDonough writes: Chris> John, try strace ./start -t1 (single-threaded) Hmm. This doesn't seem to be working. I still get no entries in the strace output after the zope server startup message I referred to previously. Ignoring strace for a moment, there seems to be a problem with the -t1 flag. If I do a ps aux grepping for python processes, right after I execute > ./start -t1 I have two processes mother:~> ps aux | grep /usr/local/bin/py root 21016 0.4 0.7 5196 3620 pts/8 S 09:30 0:00 /usr/local/bin/py nobody 21019 30.1 3.5 20272 18184 pts/8 S 09:30 0:23 /usr/local/bin/py These are the two pids in var/Z2.pid When I start the copy command form the zope manager interface, and then do the ps, I get some new processes that look like threads: mother:~> ps aux | grep /usr/local/bin/py root 21016 0.3 0.7 5196 3620 pts/8 S 09:30 0:00 /usr/local/bin/py nobody 21019 22.4 3.7 29376 19236 pts/8 S 09:30 0:23 /usr/local/bin/py nobody 21084 0.0 3.7 29376 19236 pts/8 S 09:31 0:00 /usr/local/bin/py nobody 21085 26.0 3.7 29376 19236 pts/8 D 09:31 0:04 /usr/local/bin/py I have the same problem when I modify the start script to start zope like: exec /usr/local/bin/python2.1 \ $INST_HOME/z2.py -t1 \ -D "$@" Woe is me. Should I be getting these extra processes with the t1 flag? It looks to me like these extra process are why I am not getting anything in the strace when I start the copy. Gee, when you said using strace would be painful, you weren't kidding. Thanks for you help; I'll eagerly try any further suggestions. John Hunter From tpassin@mitretek.org Tue May 7 15:58:03 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Tue, 7 May 2002 10:58:03 -0400 Subject: [Zope] SQL to Excel Redux References: <025301c1f1e7$3e65e890$5102020a@graphnet.com> <009601c1f1ed$6ba25b30$f70510ac@mitretek.org> <019e01c1f4ed$9636e110$5102020a@graphnet.com> <01b201c1f504$4f71d8e0$5102020a@graphnet.com> <008501c1f512$5cb903d0$f70510ac@mitretek.org> <010401c1f5a1$08231060$5102020a@graphnet.com> Message-ID: <005001c1f5d7$96869260$f70510ac@mitretek.org> [Bruce Dykes] > ----- Original Message ----- > From: "Thomas B. Passin" > To: > Sent: Monday, May 06, 2002 11:26 > Subject: Re: [Zope] SQL to Excel Redux > > > > Hope you really used and not as you posted here! > > D'OH! > > Okay, now that's fixed, I'm getting the error I initially expected: > > Error Type: KeyError > Error Value: Company_Name > > This doesn't surprise me, as the Browse tab on the ODBC connector comes up > empty, and this being an Excel spreadsheet, not a database table proper, > there are no field names specifically assigned to the data. > > Now, where should the field names be declared/assigned? > In the test tab for the database connection, type select * from [table$] (use the worksheet name instead of "table", and make sure to end with the "$"). Then see what column names are displayed. Then write a query using them. You may have to insert a header row with column names in the spreadsheet, I'm not sure about that. I noticed on the speadsheet that I tried that unlabeled columns ended up named "F2", "F3", etc. I tried select F2 from [table$], and that returned the expected column. > And as a more general question, in the ODBC connector docs, it says that not > all databases support browsing...what is the specific limitation? I've been > able to browse both Access and FoxPro databases, and I find it an invaluable > tool. The Excels spreadsheet is the first thing that's ever come up blank > for me, and that's kind of an odd duck anyway... > I don't know what you mean by "browsing" here. But I tried, as you know, the select * from [table$] and it worked as expected. So you should be able to see the data as for any other database. Cheers, Tom P From tpassin@mitretek.org Tue May 7 16:08:58 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Tue, 7 May 2002 11:08:58 -0400 Subject: [Zope] calling DTMLFile from an External Method References: <200205071207.IAA27161@gould.mannlib.cornell.edu> Message-ID: <007101c1f5d9$1d373430$f70510ac@mitretek.org> [Tim Lynch] > > How do I make use of DTMLFile from an External Method? > > No matter what I try, I can't get it to work. I think I'm > now close, but can't get past this latest problem: > Even after you find out how, I urge you not to do it. Instead, write some more Python code in your external method to do the processing you want to do. Then return the result to a dtml method or document to be rendered for display. If you need to pass some data from a dtml method to the external method, pass it as a parameter when you call the external method. Alternatively, have your dtml method call the external method, get the results, and then continue to process them with dtml. Work hard to maintain a clean separation between the External Method code and dtml. Your code will be much easier to understand and maintain. Cheers, Tom P From jmartinez@eMediaMillWorks.com Tue May 7 16:15:26 2002 From: jmartinez@eMediaMillWorks.com (Jorge O. Martinez) Date: Tue, 07 May 2002 11:15:26 -0400 Subject: [Zope] transparent folders in zope 2.5.1 References: <00b801c1f52e$052e36a0$38c8a8c0@constructionbull.com> Message-ID: <3CD7EF8E.50705@emediamillworks.com> Worked right out of the box for me. Your problem may be elsewhere. Jorge M. L. Pelletier wrote: > I just upgraded to 2.5.1 and now Transparent Folders does not seem to be > working. The product doesn't appear broken, but requesting an object > within a TF returns a NameError. Is there a patch or something else I > need to do? > > Any help is GREATLY appreciated! > Thanks, > Liz -- Jorge O. Martinez MIS Senior Associate eMediaMillWorks 1100 Mercantile Lane, Suite 119 Largo, MD 20774 E-mail => jmartinez@eMediaMillWorks.com Phone => (301)883-2482 ext. 105 Fax => (301)883-9754 From cbeaumon@msri.org Tue May 7 17:19:01 2002 From: cbeaumon@msri.org (Chris Beaumont) Date: Tue, 7 May 2002 08:19:01 -0800 Subject: [Zope] DCOracle 2 and long text fields..How to use them? In-Reply-To: <200205070713.g477Dvr24634@localhost.localdomain> References: <200205070713.g477Dvr24634@localhost.localdomain> Message-ID: Does anybody have a How-to on the Zopish way to do either? I've been unable to find anything at all about using Oracle bind variables in the various (Zope) docs or on the mailing list. The immediate imperative for me is to be able to use long text fields.. but the ability to use long raw would also be very useful.. Another question..are Oracle 7's 'long raw' fields functionally equivalent to Oracle 8's CLOB/BLOB? Thank you everyone.. -Chris > >>> Geir Bækholt wrote >> >> Stored procedures worked excellent for me. Less hassle than external >> methods in some cases , especially if (like me) you have a Database >> Administrator to handle them instead of doing it yourself.. >> ;-) >> Lazyness is a great virtue > >We're ripping a lot of the stored procs out of our system. They're >almost impossible to debug when things go wrong. > >Anthony >-- >Anthony Baxter >It's never too late to have a happy childhood. > From tpassin@mitretek.org Tue May 7 16:20:19 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Tue, 7 May 2002 11:20:19 -0400 Subject: [Zope] escaping html tags during method calls References: Message-ID: <008901c1f5da$b2b8b690$f70510ac@mitretek.org> When you write , Zope ***calls*** object m1, which is what you want here. When you write , you have asked Zope to evaluate the Python expression m1. In this case, this gives you the (escaped) string representing the m1 object - in other words, a description of the object, as opposed to the results of calling the object. Sometimes this is what you want, but not here. Writing tells Zope to evaluate the Python expression "m1()", which is what you want because Python will know to call the object if it is callable. Cheers, Tom P [Dan Meszaros] > > i'm very confused by zope's behaviour when calling dtml methods. > > let's have method m1 that returns >

> hello >

> > > when i do > > > > > i get: > ... > <p> > hello > </p> > ... > > > when i do > > > > > i get > ... >

> hello >

> ... > > which is ok. > unfortunatelly i need to call method, that is not in the same > directory, parser forces me to use double-quotes. being not satisfied > with the result mentioned above (first example) i tried > From rhires@earthlink.net Tue May 7 16:25:02 2002 From: rhires@earthlink.net (Russell Hires) Date: Tue, 7 May 2002 11:25:02 -0400 Subject: [Zope] Zope hangs In-Reply-To: <20020507163525.A24412@benko.sk> References: <20020507155735.A23954@benko.sk> <20020507163525.A24412@benko.sk> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 07 May 2002 10:35 am, you wrote: > but why I was able to develop my website with emergency user (admin) > for 3 weeks, I was able to create Python(Script), DTML stuff, > and everyting, but now it does not work any longer ? > > That, I don't know. My only answer to this is that is must be a bug? Russell > > On Tue, May 07, 2002 at 10:31:14AM -0400, Russell Hires wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Because the emergency user is only for the emergency of having all the > > other users locked out. All you want to do with the emergency user is > > create a user that can do all the normal zope stuff. > > > > HTH > > > > Russell - -- Linux -- the OS for the Renaissance Man -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE81/HVAqKGrvVshJQRAvj8AKDPM+8NSoCmYyojMPC/DOQgEl2ZfwCgwE2r tHzNWPi4+xcv49NSWb2lfDU= =kWC0 -----END PGP SIGNATURE----- From olpa@sybcom.de Tue May 7 16:24:58 2002 From: olpa@sybcom.de (Oliver Pabst) Date: 07 May 2002 17:24:58 +0200 Subject: [Zope] Tracker and Scheduled tasks Message-ID: <1020785098.19903.24.camel@bastion.forteresse.net> Hi Zope folks, as I saw in the Tracker source, it should be possible to trigger the execute_rules method to tell the Tracker to resend old Tracker issues to the supporters to alert them. Does someone know who you can trigger this with a cron job or so? -- --- --- Oliver Pabst .-------------------------. mailto:olpa@sybcom.de : : phone :+49 681 56600600 : project department : SYBCOM GmbH fax :+49 681 56600660 : : http://www.sybcom.de From dsantner@datasolutions.at Tue May 7 16:49:37 2002 From: dsantner@datasolutions.at (dorian santner) Date: Tue, 07 May 2002 17:49:37 +0200 Subject: [Zope] how to iterate over the properties/methods in a ZClass In-Reply-To: <20020427073503.26153.86542.Mailman@mail.python.org> Message-ID: I have a Product with a ZClass called A it holds several B Objects ( in the ZClass definition) i tried to add a method in the A ZClass definition that iterates over the B Objects : which works well, but returns the objects only in the Folder of my inserted Object, not the Folder of my Classdefinition So how can i iterate over the /Control_Panel/Products/A/A/propertysheets/methods ? I would like to have a method that lists my DSFormFields that are in the ZClassdefiniton, please help! Thanx Dorian From chrism@zope.com Tue May 7 16:59:32 2002 From: chrism@zope.com (Chris McDonough) Date: Tue, 7 May 2002 11:59:32 -0400 Subject: [Zope] import and setting tmp dir References: <3CD73CE9.9060700@zope.com><002601c1f5d1$24d5b5c0$6717a8c0@dorothy> Message-ID: <009301c1f5e0$307ef2b0$6717a8c0@dorothy> Oops.. try this: strace ./start -t1 -Z'' This starts Zope in single-threaded mode and does not fork off a zdaemon process. Sorry for the incomplete info. - C ----- Original Message ----- From: "John Hunter" To: "Chris McDonough" Cc: "Zope Users" Sent: Tuesday, May 07, 2002 10:39 AM Subject: Re: [Zope] import and setting tmp dir > >>>>> "Chris" == Chris McDonough writes: > > Chris> John, try strace ./start -t1 (single-threaded) > > Hmm. This doesn't seem to be working. I still get no entries in the > strace output after the zope server startup message I referred to > previously. > > Ignoring strace for a moment, there seems to be a problem with the -t1 > flag. If I do a ps aux grepping for python processes, right after I > execute > > ./start -t1 > > I have two processes > > mother:~> ps aux | grep /usr/local/bin/py > root 21016 0.4 0.7 5196 3620 pts/8 S 09:30 0:00 /usr/local/bin/py > nobody 21019 30.1 3.5 20272 18184 pts/8 S 09:30 0:23 /usr/local/bin/py > These are the two pids in var/Z2.pid > > When I start the copy command form the zope manager interface, and > then do the ps, I get some new processes that look like threads: > > mother:~> ps aux | grep /usr/local/bin/py > root 21016 0.3 0.7 5196 3620 pts/8 S 09:30 0:00 /usr/local/bin/py > nobody 21019 22.4 3.7 29376 19236 pts/8 S 09:30 0:23 /usr/local/bin/py > nobody 21084 0.0 3.7 29376 19236 pts/8 S 09:31 0:00 /usr/local/bin/py > nobody 21085 26.0 3.7 29376 19236 pts/8 D 09:31 0:04 /usr/local/bin/py > > I have the same problem when I modify the start script to start zope > like: > > exec /usr/local/bin/python2.1 \ > $INST_HOME/z2.py -t1 \ > -D "$@" > > Woe is me. Should I be getting these extra processes with the t1 > flag? It looks to me like these extra process are why I am not > getting anything in the strace when I start the copy. > > Gee, when you said using strace would be painful, you weren't kidding. > Thanks for you help; I'll eagerly try any further suggestions. > > John Hunter > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From steven.pokrandt@watchmark.com Tue May 7 17:23:58 2002 From: steven.pokrandt@watchmark.com (Steven Pokrandt) Date: Tue, 7 May 2002 09:23:58 -0700 Subject: [Zope] Question: VHM and Products Message-ID: <009a01c1f5e3$97d933a0$9e09753f@gumby> Is there any way to allow a admin for a VH to have access to creating Products? obviusly they don't have a control_panel folder.. pokey From dudek@cim.mcgill.edu Tue May 7 17:41:56 2002 From: dudek@cim.mcgill.edu (Gregory Dudek) Date: Tue, 7 May 2002 12:41:56 -0400 Subject: [Zope] [ANSWER] 500 error with IE on login In-Reply-To: Oliver Bleutgen's fascinating message of 7 May Message-ID: <200205071641.MAA08883@Earth.McRCIM.McGill.EDU> Re. my patch to zope to eliminate the default 500 error code: I considered a patch to the user folder product itself. Although I might have given up too soon, it didn't look feasible based on my limited knowledge of zope internals. I tried the obvious stuff but setting a "local" 302 or other code in the user folder didn't work because it got over-ridden later on the the authentication-catching process. Also, while removing all possibilities for a default 500 error from zope seems bad, note that in all those other (hypothetical) cases MSIE would also prevent you from seeing the potentially informative error page that zope might generate. In short, based on MSIE behaviour I think it's better if zope never generates a 500 error if it might also generate an informative error-message page. I might add this to the collector if I only knew how... > Have you had a look at the user folder you use in order to see where it > raises an exception (I guess that, but this might eventually lead to > HTTPResponse tacking the error 500 to the response)? > Maybe it's possible to patch the user folder(s) to set a 302 header? From sebastiaan_schimmel@planet.nl Tue May 7 18:14:24 2002 From: sebastiaan_schimmel@planet.nl (sebastiaan_schimmel@planet.nl) Date: Tue, 07 May 2002 13:14:24 -0400 Subject: [Zope] setCookie Message-ID: <1219142.1020791632947.JavaMail.root@apps19.wxs.nl> ------=_Part_2526_5014670.1020791632945 Content-Type: text/plain Content-Transfer-Encoding: 7bit I want to set a cookie with the username of the visitor of my site using: ')"> but it doesn't set the cookie. I've tried several things and i've read the zope book pdf file and done it like it says in the book but it still doesn't work. The cookie exists i checked that with but when i try it doesn't display the username. How do i set the cookie in dtml or python and how do I get the data out of the cookie? thanks, Sebastiaan Schimmel sebastiaan_schimmel@planet.nl ------=_Part_2526_5014670.1020791632945-- From maik.jablonski@uni-bielefeld.de Tue May 7 18:25:27 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Tue, 07 May 2002 19:25:27 +0200 Subject: [Zope] setCookie References: <1219142.1020791632947.JavaMail.root@apps19.wxs.nl> Message-ID: <3CD80E07.8080600@uni-bielefeld.de> sebastiaan_schimmel@planet.nl wrote: > I want to set a cookie with the username of the visitor of my site using: > ')"> > but it doesn't set the cookie. I've tried several things and i've read the zope book pdf file and done it like it says in the book but it still doesn't work. The cookie exists i checked that with but when i try it doesn't display the username. How do i set the cookie in dtml or python and how do I get the data out of the cookie? > > thanks, > > Sebastiaan Schimmel > sebastiaan_schimmel@planet.nl hi, maybe this will work: -mj From dman@dman.ddts.net Tue May 7 18:43:14 2002 From: dman@dman.ddts.net (dman) Date: Tue, 7 May 2002 12:43:14 -0500 Subject: [Zope] [ANSWER] 500 error with IE on login In-Reply-To: <200205071641.MAA08883@Earth.McRCIM.McGill.EDU> References: <200205071641.MAA08883@Earth.McRCIM.McGill.EDU> Message-ID: <20020507174314.GA27383@dman.ddts.net> --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 07, 2002 at 12:41:56PM -0400, Gregory Dudek wrote: | Re. my patch to zope to eliminate the default 500 error code: | Also, while removing all | possibilities for a default 500 error from zope seems bad, note that | in all those other (hypothetical) cases MSIE would also prevent you | from seeing the potentially informative error page that zope might | generate. | In short, based on MSIE behaviour I think it's better if zope | never generates a 500 error if it might also generate an informative | error-message page. I strongly oppose modifying a properly functionng, RFC-conforming product to coddle a non-informative and non-RFC-conforming product. Fix the broken product, not the working one. Here's an example of how broken MSIE is : My school has a section of their web site called Student Information System (SIS). It is where students can register for classes, see their grades and financial information, etc. It is (or was, they may have changed it) open only during certain hours and closed at night. One time my brother (using MSIE) tried to check on classes or something and got the "page can't be displayed" page from MSIE. Having no information from IE to determine what was wrong I then tried myself using galeon (mozilla). It displayed the informative error page the server gave back which explained the hours of operation of the site.=20 The site was working perfectly and giving back useful error messages. IE didn't care, ignored the data from the server, and instead displayed a "you must be an idiot, try again" message. Recently I've even tried turning off that option in IE ("Show friendly HTTP errors" in the Advanced tab), but it didn't pay any attention and continued to give no useful information. Conintue to develop correct software and inform all users that it is MSIE that does not work with the rest of the world and we can build up a critical mass and coerce some sort of corrective action. (which will more likely be a transition to functioning software rather than fixes from MS) -D PS. I don't know which HTTP response code the SIS system returned, and I think it is implemented in PHP. It's just the first detailed example that comes to mind. --=20 Do not be afraid of those who kill the body but cannot kill the soul. Rather be afraid of the One who can destroy both soul and body in hell. Matthew 10:28 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzYEjEACgkQO8l8XBKTpRSZ/wCdFQ1w5mbJ8tfvvcduqVDipUfc 1nQAn2/ljBn82CuqJlKC38vBUh7CvSr3 =cumA -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6-- From jdhunter@ace.bsd.uchicago.edu Tue May 7 18:24:12 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Tue, 07 May 2002 12:24:12 -0500 Subject: [Zope] import and setting tmp dir In-Reply-To: <009301c1f5e0$307ef2b0$6717a8c0@dorothy> ("Chris McDonough"'s message of "Tue, 7 May 2002 11:59:32 -0400") References: <3CD73CE9.9060700@zope.com> <002601c1f5d1$24d5b5c0$6717a8c0@dorothy> <009301c1f5e0$307ef2b0$6717a8c0@dorothy> Message-ID: >>>>> "Chris" == Chris McDonough writes: Chris> Oops.. try this: strace ./start -t1 -Z'' For the record, on my system (RHL7.1) I need strace ./start -t1 -Z '' ^ SPACE else I get the error Error: getopt.GetoptError: option -Z requires argument Chris> This starts Zope in single-threaded mode and does not fork Chris> off a zdaemon process. Sorry for the incomplete info. Success! I have gotten the strace. Unfortunately, I'll have to wait until later for complete results because others are using the server now and I don't want to fill the root partition on them, and their queries are complicating the strace logs. For now, though, I'll paste the part of the strace where I accessed the folder containing the source of the data 'Seizure.orig' and then try to paste it into the folder 'summer'. Nothing leaps out at me in this part of the record. A few more things to point out first. Grepping 'tmp' on the entire strace yields read(255, "TMPDIR=/workn/tmp\nINST_HOME=`cd "..., 355) = 324 open("/usr/local/Zope/var/Data.fs.tmp", O_RDWR|O_CREAT|O_TRUNC, 0666) = 5 So my TMPDIR setting is working. There are some socket connect attempts on /var: connect(10, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory) That's all for now -- thanks for all your help so far. JDH Here is the strace starting with my access of the source data folder Seizure.orig recv(17, "GET /Seizure.orig/manage_workspa"..., 4096, 0) = 783 gettimeofday({1020790933, 636018}, NULL) = 0 kill(22456, SIGRT_0) = 0 select(18, [7 9 10 11 12 16 17], [], [], {30, 0}) = 1 (in [7], left {29, 980000}) read(7, "x", 8192) = 1 select(18, [7 9 10 11 12 16 17], [17], [], {30, 0}) = 1 (out [17], left {30, 0}) send(17, "HTTP/1.1 302 Moved Temporarily\r\n"..., 479, 0) = 479 select(18, [7 9 10 11 12 16 17], [], [], {30, 0}) = 1 (in [7], left {30, 0}) read(7, "x", 8192) = 1 select(18, [7 9 10 11 12 16 17], [17], [], {30, 0}) = 1 (out [17], left {30, 0}) gettimeofday({1020790933, 653654}, NULL) = 0 write(3, "192.168.1.13 - myuser [07/May"..., 185) = 185 select(18, [7 9 10 11 12 16 17], [], [], {30, 0}) = 1 (in [17], left {29, 930000}) recv(17, "GET /Seizure.orig/manage_main HT"..., 4096, 0) = 778 gettimeofday({1020790933, 721712}, NULL) = 0 kill(22456, SIGRT_0) = 0 select(18, [7 9 10 11 12 16 17], [], [], {30, 0}) = 1 (in [9], left {29, 990000}) rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0 rt_sigsuspend([] --- SIGRT_0 (Real-time signal 0) --- <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) sigreturn() = ? (mask now []) accept(9, {sin_family=AF_INET, sin_port=htons(33349), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 19 fcntl64(19, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(19, F_SETFL, O_RDWR|O_NONBLOCK) = 0 getpeername(19, {sin_family=AF_INET, sin_port=htons(33349), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 0 gettimeofday({1020790933, 737038}, NULL) = 0 fcntl64(19, F_SETFD, FD_CLOEXEC) = 0 select(20, [7 9 10 11 12 16 17 19], [], [], {30, 0}) = 1 (in [7], left {29, 490000}) read(7, "x", 8192) = 1 select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (out [17], left {30, 0}) send(17, "HTTP/1.1 200 OK\r\nServer: Zope/(Z"..., 65536, 0) = 14480 select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (in [7], left {29, 990000}) read(7, "x", 8192) = 1 select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (out [17], left {29, 930000}) gettimeofday({1020790934, 322934}, NULL) = 0 write(3, "192.168.1.13 - myuser [07/May"..., 182) = 182 send(17, " true\"\n onMouseOut=\"window.sta"..., 64795, 0) = 5792 select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (out [17], left {29, 970000}) send(17, "\n 1 Kb\n "..., 59003, 0) = 13032 select(20, [7 9 10 11 12 16 17 19], [17], [], {30, 0}) = 1 (out [17], left {29, 960000}) send(17, "\" valign=\"top\">\n
\n \n \n
\n  \n "..., 2531, 0) = 2531 select(20, [7 9 10 11 12 16 17 19], [], [], {30, 0}) = 1 (in [9], left {5, 750000}) accept(9, {sin_family=AF_INET, sin_port=htons(33350), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 21 fcntl64(21, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(21, F_SETFL, O_RDWR|O_NONBLOCK) = 0 getpeername(21, {sin_family=AF_INET, sin_port=htons(33350), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 0 gettimeofday({1020790958, 782597}, NULL) = 0 fcntl64(21, F_SETFD, FD_CLOEXEC) = 0 select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [21], left {29, 990000}) recv(21, "POST /Seizure.orig/ HTTP/1.1\r\nUs"..., 4096, 0) = 889 gettimeofday({1020790958, 793806}, NULL) = 0 kill(22456, SIGRT_0) = 0 select(22, [7 9 10 11 12 16 17 19 21], [], [], {30, 0}) = 1 (in [7], left {29, 700000}) read(7, "x", 8192) = 1 select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {30, 0}) send(21, "HTTP/1.1 200 OK\r\nServer: Zope/(Z"..., 65536, 0) = 14480 select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (in [7], left {30, 0}) read(7, "x", 8192) = 1 select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {29, 880000}) gettimeofday({1020790959, 212005}, NULL) = 0 write(3, "192.168.1.13 - myuser [07/May"..., 172) = 172 send(21, "ue\"\n onMouseOut=\"window.status"..., 65026, 0) = 13032 select(22, [7 9 10 11 12 16 17 19 21], [21], [], {30, 0}) = 1 (out [21], left {29, 970000}) send(21, "age_workspace\">\n \n \n \n --- SIGRT_0 (Real-time signal 0) --- <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) sigreturn() = ? (mask now []) recv(16, "GET /Seizure/listEEGs?sql=pid%3D"..., 4096, 0) = 380 gettimeofday({1020790965, 771959}, NULL) = 0 select(23, [7 9 10 11 12 16 17 19 21 22], [], [], {30, 0}) = 1 (in [12], left {26, 320000}) recv(12, 0x8eac3ac, 4096, 0) = -1 ECONNRESET (Connection reset by peer) close(12) = 0 select(23, [7 9 10 11 16 17 19 21 22], [], [], {30, 0}) = 1 (in [9], left {12, 440000}) rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0 rt_sigsuspend([] --- SIGRT_0 (Real-time signal 0) --- <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) sigreturn() = ? (mask now []) accept(9, {sin_family=AF_INET, sin_port=htons(4965), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 12 fcntl64(12, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(12, F_SETFL, O_RDWR|O_NONBLOCK) = 0 rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0 rt_sigsuspend([] --- SIGRT_0 (Real-time signal 0) --- <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) sigreturn() = ? (mask now []) getpeername(12, {sin_family=AF_INET, sin_port=htons(4965), sin_addr=inet_addr("192.168.1.13")}}, [16]) = 0 gettimeofday({1020790987, 274406}, NULL) = 0 fcntl64(12, F_SETFD, FD_CLOEXEC) = 0 kill(22456, SIGRT_0) = 0 select(23, [7 9 10 11 12 16 17 19 21 22], [], [], {30, 0}) = 1 (in [12], left {30, 0}) rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0 rt_sigsuspend([] --- SIGRT_0 (Real-time signal 0) --- <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) sigreturn() = ? (mask now []) rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0 rt_sigsuspend([] --- SIGRT_0 (Real-time signal 0) --- <... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call) sigreturn() = ? (mask now []) recv(12, "GET /Seizure/listPatients?sql=1%"..., 4096, 0) = 474 gettimeofday({1020790987, 488627}, NULL) = 0 kill(22456, SIGRT_0) = 0 kill(22456, SIGRT_0) = 0 select(23, [7 9 10 11 12 16 17 19 21 22], [], [], {30, 0}) = 1 (in [16], left {28, 920000}) recv(16, "", 4096, 0) = 0 close(16) = 0 select(23, [7 9 10 11 12 17 19 21 22], [], [], {30, 0} From cbruce@sleeter.com Tue May 7 18:43:11 2002 From: cbruce@sleeter.com (Chris A. Bruce) Date: Tue, 7 May 2002 10:43:11 -0700 Subject: [Zope] Transaction Problems with ZMySQLDA and SQLSession Message-ID: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1F5EE.A86B2D70 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I randomly get the following exception. Anyone have an idea what could be causing it? Is there something I need to do with Mysql? The pages all have a call to SQLSession. =20 SQLSession Version: SQLSession-0-3-0 Mysql Version: 3.23.41 ZMySQLDA Version: ZMySQLDA 2.0.7 =20 =20 =20 =20 Error Type: NotSupportedError Error Value (1196, "Warning: Some non-transactional changed tables couldn't be rolled back") =20

I randomly get the following exception.  Anyone = have an idea what could be causing it?  Is there something I need to do = with Mysql?  The pages all have a call to SQLSession.

 

SQLSession Version: = SQLSession-0-3-0

Mysql Version: 3.23.41

ZMySQLDA Version: ZMySQLDA 2.0.7

 

 

 

 

Error Type: NotSupportedError

Error Value (1196, "Warning:  Some non-transactional changed tables couldn't be rolled = back")

 

<!--

Traceback (innermost last):

  File /usr/local/Zope-2.4/lib/python/ZPublisher/Publish.py, line 223, in = publish_module

  File /usr/local/Zope-2.4/lib/python/ZPublisher/Publish.py, line 187, in = publish

  File = /usr/local/Zope-2.4/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook

    (Object: )

  File /usr/local/Zope-2.4/lib/python/ZPublisher/Publish.py, line 160, in = publish

  File = /usr/local/Zope-2.4/lib/python/Zope/__init__.py, line 235, in begin

  File /usr/local/Zope-2.4/lib/python/ZODB/Transaction.py, line 203, in = begin

  File /usr/local/Zope-2.4/lib/python/ZODB/Transaction.py, line 179, in = abort

  File = /usr/local/Zope-2.4/lib/python/Shared/DC/ZRDB/TM.py, line 126, in abort

  File /usr/local/Zope-2.4/lib/python/Products/ZMySQLDA/db.py, line 328, in = _abort

NotSupportedError: (see above)

 

 

 

 

Thanks,

 

 

Chris

 

=00 ------_=_NextPart_001_01C1F5EE.A86B2D70-- From dman@dman.ddts.net Tue May 7 18:50:45 2002 From: dman@dman.ddts.net (dman) Date: Tue, 7 May 2002 12:50:45 -0500 Subject: [Zope] odd iteration semantics in ZPT Message-ID: <20020507175045.GB27383@dman.ddts.net> --+pHx0qQiF2pBVqBT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I created a collection and iterator class in an External Method for use by my web app. I implmented the iterator protocol introduced by python 2.2, but also included a __getitem__ method to provide the "old" iteration mechanism. For various reasons, the client of my iterator needs to know some information regarding where in the iteration process the iterator is at. I had little trouble making the iterator itself, but I kept getting odd assertion errors and minor defects in the way data was retrieved from my iterator. I managed to track it down to the fact that __getitem__ is called twice with 0 as the index. The sequence of index values looks like : [0, 0, 1, 2, 3, 4, 5, 6, 7, 8] I can work around this anomaly by resetting my iterator every time the index is 0. Is this a bug in zope? (I expect that the bug is in ZTUtils/Iterator.py) I'm using zope 2.5.1, python 2.1.3, debian 3.0. -D --=20 The way of a fool seems right to him, but a wise man listens to advice. Proverbs 12:15 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --+pHx0qQiF2pBVqBT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzYE/UACgkQO8l8XBKTpRTXhQCdHuaZFhyHGyky+5fZtwZytYzy TucAn0p1hIDbjGHYkJE07nPMYLiFyBr1 =G+9y -----END PGP SIGNATURE----- --+pHx0qQiF2pBVqBT-- From ruger@comnett.net Tue May 7 20:00:42 2002 From: ruger@comnett.net (D. Rick Anderson) Date: Tue, 07 May 2002 12:00:42 -0700 Subject: [Zope] dtml-in Message-ID: <3CD8245A.70006@comnett.net> I'm using to loop. What I can't seem to do is use the sequence-number to compare to anything. Is there a special wat that it needs to be reffered to? This is what I'm doing: but it keeps error out with: *Error Type: NameError* *Error Value: global name 'sequence' is not defined* TIA Rick * * ** From tpassin@mitretek.org Tue May 7 20:15:59 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Tue, 7 May 2002 15:15:59 -0400 Subject: [Zope] dtml-in References: <3CD8245A.70006@comnett.net> Message-ID: <013a01c1f5fb$9eec5790$f70510ac@mitretek.org> [D. Rick Anderson] > I'm using to loop. What I can't seem to do is > use the sequence-number to compare to anything. Is there a special wat > that it needs to be reffered to? This is what I'm doing: > > > > but it keeps error out with: > > *Error Type: NameError* > *Error Value: global name 'sequence' is not defined* Yes, that's a common thing. What's happening is that the expression is being evaluated by Python (all expressions in quotation marks are), but Python does not use a minus sign in variable names and so tries to subtract "number" from "sequence". The usual work-around is to use the alternative form: This way, you can get any attibute of the current Zope namespace by name, minus signs or not. Cheers, Tom P From maxm@mxm.dk Tue May 7 20:28:42 2002 From: maxm@mxm.dk (Max M) Date: Tue, 07 May 2002 21:28:42 +0200 Subject: [Zope] dtml-in References: <3CD8245A.70006@comnett.net> Message-ID: <3CD82AEA.7080408@mxm.dk> D. Rick Anderson wrote: > I'm using to loop. What I can't seem to do is > use the sequence-number to compare to anything. Is there a special wat > that it needs to be reffered to? This is what I'm doing: > > You could write: regards Max M From huima@fountainpark.org Tue May 7 20:38:15 2002 From: huima@fountainpark.org (Heimo Laukkanen) Date: Tue, 07 May 2002 22:38:15 +0300 Subject: [Zope] Iuveno Proiektor Message-ID: <3CD82D27.5060804@fountainpark.org> Hi, where can I get Proiektor now? Iuveno's demo-sites seem to be down and they don't have the products on Zope.org's site. Does anyone know where else I could find it or could someone let me dowload it from their server? -huima From dieter@handshake.de Tue May 7 20:43:59 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 7 May 2002 21:43:59 +0200 Subject: [Zope] import and setting tmp dir In-Reply-To: References: Message-ID: <15576.11903.465810.788162@linux.local> John Hunter writes: > When I try and import a large zexp, I get a 'Error Value: [Errno 28] > No space left on device' (traceback below). If I do a 'df' while the > import is processing, I can see the it is my root partition that is > filling up. Sometimes, swap space uses a dynamically determined part of "/tmp"... Dieter From dieter@handshake.de Tue May 7 21:07:38 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 7 May 2002 22:07:38 +0200 Subject: [Zope] Tracker and Scheduled tasks In-Reply-To: <1020785098.19903.24.camel@bastion.forteresse.net> References: <1020785098.19903.24.camel@bastion.forteresse.net> Message-ID: <15576.13322.710951.587143@linux.local> Oliver Pabst writes: > as I saw in the Tracker source, it should be possible to trigger the > execute_rules method to tell the Tracker to resend old Tracker issues to > the supporters to alert them. > > Does someone know who you can trigger this with a cron job or so? You can use either ZPublisher.Client (HowTo on Zope.org) or XMLRPC. Dieter From dieter@handshake.de Tue May 7 20:42:26 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 7 May 2002 21:42:26 +0200 Subject: [Zope] alpha sorting in Metapublisher (newbie) In-Reply-To: <20020506170123.26919.qmail@web14706.mail.yahoo.com> References: <20020506170123.26919.qmail@web14706.mail.yahoo.com> Message-ID: <15576.11810.827088.357819@linux.local> Rebecca Elder writes: > ... > I use Metapublisher to display a list of records which > the user can click to go to a detail/edit page. I want > to be able to display the records alphabetically by > organization name. > > Here's my current code: > > Maybe, MetaPublisher has also an "entryValues" method. Then you could use: your "sequence-item" would then be the actual value not its id, of course. Dieter From dieter@handshake.de Tue May 7 20:56:22 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 7 May 2002 21:56:22 +0200 Subject: [Zope] Zope KeyError from nowhere In-Reply-To: <3CD69602.DBEFF9C0@anansispaceworks.com> References: <3CD69602.DBEFF9C0@anansispaceworks.com> Message-ID: <15576.12646.290329.880660@linux.local> Terry Hancock writes: > Anyway, I happened to go back into it and got a weird > error: > > Error Type: KeyError > Error Value: Folder > (traceback at end of message) Please upgrade to Python 2.1.3 and Zope 2.4.4 or above. Python 2.1.1 and Zope 2.4.x (x <= 3) contain serious manage management bugs with potentially all kinds of weird behaviour... Dieter From dieter@handshake.de Tue May 7 20:54:24 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 7 May 2002 21:54:24 +0200 Subject: [Zope] Help! In-Reply-To: <3CD71DF2.7040103@exasource.com> References: <3CD71DF2.7040103@exasource.com> Message-ID: <15576.12528.7869.216134@linux.local> Michael writes: > I have 3 different versions of Zope running on my machine. 2.33, 2.41, > 2,43. I was working on my site in 2.41 and shut it down and started up > 2.33 to export some items. I then shut down 2.33 and fired up 2.41 > again and when I logged into the management interface, everything was > gone. My site folder, all of my installed products, and the wierdest > thing of all, I had to delete the default index_html file in my root > folder to get apache to work properly, and it is back! It looks just > like I just installed it from the tarball. I checked the 2.43 site and > everything in it is gone also. The 2.33 install is still fine. > > I have backups, but is this normal behavior??? No, I do not think so. Do you have Python 2.1.3 installed? If not, do it. Also, upgrade to Zope 2.4.4. Python 2.1.1 and Zope 2.4.x (x <= 3) contain memory usage bugs that can exhibit all kinds of weird behaviour. Though, I did not yet here about something drastic as you report now. Dieter From dieter@handshake.de Tue May 7 20:51:30 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 7 May 2002 21:51:30 +0200 Subject: [Zope] ObjectManager 'Contents' problem In-Reply-To: References: Message-ID: <15576.12354.535343.415436@linux.local> John Hunter writes: > ... > When I add an Address instance to a Folder, all works as expected, so > I think the Address constructor and class are ok. > > When I add an Address instance to an instance of my Person, zope > accepts it fine (no errors) but the instance does not show up in the > Contents view, which displays the message 'There are currently no > items in me' ... > ... > def addAddressFunction(dispatcher, id, street, city, state, zip, REQUEST=None): > """ > Create a new address and add it to myself > """ > n=AddressImplementation(id, street, city, state, zip) > dispatcher.Destination()._setObject(id, n) > if REQUEST is not None: > return dispatcher.manage_main(dispatcher, REQUEST) Looks good for me (I would probably had omitted the "Destination()", but that should not explain the behaviour). Apparently, "_setOb" is called on the correct object (therefore, you now have an attribute of the correct id and trying it again will give you the "id already in use". But "_setObject" does not work correctly or operates on the wrong "_objects". If the error persists, I would start debugging. Either use a Zope/Python IDE (WingIDE, Boa Contructor, ..) or search the mailing list archives for "pdb" to learn how to do it with elementary means. Dieter From dieter@handshake.de Tue May 7 19:26:05 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 7 May 2002 20:26:05 +0200 Subject: [Zope] Re: Acquiring object from Products instances In-Reply-To: References: <15569.42343.8940.467604@linux.local> Message-ID: <15576.7229.102148.92497@linux.local> Tille, Andreas writes: > On Thu, 2 May 2002, Dieter Maurer wrote: > > The standard idiom is: > > > > om.manage_addProduct[].(id,....) > > obj= getattr(om,id) > I tried it this way and it works perfectly if the new object is > a folder or a dtml-document, but not for a tinytable object. > ... > The relevant part is shown here: > > ob=MyFolder() > ob.id=str(id) > ob.title=title > self._setObject(id, ob) > ob=self._getOb(id) > ... > ### From the example ... but does not work anyway > ## ob = getattr(self, id) #we basically get the instance from the ZODB, now has AqWrapper > > ob.manage_addFolder('someid') #works as expected > ob.manage_addTinyTable(id='link_table', > title='TinyTableObject for '+ob.id, > columns=column_names) > > The last line does not work because it does not put the TinyTable object > into the new folder (where I was able to create the example folder named > 'someid' but it will be created in the folder below. I expect this is because your "ob" does not have a "manage_addTinyTable" method but instead acquires it from "self". It is then this "self" that is passed in to "manage_addTinyTable" as first argument and gets the new tiny table. Probably, "TinyTable" uses old style initialization (see mailing list archive for an explanation). This would mean, it installs its constructors directly as so called folder methods in "OFS.Folder". Only classes derived from "OFS.Folder" have these constructors. You may try the official idiom to instantiate classes: ob.manage_addProduct['TinyTable'].manage_addTinyTable(...) I expect it to work even with old style initialization but I am not sure. If it does not work, converting the TinyTable to use new style initialization would probably the best way (again: the mailing list archives will tell you what's the difference). Dieter From dieter@handshake.de Tue May 7 21:03:08 2002 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 7 May 2002 22:03:08 +0200 Subject: [Zope] import and setting tmp dir In-Reply-To: References: <3CD73CE9.9060700@zope.com> <002601c1f5d1$24d5b5c0$6717a8c0@dorothy> Message-ID: <15576.13052.616367.353473@linux.local> John Hunter writes: > >>>>> "Chris" == Chris McDonough writes: > > Chris> John, try strace ./start -t1 (single-threaded) > > Hmm. This doesn't seem to be working. I still get no entries in the > strace output after the zope server startup message I referred to > previously. Use "-Z ''", too. It prevents the ZDemon from being started. (It's the second process in your process list). Dieter From Jean-Francois.Doyon@CCRS.NRCan.gc.ca Tue May 7 21:28:15 2002 From: Jean-Francois.Doyon@CCRS.NRCan.gc.ca (Jean-Francois.Doyon@CCRS.NRCan.gc.ca) Date: Tue, 7 May 2002 16:28:15 -0400 Subject: [Zope] Caching problem Message-ID: <7CDD7B94357FD5119E800002A537C46E23009E@s5-ccr-r1.ccrs.nrcan.gc.ca> Hello, I have a DTML Method ... It actually outputs a .js JavaScript file ... I am trying to get the browsers to cache this JavaScript file by = associating it with an HTTP Cache Manager ... But am having no success !!! The file is referred to through a I get the same text without the nocall expression. That file is brought into the template, except that in the Javascript code, all the '<' and '>' are converted to < and > This damages the Javascript code. For example, the following line of javascript is changed original:->> for(var i=0; i<3; i++) changed:->> for(var i=0; i<3; i++) Notice, in the changed version, there are 3 semicolons (' ; ') instead of 2, and the Javascript parser in the browser throws an error. Can i bring the text from the javascript file in Exactly as it is? I can make it work in DTML like this, but want to use ZPT. Thanks, mark From blalor+dated+1021341216.00a257@ithacabands.org Thu May 9 02:53:32 2002 From: blalor+dated+1021341216.00a257@ithacabands.org (Brian Lalor) Date: Wed, 8 May 2002 18:53:32 -0700 (MST) Subject: [Zope] converting < to < problem in page templates with Javascript In-Reply-To: <0926F9E5A85ED511A0F300508BB939BB51E466@deschutes.benova.com> Message-ID: On Wed, 8 May 2002, Mark Lilly wrote: > Hi, > I am trying to import into a page template a Javascript File. > I use this: > Try -- Brian Lalor blalor@ithacabands.org From jdhunter@ace.bsd.uchicago.edu Thu May 9 03:22:10 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Wed, 08 May 2002 21:22:10 -0500 Subject: [Zope] two submit buttons/ one method Message-ID: I have a form with two submit buttons. Rather than call two different methods as in
... I would like each button to call the same function, but with a different value for a variable. Something like:
... But this doesn't work. Any suggestions? Thanks, John Hunter From zen@shangri-la.dropbear.id.au Thu May 9 03:31:43 2002 From: zen@shangri-la.dropbear.id.au (Stuart Bishop) Date: Thu, 9 May 2002 12:31:43 +1000 Subject: [Zope] How to check type of variable in DTML In-Reply-To: <47BCBF3251382B45893950D07804082475B000@novamail.nv.cc.va.us> Message-ID: On Wednesday, May 8, 2002, at 11:30 PM, Schmidt, Allen J. wrote: > If I send in a string to a ZSQL method and the first block below is in > the > WHERE clause, then it strips off the first and last letters. > > If I send in a list like ['Ford','Toyota',''] then is takes the > [ and ] > off and gives me the correct IN syntax. > > > I need to see if the variable coming in is a list or just a string and > branch accordingly. Maybe I am going about it all wrong but this is > what I > am trying to do now. SELECT * FROM foo_table WHERE If I pass a string as the some_parameter parameter, the following SQL is generated: SELECT * FROM foo_table WHERE some_column_name = 'The string I passed, quoted nicely for me by Zope' If I pass a list or strings, the following SQL is generated: SELECT * FROM foo_table WHERE some_column_name IN ('First string','Second string') -- Stuart Bishop http://shangri-la.dropbear.id.au/ From zope@benko.sk Thu May 9 06:40:04 2002 From: zope@benko.sk (Michal Bencur) Date: Thu, 9 May 2002 07:40:04 +0200 Subject: [Zope] creating an instance of your own product within Python Scripts In-Reply-To: <049201c1f6af$788b7680$1e71a8c0@u10136>; from tom.deprez@uz.kuleuven.ac.be on Wed, May 08, 2002 at 06:43:24PM +0200 References: <049201c1f6af$788b7680$1e71a8c0@u10136> Message-ID: <20020509074004.A31696@benko.sk> Hi Tom, try changing ['OFSP'] to ['YourProductPackage'] context.documents.manage_addProduct['YourProductPackage'].manage_addCasusDocument(id='new_id2') Michal On Wed, May 08, 2002 at 06:43:24PM +0200, Tom Deprez wrote: > Hi, > > What do I've to accomplish to call > > context.documents.manage_addProduct['OFSP'].manage_addFolder(id='new_id2') > > with my own product? eg: > > context.documents.manage_addProduct['OFSP'].manage_addCasusDocument(id='new_ > id2') > > I've already made it possible to import manage_addCasusDocument through > python scripts. > However now I'm stuck and don't know how I can create an instance of my > product inside a BTree folder > > Thanks in advance, > Tom. > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From mikek@exicoc.org Thu May 9 06:41:35 2002 From: mikek@exicoc.org (Michael Kleymann) Date: Thu, 9 May 2002 00:41:35 -0500 Subject: [Zope] Possible error in Sams Publishing Zope book? Message-ID: <14FB9DBABFF41B4C89506D69BA6B2DEC5EF4@mikes.msknetworks.com> Hey, y'all... New to the list, new to ZOPE, trying to learn. As the subject line implies, I have a book from Sams Publishing, titled "Zope," subtitled "web application construction kit" which has examples in it. I love examples... Most of the first 3 chapters revolve around setting up, making database connections and what not. Chapter 4 starts an example for a type of discussion board. The security that they ask you to set is no view for anonymous access, basically requiring a login before you can see the page. They give the following section of code for the index_html:

Welcome to your Message Board

Please identify!

Login

Using this code, exactly as-is, I receive the following error: Compilation failed TAL.HTMLParser.HTMLParseError: malformed start tag, at line 3, column 10 The given location is the first " in the dtml-if statement. Now, I'll admit, I'm not a programmer, and I've never played one on TV, but there are other pages in the same site that use the dtml-if statement with a ", and none of them throw that same error. Can someone clue me in on this? It's been driving me nuts.... Michael Kleymann From js@aixtraware.de Thu May 9 07:41:11 2002 From: js@aixtraware.de (Joachim Schmitz) Date: Thu, 09 May 2002 08:41:11 +0200 Subject: [Zope] sendmail-tag and pythonscripts Message-ID: <27470000.1020926471@[10.2.1.1]> Hi, how do I use the send-mail tag from a pythonscript, or better what is the=20 replacement for the sendmail-tag in a ZPT Pythonscript combo ? Mit freundlichen Gr=FC=DFen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurb=FCro f=FCr Internetanwendungen H=FCsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint =3D DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/ From allison@sumeru.stanford.EDU Thu May 9 08:08:30 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Thu, 9 May 2002 00:08:30 -0700 (PDT) Subject: [Zope] parameters to dtml docs and methods? Message-ID: Suppose I have two DTML documents and/or methods, method A and method B. Method A Creferences Method B -- Method A: ... ... which causes B to be published and it's "value" incorporated into A. Now, suppose there are some variables in A's namespace and further suppose that they are needed in method B. The question is how to pass them from A to B. What is the proper syntax? I find it surprising that I've been able to use Zope extensively without needing to know how to do this. But now I am beginning to write more modular and tigher code and need this mechanism. From js@aixtraware.de Thu May 9 09:43:39 2002 From: js@aixtraware.de (Joachim Schmitz) Date: Thu, 09 May 2002 10:43:39 +0200 Subject: [Zope] Re: [Zope-Annce] ANNOUCE: Project Gideon In-Reply-To: <200205080235.g482ZvS08062@pimout2-int.prodigy.net> References: <200205080235.g482ZvS08062@pimout2-int.prodigy.net> Message-ID: <35140000.1020933819@[10.2.1.1]> Hi kapil, Gideon looks very promising but when I try to instanciate a python repository I get: Site Error An error was encountered while publishing this resource. Error Type: ImportError Error Value: cannot import name BulkTransactionalMailer Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File=20 /mnt/hda3/local/ZopePark/ZopeVersions/Zope-2.5.0/lib/python/ZPublisher/Publ ish.py, line 150, in publish_module File=20 /mnt/hda3/local/ZopePark/ZopeVersions/Zope-2.5.0/lib/python/ZPublisher/Publ ish.py, line 114, in publish File=20 /usr/local/ZopePark/lzope.aixtraware.de/ZSoftwareHome/lib/python/Zope/__ini t__.py, line 159, in zpublisher_exception_hook File=20 /mnt/hda3/local/ZopePark/ZopeVersions/Zope-2.5.0/lib/python/ZPublisher/Publ ish.py, line 98, in publish File=20 /usr/local/ZopePark/ZopeVersions/Zope-2.5.0/lib/python/ZPublisher/mapply.py , line 88, in mapply (Object: manage_addPythonRepository) File=20 /mnt/hda3/local/ZopePark/ZopeVersions/Zope-2.5.0/lib/python/ZPublisher/Publ ish.py, line 39, in call_object (Object: manage_addPythonRepository) File=20 /usr/local/ZopePark/lzope.aixtraware.de/ZInstanceHome/Products/Gideon/Objec ts/Application/PythonRepository.py, line 85, in manage_addPythonRepository File=20 /mnt/hda3/local/ZopePark/ZopeVersions/Zope-2.5.0/lib/python/OFS/ObjectManag er.py, line 267, in _setObject (Object: AixAd) File=20 /usr/local/ZopePark/lzope.aixtraware.de/ZInstanceHome/Products/Gideon/Objec ts/Application/PythonRepository.py, line 193, in manage_afterAdd (Object: testg) File=20 /usr/local/ZopePark/lzope.aixtraware.de/ZInstanceHome/Products/Gideon/Objec ts/Application/InstallationFuncs.py, line 375, in install_all (Object: testg) File=20 /usr/local/ZopePark/lzope.aixtraware.de/ZInstanceHome/Products/Gideon/Objec ts/Application/InstallationFuncs.py, line 114, in install_mail_server (Object: testg) ImportError: (see above) --On Dienstag, Mai 07, 2002 12:49:47 -0700 kapil thangavelu=20 wrote: > Project Gideon is an application framework for zope. It was originally > created to build a CPAN repository for python in zope. > > The Gideon project is still young and experimental in stability, but i > hope that the ideas and implementation will still be of use to other zope > developers. Gideon is released under the GPL. It can be downloaded from > > http://www.zope.org/Members/k_vertigo/Products/Gideon > > it has no external dependencies other than Zope (possibly requiring > *nix as well) > > Lots of work is still needed to finish and improve both the Python > Repository and Gideon. If you'd like to help, please contact me at > kvthan@wm.edu developers, ui designers, and testers needed! > > > Core Features > > - Application Model > > provides a lookup model, allowing for nested applications and service > providers. > > - Event Channel > > A publish/subscribe event model, with support for pull and push event > models (pull model supported via an event queue). > > - Page Contract > > Input Validation. allows for filters and transformers to be applied > in a pipelined fashion to input. useable from DTML, PythonScripts, > and PythonProducts. > > - BTree UserFolder > > 'nough said. > > - User Directory > > Storage for UserWorkpaces, providing an api for retrieval and search > of workspaces > > - User Workspaces > > Provides a users data container. along with a plugin api for > applications to > register workspace collaborators. > > - Groups (Experimental) > > an api object layer over local roles, to provide for group membership > and permission management. > > - Scheduling System (Experimental) > > a thread scheduler for zope > > - BulkTxnMailer (Experimental) > > a mailhost that sends email to the fs for queued delivery at > the completion of a transaction. > > - Object Linking Service (Experimental) > > Dynamically updated object path based references > > - Catalog Utils > > utilities for use with zcatalog, Catalog Schemas, > CacheQueries, and Distributed Queries. > > > Content Features > > - RSS/OCS News Feeds > > - Subscriptions > > A subscription system built on top of the event channel, that allows > users to subscribe directly to event channel events. provides for > queued delivery of events. > > - WebServices Trader > > A ORB/Trader for abstraction of protocol handling and implementation > for HTTP RPC protocols. > > - Tracker (Experimental) > > A simple bug tracker. The implementation utilizes a property schema > that combines some of the features of page contract and catalog > schemas for generic handling of issues independent of their defined > schema. > > - Calendar Storage > > > most of the core features will be available separately as well (some > such as the EventChannel, and PageContract already are.) > > > cheers > > kapil thangavelu > > > > _______________________________________________ > Zope-Announce maillist - Zope-Announce@zope.org > http://lists.zope.org/mailman/listinfo/zope-announce > > Zope-Announce for Announcements only - no discussions > > (Related lists - > Users: http://lists.zope.org/mailman/listinfo/zope > Developers: http://lists.zope.org/mailman/listinfo/zope-dev ) Mit freundlichen Gr=FC=DFen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurb=FCro f=FCr Internetanwendungen H=FCsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint =3D DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/ From harryw@nipltd.com Thu May 9 10:55:41 2002 From: harryw@nipltd.com (Harry Wilkinson) Date: Thu, 9 May 2002 10:55:41 +0100 Subject: [Zope] two submit buttons/ one method In-Reply-To: References: Message-ID: On Thursday 09 May 2002 3:22 am, John Hunter wrote: > I have a form with two submit buttons. Rather than call two different > methods as in > >
> ... > > > > > I would like each button to call the same function, but with a > different value for a variable. Something like: > >
> ... > > > > > > > But this doesn't work. > > Any suggestions? > Thanks, > John Hunter I do this with JavaScript. Use a hidden input tag to store the variable, and call a function (with your parameters) on the click event of your button which sets the parameters in the request and submits the form. It's not the greatest solution, but it works. I need to use JavaScript anyway since my buttons aren't in the same frame as the form. Harry From =?ISO-8859-15?B?R2VpciBC5mtob2x0?= Thu May 9 11:23:07 2002 From: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= (=?ISO-8859-15?B?R2VpciBC5mtob2x0?=) Date: Thu, 9 May 2002 12:23:07 +0200 Subject: [Zope] cookie scope? In-Reply-To: References: Message-ID: <183473370.20020509122307@funcom.com> Hello Mark, Thursday, May 9, 2002, 1:35:22 AM, you wrote: MAR> Hang on this is kinda confusing: MAR> I set a cookie in a script in the top-level folder. Then move to a MAR> sub-folder and change the cookie value. Then I go back to the top-level MAR> folder and change the cookie. Lastly, I go back to the sub-folder and it MAR> has kept the value from the previous sub-folder's change not the last MAR> top-level folder change. So it's acting like I have created 2 cookies: 1 MAR> at the top-level, and 1 at the sub-folder level. MAR> Anyone ideas? Thanks! set path='/' in your cookie , and you should get the behavior you want. you can read about the path-attribute for cookies here : http://www.netscape.com/newsref/std/cookie_spec.html :-) -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team From =?ISO-8859-1?B?R2VpciBC5mtob2x0?= Thu May 9 11:27:34 2002 From: =?ISO-8859-1?B?R2VpciBC5mtob2x0?= (=?ISO-8859-1?B?R2VpciBC5mtob2x0?=) Date: Thu, 9 May 2002 12:27:34 +0200 Subject: [Zope] two submit buttons/ one method In-Reply-To: References: Message-ID: <178740144.20020509122734@funcom.com> Hello Harry, Thursday, May 9, 2002, 11:55:41 AM, you wrote: HW> On Thursday 09 May 2002 3:22 am, John Hunter wrote: >> I have a form with two submit buttons. Rather than call two different >> methods as in >> >>
>> ... >> >> >> >> >> I would like each button to call the same function, but with a >> different value for a variable. Something like: >> >>
>> ... >> >> >> >> >> >> >> But this doesn't work. >> the submit buttons count as form-fields as well , so you don't need the hidden form-fields at all :
-- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team From =?ISO-8859-1?B?R2VpciBC5mtob2x0?= Thu May 9 11:33:17 2002 From: =?ISO-8859-1?B?R2VpciBC5mtob2x0?= (=?ISO-8859-1?B?R2VpciBC5mtob2x0?=) Date: Thu, 9 May 2002 12:33:17 +0200 Subject: [Zope] Possible error in Sams Publishing Zope book? In-Reply-To: <14FB9DBABFF41B4C89506D69BA6B2DEC5EF4@mikes.msknetworks.com> References: <14FB9DBABFF41B4C89506D69BA6B2DEC5EF4@mikes.msknetworks.com> Message-ID: <871083518.20020509123317@funcom.com> Hello Michael, Thursday, May 9, 2002, 7:41:35 AM, you wrote: MK> Hey, y'all... New to the list, new to ZOPE, trying to learn. welcome aboard :-) MK> Using this code, exactly as-is, I receive the following error: MK> Compilation failed MK> TAL.HTMLParser.HTMLParseError: malformed start tag, at line 3, column 10 [snip] MK> Can someone clue me in on this? It's been driving me nuts.... Looks to me like you are writing dtml-tags in a PageTemplate-object.. PageTemplates don't use DTML , but TAL and METAL.. You should make sure that your document is a DTMLmethod or a DTMLdocument if you plan to use DTML-tags in there... PageTemplates are in my opinion a much better and cleaner way that DTML , but some people seem to be of the opinion that DTML is simpler to learn.. Anyway - your examples are DTML , so that's obviously what you want to do for now.. good luck :) -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team From harryw@nipltd.com Thu May 9 11:31:41 2002 From: harryw@nipltd.com (Harry Wilkinson) Date: Thu, 9 May 2002 11:31:41 +0100 Subject: [Zope] two submit buttons/ one method In-Reply-To: <178740144.20020509122734@funcom.com> References: <178740144.20020509122734@funcom.com> Message-ID: On Thursday 09 May 2002 11:27 am, Geir Bækholt wrote: > > the submit buttons count as form-fields as well , so you don't need > the hidden form-fields at all : >
> > > > Ah, good point :) I am just using the hidden form fields because I have my buttons in a different frame (and thus in a different form). Looks like John's problem is easier to solve than I though :) Harry From tom.deprez@village.uunet.be Thu May 9 11:58:28 2002 From: tom.deprez@village.uunet.be (Tom Deprez) Date: Thu, 9 May 2002 12:58:28 +0200 Subject: [Zope] creating an instance of your own product within Python Scripts Message-ID: <017501c1f748$790dad50$8f8d84d5@skullsplitter> Hi Michal, You're kidding right? :-) Boy, how stupid can a person be! I feel dumb here.... Man, I need to stop working these hours :-) Thanks a lot! You really made my day. Now I can finish this project before the deadline Tom. --------------------------------------- Hi Tom, try changing ['OFSP'] to ['YourProductPackage'] context.documents.manage_addProduct['YourProductPackage'].manage_addCasusDoc ument(id='new_id2') Michal On Wed, May 08, 2002 at 06:43:24PM +0200, Tom Deprez wrote: > Hi, > > What do I've to accomplish to call > > context.documents.manage_addProduct['OFSP'].manage_addFolder(id='new_id2') > > with my own product? eg: > > context.documents.manage_addProduct['OFSP'].manage_addCasusDocument(id='new_ > id2') > > I've already made it possible to import manage_addCasusDocument through > python scripts. > However now I'm stuck and don't know how I can create an instance of my > product inside a BTree folder > > Thanks in advance, > Tom. From baldocchi@httconsulting.com Thu May 9 11:59:31 2002 From: baldocchi@httconsulting.com (Baldocchi Massimiliano) Date: Thu, 9 May 2002 12:59:31 +0200 Subject: [Zope] cmf 1.2 Message-ID: <007c01c1f748$98a76de0$0300a8c0@baldomax> I have updated cmf from 1.1 to 1.2, but now all types i've defined as zclass don't works! If i add content, i've this error: Traceback (innermost last): File C:\sviluppo\zope251\lib\python\ZPublisher\Publish.py, line 150, in publish_module File C:\sviluppo\zope251\lib\python\ZPublisher\Publish.py, line 114, in publish File C:\sviluppo\zope251\lib\python\Zope\__init__.py, line 159, in zpublisher_exception_hook (Object: 1020938962193) File C:\sviluppo\zope251\lib\python\ZPublisher\Publish.py, line 98, in publish File C:\sviluppo\zope251\lib\python\ZPublisher\mapply.py, line 88, in mapply (Object: invokeFactory) File C:\sviluppo\zope251\lib\python\ZPublisher\Publish.py, line 39, in call_object (Object: invokeFactory) File C:\sviluppo\zope251\lib\python\Products\CMFCore\PortalFolder.py, line 335, in invokeFactory (Object: 1020938962193) File C:\sviluppo\zope251\lib\python\Products\CMFCore\TypesTool.py, line 701, in constructContent (Object: portal_types) File C:\sviluppo\zope251\lib\python\Products\CMFCore\TypesTool.py, line 430, in constructInstance (Object: esercizi) File C:\sviluppo\zope251\lib\python\OFS\ObjectManager.py, line 232, in _getOb (Object: 1020938962193) AttributeError: (see above) Why???? Help me, please!!! Massi From Bruce Dykes" Message-ID: <017201c1f751$04043200$5102020a@graphnet.com> ----- Original Message ----- From: To: Cc: Sent: Tuesday, May 07, 2002 09:55 Subject: RE: [Zope] SQL to Excel Redux > The best way would be to insert a new first row in your excel-sheet with the > field names you want. > Or: use the names which are shown when you test your ZSQL method. > That's the first thing I tried...problem is, there's several DTML un-friendly column headers, such as names with spaces and slashes in there... > If you really want to use the Browse tab, you have to use named ranges in > your excel sheet (look in your excel manual how to name ranges); > then you will see the named ranges just like 'normal' tables in a database. > (and you can also do something like "select * from nameOfRange " as ZSQL > method ...) Thanks....since this is a simple contact list, I can either fix up the excel spreadsheet as you (and others) have suggested, or replace it with one of the handful of address book products for Zope. I'll see how well the primary maintainer of the list likes doing it through the web, and make a determination from there. I'd much rather work with Zope than Excel...8-) bkd From p.giere@hzd.hessen.de Thu May 9 13:00:36 2002 From: p.giere@hzd.hessen.de (Philipp Giere) Date: Thu, 09 May 2002 14:00:36 +0200 Subject: [Zope] Close Database Connection /Newbie Question Message-ID: <3CDA64E4.768A89B1@bszur.hessen.de> Hello! Could someone please help me? In a little python-product I open a connection to Mysql like that: db = self.ZMySQL_Connection() With db.query("SQL") i send requests to the database. It works fine. But after a while I get an error "too many connections". Seems logical for me, because I don't close the connection. But how do I close it? Something like db.close() doesn't work. Thanks in advance Philipp From Bruce Dykes" <009601c1f1ed$6ba25b30$f70510ac@mitretek.org> <019e01c1f4ed$9636e110$5102020a@graphnet.com> <01b201c1f504$4f71d8e0$5102020a@graphnet.com> <008501c1f512$5cb903d0$f70510ac@mitretek.org> <010401c1f5a1$08231060$5102020a@graphnet.com> <005001c1f5d7$96869260$f70510ac@mitretek.org> Message-ID: <017801c1f751$e02187b0$5102020a@graphnet.com> ----- Original Message ----- From: "Thomas B. Passin" To: Sent: Tuesday, May 07, 2002 10:58 Subject: Re: [Zope] SQL to Excel Redux > In the test tab for the database connection, type > > select * from [table$] > > (use the worksheet name instead of "table", and make sure to end with the > "$"). Then see what column names are displayed. Then write a query using > them. You may have to insert a header row with column names in the > spreadsheet, I'm not sure about that. That's what I started working from...but between my personal entropy field, and several DTML unfriendly column names, it didn't exactly work as hoped. So I'll make a determination as to whether a Zope address book product may be more useful for this task. > > And as a more general question, in the ODBC connector docs, it says that > not > > all databases support browsing...what is the specific limitation? I've > been > > able to browse both Access and FoxPro databases, and I find it an > invaluable > > tool. The Excels spreadsheet is the first thing that's ever come up blank > > for me, and that's kind of an odd duck anyway... > > > > I don't know what you mean by "browsing" here. But I tried, as you know, > the select * from [table$] and it worked as expected. So you should be > able to see the data as for any other database. Using the 'Browse' tab on the ODBC Connector page. With an actual database, the Browse tab will let you see the database schema for all the constituent tables of the database...most useful for SQL creation.... bkd From jdhunter@ace.bsd.uchicago.edu Thu May 9 13:58:21 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Thu, 09 May 2002 07:58:21 -0500 Subject: [Zope] two submit buttons/ one method In-Reply-To: <178740144.20020509122734@funcom.com> (Geir =?iso-8859-1?q?B=E6kholt's?= message of "Thu, 9 May 2002 12:27:34 +0200") References: <178740144.20020509122734@funcom.com> Message-ID: >>>>> "Geir" =3D=3D Geir B=E6kholt writes: Geir> Geir> Geir> Neat idea. At first I balked because the value is also the text for the variable, and I wanted one the button's to say something like 'Update Form' with somevar=3D0 'Add event' with somevar=3D1 But I realize that I can process these in the add function, with if somevar=3D=3D'Update Form':=20 somevar=3D0 elif somevar=3D=3D'Add Event': somevar=3D1 else: raise 'Did you change the value of your add form buttons and forget to c= hange your add function again?' Not the cleanest design, because if you want to change the text of the button you have to remember to change your add form, but it should work. Thanks, John Hunter From chrisw@nipltd.com Thu May 9 14:16:44 2002 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 09 May 2002 14:16:44 +0100 Subject: [Zope] two submit buttons/ one method References: <178740144.20020509122734@funcom.com> Message-ID: <3CDA76BC.6579DC54@nipltd.com> John Hunter wrote: > > >>>>> "Geir" == Geir Bækholt writes: > > Geir> > Geir> > Geir> Could this be used instead? cheers, Chris From chrisw@nipltd.com Thu May 9 14:43:08 2002 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 09 May 2002 14:43:08 +0100 Subject: [Zope] Squishdot 1.4.1 Released! Message-ID: <3CDA7CEC.47A258F9@nipltd.com> Squishdot 1.4.1 is now available from: http://www.squishdot.org/Download. The following changes were made: - You can now delete specific postings using the Moderation page. - The Posting and Article editing forms have been improved. - The tests and updaters were improved slightly. See http://squishdot.org/Documentation/Changes for full details. **This release requires Zope 2.3.2 or later!** If you run into problems, remember Squishdot has a mailing list at YahooGroups and a bug collector on SourceForge. cheers, Chris From nu@goa.hu Thu May 9 16:03:58 2002 From: nu@goa.hu (marci) Date: Thu, 09 May 2002 17:03:58 +0200 Subject: [Zope] Shop Systems References: <000001c1f6c9$039859a0$1c06010a@thomas> Message-ID: <3CDA8FDE.5010601@goa.hu> Hi, the best I know is: http://cvs.mmmanager.net/viewcvs.cgi/MMMShop/ m Thomas Mathes wrote: > Hello, > > Does anybody know a well known and good Open Source Shop System which is > based on the > Zope Web Application Server. > > I tried several, which I found on www.zope.org. > But none of them was working! > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > From malcolm.davis@bms.com Thu May 9 15:19:38 2002 From: malcolm.davis@bms.com (Malcolm E Davis) Date: Thu, 09 May 2002 10:19:38 -0400 Subject: [Zope] Zope 2.5.1 installation problems (zope dumping core) Message-ID: <3CDA857A.D00FACC5@bms.com> I have downloaded Zope 2.5.1 both as the source distribution and as the linux distribution. I have installed the source distribution onto an SGI running IRIX 6.5 (running python2 w_pcgi.py and then start) and installed the linux distribution onto a Linux box running RedHat 6.2 (running the install script and then start). In both cases, I can connect to http://hostname:8080/, login with the initial admin account, and get the initial index page with no difficulty. However, if I select the link to the Zope Management Interface, I get the three frames, but only the top one fills with anything. I get two "Document contains no data" dialogs. When I check the server it has dumped core and the shell window indicates that the server has restarted. No error messages are apparent in either the shell window or the var/Z2.log file. Since I have exactly the same problem in two completely different installs, but can find no similar complaints in the mail archives, I suspect I am doing some so completely newbie mistake that no one even mentions it. However, I am clearly stumped and would appreciate some help. As an additional data point, I actually tried the Zope 2.5.0 install on the SGI box as well. I had a similar problem, although then I did get the lower right frame and could perform some of the tasks. However, I wasn't able to get it to add the Zope Tutorial. Again the symptoms on the server side were core dumps with no apparent error messages in the logs. Finally, just for the record, I have tested this with Netscape 4.79 on the SGI, as well as Netscape 4.72 and 6.2 under Windows NT. Same problem with each. So it does not appear to be a browser problem. (Actually if some browser problem could crash the server, that would be rather scary anyway.) Thanks, Malcolm From pw_lists@slinkp.com Thu May 9 15:32:16 2002 From: pw_lists@slinkp.com (Paul Winkler) Date: Thu, 9 May 2002 07:32:16 -0700 Subject: [Zope] two submit buttons/ one method In-Reply-To: <3CDA76BC.6579DC54@nipltd.com>; from chrisw@nipltd.com on Thu, May 09, 2002 at 02:16:44PM +0100 References: <178740144.20020509122734@funcom.com> <3CDA76BC.6579DC54@nipltd.com> Message-ID: <20020509073216.A28102@slinkp.com> On Thu, May 09, 2002 at 02:16:44PM +0100, Chris Withers wrote: > John Hunter wrote: > >=20 > > >>>>> "Geir" =3D=3D Geir B=E6kholt writes: > >=20 > > Geir> > > Geir> > > Geir> >=20 > Could this be used instead? >=20 > > I've done something similar (?) in the past: ... and then in the (single) script handling form submissions,=20 I just tested for existence of foo and bar. I forget exactly the=20 code I used to do that, but it was pretty easy. In your version, where are yourEditMethod and yourAddMethod defined? Are they acquired from somewhere? I smell a better solution than mine, but I don't quite follow how this works... -- "Welcome to Muppet Labs, where the future is made - today!" From chrisw@nipltd.com Thu May 9 15:56:22 2002 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 09 May 2002 15:56:22 +0100 Subject: [Zope] two submit buttons/ one method References: <178740144.20020509122734@funcom.com> <3CDA76BC.6579DC54@nipltd.com> <20020509073216.A28102@slinkp.com> Message-ID: <3CDA8E16.EF18BEA1@nipltd.com> Paul Winkler wrote: > > In your version, where are yourEditMethod and yourAddMethod defined? > Are they acquired from somewhere? I smell a better solution than mine, > but I don't quite follow how this works... This is ZPublisher being useful and it's actually documented in the dead tree version of the Zope book. If the action of the form is an object, say:
Then the stuff I posted will result in the following method call: an_object.yourEditMethod(REQUEST) ...of course, the parameters are adjusted by ZPublisher too to match that of your method :-) hope this makes sense, Chris From alex@confmon.com Thu May 9 17:17:05 2002 From: alex@confmon.com (Alexander Westholm) Date: 09 May 2002 12:17:05 -0400 Subject: [Zope] aq_acquire problem Message-ID: <1020961025.8285.38.camel@alt.confmon.loc> All, in a product method, I'm trying to access the REQUEST... the class that the method lives in inherits from Acquisition.Explicit so I tried to access it like so: self.aq_acquire('REQUEST') which yields an error about aq_acquire not being there... any ideas? -- Alex From dirk.datzert@rasselstein-hoesch.de Thu May 9 16:43:08 2002 From: dirk.datzert@rasselstein-hoesch.de (Dirk Datzert) Date: Thu, 09 May 2002 17:43:08 +0200 Subject: [Zope] aq_acquire problem References: <1020961025.8285.38.camel@alt.confmon.loc> Message-ID: <3CDA990C.CBA00D55@rasselstein-hoesch.de> Hi Alex, can you give a little more details ? What you using ? PythonScript ZClass ExternalScript Python product on file system Can you give the complete method as source ? Dirk Alexander Westholm schrieb: > > All, > > in a product method, I'm trying to access the REQUEST... the class that > the method lives in inherits from Acquisition.Explicit so I tried to > access it like so: self.aq_acquire('REQUEST') which yields an error > about aq_acquire not being there... any ideas? > > -- Alex > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From klowery@wts.edu Thu May 9 16:42:20 2002 From: klowery@wts.edu (Kirk Lowery) Date: Thu, 09 May 2002 11:42:20 -0400 Subject: [Zope] Mozillla 0.9.9 and Zope authentication Message-ID: <3CDA98DC.6010907@wts.edu> Now, before you go and flame me for being off-topic, let me say that I've checked everywhere on the Mozilla sites, searched through Bugzilla, and come up with nothing. I just upgraded from Mozilla 0.9.8 to 1.0RC1. And the next time I tried to access my zope site, the authentication would not work for any user except for the original administrator set up during installation. And even then, the management screen would not complete uploading to the browser and would not refresh. I backed down to 0.9.9, same behavior. I backed down again to 0.9.8 and everything works. I know...I know...it's not a Zope problem, but Mozilla's. But if anyone knows about this, I'd appreciate knowing if a bug has been filed against it under what subject, and especially if there is a workaround. In the meantime, I'm just backing down to 0.9.8 again. TIA. Kirk From jziniti@speakeasy.org Thu May 9 16:45:05 2002 From: jziniti@speakeasy.org (John Ziniti) Date: Thu, 09 May 2002 11:45:05 -0400 Subject: [Zope] Mozillla 0.9.9 and Zope authentication References: <3CDA98DC.6010907@wts.edu> Message-ID: <3CDA9981.6010501@speakeasy.org> Using 1.0RC1, and Zope 2.4.3, and I have no problems at all. What version of Zope are you using? Kirk Lowery wrote: > Now, before you go and flame me for being off-topic, let me say that > I've checked everywhere on the Mozilla sites, searched through > Bugzilla, and come up with nothing. > > I just upgraded from Mozilla 0.9.8 to 1.0RC1. And the next time I > tried to access my zope site, the authentication would not work for > any user except for the original administrator set up during > installation. And even then, the management screen would not complete > uploading to the browser and would not refresh. I backed down to > 0.9.9, same behavior. I backed down again to 0.9.8 and everything works. > > I know...I know...it's not a Zope problem, but Mozilla's. But if > anyone knows about this, I'd appreciate knowing if a bug has been > filed against it under what subject, and especially if there is a > workaround. In the meantime, I'm just backing down to 0.9.8 again. > > TIA. > > Kirk > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > From Oleg Broytmann Thu May 9 16:51:23 2002 From: Oleg Broytmann (Oleg Broytmann) Date: Thu, 9 May 2002 19:51:23 +0400 Subject: [Zope] Mozillla 0.9.9 and Zope authentication In-Reply-To: <3CDA98DC.6010907@wts.edu>; from klowery@wts.edu on Thu, May 09, 2002 at 11:42:20AM -0400 References: <3CDA98DC.6010907@wts.edu> Message-ID: <20020509195123.A5258@phd.pp.ru> On Thu, May 09, 2002 at 11:42:20AM -0400, Kirk Lowery wrote: > I just upgraded from Mozilla 0.9.8 to 1.0RC1. And the next time I tried > to access my zope site, the authentication would not work for any user > except for the original administrator set up during installation. And > even then, the management screen would not complete uploading to the > browser and would not refresh. I backed down to 0.9.9, same behavior. I > backed down again to 0.9.8 and everything works. > > I know...I know...it's not a Zope problem, but Mozilla's. But if anyone > knows about this, I'd appreciate knowing if a bug has been filed against > it under what subject, and especially if there is a workaround. In the > meantime, I'm just backing down to 0.9.8 again. I have been using Mozilla since 0.9.4, and found it pretty good. I never rave any auth problems. I used all version - 0.9.4, 0.9.5, ..., 0.9.9. Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From klowery@wts.edu Thu May 9 16:55:09 2002 From: klowery@wts.edu (Kirk Lowery) Date: Thu, 09 May 2002 11:55:09 -0400 Subject: [Zope] Mozillla 0.9.9 and Zope authentication References: <3CDA98DC.6010907@wts.edu> <3CDA9981.6010501@speakeasy.org> Message-ID: <3CDA9BDD.2040203@wts.edu> I'm running Debian "Woody," Zope 2.5.1. John Ziniti wrote: > Using 1.0RC1, and Zope 2.4.3, and I have no problems at > all. What version of Zope are you using? > > Kirk Lowery wrote: > >> Now, before you go and flame me for being off-topic, let me say that >> I've checked everywhere on the Mozilla sites, searched through >> Bugzilla, and come up with nothing. >> >> I just upgraded from Mozilla 0.9.8 to 1.0RC1. And the next time I >> tried to access my zope site, the authentication would not work for >> any user except for the original administrator set up during >> installation. And even then, the management screen would not complete >> uploading to the browser and would not refresh. I backed down to >> 0.9.9, same behavior. I backed down again to 0.9.8 and everything works. >> >> I know...I know...it's not a Zope problem, but Mozilla's. But if >> anyone knows about this, I'd appreciate knowing if a bug has been >> filed against it under what subject, and especially if there is a >> workaround. In the meantime, I'm just backing down to 0.9.8 again. >> >> TIA. >> >> Kirk >> >> >> >> _______________________________________________ >> Zope maillist - Zope@zope.org >> http://lists.zope.org/mailman/listinfo/zope >> ** No cross posts or HTML encoding! ** >> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce >> http://lists.zope.org/mailman/listinfo/zope-dev ) >> >> > > -- Kirk E. Lowery, Ph.D. Director, Westminster Hebrew Institute Adjunct Professor of Old Testament Westminster Theological Seminary, Philadelphia From mj@zope.com Thu May 9 17:05:50 2002 From: mj@zope.com (Martijn Pieters) Date: Thu, 9 May 2002 12:05:50 -0400 Subject: [Zope] Mozillla 0.9.9 and Zope authentication In-Reply-To: <3CDA9BDD.2040203@wts.edu> References: <3CDA98DC.6010907@wts.edu> <3CDA9981.6010501@speakeasy.org> <3CDA9BDD.2040203@wts.edu> Message-ID: <20020509160534.GJ32445@zope.com> On Thu, May 09, 2002 at 11:55:09AM -0400, Kirk Lowery wrote: > I'm running Debian "Woody," Zope 2.5.1. Note that the Mozilla in Woody contains post-release patches. That said, I run Dbian testing (same Moz version) and have had no problems *at all* using the latest series of Mozilla as packaged for Debian. -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From dman@dman.ddts.net Thu May 9 17:12:58 2002 From: dman@dman.ddts.net (dman) Date: Thu, 9 May 2002 11:12:58 -0500 Subject: [Zope] Mozillla 0.9.9 and Zope authentication In-Reply-To: <3CDA9BDD.2040203@wts.edu> References: <3CDA98DC.6010907@wts.edu> <3CDA9981.6010501@speakeasy.org> <3CDA9BDD.2040203@wts.edu> Message-ID: <20020509161258.GE28453@dman.ddts.net> --brEuL7wsLY8+TuWz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 09, 2002 at 11:55:09AM -0400, Kirk Lowery wrote: | I'm running Debian "Woody," Zope 2.5.1. That works with Mozilla 1.0 (downloaded and installed yesterday) running on Win2k. =46rom my debian box I use galeon 1.2 (mozilla-broswer 0.9.9-6) without much trouble (the only trouble is the semantics of the password manager). -D --=20 Religion that God our Father accepts as pure and faultless is this: to look after orphans and widows in their distress and to keep oneself from being polluted by the world. James 1:27 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --brEuL7wsLY8+TuWz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzaoAoACgkQO8l8XBKTpRRZJgCgwrt3zJMRrLlV+L2DF2Sd74kX yvEAoI0Zt+FUQwdtW/UUXUUQbPI0nvln =1uU6 -----END PGP SIGNATURE----- --brEuL7wsLY8+TuWz-- From sasoft@gmx.de Thu May 9 19:38:23 2002 From: sasoft@gmx.de (cruciatuz) Date: Thu, 9 May 2002 18:38:23 +0000 Subject: [Zope] Mozillla 0.9.9 and Zope authentication In-Reply-To: <20020509161258.GE28453@dman.ddts.net> References: <3CDA98DC.6010907@wts.edu> <3CDA9981.6010501@speakeasy.org> <3CDA9BDD.2040203@wts.edu> <20020509161258.GE28453@dman.ddts.net> Message-ID: <20020509183822.GA2923@blackscarab> You may have a look at=20 http://ftp.mozilla.org/pub/mozilla/nightly/latest/ ... and test if it works with one of these versions. if you're using linux, you probably want to download a *.tar.gz and just untar it and run it directly - that way, you get a working mozilla directly in your home-dir. for example: $> tar -xzvf mozilla-i686-pc-linux-gnu.tar.gz $> mozilla/mozilla & if it doesn't work, just: $> rm -rf mozilla/ that's the way i use mozilla since 6 months, i never had a not-working build - but it fixed some bugs of the official "releases" every time i tried. hope this helps --=20 Stefan Antoni "L=FCgen bringen den kleinen Jesus zum weinen." spam email will be deleted without being read html email will be deleted without being read i prefer signed / encrypted email From dman@dman.ddts.net Thu May 9 17:48:05 2002 From: dman@dman.ddts.net (dman) Date: Thu, 9 May 2002 11:48:05 -0500 Subject: [Zope] odd iteration semantics in ZPT In-Reply-To: <15577.35960.336264.254526@linux.local> References: <20020507175045.GB27383@dman.ddts.net> <15577.35960.336264.254526@linux.local> Message-ID: <20020509164805.GC29500@dman.ddts.net> --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 08, 2002 at 10:37:12PM +0200, Dieter Maurer wrote: | dman writes: | > .... | > I managed to track it down to the fact that | > __getitem__ is called twice with 0 as the index. The sequence of | > index values looks like : [0, 0, 1, 2, 3, 4, 5, 6, 7, 8] | > I can work around this anomaly by resetting my iterator every time the | > index is 0. | >=20 | > Is this a bug in zope? (I expect that the bug is in ZTUtils/Iterator.= py) | | I do not call this a bug, because there is not spec that forbids to | call an index twice. I suppose you may have a point ... the problem lies in python's pre-iterators iteration semantics. The __getitem__ serves as the interface for both a random-access collection and a one-way iterator. I expected tal:repeat to have the same semantics as python's 'for'. At the least it should be defined that tal:repeat only works on random-access containers and doesn't work with one-way iterators. -D --=20 How great is the love the Father has lavished on us, that we should be called children of God! 1 John 3:1=20 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --KDt/GgjP6HVcx58l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzaqEUACgkQO8l8XBKTpRRkDwCeMnqz+kZWGmjyZMA1BaYRIJFp 7qoAn0pj6gxXYuTt713WJh5KXA7NVrVv =dl/r -----END PGP SIGNATURE----- --KDt/GgjP6HVcx58l-- From drees@rangebroadband.com Thu May 9 17:52:43 2002 From: drees@rangebroadband.com (Steve Drees) Date: Thu, 9 May 2002 11:52:43 -0500 Subject: [Zope] sendmail-tag and pythonscripts In-Reply-To: <27470000.1020926471@[10.2.1.1]> Message-ID: > how do I use the send-mail tag from a pythonscript, or better what is the > replacement for the sendmail-tag in a ZPT Pythonscript combo ? http://www.zopelabs.com/cookbook/991178206 From marcos@paladin-its.com Thu May 9 19:30:31 2002 From: marcos@paladin-its.com (Mark Robinson) Date: Thu, 9 May 2002 13:30:31 -0500 Subject: [Zope] cookie scope? In-Reply-To: <183473370.20020509122307@funcom.com> Message-ID: Worked like a charm. Thanks! -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Geir B=E6kholt Sent: Thursday, May 09, 2002 5:23 AM To: Mark A. Robinson on the zope-list Cc: zope@zope.org Subject: Re: [Zope] cookie scope? Hello Mark,=20 Thursday, May 9, 2002, 1:35:22 AM, you wrote: MAR> Hang on this is kinda confusing: MAR> I set a cookie in a script in the top-level folder. Then move to a MAR> sub-folder and change the cookie value. Then I go back to the top-level MAR> folder and change the cookie. Lastly, I go back to the sub-folder and it MAR> has kept the value from the previous sub-folder's change not the last MAR> top-level folder change. So it's acting like I have created 2 cookies: 1 MAR> at the top-level, and 1 at the sub-folder level. MAR> Anyone ideas? Thanks! set path=3D'/' in your cookie , and you should get the behavior you want. you can read about the path-attribute for cookies here : http://www.netscape.com/newsref/std/cookie_spec.html :-) --=20 Geir B=E6kholt web-developer geirh@funcom.com funcom oslo | webdev-team _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -=20 http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From dieter@handshake.de Thu May 9 19:39:30 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 9 May 2002 20:39:30 +0200 Subject: [Zope] Close Database Connection /Newbie Question In-Reply-To: <3CDA64E4.768A89B1@bszur.hessen.de> References: <3CDA64E4.768A89B1@bszur.hessen.de> Message-ID: <15578.49762.340887.209008@linux.local> Philipp Giere writes: > ... > db = self.ZMySQL_Connection() > With db.query("SQL") i send requests to the database. > > It works fine. > But after a while I get an error "too many connections". Seems logical > for me, because I don't close the connection. But how do I close it? > Something like db.close() doesn't work. Why not? What happens? It should work... Dieter From dieter@handshake.de Thu May 9 19:36:54 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 9 May 2002 20:36:54 +0200 Subject: [Zope] sendmail-tag and pythonscripts In-Reply-To: <27470000.1020926471@[10.2.1.1]> References: <27470000.1020926471@[10.2.1.1]> Message-ID: <15578.49606.241318.90806@linux.local> Joachim Schmitz writes: > how do I use the send-mail tag from a pythonscript, or better what is the > replacement for the sendmail-tag in a ZPT Pythonscript combo ? You easiest solution: use DTML for this. Dieter From dieter@handshake.de Thu May 9 19:55:03 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 9 May 2002 20:55:03 +0200 Subject: [Zope] aq_acquire problem In-Reply-To: <1020961025.8285.38.camel@alt.confmon.loc> References: <1020961025.8285.38.camel@alt.confmon.loc> Message-ID: <15578.50695.850668.208856@linux.local> Alexander Westholm writes: > in a product method, I'm trying to access the REQUEST... the class that > the method lives in inherits from Acquisition.Explicit so I tried to > access it like so: self.aq_acquire('REQUEST') which yields an error > about aq_acquire not being there... any ideas? Do you call it in your constructor (or "__setstate__")? "aq_acquire" is not defined by "Acquisition.Explicit" but by the acquisition wrappers (returned by "Acquisition.Im/Explicit.__of__"). Dieter From dieter@handshake.de Thu May 9 19:30:59 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 9 May 2002 20:30:59 +0200 Subject: [Zope] Question about In-Reply-To: <200205081644.56997@athlon> References: <200205081644.56997@athlon> Message-ID: <15578.49251.809878.847377@linux.local> George M. Ellenburg writes: > I have a DTML Document called show_tip. > > In it, it calls a DTML Method called STYLE_TIP which contains essentially the > stylesheet for the tool-tip. > > In STYLE_TIP, I'm picking a random integer, to show a random background image, > but am using to create a new variable (called TD_WIDTH) which > I actually need to use from within the main show_tip DTML Document. This will not work with "dtml-let", use "REQUEST.set". See either in the mailing list archives or (e.g.) to find out more. Dieter From dieter@handshake.de Thu May 9 19:36:30 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 9 May 2002 20:36:30 +0200 Subject: [Zope] Zope 2.5 as an xmlrpc client In-Reply-To: References: Message-ID: <15578.49582.85773.444724@linux.local> Richard Wesley writes: > ... > After poking around a bit, it appears that xmlrpclib is no longer > included in Zope 2.5. I doubt that very much. Did you look at "lib/python/xmlrpclib"? > Does anyone know why? Is there a version that > works? My Zope 2.5 CVS version (dated January 2002) works fine. Dieter From dieter@handshake.de Thu May 9 19:44:07 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 9 May 2002 20:44:07 +0200 Subject: [Zope] Zope 2.5.1 installation problems (zope dumping core) In-Reply-To: <3CDA857A.D00FACC5@bms.com> References: <3CDA857A.D00FACC5@bms.com> Message-ID: <15578.50039.170376.304672@linux.local> Malcolm E Davis writes: > ... > In both cases, I can connect to > http://hostname:8080/, login with the initial admin account, and > get the initial index page with no difficulty. However, if I > select the link to the Zope Management Interface, I get the three > frames, but only the top one fills with anything. I get two > "Document contains no data" dialogs. When I check the server it > has dumped core and the shell window indicates that the server > has restarted. No error messages are apparent in either the > shell window or the var/Z2.log file. I expect that either a missing shared object is the problem or Zope dies because it wants to tell you something and cannot because its terminal has been closed in the meantime. Start your Zope in a way that you can see its standard output and error. The dynamic linker usually say something when it fails to load a shared object before it kills the process. Use "nohup" to solve the second problem, if necessary. Dieter From dieter@handshake.de Thu May 9 19:29:39 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 9 May 2002 20:29:39 +0200 Subject: [Zope] Products and vhm In-Reply-To: <000001c1f6cc$f5d14b20$9e09753f@gumby> References: <000001c1f6cc$f5d14b20$9e09753f@gumby> Message-ID: <15578.49171.328486.635328@linux.local> Steven Pokrandt writes: > I'd like to host other zope based sites. I see the need to allow admins of > the vhosted sites access to creating there own produces You will need to make lots of changes to Zope... > Isn't the Idea of a product to be able to create custom objects? The idea is mainly to extend the Zope framework... Maybe, your best option is to set up a Zope instance for each of your clients. All these instances share the same main Zope installation, but they have different products (in addition to the standard ones). See the documents about "INSTANCE_HOME" on zope.org. Of course, you have one Zope process per client stressing your resources a bit more than a single Zope procesclient stressing your resources a bit more than a single Zope process. > I do NOT what them to be able to delete or install system wide products. > just ones that would be available within the vhm directory. > > is this possible, am I missing something... It is not possible out of the box. Dieter From dieter@handshake.de Thu May 9 19:38:03 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 9 May 2002 20:38:03 +0200 Subject: [Zope] parameters to dtml docs and methods? In-Reply-To: References: Message-ID: <15578.49675.988828.866398@linux.local> Dennis Allison writes: > Suppose I have two DTML documents and/or methods, method A and method B. > Method A Creferences Method B -- > > Method A: > ... > > ... > > which causes B to be published and it's "value" incorporated into A. > > Now, suppose there are some variables in A's namespace and further > suppose that they are needed in method B. The question is how to > pass them from A to B. What is the proper syntax? You simply do nothing. It happens automatically. See the "Name lookup" section of to understand the DTML namespace. Dieter From dieter@handshake.de Thu May 9 19:23:57 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 9 May 2002 20:23:57 +0200 Subject: [Zope] Re: Novell NDS (Was: LDAPUserFolder and Zope 2.5.1) In-Reply-To: <47BCBF3251382B45893950D07804082475B004@novamail.nv.cc.va.us> References: <47BCBF3251382B45893950D07804082475B004@novamail.nv.cc.va.us> Message-ID: <15578.48829.758944.338228@linux.local> Schmidt, Allen J. writes: > Has anyone done anything to connect to a Netscape Directory? Yes, it worked as expected. No hassles, no problems... Dieter From dieter@handshake.de Thu May 9 19:34:45 2002 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 9 May 2002 20:34:45 +0200 Subject: [Zope] Question about In-Reply-To: <200205081703.56291@athlon> References: <200205081703.56291@athlon> Message-ID: <15578.49477.64937.394603@linux.local> George M. Ellenburg writes: > Gotcha. So I take it there's no variable typing? "400" is both a string and > an integer? The "400" in is an integer and not a string. Unlike in Python Script, the "..." does not indicate a string but a Python expression context. To get the string "400", you would use > ... > Hmmm... would work better, or can I just put the > on the line right below it? There is no difference (in function) between "

 

Is there a good = tutorial or 101 for zope. I’ve downloaded the zope = book but it’s not very helpful.

 

Thnx<= /font>

 

Sebastiaan Schimmel=

 

------=_NextPart_000_0015_01C1F823.4A29C600-- From elena.schulz@gmx.net Fri May 10 11:55:34 2002 From: elena.schulz@gmx.net (Elena Schulz) Date: Fri, 10 May 2002 12:55:34 +0200 Subject: [Zope] How to check type of variable in DTML Message-ID: <007b01c1f812$5563fb00$0aee32d9@Sebastian> Hi Allen, if you want to check the type of a variable use an external python = script like: import string def getType(x): if type(x) =3D=3D type([]): return "type(%s)=3Dlist" % (x) if type(x) =3D=3D type(""): return "type(%s)=3Dstring" % (x) if type(x) =3D=3D type(1): return "type(%s)=3Dinteger" % (x) if type(x) =3D=3D type({1:'s'}): return "type(%s)=3Ddictionary" % (x) if type(x) =3D=3D type((1)): return "type(%s)=3Dtuple" % (x) if type(x) =3D=3D type(string): return "type(%s)=3Dmodule" % (x) else: return "type(%s)=3Dobject o. =E4." % (x) I took this idea from some earlier postings to the list. Greetings, Elena From aschmidt@nv.cc.va.us Fri May 10 13:49:20 2002 From: aschmidt@nv.cc.va.us (Schmidt, Allen J.) Date: Fri, 10 May 2002 08:49:20 -0400 Subject: [Zope] How to check type of variable in DTML Message-ID: <47BCBF3251382B45893950D07804082475B011@novamail.nv.cc.va.us> Thanks! That works great, sort of.... I changed the return to only 'list' or 'string' or 'integer' for easy comparison. In a dtml doc or method it works fine. In a ZSQL it does not. Seems = that it always sees the input parameters as strings...never a list - even when entered as a list. ['Ford','Dodge',''] is seen as a string when checked inside a dtml-if in the ZSQL method. Are Pythonscripts handled somehow differently inside a ZSQL method? Or something else?? Thanks all -Allen -----Original Message----- From: Elena Schulz [mailto:elena.schulz@gmx.net] Sent: Friday, May 10, 2002 6:56 AM To: zope@zope.org Subject: Re: [Zope] How to check type of variable in DTML Hi Allen, if you want to check the type of a variable use an external python = script like: import string def getType(x): if type(x) =3D=3D type([]): return "type(%s)=3Dlist" % (x) if type(x) =3D=3D type(""): return "type(%s)=3Dstring" % (x) if type(x) =3D=3D type(1): return "type(%s)=3Dinteger" % (x) if type(x) =3D=3D type({1:'s'}): return "type(%s)=3Ddictionary" % (x) if type(x) =3D=3D type((1)): return "type(%s)=3Dtuple" % (x) if type(x) =3D=3D type(string): return "type(%s)=3Dmodule" % (x) else: return "type(%s)=3Dobject o. =E4." % (x) I took this idea from some earlier postings to the list. Greetings, Elena _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -=20 http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From complaw@hal-pc.org Fri May 10 17:36:47 2002 From: complaw@hal-pc.org (complaw@hal-pc.org) Date: Fri, 10 May 2002 16:36:47 GMT Subject: [Zope] Calculations on a Date Field Message-ID: My users are annoyed with the time shift of postings on a Squishdot site. The users are in the U.S. and the server is in the Netherlands (FreeZope.org, a truly wonderful thing). The DTML code in Squishdot that displays the date appears to be a date field in the posting object. E.g., the code is: What I want to do is recalculate the date_posted and shift the time back about five hours. I tried: But the server returned an error regarding the use of the minus sign. Does anyone have any hints? Thanks in advance, Ron From k_hamzat@yahoo.com Fri May 10 17:57:15 2002 From: k_hamzat@yahoo.com (Hamzat Kamal) Date: Fri, 10 May 2002 09:57:15 -0700 (PDT) Subject: [Zope] Zope Newsletters Products Message-ID: <20020510165715.52022.qmail@web12701.mail.yahoo.com> Dear All, Kindly direct me to any available Zope Newsletters products. I am designing a website for a newspaper and i want interested members to be able to receieved top stories articles in their mail boxes. Any idea towards achiving this will be highly appreciated. Thanks. ===== Hamzat kamaldeen Ishola Dnet Systems Limited 223 Ikorodu Road, Lagos. Nigeria. 234 1 7749381, 234 08033011305 __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com From complaw@hal-pc.org Fri May 10 18:53:54 2002 From: complaw@hal-pc.org (complaw@hal-pc.org) Date: Fri, 10 May 2002 17:53:54 GMT Subject: [Zope] Calculations on a Date Field Message-ID: > > Use DateTime() Thanks for your suggestion, but it didn't work. I tried: And again, the server returned an error, although this time for the DateTime issue. Any other suggestions? Ron > > It has all kinds of options you can use to offset and perform calculations > on time objects. > > -ed- > > On Fri, 10 May 2002 complaw@hal-pc.org wrote: > > > My users are annoyed with the time shift of postings on a Squishdot site. The > > users are in the U.S. and the server is in the Netherlands (FreeZope.org, a > > truly wonderful thing). The DTML code in Squishdot that displays the date > > appears to be a date field in the posting object. E.g., the code is: > > > > > > > > What I want to do is recalculate the date_posted and shift the time back about > > five hours. > > > > I tried: > > > > > > > new_date="old_date - 0.25"> > > > > > > > > But the server returned an error regarding the use of the minus sign. Does > > anyone have any hints? > > > > Thanks in advance, > > > > Ron > > > > > > > > _______________________________________________ > > Zope maillist - Zope@zope.org > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > -- > Green Graphics ::: Print and Web Design ::: 510.923.0000 > From k_hamzat@yahoo.com Fri May 10 19:24:41 2002 From: k_hamzat@yahoo.com (Hamzat Kamal) Date: Fri, 10 May 2002 11:24:41 -0700 (PDT) Subject: [Zope] Re: Zope Newsletters Products Message-ID: <20020510182441.35829.qmail@web12706.mail.yahoo.com> > Dear All, > > Kindly direct me to any available Zope Newsletters products. > > I am designing a website for a newspaper and i want interested > members to be able to receieve top stories articles in their mail > boxes. > > Any idea towards achiving this will be highly appreciated. > > Thanks. Hello Maik, I have already sent the above mail before gotten your product. I am very impressed for the whole package. But is like you did not mention how this can be configured just to send newsletters to interested members. Presently this is what I am interested in. Best regards ===== Hamzat kamaldeen Ishola Dnet Systems Limited 223 Ikorodu Road, Lagos. Nigeria. 234 1 7749381, 234 08033011305 __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com From kerrb@senet.com.au Fri May 10 07:29:02 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Fri, 10 May 2002 15:59:02 +0930 Subject: [Zope] tutorial References: <001401c1f812$86a0f600$095bfea9@sebastiaanlapt> Message-ID: <001e01c1f7eb$fd0dcd80$5d0e0c3f@LocalHost> From: Sebastiaan Schimmel >Is there a good tutorial or 101 for zope. I've downloaded the zope book but it's not very helpful. the inbuilt Elvis tutorial is very good IMO, I was delighted that advanced stuff (for me) like setting a cookie (lesson 8) and linking to a database were part of this tutorial I think the zope book is good too, though I bought The Book of Zope as well but overall The Zope Book seems more useful to me Why? Realistic but challenging examples, like the Zope Zoo. - Bill From jmartinez@emediamillworks.com Fri May 10 19:30:48 2002 From: jmartinez@emediamillworks.com (Jorge O. Martinez) Date: Fri, 10 May 2002 14:30:48 -0400 Subject: [Zope] tutorial References: <001401c1f812$86a0f600$095bfea9@sebastiaanlapt> Message-ID: <3CDC11D8.5050507@emediamillworks.com> Install the tutorial that comes with Zope, that helped me a lot to understand the Zope basics Jorge M. Sebastiaan Schimmel wrote: > > > Is there a good tutorial or 101 for zope. I?ve downloaded the zope book > but it?s not very helpful. > > > > Thnx > > > > Sebastiaan Schimmel > > > -- Jorge O. Martinez MIS Senior Associate eMediaMillWorks 1100 Mercantile Lane, Suite 119 Largo, MD 20774 E-mail => jmartinez@eMediaMillWorks.com Phone => (301)883-2482 ext. 105 Fax => (301)883-9754 From kerrb@senet.com.au Fri May 10 07:41:42 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Fri, 10 May 2002 16:11:42 +0930 Subject: [Zope] ViewAndCopyOnly role References: <001701c1f3d2$5bd8c860$580e0c3f@LocalHost> <15573.38965.34674.916173@linux.local> Message-ID: <002401c1f7ed$c0c60fc0$5d0e0c3f@LocalHost> From: "Dieter Maurer" > Bill Kerr writes: > > how should I set a role for users of a folder where they can view and copy > > files only? > > I've set these permissions: > > View Management Screen (for seeing the files) > > Access Contents Info, View (for rendering the files) > > Add Doc, Images, Files (for copying the files) > > > > This almost works but the problem is that with Add Doc, Images, Files (which > > I need for copying) the users can also add things to this folder and I don't > > want them to be able to do this. I think I want a permission that allows > > copying but not adding. > If you mean "copy out", I think you need "Add Files" only at the > destination and not the source. > > When you meant "copy in", I would say, your requirement is a bit > inconsistent as a "copy in" is not that different from an "add". Dieter is correct about this After further experimentation I can't see how it is possible to setup the sort of folder I want using Zope security. I've now eliminated all permissions except for: ** View Management Screen (for seeing the files) The problem is that users can CUT the files with this permission and paste them somewhere else If I don't use View Management Screen then the users can't see the files. If I do use View Management Screen then they can cut them. I just want the users to be able to see them (view only, not be able to cut or modify) and copy them into their personal folders (at a lower level where they have been given local management rights) Can you do this with default zope security settings? The Book of Zope says (page 135) "View Management screens: "... This permission does not allow a user to do any more than view these screens. Additional permissions must be granted for a user to be able to add, edit, or delete objects..." This is very misleading IMO, being able to cut and paste elsewhere does allow the user to do more than view only - Bill From p.giere@hzd.hessen.de Fri May 10 19:43:22 2002 From: p.giere@hzd.hessen.de (Philipp Giere) Date: Fri, 10 May 2002 20:43:22 +0200 Subject: [Zope] mysql_free_result / Error Message-ID: <3CDC14CA.5BF46FB0@bszur.hessen.de> Hello! I try to handle several queries in a python product within one connection. I get the following error: Error Type: ProgrammingError Error Value: (2014, "Commands out of sync; You can't run this command now") In the mysql-docs its said that you have to free the result, but I don't find something like that in _mysql. Thanks a lot! -- Philipp Giere, uib BSZ Umweltressort Hessen Tel.: +49 611 340 616 Fax.: +49 611 340 663 From dieter@handshake.de Fri May 10 21:42:10 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 10 May 2002 22:42:10 +0200 Subject: [Zope] bug in pluggable brains ? In-Reply-To: <4839083238.20020509230637@funcom.com> References: <4839083238.20020509230637@funcom.com> Message-ID: <15580.12450.796551.305167@linux.local> =?ISO-8859-1?Q?Geir_B=E6kholt?= writes: > There seems to be a bug in the machinery for attribute assignement for > pluggable brains with ZSQLmethods: I can use Pluggable Brains and their > methods , but whenever i try to assign a value to an attribute, > AttributeError is raised. It's a bug. There is already a Collector entry for it, but no one reponded. Maybe, you file another one... Dieter From dieter@handshake.de Fri May 10 20:41:16 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 10 May 2002 21:41:16 +0200 Subject: [Zope] ViewAndCopyOnly role In-Reply-To: <002401c1f7ed$c0c60fc0$5d0e0c3f@LocalHost> References: <001701c1f3d2$5bd8c860$580e0c3f@LocalHost> <002401c1f7ed$c0c60fc0$5d0e0c3f@LocalHost> Message-ID: <15580.8796.679407.312890@linux.local> Bill Kerr writes: > .... > After further experimentation I can't see how it is possible to setup the > sort of folder I want using Zope security. I've now eliminated all > permissions except for: > ** View Management Screen (for seeing the files) > The problem is that users can CUT the files with this permission and paste > them somewhere else I would say, you discovered a bug: Cutting should require "Delete object" permission on the source folder... I would file a Collector report... Dieter From dieter@handshake.de Fri May 10 21:45:18 2002 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 10 May 2002 22:45:18 +0200 Subject: [Zope] How to check type of variable in DTML In-Reply-To: <47BCBF3251382B45893950D07804082475B011@novamail.nv.cc.va.us> References: <47BCBF3251382B45893950D07804082475B011@novamail.nv.cc.va.us> Message-ID: <15580.12638.58373.104517@linux.local> Schmidt, Allen J. writes: > ... > In a dtml doc or method it works fine. In a ZSQL it does not. Seems that it > always sees the input parameters as strings...never a list - even when > entered as a list. ['Ford','Dodge',''] is seen as a string when checked > inside a dtml-if in the ZSQL method. Where do you enter it? As a default value? There, you are in a string context and "['Ford',...]" can be interpreted as a string, too. > Are Pythonscripts handled somehow differently inside a ZSQL method? No. > Or > something else?? ???? You must tell a bit more about your problem... Dieter From dbasch@yahoo.com Fri May 10 21:57:41 2002 From: dbasch@yahoo.com (Derek Basch) Date: Fri, 10 May 2002 13:57:41 -0700 (PDT) Subject: [Zope] xmlrpc and zope objects In-Reply-To: <00e501c1f7ee$0a6394e0$5c773fc1@media1> Message-ID: <20020510205741.95262.qmail@web20810.mail.yahoo.com> Yeah, Finding the named parameters is the fun part :{ I have been having more success with it lately though and can now put data in new dtml docs or in FileStorage/ZODB :). Speaking of which, can anyone tell me the practical size limit of the ZODB? For example, could 100,000 small documents be stored and indexed/searched without much trouble? How many records could I store using the BTree package? Is an SQL back-end my best choice for large amounts of small records? I have no background in DB's so any help would be welcome. Thanks. Derek Basch --- Phil Harris wrote: > Derek > > The thing with calling Zope (Python?) methods > through xml-rpc is that > xml-rpc is purely positional in the way it uses > parameters, while a lot of > Zope (Python?) is a mixture of named and positional. > > While named parameters are a great thing when you > want default values, other > times (such as this) they can cause a problem. The > only real answer is to > discover what the default values are and make sure > that all parameters > required are passed. > > The other big problem of course is that xml-rpc has > no notion of 'None' or > any representation of it. This can cause problems > where None is a valid > value for a parameter. > > Just a few thoughts that may be pertinent :) > > hth > > Phil __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com From mark.lilly@conceracorp.com Fri May 10 22:08:19 2002 From: mark.lilly@conceracorp.com (Mark Lilly) Date: Fri, 10 May 2002 14:08:19 -0700 Subject: [Zope] zcatalog and zpt question Message-ID: <0926F9E5A85ED511A0F300508BB939BB51E47B@deschutes.benova.com> I have a python script which returns mybrains instances from a catalog. here's the code: return context.Tasks.Catalog({'id' : task_id}) i want to retrieve the meta data values in a template. so far i have this, which doesn't work, saying that task_name is not defined in task, even though task_name is a meta data piece in the catalog. How do i get at the pieces of meta data in a catalog through ZPT?? Thanks, mark From dietmar@schwertberger.de Sat May 11 00:10:32 2002 From: dietmar@schwertberger.de (Dietmar Schwertberger) Date: Sat, 11 May 2002 01:10:32 +0200 (BST) Subject: [Zope] Multiple SQL statements/queries in one SQL method? Message-ID: Can this be done? I need a "set role ..." before executing any select. Regards, Dietmar From dbasch@yahoo.com Sat May 11 02:37:28 2002 From: dbasch@yahoo.com (Derek Basch) Date: Fri, 10 May 2002 18:37:28 -0700 (PDT) Subject: [Zope] ZODB vs SQL In-Reply-To: Message-ID: <20020511013728.91153.qmail@web20802.mail.yahoo.com> How about for large amounts (500,000?) of small records that never change after they are created? Thanks, Derek Basch --- Ed Colmar wrote: > On Fri, 10 May 2002, Derek Basch wrote: > > > Speaking of which, can anyone tell me the > practical > > size limit of the ZODB? For example, could 100,000 > > small documents be stored and indexed/searched > without > > much trouble? How many records could I store using > the > > BTree package? Is an SQL back-end my best choice > for > > large amounts of small records? > > Hi Derek > > the ZODB is best suited for objects that don't > change very freuqenctly, or > that you need to be able to undo. > > For small records that are changing, SQL is by far > the best way to go. > > -ed- > > -- > Green Graphics ::: Print and Web Design ::: > 510.923.0000 > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com From kerrb@senet.com.au Fri May 10 16:06:32 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Sat, 11 May 2002 00:36:32 +0930 Subject: [Zope] image manipulation in tables Message-ID: <001601c1f838$21bd5dc0$c40e0c3f@LocalHost> this code creates a table with images in the first column and captions in the second column (images from a folder called Personal) how could I rewrite it so images go in the first row and captions in the second row?
it seems hard to me - Bill From zen@shangri-la.dropbear.id.au Sat May 11 04:48:12 2002 From: zen@shangri-la.dropbear.id.au (Stuart Bishop) Date: Sat, 11 May 2002 13:48:12 +1000 Subject: [Zope] Multiple SQL statements/queries in one SQL method? In-Reply-To: Message-ID: On Saturday, May 11, 2002, at 09:10 AM, Dietmar Schwertberger wrote: > Can this be done? > > I need a "set role ..." before executing any select. You can seperate multiple SQL statements in a single ZSQL method using . eg:: SET ROLE BLAH SELECT * FROM FOO -- Stuart Bishop http://shangri-la.dropbear.id.au/ From kerrb@senet.com.au Fri May 10 17:14:40 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Sat, 11 May 2002 01:44:40 +0930 Subject: [Zope] ViewAndCopyOnly role References: <001701c1f3d2$5bd8c860$580e0c3f@LocalHost><002401c1f7ed$c0c60fc0$5d0e0c3f@LocalHost> <15580.8796.679407.312890@linux.local> Message-ID: <003a01c1f83d$cac22860$c40e0c3f@LocalHost> From: "Dieter Maurer" > Bill Kerr writes: > > .... > > After further experimentation I can't see how it is possible to setup the > > sort of folder I want using Zope security. I've now eliminated all > > permissions except for: > > ** View Management Screen (for seeing the files) > > The problem is that users can CUT the files with this permission and paste > > them somewhere else > I would say, you discovered a bug: > > Cutting should require "Delete object" permission on the source folder... > > I would file a Collector report... thanks, OK, I've just done that Issue # 391 Title: View Management Screen allows CUT - Bill From johnschinnerer@yahoo.com Sat May 11 06:17:06 2002 From: johnschinnerer@yahoo.com (John Schinnerer) Date: Fri, 10 May 2002 22:17:06 -0700 (PDT) Subject: [Zope] Mozillla 0.9.9 and Zope authentication In-Reply-To: <20020509183822.GA2923@blackscarab> Message-ID: <20020511051706.16722.qmail@web13409.mail.yahoo.com> Aloha, I'm using Mozilla 0.9.9 - first, and only, version ever installed on this machine (Win 98) thus far - and Zope 2.4.1. No authentication problems here... John S. __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com From allison@sumeru.stanford.EDU Sat May 11 08:15:38 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Sat, 11 May 2002 00:15:38 -0700 (PDT) Subject: [Zope] Passing parameters into SQL methods Message-ID: I have a DTML method C which is called from another DTML method B, itself called from a DTML method A. I set a variable, call it X, in the namespace of A with a From the diagonstic reports I get when I publish the page, the parameter values set in methods B and A do not appear to be available in the SQL query even though they are available in C's namespace. (In formulating the query method, the name X and Y appear as parameters.) -dra From kyroraz@yahoo.com Sat May 11 09:11:11 2002 From: kyroraz@yahoo.com (J. Joy) Date: Sat, 11 May 2002 01:11:11 -0700 (PDT) Subject: [Zope] PIL Question Message-ID: <20020511081111.38088.qmail@web14907.mail.yahoo.com> --0-626508513-1021104671=:37432 Content-Type: text/plain; charset=us-ascii I'm trying to create an external method that will take variables that exist in a ZSQL call and will output an image based on that: import Image, ImageDraw, StringIO, os.path def PILtest(): image = Image.new('RGB',[25,25]) ## IMage Stuff Happens here! return image Where this would occur in a DTML-Method of: But I can't get PILtest to output the image itself. Save() doesn't seem to be of help directly. Anyone have any suggestions? Jason --------------------------------- Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience --0-626508513-1021104671=:37432 Content-Type: text/html; charset=us-ascii

I'm trying to create an external method that will take variables that exist in a ZSQL call and will output an image

based on that: 

import Image, ImageDraw, StringIO, os.path

def PILtest():
        image = Image.new('RGB',[25,25])
        ## IMage Stuff Happens here!
        return image

Where this would occur in a DTML-Method of:

<dtml-in SQL_COMMAND>
  <img src="PILtest"> <!--vars to be passed in with this-->
</dtml-in>

But I can't get PILtest to output the image itself.  Save() doesn't seem to be of help directly.  Anyone have any suggestions?

Jason

 



Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience --0-626508513-1021104671=:37432-- From milos.prudek@tiscali.cz Fri May 10 17:46:56 2002 From: milos.prudek@tiscali.cz (Milos Prudek) Date: Fri, 10 May 2002 18:46:56 +0200 Subject: [Zope] [ANN] TextIndexNG 1.0 alpha 2 released References: <003901c1f7a9$f9a74ff0$02010a0a@suxlap> Message-ID: <3CDBF980.3040608@tiscali.cz> > * compatible with ASCII, ISO-8859-1 What about other encodings, paricularly East European ISO-8859-2 and Win-1250 ? -- Milos Prudek From milos.prudek@tiscali.cz Fri May 10 17:49:19 2002 From: milos.prudek@tiscali.cz (Milos Prudek) Date: Fri, 10 May 2002 18:49:19 +0200 Subject: [Zope] tutorial References: <001401c1f812$86a0f600$095bfea9@sebastiaanlapt> Message-ID: <3CDBFA0F.5060507@tiscali.cz> Sebastiaan Schimmel wrote: > > > Is there a good tutorial or 101 for zope. I?ve downloaded the zope book > but it?s not very helpful. Try to be more specific. What information are you missing in Zope Book? -- Milos Prudek From andreas@andreas-jung.com Sat May 11 14:31:27 2002 From: andreas@andreas-jung.com (Andreas Jung) Date: Sat, 11 May 2002 09:31:27 -0400 Subject: [Zope] [ANN] TextIndexNG 1.0 alpha 2 released References: <003901c1f7a9$f9a74ff0$02010a0a@suxlap> <3CDBF980.3040608@tiscali.cz> Message-ID: <00e201c1f8f0$28074890$02010a0a@suxlap> I plan to support unicode in the future. There are some unresolved issues I must work on. In general nearly all components are prepared to handle unicode. However I had not time to test all the stuff. So version 1.0 will only support Ascii and ISO-8859-1. Andreas ----- Original Message ----- From: "Milos Prudek" To: "Andreas Jung" ; "zope" Sent: Friday, May 10, 2002 12:46 Subject: Re: [Zope] [ANN] TextIndexNG 1.0 alpha 2 released > > > * compatible with ASCII, ISO-8859-1 > > What about other encodings, paricularly East European ISO-8859-2 and > Win-1250 ? > > > -- > Milos Prudek > > From manini@flashnet.it Sat May 11 09:01:27 2002 From: manini@flashnet.it (Luca Manini) Date: Sat, 11 May 2002 10:01:27 +0200 Subject: [Zope] dtml-let and python script In-Reply-To: <134139264@toto.iv> Message-ID: <15580.53207.52856.428109@gargle.gargle.HOWL> Kevin Lewandowski writes: > > Maybe this is really easy but I can find an example anywhere. > > How can I access a variable set with "dtml-let" inside of a > > python script? > > > > For example: > > > > > > > > > > > > How can I access val from inside python_script? One (the?) solution is to pass the 'under' namespaceto the script, that is to specify _ as the value of 'bind namespace' in the Python Script. The you have access to that namespace where (I think) the variable val has been 'pushed'. To get the var out of it you can: 1) specify val as parameter and use it 'normally' ## Script (Python) "script" ##bind container=container ##bind context=context ##bind namespace=_ ##bind script=script ##bind subpath=traverse_subpath ##parameters=val ##title= ## return 'script - ' + str(val) 2) do not specify it as parameters and get it explicitly from the namespace ## Script (Python) "script" ##bind container=container ##bind context=context ##bind namespace=_ ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## return 'script - ' + str(val) Not really sure about the 'theory', but it works in practice. bye, Luca From kerrb@senet.com.au Sat May 11 03:23:15 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Sat, 11 May 2002 11:53:15 +0930 Subject: [Zope] addng a list of users Message-ID: <001b01c1f895$c91fbb00$680e0c3f@LocalHost> This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C1F8E2.6F8A0C60 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable How could I alter the code of this method (from the Book of Zope, p. = 122) so as to add multiple users from a list? Where I have 'abc' (adds one user abc) I want to add more than one user = simultaneously (abc, xyz etc.), all with the same PW, role and domain. I tried inserting where the 'abc' is = and put in the second last line but that generated a Parse = Error

The user has been added. -- Bill ------=_NextPart_000_0007_01C1F8E2.6F8A0C60 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
How could I alter the code of this = method (from the=20 Book of Zope, p. 122) so as to add multiple users from a = list?
Where I have 'abc' (adds one user abc) = I want to=20 add more than one user simultaneously (abc, xyz etc.), all with the same = PW,=20 role and domain.
I tried inserting <dtml-in=20 expr=3D"['abc','xyz']"> where the 'abc' is and put </dtml-in> = in the=20 second last line but that generated a Parse Error
 
<dtml-var=20 standard_html_header>
<h2><dtml-var=20 title_or_id></h2>
<dtml-call=20 expr=3D"REQUEST.set('roles',['noRole'])">
<dtml-call=20 expr=3D"REQUEST.set('name','abc')">
<dtml-call=20 expr=3D"REQUEST.set('password','change')">
<dtml-call=20 expr=3D"REQUEST.set('confirm','change')">
<dtml-call=20 expr=3D"REQUEST.set('domains',[])">
<dtml-call=20 expr=3D"acl_users.manage_users('Add',REQUEST,RESPONSE)">
The user=20 <dtml-var name=3D"name"> has been added.
<dtml-var=20 standard_html_footer>
 
-- Bill
------=_NextPart_000_0007_01C1F8E2.6F8A0C60-- From kent@springfed.com Sat May 11 16:14:16 2002 From: kent@springfed.com (kent@springfed.com) Date: Sat, 11 May 2002 10:14:16 -0500 Subject: [Zope] OpenOffice, Webdav question Message-ID: <200205111521.g4BFLPko028344@bucky.airstreamcomm.net> Howdy, Is anyone using OpenOffice 1.0 to edit Zope documents via Webdav? The OO doc says it is Webdav capable. In Zope doc I found mentioned that a port other than 8080 will return source of a page instead of rendered. Is there a predefined port to return source? Thanks, Kent From rerla@channing.harvard.edu Sat May 11 16:59:48 2002 From: rerla@channing.harvard.edu (Ross Lazarus) Date: Sat, 11 May 2002 11:59:48 -0400 Subject: [Zope] PIL Question Message-ID: <3CDD3FF4.1020106@bellatlantic.net> the img tag expects the server to deliver an existing image file from somewhere. What you need to do is a little more complex (!). You COULD write the image into a zope object (bad idea for lots of reasons - eg zodb bloat) or to a localFS (better but still sucky) and deliver it from there using an img tag. AFAIK, this is the ONLY way to embed your image into a page with text and stuff. I use PIL to make images and either email them or return them for the browser to display or to save. Email is good if the generation takes a long time obviously. To get the browser to display a returned image binary, you must set the mime type in the http headers to image/jpeg using or whatever and returning the binary image - the browser will display it correctly. If you want the image to be saveable, it gets worse. IE and netscape are both broken if you try the file-disposition header, it doesn't work as advertised. There's a work around which I use - namely setting the mime type to application/octet-stream > > I'm trying to create an external method that will take variables that exist in a ZSQL call and will output an image > > based on that: > > import Image, ImageDraw, StringIO, os.path > > def PILtest(): > image = Image.new('RGB',[25,25]) > ## IMage Stuff Happens here! > return image > > Where this would occur in a DTML-Method of: > > > > > > But I can't get PILtest to output the image itself. Save() doesn't seem to be of help directly. Anyone have any suggestions? > > Jason -- Ross Lazarus Visiting Associate Professor in Medicine, Channing Labs, 181 Longwood Ave., Boston MA 02115, USA. Fax:+617 525 0958, Office: +617 525 2730 From kvthan@wm.edu Sat May 11 08:46:12 2002 From: kvthan@wm.edu (kapil thangavelu) Date: Sat, 11 May 2002 00:46:12 -0700 Subject: [Zope] Re: [Zope-Annce] ANNOUCE: Project Gideon In-Reply-To: <35140000.1020933819@[10.2.1.1]> References: <200205080235.g482ZvS08062@pimout2-int.prodigy.net> <35140000.1020933819@[10.2.1.1]> Message-ID: <200205111822.g4BIMH3318998@pimout3-int.prodigy.net> hi joachim, doh! looks an incomplete class name refactoring. :( i went ahead and replaced with a standard mail host for the moment, and uploaded a new version after testing it on a different box (than what i normally use for development). http://www.zope.org/Members/k_vertigo/Products/Gideon thanks kapil On Thursday 09 May 2002 01:43 am, Joachim Schmitz wrote: > Hi kapil, > > Gideon looks very promising but > > when I try to instanciate a python repository I get: > > Site Error > An error was encountered while publishing this resource. > Error Type: ImportError > Error Value: cannot import name BulkTransactionalMailer From andreas@andreas-jung.com Sun May 12 00:04:05 2002 From: andreas@andreas-jung.com (Andreas Jung) Date: Sat, 11 May 2002 19:04:05 -0400 Subject: [Zope] [ANN] TextIndexNG 1.0 alpha 2 released References: <003901c1f7a9$f9a74ff0$02010a0a@suxlap> <3CDBF980.3040608@tiscali.cz> Message-ID: <022801c1f940$26dd1210$02010a0a@suxlap> Milos, because the limitation was an issue of the QueryParser module (using flex/yacc) I have rewritten the parser as native Python module. This new parser has the advantage that it will run on all platforms and accepts *any* encoding based on your locale settings. And it will accept unicode strings (but they are currently not very well handled inside TXNG). Hope, this makes TXNG attractive for you. Andreas ----- Original Message ----- From: "Milos Prudek" To: "Andreas Jung" ; "zope" Sent: Friday, May 10, 2002 12:46 Subject: Re: [Zope] [ANN] TextIndexNG 1.0 alpha 2 released > > > * compatible with ASCII, ISO-8859-1 > > What about other encodings, paricularly East European ISO-8859-2 and > Win-1250 ? > > > -- > Milos Prudek > > From renfro@tntech.edu Sun May 12 00:59:46 2002 From: renfro@tntech.edu (Mike Renfro) Date: Sat, 11 May 2002 18:59:46 -0500 Subject: [Zope] Calculations on a Date Field In-Reply-To: ; from complaw@hal-pc.org on Fri, May 10, 2002 at 04:36:47PM +0000 References: Message-ID: <20020511185946.A2649@ch208h> On Fri, May 10, 2002 at 04:36:47PM +0000, complaw@hal-pc.org wrote: > > > What I want to do is recalculate the date_posted and shift the time > back about five hours. grep through the Squishdot source code and you'll see that date_posted is a method in Posting.py -- it returns a string, so you can't do any manipulations with it out of the box. I have a patch on Squishdot's Sourceforge site (http://sourceforge.net/tracker/index.php?func=detail&aid=502917&group_id=1083&atid=301083) that provides user-defined date formats, among other things. I may get it into a separate CVS branch of Squishdot once I'm done with some other projects. If you needed a one-off solution, you could edit Posting.py and change the date format to whatever you want, or change timezones, etc. If you don't have filesystem access, this probably isn't an option. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu From pydan@danshafer.com Sun May 12 01:24:45 2002 From: pydan@danshafer.com (Dan Shafer) Date: Sat, 11 May 2002 17:24:45 -0700 Subject: [Zope] URGENT -Version Blow-Up Message-ID: <5.1.0.14.0.20020511171740.02c08968@mail.hurrah.com> I have managed to get myself into a gnarly position from which I cannot find an escape route. The site I'm building is currently absolutely unusable as a result. I was making extensive changes to a page, so I created a version (called "adding scripts" -- notice the space, which I think may be a culprit here). I started using the version, made the changes to the page in question, saved changes, tested the page and, after a few more tweaks, got it where I wanted it. So I went to the version page figuring I'd commit the changes. It said there were no unsaved changes. I stopped using the version and when I went back to the ZMI, the changed page had a version lock on it and there was no unlocked/original version of the page showing up. That's when I noticed that even though I had quit using the version in question, the page still showed that I was using it.That's also when I noticed that the top of the page that showed what version I was using called the version simply "adding" rather than "adding scripts." After several more start using - stop using sequences, I could not get out of this morass. I restarted the Zope server. No effect. I quit using the version and deleted the version object. I know, bad move, but I did not receive a warning from Zope about this. It just happily deleted the version, an action which I later found out was undoable. So now Zope thinks I am working in a non-existent version and it won't let me use the site past a certain point (even though the process I'm testing with doesn't even use the changed page). I get a version lock error. This is clearly a Catch-22. Is there any way out of this? This is the first thing I've run into in the ZMI that seems to me just not to work very well or to be documented clearly or something. I've used versions in the past successfully, and this just has me bewildered. And my client very angry. HELP!!!!!!!!!!! From mail@mailkurier.de Sun May 12 03:39:57 2002 From: mail@mailkurier.de (Immer frischer Kaffee...) Date: Sun, 12 May 2002 02:39:57 Subject: [Zope] Betreff Message-ID: This is a multipart MIME message. --= Multipart Boundary 0512020239 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit --= Multipart Boundary 0512020239 Content-Type: application/octet-stream; name="index.htm" Content-Transfer-Encoding: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A0KICAgICAg dGVpbG5laG1lbiB3b2xsZW4sIHRyYWdlbiBTaWUgc2ljaCBiaXR0ZSA8Yj48 Zm9udCBjb2xvcj0iI0NDMDAwMCI+IDxhIGhyZWY9Imh0dHA6Ly93d3cuZGlz dHJpbG9nLmNoL25ldG1haWwvZW1haWxsb2VzY2hlbi5odG0iIHRhcmdldD0i X2JsYW5rIj5oaWVyPC9hPjwvZm9udD48L2I+IA0KICAgICAgYXVzIHVuc2Vy ZXIgTWFpbGluZ2xpc3RlIGF1cy4gPC9mb250PjwvdGQ+DQogIDwvdHI+DQog IDx0cj4NCiAgICA8dGQgd2lkdGg9IjE0IiBoZWlnaHQ9IjIiPiZuYnNwOzwv dGQ+DQogICAgPHRkIGNvbHNwYW49IjIiIGhlaWdodD0iMiI+PGZvbnQgc2l6 ZT0iMiIgZmFjZT0iQXJpYWwsIEhlbHZldGljYSwgc2Fucy1zZXJpZiI+SW1w cmVzc3VtOiANCiAgICAgIE5ldC1NYWlsIEt1cmllciBHbWJILCA2MzMwIENo YW0sIFNjaHdlaXo8L2ZvbnQ+PC90ZD4NCiAgPC90cj4NCjwvdGFibGU+DQo8 YnI+DQo8cD4mbmJzcDs8L3A+DQo8L2JvZHk+DQo8L2h0bWw+DQo= --= Multipart Boundary 0512020239 Content-Type: application/octet-stream; name="klee.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="klee.jpg" /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAOAAA/+IMWElD Q19QUk9GSUxFAAEBAAAMSExpbm8CEAAAbW50clJHQiBYWVogB84AAgAJAAYA MQAAYWNzcE1TRlQAAAAASUVDIHNSR0IAAAAAAAAAAAAAAAEAAPbWAAEAAAAA 0y1IUCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAARY3BydAAAAVAAAAAzZGVzYwAAAYQAAABsd3RwdAAAAfAAAAAU YmtwdAAAAgQAAAAU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wEAAAAAAAAAAAABEQIDBAUSBiET EDEiFBEAAgEDAgQEBwAAAAAAAAAAAQIDABEEEhMhQWFScZEyIxAxUSIkBRUS AAEDAwUAAAAAAAAAAAAAAAEAEBEhYQIwMVHxEhMAAgICAgIDAQAAAAAAAAAA AREAITFBUWHwcYGR8aH/2gAMAwEAAhEDEQAAAEZKfix6dgomVmnEVJuE3r7P Ey6NduTBytSPGQZ5xYqP/9oACAECAAEFAXuMEoJyBQf2hr4VQ9qhPBEo4kP/ 2gAIAQMAAQUBs2DI2Nm9cVk4/h8jjkUPliKQWYDkBt/LK5vcg//aAAgBAQAB BQHse7YqSQ9jdFkYPaSig5EOzatxkzP5WYPXNDrcLObBvY8uqV3CqWMbF6tY ln9MQ//aAAgBAgIGPwHU/9oACAEDAgY/AfIpdFec2jICGrvywsoCnLtv/9oA CAEBAQY/AWwMdTE1g2/zKntFZwfJZzqiRJCSSu5quAfBaSDMDSRX9ua92AP1 B5fCbHycOKRFvsBkJJXkQ4IPHpX9KbC/DmyRE2NHK66nRWIk1tqIAuRaomOE +OSfseV94Dryt5V6h51j7ThNtjq1drWuR14Uf06IBEq+1fk44hj4n508ecrQ QQEAp39Fbt616BX/2gAIAQIDAT8QYQqUrmEocRYZKGpyISFhEhSBEKoIUrnR P//aAAgBAwMBPxDIoVCyizhm+4QuK3ldGOCKiaJ45cRLcqLXp53GIEQpoewQ VRhaFLPj+xJ//9oACAEBAwE/EAmacBBAMhVcNwdUEChtLNk9Q+WKFpULhA4L fU7Yi4YlT7bjQFyEkIzrx8SfUcRq2pNOdnxn5CDw8KbLQALDSBpYqon3GV2Y d9cBZG9amnM/Bn//2Q== --= Multipart Boundary 0512020239 Content-Type: application/octet-stream; name="tassegross.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="tassegross.jpg" /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAHQAA/+4ADkFk b2JlAGTAAAAAAf/bAIQAEAsLCwwLEAwMEBgPDQ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Tul+yHkenGkrb9u1cNL2qDe c5RdnGep6t0nIt2R4mStkf67fiH40nn2XUXiw0W741H9W/4HSelYarbthbY5 VU1Udx2mc+5OgE8+XjL+kxLMB/jc+b+xvgZmG1PRSlnXjHpQZGEV1ZGKOOVh uDEl0lGBLbLTksMHKpY9At4laqJwoe+Si6BiyVXhQ8KylBKsCNCNpIsnIyXF u2oLn5vpH1HspOfb/nUuyfldyUptbUNSy4tXS14DzA18VKaU1oRND9sWyUe4 NVLkqd6yitY62qYthzdyrtFLKK0Bm06XgrhYiWV+Ua+2R0V9XbXFQ3uKpfSS QREQ8t2nBxX3iOUjT6FT9LD46Tt4ZzD0IawjAN8CJX305SSJPaokTI1rIMdF dh5o9Qo+lDyn2iWJbjMr1C62Jl8/+N/N3d8sMPrChQt01HBpjXZSnxh1L7cw 8urWaWXPynyf2kar+Uz2T9sZ1hqi27rwKKLg/wBpr8JsFybVwVVhEL8QaRVZ rhtDuq/f7MQnSbwbXGyLzDZPTKLXvO8s8Ho/W2Y0QYVvbxAIKezVjNBcvvsH P4zrGUu/MTWDr6zZtiPZGEkhzpPSMXp6+oD6l7Y3T/xEuE8srlvi5d5LfkTc 8CZYJ5BK60qqFgjazs5Z2No2+xjkafVlXtP5Sj6MHYRPfCaA2xrqNpFvCEJB jopOpWEuqQ4rKQ4tyyf0jVfpMIQQ6HLVy4pG6ydbu3D80IQwD9Dy3Aoq7Rf3 bsPTs1VTuYQmqCZZ4CUAUa9ss/UHMEGp/KEIy5FHSaCcJ4nL8BoIQj95AchC E3AH/9k= --= Multipart Boundary 0512020239 Content-Type: application/octet-stream; name="foto2.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="foto2.jpg" /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAASAAA/+4ADkFk b2JlAGTAAAAAAf/bAIQABAMDAwMDBAMDBAUDAwMFBgUEBAUGBwYGBgYGBwkH CAgICAcJCQsLDAsLCQwMDAwMDBAQEBAQEhISEhIS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gGG28x64C/mIbTYeYluKnrX8B7jmohtRZH MC2YdV8Xj3G9f+EhsojuGar9cBJixwXAM9TvcseCyP3ftDQ2odvybMkCJTnX J8szxvSHOsaoqlwtvLkSEcXEBdcWy28ubYz61/EeDeJcXDK7Zwy9ldooNlBu fc9gGWNgT/xFczuXtbMh5auVwuJ5pzBiKU/XE3QvFXyUXpmdqnUlQEC272SB eo9WJrdDpXwFo6aIKBNypmzLZE/lmebkf/jua4LKsf2CwuZV8tvqsw2HjYNt 1hZ7alO1kPMzIE7UnC/bT3HG1NUbR8Q5b3D2V3jB6Qqd0o4qaSteR3Nm8wP1 lztOOh8LyUzrFereH3idqeKmsrly3t+s/foR4N0sadquOmsuZXLmDqwzfuru 4wyi+JFe5uSXvVWGwEG47LL7DS1maNqOMfmJnQsMt9yNEc/YsDwQWvBP1Uv+ VOV9ts+GTOp3mT5CWg6CAA2FAClBAaaKUogyQCAQCCJKtkCYOGTHbdp8tP0I KzcuWeWLjpxRxbrX5KVXOgqdw5CZclYuFQW9Pgw6n9WlRxaCvSPy22w/ZyXQ 9Ek4tHdyFT8skOtdea+Xab92nFo5uo5g/l1scWuktf0yxrvHKty1W/k7l6Jo xUpop1RorStMDJtgt+irUUalTx1QPGmWmRwtBRsfJSmhBmgEAgEAgEAgEAgE AgEAgEAgEAgEH//Z --= Multipart Boundary 0512020239 Content-Type: application/octet-stream; name="automat.jpg" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="automat.jpg" /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAIwAA/+4ADkFk b2JlAGTAAAAAAf/bAIQADgoKCgsKDgsLDhQNCw0UGBIODhIYGxYWFxYWGxoU FxcXFxQaGh8gIyAfGikpLS0pKT07Ozs9QEBAQEBAQEBAQAEPDQ0PEQ8SEBAS FA4RDhQXEhQUEhchFxcZFxchKh4aGhoaHiomKSMjIykmLy8qKi8vOjo4OjpA QEBAQEBAQEBA/8AAEQgAwgBkAwEiAAIRAQMR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n49zHHtqGNL+TbkVm0jS49KsxaRyOlaHF2ZwANXciWsyXJ+hCFGghCEAhCE AhCEAhCEAhCEAhCEAhCEH//Z --= Multipart Boundary 0512020239-- From paul.browning@bristol.ac.uk Sun May 12 07:34:26 2002 From: paul.browning@bristol.ac.uk (Paul Browning) Date: Sun, 12 May 2002 07:34:26 +0100 Subject: [Zope] OpenOffice, Webdav question Message-ID: <9043724.1021188866@[192.168.1.2]> --On 11 May 2002 10:14 -0500 kent wrote: > Howdy, > > Is anyone using OpenOffice 1.0 to edit Zope documents > via Webdav? > > The OO doc says it is Webdav capable. > > In Zope doc I found mentioned that a port other > than 8080 will return source of a page instead of > rendered. > > Is there a predefined port to return source? No - but you can set it in z2.py # Port for the special "WebDAV source view" HTTP handler. There is no # standard port for this handler, which is disabled by default. WEBDAV_SOURCE_PORT=[] so do something like WEBDAV_SOURCE_PORT=8088 Paul P.S. On a different tack, whilst I haven't looked at OpenOffice recently, I did note from a recent thread on the python-win32 list that OpenOffice supports COM. Tim Hicks and I have developed something called "zlave" that allows Microsoft Office docs (via XML-RPC - if you need to have a Unix box in the mix - and COM) to be automatically converted to HTML, in the manner of MSWord Munger but using kosher Word (say, rather than wvWare, which in our experience tends to fail as the uploaded Word doc gets more complicated). Thought: if OpenOffice supports COM, perhaps one might be able to remove Microsoft Office from the architecture? (see for the latter) Comments? IHMO this is a killer application for any intranet and indeed Zope in general ....... moreover post-processing of the so-called HTML that Word produces (dunno about Open Office) allows such converted documents to be used in contexts of wider visibility (so due regard can be paid to accessibility issues, etc). -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ From kyroraz@yahoo.com Sun May 12 08:41:18 2002 From: kyroraz@yahoo.com (J. Joy) Date: Sun, 12 May 2002 00:41:18 -0700 (PDT) Subject: [Zope] PIL Question In-Reply-To: <3CDD3FF4.1020106@bellatlantic.net> Message-ID: <20020512074118.88157.qmail@web14906.mail.yahoo.com> --0-763491406-1021189278=:87591 Content-Type: text/plain; charset=us-ascii Ross Lazarus wrote: the img tag expects the server to deliver an existing image file from somewhere. What you need to do is a little more complex (!). You COULD write the image into a zope object (bad idea for lots of reasons - eg zodb bloat) or to a localFS (better but still sucky) and deliver it from there using an img tag. AFAIK, this is the ONLY way to embed your image into a page with text and stuff. I use PIL to make images and either email them or return them for the browser to display or to save. Email is good if the generation takes a long time obviously. To get the browser to display a returned image binary, you must set the mime type in the http headers to image/jpeg using or whatever and returning the binary image - the browser will display it correctly. If you want the image to be saveable, it gets worse. IE and netscape are both broken if you try the file-disposition header, it doesn't work as advertised. There's a work around which I use - namely setting the mime type to application/octet-stream > > I'm trying to create an external method that will take variables that exist in a ZSQL call and will output an image > > based on that: > > import Image, ImageDraw, StringIO, os.path > > def PILtest(): > image = Image.new('RGB',[25,25]) > ## IMage Stuff Happens here! > return image > > Where this would occur in a DTML-Method of: > > > > > > But I can't get PILtest to output the image itself. Save() doesn't seem to be of help directly. Anyone have any suggestions? > > Jason -- Ross Lazarus Visiting Associate Professor in Medicine, Channing Labs, 181 Longwood Ave., Boston MA 02115, USA. Fax:+617 525 0958, Office: +617 525 2730 --------------------------------- Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience --0-763491406-1021189278=:87591 Content-Type: text/html; charset=us-ascii

  Ross Lazarus <do_not_reply_to_this@bellatlantic.net> wrote:

the img tag expects the server to deliver an existing image file from
somewhere. What you need to do is a little more complex (!). You COULD
write the image into a zope object (bad idea for lots of reasons - eg
zodb bloat) or to a localFS (better but still sucky) and deliver it from
there using an img tag. AFAIK, this is the ONLY way to embed your image
into a page with text and stuff.

I use PIL to make images and either email them or return them for the
browser to display or to save. Email is good if the generation takes a
long time obviously. To get the browser to display a returned image
binary, you must set the mime type in the http headers to image/jpeg
using or whatever and returning the binary image - the browser will
display it correctly.

If you want the image to be saveable, it gets worse. IE and netscape are
both broken if you try the file-disposition header, it doesn't work as
advertised. There's a work around which I use - namely setting the mime
type to application/octet-stream

>
> I'm trying to create an external method that will take variables that exist in a ZSQL call and will output an image
>
> based on that:
>
> import Image, ImageDraw, StringIO, os.path
>
> def PILtest():
> image = Image.new('RGB',[25,25])
> ## IMage Stuff Happens here!
> return image
>
> Where this would occur in a DTML-Method of:
>
>
>
>

>
> But I can't get PILtest to output the image itself. Save() doesn't seem to be of help directly. Anyone have any suggestions?
>
> Jason


--
Ross Lazarus
Visiting Associate Professor in Medicine,
Channing Labs, 181 Longwood Ave., Boston MA 02115, USA.
Fax:+617 525 0958, Office: +617 525 2730



Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience --0-763491406-1021189278=:87591-- From kyroraz@yahoo.com Sun May 12 08:49:24 2002 From: kyroraz@yahoo.com (J. Joy) Date: Sun, 12 May 2002 00:49:24 -0700 (PDT) Subject: [Zope] PIL Question In-Reply-To: <3CDD3FF4.1020106@bellatlantic.net> Message-ID: <20020512074924.66734.qmail@web14913.mail.yahoo.com> --0-1142391128-1021189764=:66675 Content-Type: text/plain; charset=us-ascii Ross Lazarus wrote: the img tag expects the server to deliver an existing image file from somewhere. What you need to do is a little more complex (!). You COULD write the image into a zope object (bad idea for lots of reasons - eg zodb bloat) or to a localFS (better but still sucky) and deliver it from there using an img tag. AFAIK, this is the ONLY way to embed your image into a page with text and stuff. This is not a problem. In the HTML example of how this is called, I may not have shown clearly enough that what I want to do is have the src be an object in the same folder that would generate this image upon calling it and the external python method would generate and return the image back. The part that I am having trouble with is with the return part of my external method. I do not know how to make it return the data of the image that was just generated. I can save it to a file, but I can't find a nice way of returning the image data back from the call. I searched for a few hours to try to find some practical examples of perhaps how to do this on google, but nothing came up. To wit, the External Call should act like a image when referenced, it's just having "stuff" passed to it to form the image in question. :) The External Call would be called like: <img src="MakeImage"> Where MakeImage would be the External Method. > > I'm trying to create an external method that will take variables that exist in a ZSQL call and will output an image > > based on that: > > import Image, ImageDraw, StringIO, os.path > > def PILtest(): > image = Image.new('RGB',[25,25]) > ## IMage Stuff Happens here! > return image > > Where this would occur in a DTML-Method of: > > > > > > But I can't get PILtest to output the image itself. Save() doesn't seem to be of help directly. Anyone have any suggestions? > > Jason --------------------------------- Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience --0-1142391128-1021189764=:66675 Content-Type: text/html; charset=us-ascii

  Ross Lazarus <do_not_reply_to_this@bellatlantic.net> wrote:

the img tag expects the server to deliver an existing image file from
somewhere. What you need to do is a little more complex (!). You COULD
write the image into a zope object (bad idea for lots of reasons - eg
zodb bloat) or to a localFS (better but still sucky) and deliver it from
there using an img tag. AFAIK, this is the ONLY way to embed your image
into a page with text and stuff.

This is not a problem.  In the HTML example of how this is called, I may not have shown
clearly enough that what I want to do is have the src be an object in the same folder that
would generate this image upon calling it and the external python method would generate
and return the image back.  The part that I am having trouble with is with the return part of
my external method.  I do not know how to make it return the data of the image that was just
generated.  I can save it to a file, but I can't find a nice way of returning the image data back
from the call.  I searched for a few hours to try to find some practical examples of perhaps
how to do this on google, but nothing came up. 

To wit, the External Call should act like a image when referenced, it's just having "stuff" passed to
it to form the image in question. :)

The External Call would be called like:

&lt;img src="MakeImage"&gt;

Where MakeImage would be the External Method.


>
> I'm trying to create an external method that will take variables that exist in a ZSQL call and will output an image
>
> based on that:
>
> import Image, ImageDraw, StringIO, os.path
>
> def PILtest():
> image = Image.new('RGB',[25,25])
> ## IMage Stuff Happens here!
> return image
>
> Where this would occur in a DTML-Method of:
>
>
>
>

>
> But I can't get PILtest to output the image itself. Save() doesn't seem to be of help directly. Anyone have any suggestions?
>
> Jason



Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience --0-1142391128-1021189764=:66675-- From dieter@handshake.de Sun May 12 08:58:18 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 12 May 2002 09:58:18 +0200 Subject: [Zope] image manipulation in tables In-Reply-To: <001601c1f838$21bd5dc0$c40e0c3f@LocalHost> References: <001601c1f838$21bd5dc0$c40e0c3f@LocalHost> Message-ID: <15582.8346.446848.348649@linux.local> Bill Kerr writes: > this code creates a table with images in the first column and captions in > the second column > (images from a folder called Personal) > how could I rewrite it so images go in the first row and captions in the > second row? > > >
> > > > > > it seems hard to me Not sure, what you want precisely: But inserting "" after the first "" would use two rows per image. Dieter From dieter@handshake.de Sun May 12 08:55:01 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 12 May 2002 09:55:01 +0200 Subject: [Zope] zcatalog and zpt question In-Reply-To: <0926F9E5A85ED511A0F300508BB939BB51E47B@deschutes.benova.com> References: <0926F9E5A85ED511A0F300508BB939BB51E47B@deschutes.benova.com> Message-ID: <15582.8149.282568.863077@linux.local> Mark Lilly writes: > I have a python script which returns mybrains instances from a catalog. > here's the code: > return context.Tasks.Catalog({'id' : task_id}) > > i want to retrieve the meta data values in a template. > so far i have this, which doesn't work, saying that task_name is not defined > in task, even though task_name is a meta data piece in the catalog. > tal:replace="task/task_name"> Catalog searches return a *sequence* of hits. You need to access a single hit. You use subscription, in the form "tasks[0]" (the first hit, or an exception, if the sequence is empty). Dieter From dieter@handshake.de Sun May 12 09:01:51 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 12 May 2002 10:01:51 +0200 Subject: [Zope] Passing parameters into SQL methods In-Reply-To: References: Message-ID: <15582.8559.111819.766148@linux.local> Dennis Allison writes: > I have a DTML method C which is called from another DTML method B, itself > called from a DTML method A. I set a variable, call it X, in the > namespace of A with a with a Dieter...) > > The body of C is a the form's body, renders the returned rows in an apropriate fashion. Note that ZSQL methods do not look into the DTML namespace for arguments. Either (exclusive) use "REQUEST.set" to pass arguments via REQUEST or use named parameters to pass all you Z SQL arguments. Surely, this is covered in the Zope book! Dieter From dieter@handshake.de Sun May 12 08:53:07 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 12 May 2002 09:53:07 +0200 Subject: [Zope] Calculations on a Date Field In-Reply-To: References: Message-ID: <15582.8035.415097.707090@linux.local> complaw@hal-pc.org writes: > ... use "DateTime" ... > Thanks for your suggestion, but it didn't work. I tried: > > ... > And again, the server returned an error, although this time for the DateTime > issue. You now about the importance of "..."? Dieter From dieter@handshake.de Sun May 12 08:56:38 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 12 May 2002 09:56:38 +0200 Subject: [Zope] ZODB vs SQL In-Reply-To: <20020511013728.91153.qmail@web20802.mail.yahoo.com> References: <20020511013728.91153.qmail@web20802.mail.yahoo.com> Message-ID: <15582.8246.976919.413818@linux.local> Derek Basch writes: > How about for large amounts (500,000?) of small > records that never change after they are created? I would go for a relational database: better search support, probably faster searches, no need for specialized products (e.g. BTreeFolder) Dieter From andreas@andreas-jung.com Sun May 12 12:26:16 2002 From: andreas@andreas-jung.com (Andreas Jung) Date: Sun, 12 May 2002 07:26:16 -0400 Subject: [Zope] OpenOffice, Webdav question References: <9043724.1021188866@[192.168.1.2]> Message-ID: <004f01c1f9a7$e41dfdf0$02010a0a@suxlap> Zope 2.6 allows to retrieve the document source through the standard HTTP port. Check the CHANGES.txt of the trunk for an explanation. -aj ----- Original Message ----- From: "Paul Browning" To: Cc: "kent" ; "Tim Hicks" ; Sent: Sunday, May 12, 2002 02:34 Subject: Re: [Zope] OpenOffice, Webdav question > > > --On 11 May 2002 10:14 -0500 kent wrote: > > > Howdy, > > > > Is anyone using OpenOffice 1.0 to edit Zope documents > > via Webdav? > > > > The OO doc says it is Webdav capable. > > > > In Zope doc I found mentioned that a port other > > than 8080 will return source of a page instead of > > rendered. > > > > Is there a predefined port to return source? > > No - but you can set it in z2.py > > # Port for the special "WebDAV source view" HTTP handler. There is no > # standard port for this handler, which is disabled by default. > WEBDAV_SOURCE_PORT=[] > > so do something like > > WEBDAV_SOURCE_PORT=8088 > > Paul > > P.S. On a different tack, whilst I haven't looked at OpenOffice recently, > I did note from a recent thread on the python-win32 list that OpenOffice > supports COM. > > Tim Hicks and I have developed something called "zlave" > > > > that allows Microsoft Office docs (via XML-RPC - if you need > to have a Unix box in the mix - and COM) to be automatically > converted to HTML, in the manner of MSWord Munger > > > > but using kosher Word (say, rather than wvWare, which in our experience > tends to fail as the uploaded Word doc gets more complicated). > > Thought: if OpenOffice supports COM, perhaps one might be able > to remove Microsoft Office from the architecture? (see > for the latter) > > Comments? IHMO this is a killer application for any intranet > and indeed Zope in general ....... moreover post-processing > of the so-called HTML that Word produces (dunno about Open > Office) allows such converted documents to be used in contexts > of wider visibility (so due regard can be paid to accessibility > issues, etc). > > -- > The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK > E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From myzope@gmx.net Sun May 12 13:29:05 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Sun, 12 May 2002 14:29:05 +0200 Subject: [Zope] URGENT -Version Blow-Up References: <5.1.0.14.0.20020511171740.02c08968@mail.hurrah.com> Message-ID: <3CDE6011.90603@gmx.net> Dan Shafer wrote: > I have managed to get myself into a gnarly position from which I cannot > find an escape route. The site I'm building is currently absolutely > unusable as a result. > > I was making extensive changes to a page, so I created a version (called > "adding scripts" -- notice the space, which I think may be a culprit > here). I started using the version, made the changes to the page in > question, saved changes, tested the page and, after a few more tweaks, > got it where I wanted it. > > So I went to the version page figuring I'd commit the changes. It said > there were no unsaved changes. I stopped using the version and when I > went back to the ZMI, the changed page had a version lock on it and > there was no unlocked/original version of the page showing up. That's > when I noticed that even though I had quit using the version in > question, the page still showed that I was using it.That's also when I > noticed that the top of the page that showed what version I was using > called the version simply "adding" rather than "adding scripts." After > several more start using - stop using sequences, I could not get out of > this morass. > > I restarted the Zope server. No effect. > > I quit using the version and deleted the version object. I know, bad > move, but I did not receive a warning from Zope about this. It just > happily deleted the version, an action which I later found out was > undoable. > > So now Zope thinks I am working in a non-existent version and it won't > let me use the site past a certain point (even though the process I'm > testing with doesn't even use the changed page). I get a version lock > error. > > This is clearly a Catch-22. Is there any way out of this? This is the > first thing I've run into in the ZMI that seems to me just not to work > very well or to be documented clearly or something. I've used versions > in the past successfully, and this just has me bewildered. And my client > very angry. > > HELP!!!!!!!!!!! > Dan, first, backup your Data.fs. Second, I only can repeat something out of my memory, cause I don't have access to a zope ATM. But I see several things you can do: - In the control panel, there's also the possibility to save/discard versions, take a look there. - You can always (re-)create a version you need, because zope identifies versions only from their path, so recreating the a version with the right idea might be a possibility. - Entering version just means sending the right cookie, so you can write your own method which sends the cookie in order to enter that version. So, maybe entering that version and doing copy&paste might be a last resort. - Maybe importing/exporting might be possible, though I don't know if (how) it's possible to export versioned data. cheers, oliver From myzope@gmx.net Sun May 12 13:40:30 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Sun, 12 May 2002 14:40:30 +0200 Subject: [Zope] OpenOffice, Webdav question References: <9043724.1021188866@[192.168.1.2]> Message-ID: <3CDE62BE.6010208@gmx.net> Paul Browning wrote: >[Integrating OO/Zope through COM] > > Comments? IHMO this is a killer application for any intranet > and indeed Zope in general ....... moreover post-processing > of the so-called HTML that Word produces (dunno about Open > Office) allows such converted documents to be used in contexts > of wider visibility (so due regard can be paid to accessibility > issues, etc). Integrating OpenOffice and zope will indeed be a very cool killer application. The more I look at OO, the more I like it and think it will have a great impact. As for integration via COM, I'm no expert at this, but using UNO (OO's component model) might be the better way. Take a look at http://polysorbate.org/?work/pyuno the beginning of python bindings for UNO. I'm very excited about the possibilites which this might offer in the future, unfortunately I'm quite unfamiliar with the exotic language OO is implemented in ;-). Another remark, perhaps for OpenOffice Documents it might be worth contemplating about not going the conversion route (at least in some cases - e.g. spreadsheets), instead doing something with the files natively, it's XML afterall. cheers, oliver From gromoll@eurandom.tue.nl Sun May 12 14:15:16 2002 From: gromoll@eurandom.tue.nl (Gromoll, C.) Date: Sun, 12 May 2002 15:15:16 +0200 Subject: [Zope] Acquire/call script on object in ZPT repeat Message-ID: <81E5F727841DD211A5FD0008C728DB7B07315052@campusx1.tue.nl> Hello, I keep all my scripts in the subfolder root/scripts (is this a bad idea?). I'd like to call a particular script root/scripts/action on EACH object from the list mylist, which contains a list of folders located throughout the zope tree. I've tried variations on the following ZPT code, none of which work:

Result of calling action on object

The problem with the above is that action is called on the directory scripts, which is not what I want. How can I acquire action from each object? Any help from more experienced users would be greatly valued. Thanks! Christian From kerrb@senet.com.au Sun May 12 02:33:30 2002 From: kerrb@senet.com.au (Bill Kerr) Date: Sun, 12 May 2002 11:03:30 +0930 Subject: [Zope] image manipulation in tables References: <001601c1f838$21bd5dc0$c40e0c3f@LocalHost> <15582.8346.446848.348649@linux.local> Message-ID: <002d01c1f955$07ae89e0$d20e0c3f@LocalHost> From: "Dieter Maurer" > Bill Kerr writes: > > this code creates a table with images in the first column and captions in > > the second column > > (images from a folder called Personal) > > how could I rewrite it so images go in the first row and captions in the > > second row? > > > > > >
> > > > > > > > > > > > it seems hard to me > Not sure, what you want precisely: > > But inserting "" after the first "" would use > two rows per image. what I want is for all the images to go across the page in the first row and all the captions across the page in the second row -- actually I did work it out eventually with the help of some private mail, the solution is:
Company > NameTechName1TechName3ContactFirst > NameContactLast > NameCompany/DepartmentContactTitlePhone > NumberPHONENUMBER2PhoneNumber3Fax > NumberNotesRtenumShortName
Edit Delete
\n
> > > >
> > > > > > > >
this creates a 2 x 2 table with the caption under each picture, for two pics -- Bill > > > Dieter From samuzeau@oreka.com Sun May 12 16:11:23 2002 From: samuzeau@oreka.com (Pascal Samuzeau) Date: Sun, 12 May 2002 16:11:23 +0100 Subject: [Zope] A specific dtml-tree Message-ID: <200205121411.QAA15614@mailhub5.isdnet.net> Hi, I want to know is there is anything to do what I explain to you, or if I have to write it. I want to run a search on my indexes.When I have the answer, I want to present it as a dtml-tree, but the folders will be the key of the indexes, with the link of the ressources in it. A good news for tomorrow ??? Sincerily PS -------------------------------------------------- Oreka ! Nous sommes l'internet moins cher ! Surfez 25% moins cher avec http://www.oreka.com From maik.jablonski@uni-bielefeld.de Sun May 12 15:45:02 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: 12 May 2002 16:45:02 +0200 Subject: [Zope] Zope Newsletters Products In-Reply-To: <20020510165715.52022.qmail@web12701.mail.yahoo.com> References: <20020510165715.52022.qmail@web12701.mail.yahoo.com> Message-ID: <1021214728.1159.9.camel@localhost.zfl.uni-bielefeld.de> On Fri, 2002-05-10 at 18:57, Hamzat Kamal wrote: > Dear All, > > Kindly direct me to any available Zope Newsletters products. > > I am designing a website for a newspaper and i want interested > members to be able to receieved top stories articles in their mail > boxes. hi, you can use MailBoxer for a start: http://www.zope.org/Members/mjablonski/MailBoxer set up a moderated maillist, so only the moderator is able to send mails to the members-list. then you can call the mail_bulk-method via scripts which will send mails with your content to the members. look at the source of the dtml-mail_bulk for the exact parameters. most of it is done simply via REQUEST. for automatically subscription you can use the manage_addProperties on the MailBoxer-Folder. greetings, maik -- maik jablonski http://www.sachunterricht-online.de universitaet bielefeld http://www.zfl.uni-bielefeld.de zentrum fuer lehrerbildung tlph://+49.(0).521.106.4234 From zope@zope.org Sun May 12 17:08:47 2002 From: zope@zope.org (foohbah) Date: Sun, 12 May 2002 12:08:47 -0400 Subject: [Zope] PIL Question References: <20020512074924.66734.qmail@web14913.mail.yahoo.com> Message-ID: <3CDE938F.1020003@netscape.net> Ah. I see. To solve this, I made this very simple fakefile object: class FakeFile: ''' memory map equivalent of a real file ''' def __init__(self): self.contents = [] def write(self,s): self.contents.append(s) def read(self): return string.join(self.contents,'') and I tell PIL to write to it - the write method takes any file like object - as long as it has a write method. The code (where ldp is a PIL canvas) sort of looks like: fakef = FakeFile() ldp.writeimage(fakef,'jpeg') I then return fakef.read() from my external method as the binary image. Does that help? When you've finished, please write this up as a howto if you have time? cheers.. J. Joy wrote: > > > Ross Lazarus wrote: > > the img tag expects the server to deliver an existing image file from > somewhere. What you need to do is a little more complex (!). You COULD > write the image into a zope object (bad idea for lots of reasons - eg > zodb bloat) or to a localFS (better but still sucky) and deliver it > from > there using an img tag. AFAIK, this is the ONLY way to embed your image > into a page with text and stuff. > > This is not a problem. In the HTML example of how this is called, I may > not have shown > clearly enough that what I want to do is have the src be an object in > the same folder that > would generate this image upon calling it and the external python method > would generate > and return the image back. The part that I am having trouble with is > with the return part of > my external method. I do not know how to make it return the data of the > image that was just > generated. I can save it to a file, but I can't find a nice way of > returning the image data back > from the call. I searched for a few hours to try to find some practical > examples of perhaps > how to do this on google, but nothing came up. > > To wit, the External Call should act like a image when referenced, it's > just having "stuff" passed to > it to form the image in question. :) > > The External Call would be called like: > > > > Where MakeImage would be the External Method. > > > > > > I'm trying to create an external method that will take variables that > exist in a ZSQL call and will output an image > > > > based on that: > > > > import Image, ImageDraw, StringIO, os.path > > > > def PILtest(): > > image = Image.new('RGB',[25,25]) > > ## IMage Stuff Happens here! > > return image > > > > Where this would occur in a DTML-Method of: > > > > > > > > > > > > But I can't get PILtest to output the image itself. Save() doesn't > seem to be of help directly. Anyone have any suggestions? > > From dieter@handshake.de Sun May 12 19:39:58 2002 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 12 May 2002 20:39:58 +0200 Subject: [Zope] Acquire/call script on object in ZPT repeat In-Reply-To: <81E5F727841DD211A5FD0008C728DB7B07315052@campusx1.tue.nl> References: <81E5F727841DD211A5FD0008C728DB7B07315052@campusx1.tue.nl> Message-ID: <15582.46846.116624.404517@linux.local> Gromoll, C. writes: > ... > I'd like to call a particular script root/scripts/action on EACH > object from the list mylist, which contains a list of folders located > throughout the zope tree. I've tried variations on the following ZPT code, > none of which work: > >

>

Result of calling action on > object
>

This assumes, that the script expects "object" as argument. Dieter From cfox@crystalcherry.com Sun May 12 19:41:57 2002 From: cfox@crystalcherry.com (Colin Fox) Date: 12 May 2002 11:41:57 -0700 Subject: [Zope] ZSQL and Order By Message-ID: <1021228917.25053.9.camel@elgrande> --=-nSYO4kbyQCupqUVFBu/k Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I want to make a page that shows a list, and allow that user to click on a column of the list and sort the list by that column. It seems to me that the obvious way to do this is to re-issue the SQL command and use a different 'order by'. First - Is this actually the best way to do this kind of thing in Zope? Second - How do I create a ZSQL script that contains a variable order by? Thanks, Colin --=20 Colin Fox cfox@crystalcherry.com CF Consulting Inc. GPG Fingerprint: D8F0 84E7 E7CC 5C6C 9982 F1A7 A3EB 6EA3 BC97 572F --=-nSYO4kbyQCupqUVFBu/k Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA83rd1o+tuo7yXVy8RAt/GAKDZKZVtwlNfdDSdQ611eDQTtAzmfACfejtt tfHaheWEAKswsIu9MMrH1dQ= =7Ds9 -----END PGP SIGNATURE----- --=-nSYO4kbyQCupqUVFBu/k-- From paul.browning@bristol.ac.uk Sun May 12 20:18:14 2002 From: paul.browning@bristol.ac.uk (Paul Browning) Date: Sun, 12 May 2002 20:18:14 +0100 Subject: [Zope] OpenOffice, Webdav question In-Reply-To: <004f01c1f9a7$e41dfdf0$02010a0a@suxlap> References: <004f01c1f9a7$e41dfdf0$02010a0a@suxlap> Message-ID: <54871370.1021234693@[192.168.1.2]> --On 12 May 2002 07:26 -0400 Andreas Jung wrote: > Zope 2.6 allows to retrieve the document source through the > standard HTTP port. Check the CHANGES.txt of the trunk > for an explanation. Well I found and but I couldn't find anything on 2.6 in CVS. Got a URL that would help me? Thanks. Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ From paul.browning@bristol.ac.uk Sun May 12 20:27:32 2002 From: paul.browning@bristol.ac.uk (Paul Browning) Date: Sun, 12 May 2002 20:27:32 +0100 Subject: [Zope] OpenOffice, Webdav question In-Reply-To: <3CDE62BE.6010208@gmx.net> References: <3CDE62BE.6010208@gmx.net> Message-ID: <55429743.1021235252@[192.168.1.2]> --On 12 May 2002 14:40 +0200 Oliver Bleutgen wrote: > Integrating OpenOffice and zope will indeed be a very cool killer > application. The more I look at OO, the more I like it and think it will > have a great impact. As for integration via COM, I'm no expert at this, > but using UNO (OO's component model) might be the better way. Take a look > at > http://polysorbate.org/?work/pyuno > the beginning of python bindings for UNO. Thanks. Clearly it's about time I got closer to OpenOffice. > I'm very excited about the possibilites which this might offer in the > future, unfortunately I'm quite unfamiliar with the exotic language OO is > implemented in ;-). > > Another remark, perhaps for OpenOffice Documents it might be worth > contemplating about not going the conversion route (at least in some > cases - e.g. spreadsheets), instead doing something with the files > natively, it's XML afterall. Agreed - this is the "pure" way of doing things (Phil Harris and Joe Nicholls adopted this approach some time back - for an early version of their architecture see ) Right now, though, I think the world would be grateful for more brute force solutions that will deal with legacy Word (and other Office) documents. Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ From andreas@andreas-jung.com Sun May 12 20:46:14 2002 From: andreas@andreas-jung.com (Andreas Jung) Date: Sun, 12 May 2002 15:46:14 -0400 Subject: [Zope] OpenOffice, Webdav question References: <004f01c1f9a7$e41dfdf0$02010a0a@suxlap> <54871370.1021234693@[192.168.1.2]> Message-ID: <00cc01c1f9ed$adcbe230$02010a0a@suxlap> http://cvs.zope.org/Zope/doc/CHANGES.txt?rev=1.472&content-type=text/vnd.vie wcvs-markup ----- Original Message ----- From: "Paul Browning" To: "Andreas Jung" Cc: "zope" Sent: Sunday, May 12, 2002 15:18 Subject: Re: [Zope] OpenOffice, Webdav question > > > --On 12 May 2002 07:26 -0400 Andreas Jung wrote: > > > Zope 2.6 allows to retrieve the document source through the > > standard HTTP port. Check the CHANGES.txt of the trunk > > for an explanation. > > Well I found > > and > > but I couldn't find anything on 2.6 in CVS. > > Got a URL that would help me? Thanks. > > Paul > > -- > The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK > E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From kent@springfed.com Sun May 12 20:46:35 2002 From: kent@springfed.com (kent@springfed.com) Date: Sun, 12 May 2002 14:46:35 -0500 Subject: [Zope] OpenOffice, Webdav question In-Reply-To: <9043724.1021188866@[192.168.1.2]> Message-ID: <200205121953.g4CJrkko000327@bucky.airstreamcomm.net> I'm on Win2000 I added -W 8081 to the command line in start.bat which calls= z2.py. I now can retrieve the source of a STXDocument into OpenOffice by entering http://localhost:8081/SandBox/STXDoc I cannot save it though. I ended up using zope.vim With it I can open the Zope document, edit it in Vim, save the changes back to data.fs, I like that. It would be nice to do that transparently with OpenOffice Thanks, Kent On Sun, 12 May 2002 07:34:26 +0100, Paul Browning wrote: --On 11 May 2002 10:14 -0500 kent =A0wrote: >=A0Howdy, > >=A0Is anyone using OpenOffice 1.0 to edit Zope documents >=A0via Webdav? > >=A0The OO doc says it is Webdav capable. > >=A0In Zope doc I found mentioned that a port other >=A0than 8080 will return source of a page instead of >=A0rendered. > >=A0Is there a predefined port to return source? No - but you can set it in z2.py # Port for the special "WebDAV source view" HTTP handler. =A0There= is no # standard port for this handler, which is disabled by default. WEBDAV_SOURCE_PORT=3D[] so do something like WEBDAV_SOURCE_PORT=3D8088 Paul P.S. On a different tack, whilst I haven't looked at OpenOffice= recently, I did note from a recent thread on the python-win32 list that= OpenOffice supports COM. Tim Hicks and I have developed something called "zlave" that allows Microsoft Office docs (via XML-RPC - if you need to have a Unix box in the mix - and COM) to be automatically converted to HTML, in the manner of MSWord Munger but using kosher Word (say, rather than wvWare, which in our= experience tends to fail as the uploaded Word doc gets more complicated). Thought: if OpenOffice supports COM, perhaps one might be able to remove Microsoft Office from the architecture? (see =A0for the latter) Comments? IHMO this is a killer application for any intranet and indeed Zope in general ....... moreover post-processing of the so-called HTML that Word produces (dunno about Open Office) allows such converted documents to be used in contexts of wider visibility (so due regard can be paid to accessibility issues, etc). -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ,= UK =A0E-mail: paul.browning@bristol.ac.uk =A0URL:= http://www.bris.ac.uk/ From js@aixtraware.de Sun May 12 21:19:45 2002 From: js@aixtraware.de (Joachim Schmitz) Date: Sun, 12 May 2002 22:19:45 +0200 Subject: [Zope] Re: [Zope-Annce] ANNOUCE: Project Gideon In-Reply-To: <200205111822.g4BIMH3318998@pimout3-int.prodigy.net> References: <200205080235.g482ZvS08062@pimout2-int.prodigy.net> <35140000.1020933819@[10.2.1.1]> <200205111822.g4BIMH3318998@pimout3-int.prodigy.net> Message-ID: <15730000.1021234785@[10.2.1.1]> Hi kapil, I downloaded Gideon-0-0-4.tgz, and now I get: Site Error An error was encountered while publishing this resource. Error Type: ImportError Error Value: cannot import name BulkTxnMailer File=20 /mnt/hda3/local/ZopePark/ZopeVersions/Zope-2.5.0/lib/python/OFS/ObjectManag er.py, line 267, in _setObject (Object: AixAd) File=20 /usr/local/ZopePark/lzope.aixtraware.de/ZInstanceHome/Products/Gideon/Objec ts/Application/PythonRepository.py, line 192, in manage_afterAdd (Object: g) File=20 /usr/local/ZopePark/lzope.aixtraware.de/ZInstanceHome/Products/Gideon/Objec ts/Application/InstallationFuncs.py, line 43, in ? (Object: os) ImportError: (see above) --On Samstag, Mai 11, 2002 00:46:12 -0700 kapil thangavelu=20 wrote: > hi joachim, > > doh! looks an incomplete class name refactoring. :( > > i went ahead and replaced with a standard mail host for the moment, and > uploaded a new version after testing it on a different box (than what i > normally use for development). > > http://www.zope.org/Members/k_vertigo/Products/Gideon > > thanks > > kapil > > > On Thursday 09 May 2002 01:43 am, Joachim Schmitz wrote: >> Hi kapil, >> >> Gideon looks very promising but >> >> when I try to instanciate a python repository I get: >> >> Site Error >> An error was encountered while publishing this resource. >> Error Type: ImportError >> Error Value: cannot import name BulkTransactionalMailer > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) Mit freundlichen Gr=FC=DFen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurb=FCro f=FCr Internetanwendungen H=FCsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint =3D DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://www.keyserver.net/en/ From dbasch@yahoo.com Sun May 12 21:26:53 2002 From: dbasch@yahoo.com (Derek Basch) Date: Sun, 12 May 2002 13:26:53 -0700 (PDT) Subject: [Zope] Kinterbasdb + Firebird + Zope Q's In-Reply-To: <15582.8246.976919.413818@linux.local> Message-ID: <20020512202653.81178.qmail@web20807.mail.yahoo.com> Thanks Dieter, I think that Firebird/Interbase will meet my needs very nicely. I have spent the last day playing with it and am a bit confused on how to get the Kinterbasdb Python Extension Package and the ZFireBirdDA Product working. http://kinterbasdb.sourceforge.net/ http://www.zope.org/Members/philh/ZFireBirdDA I have programmed python for about 3 months and this is the first I have had to use an Extension Package. The kinterbasdb Extension has source and binary distributions. The binary dist looks in the registry for a python installation so it wont work for zope (Im guessing). What is the best way to install the source dist with Zope? When I attempt to complile the source dist using zopes python interpreter (Zope\bin) I get this error: COMPILER CONFIGURATION ERROR: Unable to create a Borland-compatible Python library file using the coff2omf utility. Tried command: coff2omf C:\PROGRA~1\TelOnyx\bin\libs\python21.lib C:\PROGRA~1\TelOnyx\bin\l ibs\python21_bcpp.lib Thanks Again, Derek Basch --- Dieter Maurer wrote: > Derek Basch writes: > > How about for large amounts (500,000?) of small > > records that never change after they are created? > > I would go for a relational database: > > better search support, > probably faster searches, > no need for specialized products (e.g. > BTreeFolder) __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com From robin-dated-1021494491.9572ae@socha.net Sun May 12 21:32:47 2002 From: robin-dated-1021494491.9572ae@socha.net (Robin S. Socha) Date: Sun, 12 May 2002 15:32:47 -0500 Subject: [Zope] Re: OpenOffice, Webdav question In-Reply-To: <200205121953.g4CJrkko000327@bucky.airstreamcomm.net> ('s message of "Sun, 12 May 2002 14:46:35 -0500") References: <200205121953.g4CJrkko000327@bucky.airstreamcomm.net> Message-ID: * Anonymous Coward writes: > I'm on Win2000 Sounds like "I'm on speed" except that speed and Windows are mutually exclusive. [...] > It would be nice to do that transparently with OpenOffice I love OpenOffice - don't get me wrong. But why would one want to do that? Does not a specialized editor do a better job? Since you're using vim, you might upgrade to Emacs and enjoy dtml-mode... http://www.zope.org/Members/alburt/dtml_mode.html From dirk.datzert@rasselstein-hoesch.de Sun May 12 21:59:22 2002 From: dirk.datzert@rasselstein-hoesch.de (Dirk Datzert) Date: Sun, 12 May 2002 22:59:22 +0200 Subject: [Zope] LDAPUserFolder Message-ID: <3CDED7AA.D81917BD@rasselstein-hoesch.de> Hi Jens, I thought today about group to role mapping and the zope roles Anonymous and Authenticated. Am I right that Authenticated will be assigned if an user successfully validates against the LDAP server ? Do you think it is possible in LDAPUserFolder / LDAPRoleTwiddler to assign Authenticated only if an user is a member of a special LDAP group ? I came about this point while I develop our intranet with EasyPublisher which has the 4 standard zope roles + 2 roles for workflow and content management: Anonymous, Authenticated, Manager, Owner + Author & Reviewer If I want to restrict visitors on a special folder to view only public material this will be done via standard zope mechanism. If I want to allow a special group on authenticated users to access non public material I have a problem: I want to use standard zope mechanism (like skip_unauthorized). Authenticated users will get the role Authenticated. I can't differ between Authenticated users which have the rights to access the material an Authenticated users which aren't allowed to view the material. One qway out would be the definition of a new role, name it 'Viewer'. But then I have to programm special Role behaviour like ... If I could use the skip_unauthorized feature this would be more general. A possibility to say in LDAPRoleTwiddler something like: If not member of LDAP-group x than not role y. Can you give me your point of view ? Regards, Dirk From hya-zope@bluesite.com Sun May 12 23:19:32 2002 From: hya-zope@bluesite.com (HoYin Au) Date: Sun, 12 May 2002 18:19:32 -0400 Subject: [Zope] Zope Sighting Message-ID: <3CDEEA74.2090609@bluesite.com> http://wbz4.com/homepage/ That's pretty cool... WBZ 4 is one of Boston's 3 major stations :) From quentins@comclub.dyndns.org Sun May 12 23:31:57 2002 From: quentins@comclub.dyndns.org (Quentin Smith) Date: Sun, 12 May 2002 18:31:57 -0400 Subject: [Zope] Zope Sighting In-Reply-To: <3CDEEA74.2090609@bluesite.com> Message-ID: <11AF9312-65F8-11D6-BB16-0003936A1410@comclub.dyndns.org> BTW, if you aren't convinced - http://wbz4.com/homepage/manage . Notice the Realm. ;) --Quentin On Sunday, May 12, 2002, at 06:19 PM, HoYin Au wrote: > http://wbz4.com/homepage/ > > That's pretty cool... WBZ 4 is one of Boston's 3 major stations :) From myzope@gmx.net Mon May 13 00:05:56 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Mon, 13 May 2002 01:05:56 +0200 Subject: [Zope] Zope Sighting References: <11AF9312-65F8-11D6-BB16-0003936A1410@comclub.dyndns.org> Message-ID: <3CDEF554.6060304@gmx.net> Quentin Smith wrote: > BTW, if you aren't convinced - http://wbz4.com/homepage/manage . Notice > the Realm. ;) > --Quentin > > On Sunday, May 12, 2002, at 06:19 PM, HoYin Au wrote: > >> http://wbz4.com/homepage/ >> >> That's pretty cool... WBZ 4 is one of Boston's 3 major stations :) Well, you might just look at the bottom left logo on the homepage - I hope it isn't rotating, anyway, press reload till you see something familiar ;-) Btw., my instinct tells me this page might be slightly related to the often mentioned cbsnewyork.com. Just load both in two browser windows and compare ;). But it's nice to see some more exposure like that. cheers, oliver From george@ellenburg.org Mon May 13 00:02:29 2002 From: george@ellenburg.org (George M. Ellenburg) Date: Sun, 12 May 2002 19:02:29 -0400 Subject: [Zope] Zope Sighting Message-ID: <200205121902.29687@athlon> On Sunday 12 May 2002 06:19 pm, HoYin Au wrote: > http://wbz4.com/homepage/ > > That's pretty cool... WBZ 4 is one of Boston's 3 major stations :) >From Netcraft: "The site wbz4.com is running Zope/(unreleased version) ZServer/1.1b1 on Linux." -- George M. Ellenburg 3 Years and counting of being 100% Microsoft-free; and much more productive. Proud user of ASK , the Active Spam Killer! --- There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another theory which states that this has already happened. -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy" From george@ellenburg.org Mon May 13 00:07:25 2002 From: george@ellenburg.org (George M. Ellenburg) Date: Sun, 12 May 2002 19:07:25 -0400 Subject: [Zope] Zope Sighting In-Reply-To: <200205121902.29687@athlon> References: <200205121902.29687@athlon> Message-ID: <200205121907.25422@athlon> On Sunday 12 May 2002 07:02 pm, George M. Ellenburg wrote: > On Sunday 12 May 2002 06:19 pm, HoYin Au wrote: > > http://wbz4.com/homepage/ > > > > That's pretty cool... WBZ 4 is one of Boston's 3 major stations :) > > From Netcraft: > > > "The site wbz4.com is running Zope/(unreleased version) ZServer/1.1b1 on > Linux." Also from Netcraft (and the same Netblock where WBZ is hosted from): 24 www.wcco.com 99 247 21 Linux Zope/(unreleased version) ZServer/1.1b1 35 www.kdka.com 45 167 26 Linux Zope/(unreleased version) ZServer/1.1b1 49 1010wins.com 29 95 27 Linux Zope/(unreleased version) ZServer/1.1b1 50 www.paramountstations.com 29 105 27 Linux Zope/(unreleased version) ZServer/1.1b1 Funny, of the 50 sites listed, maybe 4 are running Windows. Hmmm. ;-) -- George M. Ellenburg 3 Years and counting of being 100% Microsoft-free; and much more productive. Proud user of ASK , the Active Spam Killer! --- Good leaders being scarce, following yourself is allowed. From hya-zope@bluesite.com Mon May 13 00:38:21 2002 From: hya-zope@bluesite.com (HoYin Au) Date: Sun, 12 May 2002 19:38:21 -0400 Subject: [Zope] Zope Sighting References: <200205121902.29687@athlon> <200205121907.25422@athlon> Message-ID: <3CDEFCED.6050505@bluesite.com> Wow... it looks like all the sites listed on www.paramountstations.com are powered by Zope! -Hoyin George M. Ellenburg wrote: >On Sunday 12 May 2002 07:02 pm, George M. Ellenburg wrote: > > >>On Sunday 12 May 2002 06:19 pm, HoYin Au wrote: >> >> >>>http://wbz4.com/homepage/ >>> >>>That's pretty cool... WBZ 4 is one of Boston's 3 major stations :) >>> >>> >>From Netcraft: >> >> >>"The site wbz4.com is running Zope/(unreleased version) ZServer/1.1b1 on >>Linux." >> >> > >Also from Netcraft (and the same Netblock where WBZ is hosted from): > >24 www.wcco.com 99 247 21 Linux Zope/(unreleased version) >ZServer/1.1b1 > >35 www.kdka.com 45 167 26 Linux Zope/(unreleased version) >ZServer/1.1b1 > >49 1010wins.com 29 95 27 Linux Zope/(unreleased version) >ZServer/1.1b1 > >50 www.paramountstations.com 29 105 27 Linux Zope/(unreleased >version) ZServer/1.1b1 > >Funny, of the 50 sites listed, maybe 4 are running Windows. Hmmm. ;-) > > > From fg@nuxeo.com Mon May 13 01:10:48 2002 From: fg@nuxeo.com (Florent Guillaume) Date: Mon, 13 May 2002 00:10:48 +0000 (UTC) Subject: [Zope] two submit buttons/ one method References: <178740144.20020509122734@funcom.com> Message-ID: Please don't do that. It's a maintenance nightmare, an internationalization nightmare, and an ugly design to boot. Use the :method idiom, it's designed to that. Florent John Hunter wrote: > Geir> > Geir> > Geir> > > Neat idea. At first I balked because the value is also the text for > the variable, and I wanted one the button's to say something like > > 'Update Form' with somevar=0 > 'Add event' with somevar=1 > > But I realize that I can process these in the add function, with > > if somevar=='Update Form': > somevar=0 > elif somevar=='Add Event': > somevar=1 > else: > raise 'Did you change the value of your add form buttons and forget to > change your add function again?' > > Not the cleanest design, because if you want to change the text of the > button you have to remember to change your add form, but it should > work. -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com From jens@zope.com Mon May 13 01:14:32 2002 From: jens@zope.com (Jens Vagelpohl) Date: Sun, 12 May 2002 20:14:32 -0400 Subject: [Zope] Re: LDAPUserFolder In-Reply-To: <3CDED7AA.D81917BD@rasselstein-hoesch.de> Message-ID: <660497D4-6606-11D6-BE02-003065C7DEAE@zope.com> as far as the Authenticated role goes, it is never something you should assign programmatically in your own code. Authenticated is a role that generically says "this user is not just anonymous", and that's all. it is not supposed to be assigned by third-party code. i won't put any code into my products that allows the user to do so, either. what is the problem with using the standard zope mechanisms? creating a specific role in zope and maybe mapping some LDAP group to it should do the job. jens On Sunday, May 12, 2002, at 04:59 , Dirk Datzert wrote: > Hi Jens, > > I thought today about group to role mapping and the zope roles > Anonymous and Authenticated. > > Am I right that Authenticated will be assigned if an user successfully > validates against the LDAP server ? > > Do you think it is possible in LDAPUserFolder / LDAPRoleTwiddler to > assign > Authenticated only if an user is a member of a special LDAP group ? > > I came about this point while I develop our intranet with EasyPublisher > which > has the 4 standard zope roles + 2 roles for workflow and content > management: > > Anonymous, Authenticated, Manager, Owner + Author & Reviewer > > If I want to restrict visitors on a special folder to view only public > material this will be done via standard zope mechanism. > > If I want to allow a special group on authenticated users to access > non public material I have a problem: > > I want to use standard zope mechanism (like skip_unauthorized). > Authenticated users will get the role Authenticated. > I can't differ between Authenticated users which have the rights > to access the material an Authenticated users which aren't allowed > to view the material. > > One qway out would be the definition of a new role, name it 'Viewer'. > But then I have to programm special Role behaviour like > > ... > > > If I could use the skip_unauthorized feature this would be more general. > > A possibility to say in LDAPRoleTwiddler something like: > If not member of LDAP-group x than not role y. > > Can you give me your point of view ? > > Regards, > Dirk From allison@sumeru.stanford.EDU Mon May 13 02:16:07 2002 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Sun, 12 May 2002 18:16:07 -0700 (PDT) Subject: [Zope] Using Dieter's Dispatcher In-Reply-To: <15582.8559.111819.766148@linux.local> Message-ID: Dieter, Your dispatcher product looks perfect for one of my applications. I've downloaded it and installed it, but am having a bit of trouble getting it to work. An example in the docs might have helped... In my testbed to test the product, I have a single form with 3 text fieldsi implemented as a DTML method, basically three HTML input statments wrapped in a form with a submit button. The form's action references the dispatcher. I call the form "forma" and the dispatcher "doform". I have a python script, formadesc, that returns a list of dictionaries, one per form variable giving name, initial value, fixed, permananent, and dtype per the documentation. Everything else is left to default. I created a Session Data Manager object called FSSession. The bindings of forma and formadesc and FSSession are done throuygh the manage interface. Using the doform is the dispatcher instance, should create new object (forma instance) and render it. is used to save variables in the session object and then dispatch to an object with the format (.*)__disp(.[x]])? found somewhere in the form. (A bit more explantion and and example would help here....) Is my understanding of how to use the product correct? I think I am missing something fundamental as the small example I put together fails with an attribute error in _setup. -d From kent@springfed.com Mon May 13 05:28:16 2002 From: kent@springfed.com (kent@springfed.com) Date: Sun, 12 May 2002 23:28:16 -0500 Subject: [Zope] Tables in STXDocument Message-ID: <200205130435.g4D4ZQko005865@bucky.airstreamcomm.net> Howdy, When I put the example from ClassicStructuredText.py; |||| **Ingredients** || || *Name* || *Amount* || ||Spam||10|| ||Eggs||3|| into an STXDocument, it doesn't render as a table. What am I doing wrong? Thanks, Kent From paul.browning@bristol.ac.uk Mon May 13 05:58:47 2002 From: paul.browning@bristol.ac.uk (Paul Browning) Date: Mon, 13 May 2002 05:58:47 +0100 Subject: [Zope] OpenOffice, Webdav question In-Reply-To: <00cc01c1f9ed$adcbe230$02010a0a@suxlap> References: <00cc01c1f9ed$adcbe230$02010a0a@suxlap> Message-ID: <89702966.1021269527@[192.168.1.2]> --On 12 May 2002 15:46 -0400 Andreas Jung wrote: > http://cvs.zope.org/Zope/doc/CHANGES.txt?rev=1.472&content-type=text/vnd.vi ewcvs-markup which points to ENVIRONMENT.txt, which in turn reveals: WEBDAV_SOURCE_PORT_CLIENTS Setting this variable enables the retrieval of the document source through the standard HTTP port instead of the WebDAV port. The value of this variable is a regular expression that is matched against the user-agent string of the client. Example:: WEBDAV_SOURCE_PORT_CLIENTS="cadaver.*" enables retrieval of the document source for the Cadaver WebDAV client Joy! Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ From robert@redcor.ch Mon May 13 06:28:00 2002 From: robert@redcor.ch (Robert Rottermann) Date: Mon, 13 May 2002 07:28:00 +0200 Subject: [Zope] Tables in STXDocument References: <200205130435.g4D4ZQko005865@bucky.airstreamcomm.net> Message-ID: <003401c1fa3e$f287b1a0$6ec4a2d9@karin> I found out that table are better done using "classic" html. Both, the STX and the html approach are ugly. At leas the later works, and gives you control how the table should look like. robert ----- Original Message ----- From: To: Sent: Monday, May 13, 2002 6:28 AM Subject: [Zope] Tables in STXDocument Howdy, When I put the example from ClassicStructuredText.py; |||| **Ingredients** || || *Name* || *Amount* || ||Spam||10|| ||Eggs||3|| into an STXDocument, it doesn't render as a table. What am I doing wrong? Thanks, Kent _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From dsantner@datasolutions.at Mon May 13 06:18:08 2002 From: dsantner@datasolutions.at (dorian santner) Date: Mon, 13 May 2002 07:18:08 +0200 Subject: [Zope] automatic dtml-methods Message-ID: in a product i 'd like to create automated DTML-Methods, i do do this by: >')"> How can i use " " in FieldChangeitem_body ? what i need is to set the DTML-Method which needs "" as characters in the method but i can not set the ", i tried /" and i tried < Help! From uwe@schuerkamp.de Mon May 13 08:08:15 2002 From: uwe@schuerkamp.de (Uwe Schuerkamp) Date: Mon, 13 May 2002 09:08:15 +0200 Subject: [Zope] obtaining properties from next / previous batch sequence-item? In-Reply-To: References: <20020508073035.GE22369@nionex.net> Message-ID: <20020513070814.GA9893@nionex.net> On Wed, May 08, 2002 at 09:04:25AM -0500, John Hunter wrote: > >>>>> "Uwe" == Uwe Schuerkamp writes: > > Uwe> Hi folks, I am looking for an easy way to access properties > Uwe> from previous or next objects in a -generated batch > Uwe> output. > > See the section 'Batch Processing With The In Tag' in the chapter > 'Variables and Advanced DTML' in The Zope Book. > > http://www.zope.org/Documentation/ZopeBook/AdvDTML.stx > > The Appendix A of that book, in the DTML reference of the 'in' > tag, gives you further information > > http://www.zope.org/Documentation/ZopeBook/AppendixA.stx > > John Hunter Hi John, thanks for your pointers. I know extract the title attribute by iterating using something like this: Previous:
  Next: While this works it looks rather clumsy, and I guess there must be a more elegant solution to this problem, no? Thanks in advance, Uwe -- Uwe Schuerkamp Tel: +49 (0)5241 / 80 10 66, FAX: - / 6 23 38 Uwe.Schuerkamp@nionex.net Nionex GmbH, IWN5 (http://www.nionex.de/) GnuPG KeyID: 5887047D Avenwedder Str. 55, 33311 Guetersloh GnuPG Fingerprint: 2E 13 20 22 9A 3F 63 7F 67 6F E9 B1 A8 36 A4 61 From cschm@gmx.de Mon May 13 08:12:55 2002 From: cschm@gmx.de (Christoph Schmitz) Date: Mon, 13 May 2002 09:12:55 +0200 (MEST) Subject: [Zope] Using Zope to generate offline content Message-ID: <17499.1021273975@www2.gmx.net> Hi all, I wonder if anyone uses Zope to generate "offline" content; what I mean is, I'd like to use Zope to manage content, generate navigation stuff and the like, but my ISP only offers static HTML pages. Thus, the idea is to export a Zope site to static HTML pages and publish those. (Actually, I'm looking for a replacement for the Website Meta Language (WML).) My question is: what kind of problems arise in that situation? Obviously, you won't be able to use dynamic features like database access or dtml-trees. Is there any Product that allows me to export a whole subtree of my Zope instance into HTML files? Of course, one could use wget to crawl the Zope instance, but then absolute links etc. would break, etc... Advice anyone? Thanks, Christoph -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net From kthangavelu@earthlink.net Mon May 13 08:40:37 2002 From: kthangavelu@earthlink.net (kapil thangavelu) Date: Mon, 13 May 2002 00:40:37 -0700 Subject: [Zope] ZSQL and Order By In-Reply-To: <1021228917.25053.9.camel@elgrande> References: <1021228917.25053.9.camel@elgrande> Message-ID: <200205130724.g4D7OpB07114@pimout1-int.prodigy.net> there are a couple different ways to achieve the desired results which is a client sorted result list. - use javascript and sort the table on the client side. less load and faster... not so great on the internet where people might turn javascript. - sort the result set in zope using the sort functionality (dtml-in takes a sort attribute) or the sequence.sort in zpt (not sure of the exact name). this has the minor downside of additional processing in zope. - (answering the question ;-) using an order by in the zsql method. make a variable order_by, that gets set in the REQUEST, pick some default value if none is supplied. please be sure of its contents before passing it into the zsql method (otherwise it would be real easy to cause some mischief), use a dtml-var to insert the variable at the end of the order by clause in the zsql method. probably need to add it to the args list as well. hth -kapil On Sunday 12 May 2002 11:41 am, Colin Fox wrote: > I want to make a page that shows a list, and allow that user to click on > a column of the list and sort the list by that column. > > It seems to me that the obvious way to do this is to re-issue the SQL > command and use a different 'order by'. > > First - Is this actually the best way to do this kind of thing in Zope? > Second - How do I create a ZSQL script that contains a variable order > by? > > Thanks, > Colin From jmeile@hotmail.com Sun May 12 09:56:30 2002 From: jmeile@hotmail.com (Josef Meile) Date: Sun, 12 May 2002 10:56:30 +0200 Subject: [Zope] Strange Data.fs files Message-ID: Hi, Does anybody know why Zope creates files like Data.fs.tr16? In this moment I've 16 files, every one with a different number after "tr" and I don't know wheter I can or not erase them. Thanks in advanced, Josef. From burt@dfki.de Mon May 13 10:34:36 2002 From: burt@dfki.de (Alastair Burt) Date: 13 May 2002 11:34:36 +0200 Subject: [Zope] OpenOffice, Webdav question In-Reply-To: <004f01c1f9a7$e41dfdf0$02010a0a@suxlap> References: <9043724.1021188866@[192.168.1.2]> <004f01c1f9a7$e41dfdf0$02010a0a@suxlap> Message-ID: "Andreas Jung" writes: > Zope 2.6 allows to retrieve the document source through the > standard HTTP port. Check the CHANGES.txt of the trunk > for an explanation. Can this method distingusih between Mozilla / Netscape Navigator and Mozilla / Netscape Composer? --- Alastair --=20 --- ---- Alastair Burt German Centre for AI (DFKI), Stuhlsatzenhausweg 3 Saarbr=FCcken 66123, Germany=20=09=09=09=09=09=09 Email: burt@dfki.de Tel: +49 681 302 2565 Fax: +49 681 302 2235 http://dfki.de/aswad From andreas@andreas-jung.com Mon May 13 11:07:20 2002 From: andreas@andreas-jung.com (Andreas Jung) Date: Mon, 13 May 2002 06:07:20 -0400 Subject: [Zope] OpenOffice, Webdav question References: <9043724.1021188866@[192.168.1.2]><004f01c1f9a7$e41dfdf0$02010a0a@suxlap> Message-ID: <022a01c1fa65$f8e6a2f0$02010a0a@suxlap> It checks for the useragent string. -aj ----- Original Message ----- From: "Alastair Burt" To: Sent: Monday, May 13, 2002 05:34 Subject: Re: [Zope] OpenOffice, Webdav question "Andreas Jung" writes: > Zope 2.6 allows to retrieve the document source through the > standard HTTP port. Check the CHANGES.txt of the trunk > for an explanation. Can this method distingusih between Mozilla / Netscape Navigator and Mozilla / Netscape Composer? --- Alastair -- --- ---- Alastair Burt German Centre for AI (DFKI), Stuhlsatzenhausweg 3 Saarbrücken 66123, Germany Email: burt@dfki.de Tel: +49 681 302 2565 Fax: +49 681 302 2235 http://dfki.de/aswad _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From andreas@andreas-jung.com Mon May 13 11:09:14 2002 From: andreas@andreas-jung.com (Andreas Jung) Date: Mon, 13 May 2002 06:09:14 -0400 Subject: [Zope] Tables in STXDocument References: <200205130435.g4D4ZQko005865@bucky.airstreamcomm.net> Message-ID: <023d01c1fa66$3c6dc6c0$02010a0a@suxlap> Because Zope does not longer use ClassicStructuredText to render tables. See the docs for STXNG how to build tables. -aj ----- Original Message ----- From: To: Sent: Monday, May 13, 2002 00:28 Subject: [Zope] Tables in STXDocument Howdy, When I put the example from ClassicStructuredText.py; |||| **Ingredients** || || *Name* || *Amount* || ||Spam||10|| ||Eggs||3|| into an STXDocument, it doesn't render as a table. What am I doing wrong? Thanks, Kent _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) From dm@petamem.com Mon May 13 11:42:33 2002 From: dm@petamem.com (Dan Meszaros) Date: Mon, 13 May 2002 12:42:33 +0200 (CEST) Subject: [Zope] what is the python's 'self' equivalent in dtml? Message-ID: hi, i'm trying to do recursion in dtml, my first try was
but i don't know how to say 'self' in dtml (those three question-marks in getattr). can someone help? -dm From maxm@mxm.dk Mon May 13 12:02:59 2002 From: maxm@mxm.dk (Max M) Date: Mon, 13 May 2002 13:02:59 +0200 Subject: [Zope] Using Zope to generate offline content References: <17499.1021273975@www2.gmx.net> Message-ID: <3CDF9D63.2080409@mxm.dk> Christoph Schmitz wrote: >My question is: what kind of problems arise in that situation? Obviously, >you won't be able to use dynamic features like database access or dtml-trees. >Is there any Product that allows me to export a whole subtree of my Zope >instance into HTML files? Of course, one could use wget to crawl the Zope >instance, but then absolute links etc. would break, etc... > I would most certainly use wget and then make shure thet my links would not break. It's very easy once it is set up, and it scales almost indefenitely. regards Max m From Dirk.Datzert@rasselstein-hoesch.de Mon May 13 12:03:44 2002 From: Dirk.Datzert@rasselstein-hoesch.de (Dirk Datzert) Date: Mon, 13 May 2002 13:03:44 +0200 Subject: [Zope] what is the python's 'self' equivalent in dtml? References: Message-ID: <005901c1fa6d$d91759d0$3e28011c@rag2> Hi, as far as I know it is called "this()" Regards Dirk ----- Original Message -----=20 From: "Dan Meszaros" To: Sent: Monday, May 13, 2002 12:42 PM Subject: [Zope] what is the python's 'self' equivalent in dtml? > hi, >=20 > i'm trying to do recursion in dtml, my first try was >=20 > > ">
> > > >
>=20 > but i don't know how to say 'self' in dtml (those three question-marks = in getattr). > can someone help? >=20 > -dm >=20 >=20 >=20 >=20 > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists -=20 > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) >=20 From hans@beehive.de Mon May 13 13:10:41 2002 From: hans@beehive.de (hans) Date: Mon, 13 May 2002 13:10:41 +0100 Subject: [Zope] what is the python's 'self' equivalent in dtml? References: Message-ID: <3CDFAD41.CA8727BB@beehive.de> Dan Meszaros wrote: > hi, > > i'm trying to do recursion in dtml, my first try was > > >
> > > >
> > but i don't know how to say 'self' in dtml (those three question-marks in getattr). > can someone help? check http://www.zope.org/Documentation/ZopeBook/AppendixB.stx for this() -- ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From wgarcia@esrf.fr Mon May 13 12:20:07 2002 From: wgarcia@esrf.fr (William GARCIA) Date: Mon, 13 May 2002 13:20:07 +0200 Subject: [Zope] Upload Photo objects in a localFS Message-ID: <5.1.0.14.1.20020513132001.00add438@mailserv.esrf.fr> --=====================_1141741921==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed I have a local file system named images. I would like to write-in photo objects. When I write an Image object with there is no problem, but when I try to write a Photo object with Zope generate the next error : Error Type: Bad Request Error Value: Cannot add objects of type 'Photo' to local directories. Traceback (innermost last): File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 114, in publish File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: recherche_indexation_mysql) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 98, in publish File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: 5addImageLFS) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: 5addImageLFS) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 127, in __call__ (Object: 5addImageLFS) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: 5addImageLFS) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.py, line 76, in render (Object: images) File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: manage_addProduct['Photo'].manage_addPhoto(id_img, '', file)) (Info: id_img) File , line 2, in f File /zope/web/Products/Photo/Photo.py, line 655, in manage_addPhoto File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 547, in _setObject (Object: images) File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 571, in _safe_setOb (Object: images) File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 586, in _setOb (Object: images) Bad Request: (see above) The problem is certainly due to the fact contrarily to Image, the Photo product isn't included in the local file system properties If someone know how to include the Photo product in the localFS properties, I'm sincerely interested. Thanks in advance for the help or the ideas you can give to me. William. --=====================_1141741921==_.ALT Content-Type: text/html; charset="us-ascii" I have a local file system named images.
I would like to write-in photo objects.
When I write an Image object with
<dtml-with images>
  <dtml-call "manage_addProduct['OFSP'].manage_addImage(REQUEST['id_img'],file,'')">
 </dtml-with>
there is no problem, but when I try to write a Photo object with
<dtml-with images>
  <dtml-call expr="manage_addProduct['Photo'].manage_addPhoto(id_img, '', file)">
 </dtml-with>

Zope generate the next error :
Error Type: Bad Request
Error Value: Cannot add objects of type 'Photo' to local directories.

Traceback (innermost last):
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 150, in publish_module
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 114, in publish
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook
    (Object: recherche_indexation_mysql)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 98, in publish
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 88, in mapply
    (Object: 5addImageLFS)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 39, in call_object
    (Object: 5addImageLFS)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 127, in __call__
    (Object: 5addImageLFS)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__
    (Object: 5addImageLFS)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_With.py, line 76, in render
    (Object: images)
  File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval
    (Object: manage_addProduct['Photo'].manage_addPhoto(id_img, '', file))
    (Info: id_img)
  File <string>, line 2, in f
  File /zope/web/Products/Photo/Photo.py, line 655, in manage_addPhoto
  File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 547, in _setObject
    (Object: images)
  File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 571, in _safe_setOb
    (Object: images)
  File /zope/Zope-2.4.3-solaris-2.6-sparc/lib/python/Products/LocalFS/LocalFS.py, line 586, in _setOb
    (Object: images)
Bad Request: (see above)


The problem is certainly due to the fact contrarily to Image, the Photo product isn't included in the local file system properties
If someone know how to include the Photo product in the localFS properties, I'm sincerely interested.
Thanks in advance for the help or the ideas you can give to me.
William.
--=====================_1141741921==_.ALT-- From burt@dfki.de Mon May 13 12:36:44 2002 From: burt@dfki.de (Alastair Burt) Date: 13 May 2002 13:36:44 +0200 Subject: [Zope] OpenOffice, Webdav question In-Reply-To: <022a01c1fa65$f8e6a2f0$02010a0a@suxlap> References: <9043724.1021188866@[192.168.1.2]> <004f01c1f9a7$e41dfdf0$02010a0a@suxlap> <022a01c1fa65$f8e6a2f0$02010a0a@suxlap> Message-ID: "Andreas Jung" writes: > It checks for the useragent string. > -aj > ----- Original Message ----- > From: "Alastair Burt" > To: > Sent: Monday, May 13, 2002 05:34 > Subject: Re: [Zope] OpenOffice, Webdav question > > > "Andreas Jung" writes: > > > Zope 2.6 allows to retrieve the document source through the > > standard HTTP port. Check the CHANGES.txt of the trunk > > for an explanation. > > Can this method distingusih between Mozilla / Netscape Navigator and > Mozilla / Netscape Composer? Then I think the answer must be no. The following looks the same in Navigator and Composer: --- Alastair From k_hamzat@yahoo.com Mon May 13 12:43:27 2002 From: k_hamzat@yahoo.com (Hamzat Kamal) Date: Mon, 13 May 2002 04:43:27 -0700 (PDT) Subject: Fwd: Re: [Zope] Zope Newsletters Products Message-ID: <20020513114327.34595.qmail@web12708.mail.yahoo.com> --- Hamzat Kamal wrote: > Date: Mon, 13 May 2002 04:28:17 -0700 (PDT) > From: Hamzat Kamal > Subject: Re: [Zope] Zope Newsletters Products > To: Maik Jablonski > > > hi, > > > > you can use MailBoxer for a start: > > > > http://www.zope.org/Members/mjablonski/MailBoxer > > > > set up a moderated maillist, so only the moderator is able to > send > > mails > > to the members-list. then you can call the mail_bulk-method via > > scripts > > which will send mails with your content to the members. > > > > look at the source of the dtml-mail_bulk for the exact > parameters. > > most > > of it is done simply via REQUEST. > > > > for automatically subscription you can use the > manage_addProperties > > on > > the MailBoxer-Folder. > > > > greetings, maik > > Hi maik, > > After extracting the MailBoxers-1.20422.tgz, what I got was a > single > file Mailboxers-1.20422. > > I have a zope server running on win 98. > > 1. where in my zope server will I place this file > (Mailboxers-1.20422.) for it to appear in the list of objects in > the > workspace. > > 2. In your Read me text file, here I want some clarifications:- > > " What do I have to do to use a MailBoxer? > If you want to use a MailBoxer, you must first install the > gateway-script smtp2zope.py as root in a location of the mailserver > where your MTA can execute it". > > - where can I get this file(smtp2zope.py ) > > - Does this means that I have to install a mailserver software > seperately before I can use MailBoxers on zope. > > Kindly assist. I am anxious to hear from you. ===== Hamzat kamaldeen Ishola Dnet Systems Limited 223 Ikorodu Road, Lagos. Nigeria. 234 1 7749381, 234 08033011305 __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com From TilleA@rki.de Mon May 13 12:40:45 2002 From: TilleA@rki.de (Tille, Andreas) Date: Mon, 13 May 2002 13:40:45 +0200 (CEST) Subject: [Zope] Building SQL statements dynamically Message-ID: Hello, I have to port a complex database application which has no fix SQL statements. The user builds the statement while interacting with some menus and after having done some selections a database query is builded depending from several options. Any hint how this can be performed using Zope? Kind regards Andreas. From jens@zope.com Mon May 13 12:44:59 2002 From: jens@zope.com (Jens Vagelpohl) Date: Mon, 13 May 2002 07:44:59 -0400 Subject: [Zope] Strange Data.fs files In-Reply-To: Message-ID: those are created when zope is not cleanly shut down and has broken records in the ZODB. upon startup those records get snipped off the ZODB and saved into a file. you can safely delete them. jens On Sunday, May 12, 2002, at 04:56 , Josef Meile wrote: > Hi, > Does anybody know why Zope creates files like Data.fs.tr16? > In this moment I've 16 files, every one with a different number > after "tr" and I don't know wheter I can or not erase them. > > Thanks in advanced, > Josef. > From maik.jablonski@uni-bielefeld.de Mon May 13 13:56:49 2002 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: 13 May 2002 14:56:49 +0200 Subject: Fwd: Re: [Zope] Zope Newsletters Products In-Reply-To: <20020513114327.34595.qmail@web12708.mail.yahoo.com> References: <20020513114327.34595.qmail@web12708.mail.yahoo.com> Message-ID: <1021294610.1159.31.camel@localhost.zfl.uni-bielefeld.de> > > Hi maik, > > > > After extracting the MailBoxers-1.20422.tgz, what I got was a > > single > > file Mailboxers-1.20422. > > > > I have a zope server running on win 98. > > > > 1. where in my zope server will I place this file > > (Mailboxers-1.20422.) for it to appear in the list of objects in > > the > > workspace. it's a problem of some windows unzip-programs. rename the file from .tgz to .tar.gz. then you will get a regular product...;-) > > 2. In your Read me text file, here I want some clarifications:- > > > > " What do I have to do to use a MailBoxer? > > If you want to use a MailBoxer, you must first install the > > gateway-script smtp2zope.py as root in a location of the mailserver > > where your MTA can execute it". > > > > - where can I get this file(smtp2zope.py ) see above... > > - Does this means that I have to install a mailserver software > > seperately before I can use MailBoxers on zope. yes, you need a mail-server for mailboxer. maybe you can install the "smtp2zope.py" on an existing mailserver and submit the mails to your zope on your windows box. i've heard that some people run MailBoxer under Windows with some commercial mail-servers. I only work with linux, so I've no experience with windows-servers at all. greetings, maik. -- maik jablonski http://www.sachunterricht-online.de universitaet bielefeld http://www.zfl.uni-bielefeld.de zentrum fuer lehrerbildung tlph://+49.(0).521.106.4234 From gilles@objectis.net Mon May 13 14:22:44 2002 From: gilles@objectis.net (Gilles Lenfant) Date: Mon, 13 May 2002 15:22:44 +0200 Subject: [Zope] "To: undisclosed recipient;:" when sending mail through a script !!! Message-ID: <047701c1fa81$454c2d70$0601a8c0@provence> Hi, My app sends mail through a python script like this... body =3D "blah blah body" title =3D "blah blah title" mh =3D container.mailhost_list()[0] mh.send(body, mto=3D'me@somedomain.com', mfrom=3D'mailmaster@somedomain.com', subject=3Dtitle, encoding=3D'quoted-printable') return 'OK' This works but the mail has not the excepted "to" header and shows... "To: undisclosed-recipients: ;" This is pretty unfair in the mail client. Did I miss something to have the "mto" parameter of the .send() method = in the "To:" header of the mail ? Thanks in advance --Gilles From jdhunter@ace.bsd.uchicago.edu Mon May 13 14:22:27 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 13 May 2002 08:22:27 -0500 Subject: [Zope] Strange Data.fs files In-Reply-To: (Jens Vagelpohl's message of "Mon, 13 May 2002 07:44:59 -0400") References: Message-ID: >>>>> "Jens" == Jens Vagelpohl writes: Jens> those are created when zope is not cleanly shut down and has Jens> broken records in the ZODB. upon startup those records get Jens> snipped off the ZODB and saved into a file. you can safely Jens> delete them. But you may want to know what caused those broken records, because the problem may rear it's head again. I just got a bunch of those records because my Data.fs had reached the system 2GB single file limit. John Hunter From richard_mckinley@hotmail.com Mon May 13 14:23:02 2002 From: richard_mckinley@hotmail.com (Richard McKinley) Date: Mon, 13 May 2002 13:23:02 +0000 Subject: [Zope] Locked out of ZOPE! Please help! Message-ID: Hi, I recently checked the encrypted passwords option under the security settings - applied it to previous users and lo an behold locked myself out.. Can someone please tell me how to 'fix' this situation? I've tried to create an emergency user at the dos prompt: >C:\Program Files\TestZope\bin>python "C:\program files\testzope\zpasswd.py" >access but after entering username/password, specifying cleartext and hitting n or return at the domain restrictions - the user does not appear to get created. Any advice on this appreciated, thanks, Richard _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From Andreas Jung" Message-ID: <00e401c1fa81$d5722f80$1717a8c0@suxlap> Then you should install Python with largefile support. -aj ----- Original Message ----- From: "John Hunter" To: "Jens Vagelpohl" Cc: "Josef Meile" ; Sent: Monday, May 13, 2002 09:22 Subject: Re: [Zope] Strange Data.fs files > >>>>> "Jens" == Jens Vagelpohl writes: > > Jens> those are created when zope is not cleanly shut down and has > Jens> broken records in the ZODB. upon startup those records get > Jens> snipped off the ZODB and saved into a file. you can safely > Jens> delete them. > > But you may want to know what caused those broken records, because the > problem may rear it's head again. I just got a bunch of those records > because my Data.fs had reached the system 2GB single file limit. > > John Hunter > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From gilles@objectis.net Mon May 13 14:40:57 2002 From: gilles@objectis.net (Gilles Lenfant) Date: Mon, 13 May 2002 15:40:57 +0200 Subject: [Zope] Building SQL statements dynamically References: Message-ID: <048501c1fa83$d0c58570$0601a8c0@provence> Hi, Zope DAs have a "manage_test" method. The docstring says : results =3D someDA.manage_test(query, REQUEST=3DNone) Executes the SQL in parameter query and returns results Note you must set the proxy to "manager" to a python script or DTML that = executes this method. HTH --Gilles ----- Original Message -----=20 From: "Tille, Andreas" To: "Zope user list" Sent: Monday, May 13, 2002 1:40 PM Subject: [Zope] Building SQL statements dynamically : Hello, :=20 : I have to port a complex database application which has no fix SQL : statements. The user builds the statement while interacting with : some menus and after having done some selections a database query : is builded depending from several options. :=20 : Any hint how this can be performed using Zope? :=20 : Kind regards :=20 : Andreas. :=20 :=20 : _______________________________________________ : Zope maillist - Zope@zope.org : http://lists.zope.org/mailman/listinfo/zope : ** No cross posts or HTML encoding! ** : (Related lists -=20 : http://lists.zope.org/mailman/listinfo/zope-announce : http://lists.zope.org/mailman/listinfo/zope-dev ) :=20 From jdhunter@ace.bsd.uchicago.edu Mon May 13 14:40:55 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 13 May 2002 08:40:55 -0500 Subject: [Zope] addng a list of users In-Reply-To: <001b01c1f895$c91fbb00$680e0c3f@LocalHost> ("Bill Kerr"'s message of "Sat, 11 May 2002 11:53:15 +0930") References: <001b01c1f895$c91fbb00$680e0c3f@LocalHost> Message-ID: >>>>> "Bill" == Bill Kerr writes: Bill> How could I alter the code of this method (from the Book of Bill> Zope, p. 122) so as to add multiple users from a list? Bill> Where I have 'abc' (adds one user abc) I want to add more Bill> than one user simultaneously (abc, xyz etc.), all with the Bill> same PW, role and domain. I tried inserting expr="['abc','xyz']"> where the 'abc' is and put Bill> in the second last line but that generated a Parse Error The loop has to be outside the dtml-calls, and you can refer to the individual items with sequence-item, or in the case below, with 'user_item' (I prefer to use prefixes with my dtml-in tags because I think it makes the code more readable and easier to integrate with python calls)

The user has been added. Hope this helps, John Hunter From jdhunter@ace.bsd.uchicago.edu Mon May 13 14:46:51 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 13 May 2002 08:46:51 -0500 Subject: [Zope] Assign a value to a variable for use in different object In-Reply-To: <000801c1f7b3$eef561f0$6601a8c0@compaq> (Leo's message of "Thu, 09 May 2002 16:47:51 -0700") References: <000801c1f7b3$eef561f0$6601a8c0@compaq> Message-ID: >>>>> "Leo" == Leo writes: Leo> Hello, One question I have during I'm creating my Zope Leo> pages. That's how can I use a value within the other Leo> object. I can assign a value to a variable within one object Leo> by using dtml-let. But how can I do that when use it in other Leo> object. For example, I assign a value in a dtml method page Leo> and want to use the value in ZSQL method. Any way to do that? One way to do it is to go to the ZSQL method in the Zope manager interface and assign it 'Arguments', eg first_name, last_name If you are in some DTML Document where first_name and last_name are available, for example in the REQUEST variable from a form submission, then you can just do: And the variables will be passed automatically. You can also pass the variables explicitly, as in this example, where most of the variables are passed from the REQUEST.form header and others are the return value of a python script add_to_filesystem_py As a final example, suppose the downstream object was a DTML method or document, you can use the call syntax # listPatients is a DTML Document with parameters 'sql', 'title' and # 'noheader' John Hunter From zope@benko.sk Mon May 13 15:06:31 2002 From: zope@benko.sk (Michal Bencur) Date: Mon, 13 May 2002 16:06:31 +0200 Subject: [Zope] objects not updated after restart of Zope Message-ID: <20020513160631.A32470@benko.sk> Hi, I have a product, and I make a change of it's attributes. Bellow's a method & DTML snippet, how I do this. Object is updated, everything works fine until I restart Zope - changes are lost afterwords, and objects get previous content of "title" and "text" attributes. it seems to me that object is changed, cached in memory, but not stored into Data.fs. any idea what could be wrong ? regards, Michal my product: def editData(self, title, text, category = 1, REQUEST=None): """Edit""" self.title = title self.text = text self.category = category self._p_changed = 1 dtml/edit.dtml: From jdhunter@ace.bsd.uchicago.edu Mon May 13 15:20:05 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 13 May 2002 09:20:05 -0500 Subject: [Zope] two submit buttons/ one method In-Reply-To: (Florent Guillaume's message of "Mon, 13 May 2002 00:10:48 +0000 (UTC)") References: <178740144.20020509122734@funcom.com> Message-ID: >>>>> "Florent" == Florent Guillaume writes: Florent> Please don't do that. It's a maintenance nightmare, an Florent> internationalization nightmare, and an ugly design to Florent> boot. Use the :method idiom, it's designed to that. Right, but unless I'm missing something, the method idiom is used to call different methods. If you saw the original post, I want to call the same method with different values for a given variable. Can you do this with :method? Thanks, John Hunter From jdhunter@ace.bsd.uchicago.edu Mon May 13 15:16:59 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 13 May 2002 09:16:59 -0500 Subject: [Zope] automatic dtml-methods In-Reply-To: (dorian santner's message of "Mon, 13 May 2002 07:18:08 +0200") References: Message-ID: >>>>> "dorian" =3D=3D dorian santner writes: dorian> How can i use " " in FieldChangeitem_body ? Use the python '%' operator with slash quoted single quotes. Below I use 'dtml-let' rather than 'dtml-in' for demo, but I think this does what you want: ' % (myid, myid) )"> From dsantner@datasolutions.at Mon May 13 15:25:15 2002 From: dsantner@datasolutions.at (dorian santner) Date: Mon, 13 May 2002 16:25:15 +0200 Subject: [Zope] problem on delete off a ZObjectManager Message-ID: I have an object to delete (id=Santner.Dorian) and try to call a method (EPerson_delete) that is defined in the ZClass (EPerson) which simply does: So I call http://myDomain/Test/Santner.Dorian/EPerson_delete >Error Type: BadRequest >Error Value: Santner.Dorian does not exist but it exists! Looks like Zope doesnot find the Santner.Dorian Object Funny is, that the upper method works with a simple ZClass, but does not, if the BaseClass is an ZObjectManager ! the ZClass - which does not work - extends the BaseClass ZObjectManager. So it has BaseClasses : ZObject, CatalogAwareBase, ZObjectManager (and it has several other Objects in it) while the other ZClass (where the upper method works fine ) only has: ZObject, CatalogAwareBase how to delete an ZObjectManager ? From eric.n.dunn@bankofamerica.com Mon May 13 15:23:45 2002 From: eric.n.dunn@bankofamerica.com (eric.n.dunn@bankofamerica.com) Date: Mon, 13 May 2002 10:23:45 -0400 Subject: [Zope] Solution UserCounter: PROBLEM(100) Message-ID: <86256BB8.004F1394.00@notes.bankofamerica.com> ---------------------- Forwarded by Eric N. Dunn/USA/BAC on 05/13/2002 10:30 AM --------------------------- Sean Treadway on 05/13/2002 10:02:27 AM To: Eric N. Dunn/USA/BAC@BankofAmerica cc: Subject: Re: UserCounter I believe this is just a warning. If you wish to get rid of the warning (it dates back to the python 1.5 days.) You can change this line: manage = manage_main = HTMLFile('www/UserCounterStats', globals()) to: manage_main = HTMLFile('www/UserCounterStats', globals()) HTH, Sean On Monday 13 May 2002 15:19, you wrote: > I like your UserCounter and it works great, but I'm getting an error on the > ZServer startup > > 2002-05-13T13:03:50 PROBLEM(100) Init Ambiguous name for method of > Products.User > Counter.Counter.UserCounter: "manage" != "manage_main" > > How can I fix this? > > Thanks > Eric Dunn From tpassin@mitretek.org Mon May 13 15:33:48 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Mon, 13 May 2002 10:33:48 -0400 Subject: [Zope] Building SQL statements dynamically References: Message-ID: <008d01c1fa8b$31a32c60$f70510ac@mitretek.org> [Tille, Andreas] > > I have to port a complex database application which has no fix SQL > statements. The user builds the statement while interacting with > some menus and after having done some selections a database query > is builded depending from several options. > > Any hint how this can be performed using Zope? > Building the query string may be hard, but it has nothing to do with Zope specifically. Once the query string has been constructed, you could execute it using a ZSQL method by putting something as simple as &dtml-querystring; into the zsql method, where "querystring" is the name of the variable that holds the query. This could be somewhat dangerous, though, and you really need to work out some safeguards to protect against unfriendly query strings that could damage the database. Cheers, Tom P From jdhunter@ace.bsd.uchicago.edu Mon May 13 15:39:46 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 13 May 2002 09:39:46 -0500 Subject: [Zope] objects not updated after restart of Zope In-Reply-To: <20020513160631.A32470@benko.sk> (Michal Bencur's message of "Mon, 13 May 2002 16:06:31 +0200") References: <20020513160631.A32470@benko.sk> Message-ID: >>>>> "Michal" == Michal Bencur writes: Michal> Object is updated, everything works fine until I restart Michal> Zope - changes are lost afterwords, and objects get Michal> previous content of "title" and "text" attributes. Michal> it seems to me that object is changed, cached in memory, Michal> but not stored into Data.fs. Michal> any idea what could be wrong ? You need to either derive from Globals.Persistent or some class that does this for you, like OFS.SimpleItem, which will give you most of the stock behaviors that you desire for, well, simple items. You may want to check out the maxm product tutorials: http://www.zope.org/Members/maxm/HowTo/minimal_01 http://www.zope.org/Members/maxm/HowTo/minimal_02 Cheers, John Hunter From hans@beehive.de Mon May 13 16:46:12 2002 From: hans@beehive.de (hans) Date: Mon, 13 May 2002 16:46:12 +0100 Subject: [Zope] Solution UserCounter: PROBLEM(100) References: <86256BB8.004F1394.00@notes.bankofamerica.com> Message-ID: <3CDFDFC2.773761FC@beehive.de> eric.n.dunn@bankofamerica.com wrote: > ---------------------- Forwarded by Eric N. Dunn/USA/BAC on 05/13/2002 10:30 > AM > Sean Treadway on 05/13/2002 10:02:27 AM > To: Eric N. Dunn/USA/BAC@BankofAmerica > cc: > Subject: Re: UserCounter > > I believe this is just a warning. > > If you wish to get rid of the warning (it dates back to the python 1.5 > days.) > You can change this line: > manage = manage_main = HTMLFile('www/UserCounterStats', globals()) > to: > manage_main = HTMLFile('www/UserCounterStats', globals()) > > On Monday 13 May 2002 15:19, you wrote: > > I like your UserCounter and it works great, but I'm getting an error on > the > > ZServer startup > > > > 2002-05-13T13:03:50 PROBLEM(100) Init Ambiguous name for method of > > Products.User > > Counter.Counter.UserCounter: "manage" != "manage_main" > > > > How can I fix this? manage=manage_main=manage_navigator try: # Zope 2.4+ manage_main._setName( 'manage_main' ) except: # lesser zopes dont need this pass From zope@benko.sk Mon May 13 15:49:27 2002 From: zope@benko.sk (Michal Bencur) Date: Mon, 13 May 2002 16:49:27 +0200 Subject: [Zope] objects not updated after restart of Zope In-Reply-To: ; from jdhunter@ace.bsd.uchicago.edu on Mon, May 13, 2002 at 09:39:46AM -0500 References: <20020513160631.A32470@benko.sk> Message-ID: <20020513164927.A429@benko.sk> I can create instances of my product, I can change the properties of existing instances, but when I restart Zope all these changes are gone. I inherit from all these: class MyProduct(PropertyManager, RoleManager, Item, Implicit, FindSupport): """...""" On Mon, May 13, 2002 at 09:39:46AM -0500, John Hunter wrote: > > You need to either derive from Globals.Persistent or some class that > does this for you, like OFS.SimpleItem, which will give you most of > the stock behaviors that you desire for, well, simple items. > > You may want to check out the maxm product tutorials: > > http://www.zope.org/Members/maxm/HowTo/minimal_01 > http://www.zope.org/Members/maxm/HowTo/minimal_02 > > Cheers, > John Hunter > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From wayne.pascoe@ehsbrann.com Mon May 13 16:57:56 2002 From: wayne.pascoe@ehsbrann.com (Wayne Pascoe) Date: Mon, 13 May 2002 15:57:56 +0000 Subject: [Zope] Virtualhost monster problems Message-ID: Hi all, I've seen similar things discussed on the list, but not quite this question. I have setup the virtualhostmonster in my root folder. In my apache config, I have the following: RewriteEngine On RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P] ProxyRequests On ProxyVia On The rewriterule has wrapped to two lines in this e-mail, but in my config it is on one. I have got an A record, zaphod-content.mydomain.com pointed at the IP Address that the Apache httpd server is listening on. In Zope, I have added a folder named zaphod-content.mydomain.com off of root. This has an index_html document in it. When I connect to http://zaphod-content.mydomain.com I get the normal localhost:8080/ page. If I go to http://zaphod-content.mydomain.com/zaphod-content.mydomain.com I get what I expect to. zaphod-content is not the primary name of this machine. The primary name is zaphod. Going to this also gives me the content I would expect to see at localhost:8080/ Any ideas why the contents of zaphod-content.mydomain.com are not being served as / when I request it as zaphod-content.mydomain.com ? TIA, -- Wayne Pascoe Give me enough medals, and I'll win any war. - Napolean From jdhunter@ace.bsd.uchicago.edu Mon May 13 16:05:14 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 13 May 2002 10:05:14 -0500 Subject: [Zope] objects not updated after restart of Zope In-Reply-To: <20020513164927.A429@benko.sk> (Michal Bencur's message of "Mon, 13 May 2002 16:49:27 +0200") References: <20020513160631.A32470@benko.sk> <20020513164927.A429@benko.sk> Message-ID: >>>>> "Michal" == Michal Bencur writes: Michal> I inherit from all these: Michal> class MyProduct(PropertyManager, RoleManager, Item, Michal> Implicit, FindSupport): """...""" That appears to be your problem. SimpleItem, but not Item, derives from Globals.Persistent. It also derives from RoleManager and Implicit, so you will probably have success with: class MyProduct(SimpleItem, PropertyManager, FindSupport) From richard_mckinley@hotmail.com Mon May 13 16:09:26 2002 From: richard_mckinley@hotmail.com (Richard McKinley) Date: Mon, 13 May 2002 15:09:26 +0000 Subject: [Zope] Zope Backup/Recovery Message-ID: I recently managed to lock myself out of zope. Is there a way to recover/copy the database containing the DTML documents/ZSQL methods etc. to a new installation? I have had no success in logging into zope with the new superuser I created.. Thanks, Richard _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From zope@benko.sk Mon May 13 16:16:09 2002 From: zope@benko.sk (Michal Bencur) Date: Mon, 13 May 2002 17:16:09 +0200 Subject: [Zope] objects not updated after restart of Zope In-Reply-To: ; from jdhunter@ace.bsd.uchicago.edu on Mon, May 13, 2002 at 10:05:14AM -0500 References: <20020513160631.A32470@benko.sk> <20020513164927.A429@benko.sk> Message-ID: <20020513171609.A891@benko.sk> thanks a lot John for your help, it works now, but I had to remove all of my existing product instances, because it did not work on them ... regards, Michal On Mon, May 13, 2002 at 10:05:14AM -0500, John Hunter wrote: > >>>>> "Michal" == Michal Bencur writes: > > > Michal> I inherit from all these: > > Michal> class MyProduct(PropertyManager, RoleManager, Item, > Michal> Implicit, FindSupport): """...""" > > That appears to be your problem. SimpleItem, but not Item, derives > from Globals.Persistent. It also derives from RoleManager and > Implicit, so you will probably have success with: > > class MyProduct(SimpleItem, PropertyManager, FindSupport) > From dman@dman.ddts.net Mon May 13 16:44:37 2002 From: dman@dman.ddts.net (dman) Date: Mon, 13 May 2002 10:44:37 -0500 Subject: [Zope] Using Zope to generate offline content In-Reply-To: <17499.1021273975@www2.gmx.net> References: <17499.1021273975@www2.gmx.net> Message-ID: <20020513154437.GB17089@dman.ddts.net> --BwCQnh7xodEAoBMC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 13, 2002 at 09:12:55AM +0200, Christoph Schmitz wrote: | Hi all, |=20 | I wonder if anyone uses Zope to generate "offline" content; what I mean i= s, | I'd like to use Zope to manage content, generate navigation stuff and the | like, but my ISP only offers static HTML pages. Thus, the idea is to expo= rt a | Zope site to static HTML pages and publish those. (Actually, I'm looking = for a | replacement for the Website Meta Language (WML).) |=20 | My question is: what kind of problems arise in that situation? Obviously, | you won't be able to use dynamic features like database access or dtml-tr= ees. | Is there any Product that allows me to export a whole subtree of my Zope | instance into HTML files? Of course, one could use wget to crawl the Zope | instance, but then absolute links etc. would break, etc... |=20 | Advice anyone? Don't use absolute URLs. As you have discovered, they cause problems when moved to any environment other than the original. What if some user of your site wants to copy it to their laptop so they can read it while not connected to the internet? The first page would have absolute links to your site and wouldn't reference the local copy. If all you're allowed on your site is static HTML, then you won't get any real benefit from using zope. Zope's real strength is it's dynamic building of pages and in it's management of permissions. You'll lose all of that when you use wget to export the site to your ISP. -D --=20 An anxious heart weighs a man down, but a kind word cheers him up. Proverbs 12:25 =20 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg --BwCQnh7xodEAoBMC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzf32UACgkQO8l8XBKTpRTNNwCcCjeT0R2qEV4NCXjP46opeDqC 2sAAoLu+MsPkYOM2rhZa4CwIXIBgICf1 =OBy2 -----END PGP SIGNATURE----- --BwCQnh7xodEAoBMC-- From dm@petamem.com Mon May 13 16:28:39 2002 From: dm@petamem.com (Dan Meszaros) Date: Mon, 13 May 2002 17:28:39 +0200 (CEST) Subject: [Zope] Locked out of ZOPE! Please help! In-Reply-To: Message-ID: hi, emergency user started to work for me right after the zope restart. (i'm using (Zope 2.5.1 (source release, python 2.1, linux2), python 2.1.1, linux2) regards -dm On Mon, 13 May 2002, Richard McKinley wrote: > Hi, > > I recently checked the encrypted passwords option under the security > settings - applied it to previous users and lo an behold locked myself ou= t.. > > Can someone please tell me how to 'fix' this situation? > > I've tried to create an emergency user at the dos prompt: > > >C:\Program Files\TestZope\bin>python "C:\program files\testzope\zpasswd.= py" > >access > > but after entering username/password, specifying cleartext and hitting n = or > return at the domain restrictions - the user does not appear to get creat= ed. > > Any advice on this appreciated, > thanks, > Richard > > > _________________________________________________________________ > Join the world=92s largest e-mail service with MSN Hotmail. > http://www.hotmail.com > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > From gilles@objectis.net Mon May 13 16:51:55 2002 From: gilles@objectis.net (Gilles Lenfant) Date: Mon, 13 May 2002 17:51:55 +0200 Subject: [Zope] Zope Backup/Recovery References: Message-ID: <066001c1fa96$1d048b40$0601a8c0@provence> Try :=20 $ cd $ python zpasswd.py -u admin -p secret inituser $ python zpasswd.py -u admin -p secret access Note: it's either "inituser" or "access" depending on Zope version, = running both makes the job ;-) Now restart Zope and test with this credential. Create immediately a = Manager user in the Zope folder /acl_users. Carry on working with this Manager credential. HTH --Gilles ----- Original Message -----=20 From: "Richard McKinley" To: Sent: Monday, May 13, 2002 5:09 PM Subject: [Zope] Zope Backup/Recovery : I recently managed to lock myself out of zope. Is there a way to=20 : recover/copy the database containing the DTML documents/ZSQL methods = etc. to=20 : a new installation? I have had no success in logging into zope with = the new=20 : superuser I created.. :=20 : Thanks, : Richard :=20 : _________________________________________________________________ : Join the world's largest e-mail service with MSN Hotmail.=20 : http://www.hotmail.com :=20 :=20 :=20 : _______________________________________________ : Zope maillist - Zope@zope.org : http://lists.zope.org/mailman/listinfo/zope : ** No cross posts or HTML encoding! ** : (Related lists -=20 : http://lists.zope.org/mailman/listinfo/zope-announce : http://lists.zope.org/mailman/listinfo/zope-dev ) :=20 From myzope@gmx.net Mon May 13 16:24:30 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Mon, 13 May 2002 17:24:30 +0200 Subject: [Zope] Virtualhost monster problems References: Message-ID: <3CDFDAAE.4060405@gmx.net> Wayne, some remarks. Wayne Pascoe wrote: > Hi all, > > I've seen similar things discussed on the list, but not quite this question. > > I have setup the virtualhostmonster in my root folder. In my apache config, > I have the following: > > > RewriteEngine On > RewriteCond %{HTTP_HOST} ^.*$ > RewriteRule ^/(.*) > http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P] This won't work when a client includes the port in the host header, like Host: zaphod-content.mydomain.com:80. Some clients do that, wget for instance, and you'll get an extra ":80" in your request to zope. > > > > ProxyRequests On Are you sure you want that? You now have open your server as a proxy for the whole world, if no other access rules are installed. You don't need that for what you describe here, see http://httpd.apache.org/docs/mod/mod_proxy.html#proxyrequests > ProxyVia On > > > > The rewriterule has wrapped to two lines in this e-mail, but in my config it > is on one. > > I have got an A record, zaphod-content.mydomain.com pointed at the IP > Address that the Apache httpd server is listening on. In Zope, I have added > a folder named zaphod-content.mydomain.com off of root. This has an > index_html document in it. > > When I connect to http://zaphod-content.mydomain.com I get the normal > localhost:8080/ page. If I go to > http://zaphod-content.mydomain.com/zaphod-content.mydomain.com > I get what I expect to. > > zaphod-content is not the primary name of this machine. The primary name is > zaphod. Going to this also gives me the content I would expect to see at > localhost:8080/ > > Any ideas why the contents of zaphod-content.mydomain.com are not being > served as / when I request it as zaphod-content.mydomain.com ? Well, it seems that your rule doesn't match. I would enable logging for mod_rewrite (see docs for how to do that) and see what the rewrite engine does. cheers, oliver From lmcdonnell@protonenergy.com Mon May 13 16:50:37 2002 From: lmcdonnell@protonenergy.com (McDonnell, Larry) Date: Mon, 13 May 2002 11:50:37 -0400 Subject: [Zope] ZSQL questions Message-ID: <318685741A5BD31183A4006097BD8DD93808F5@PROSERV> Hi, First I want to thank the people who helped me get this populating form thing working (Colin Fox, Tom Passin, and Jon Erickson). I have a couple questions on how ZSQL methods and their behavior. From a form I created, I input the data and hit the submit button. Under superuser the data is added to the db but if I am not superuser, the ZSQL method the you would see in test mode appears where you would need to file in the data again. Why does it work under superuser and no where else? Is it a permission thing? Also on the same subject, how do I suppress the message telling me "no data matched" while it is adding a new record to the db? Thanks. Larry McDonnell Proton Energy Systems 50 Inwood Rd. Rocky Hill, CT 06067 (860) 571-6533 ext. 531 Email:lmcdonnell@protonenergy.com www.protonenergy.com From olpa@sybcom.de Mon May 13 16:49:37 2002 From: olpa@sybcom.de (Oliver Pabst) Date: 13 May 2002 17:49:37 +0200 Subject: [Zope] Creating soft links within ZODB ? Message-ID: <1021304977.1897.48.camel@bastion.forteresse.net> Hi, I have following Tree: A |-- B |-- | -- C |-- D |-- | -- E is it passible to create E as being a "link" of C, i.e. a copy of all entries in C. So that if a property "p1" is set in B and in D with different values, a call of an object in C (and in its linked copy in E) will see two different values of p1 (respectively as in B and in D) -- --- --- Oliver Pabst .-------------------------. mailto:olpa@sybcom.de : : phone :+49 681 56600600 : project department : SYBCOM GmbH fax :+49 681 56600660 : : http://www.sybcom.de From hans@beehive.de Mon May 13 18:05:14 2002 From: hans@beehive.de (hans) Date: Mon, 13 May 2002 18:05:14 +0100 Subject: [Zope] Creating soft links within ZODB ? References: <1021304977.1897.48.camel@bastion.forteresse.net> Message-ID: <3CDFF24A.AF0C060A@beehive.de> Oliver Pabst wrote: > Hi, > > I have following Tree: > > A > |-- B > |-- | -- C > |-- D > |-- | -- E > > is it passible to create E as being a "link" of C, i.e. a > copy of all entries in C. So that if a property "p1" is set in B and in > D with different values, a call of an object in C (and in its linked > copy in E) will see two different values of p1 (respectively as in B and > in D) unchecked (never tried), but: http://www.zope.org/Members/hathawsh/Symlink http://www.zope.org/Members/TheJester/PortableHole ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 From s.wilson@bangor.ac.uk Mon May 13 17:08:33 2002 From: s.wilson@bangor.ac.uk (Scott Wilson) Date: Mon, 13 May 2002 17:08:33 +0100 Subject: [Zope] Implementing Backlinks in ZOPE Message-ID: <000001c1fa98$6e9f4830$d7698f93@TOOMOL15> How to do backlinks in ZOPE =========================== It may not be the nicest code ever, but here is something I wrote to show backwards links from articles published using Zope. If you get it working (or not :-D) and can think of improvements, let me know... BTW, the whole thing is inspired by backlinks code at http://www.downes.ca/referrers.htm and at http://www.disenchanted.com/dis/linkback.html. I couldn't find anything similar for Zope, hence this lot! Enjoy! - Scott =========================== Step 1: Create the Referrer zClass ----------------------------------- This is a little zClass for holding the referral data. Just create a blank zClass, call it Referrer, and add a propertysheet called 'common' with three attributes (referrer, title, count). Count should be an int with default value of 1, the others are strings. Step 2: Create the referrer script to be called from your index_html method ------------------------------------------------------------------------ --- This takes a look at the Request object, and decides whether or not to create a Referrer. Note that it does this inside the context it is being called from, so your calling object must be an Object Manager! Note that you need to change the Product name here too. Call this Python script from the standard "view" method of the object (usually index-_html): ################## ## getReferrals ## ################## from Products.PythonScripts.standard import html_quote import string request = container.REQUEST RESPONSE = request.RESPONSE # # Get referrer # sReferrer = str(request.get_header('HTTP_REFERER')) # # check against the kill list. Definite room for improvement here # if sReferrer <> '' and string.count(sReferrer,'YOUR-DOMAIN-HERE')==0 and string.count(sReferrer,'frontier.userland')==0 and string.count(sReferrer,'google')==0 and sReferrer <> 'None': # # make the referral, or update count for existing referrals # bExists=0 for oReferrer in context.objectValues('Referrer'): if oReferrer.referrer == sReferrer: oReferrer.propertysheets.common.manage_changeProperties(count = oReferrer.count+1) bExists=1 if bExists==0: id = str(context.ZopeTime().strftime('%Y%m%d%H%M%S')) oNewReferrer = context.manage_addProduct['YOUR-PRODUCT-NAME-HERE'].Referrer.createInObj ectManager(id,request) oNewReferrer.propertysheets.common.manage_changeProperties(referrer = sReferrer) ######### ## end ## ######### Step 3: Create a Robot that substitutes real page titles for the URLs --------------------------------------------------------------------- Add this external method to your Zope installation, and call it periodically on all your new Referrer instances (using cron, Scheduler or whatever). NB, you may want to set Python's Proxy values before doing this. This script fetches the URL from each referrer, and extracts any Title tags. Put it into the Extensions folder. ##################### ## getPageTitle.py ## ##################### ## Fetches the URL provided, and returns the title of the page ## If the page is unavailable, or untitled, ## then returns the URL as the title ## import urllib import re import string def getPageTitle(sUrl): try: oWeb = urllib.urlopen(sUrl).read() try: oRe = re.compile("(.*?)",re.I|re.S) oMatch = oRe.search(oWeb) if oMatch <> None: sTitle = string.strip(oMatch.group(1)) else: sTitle = sUrl except: sTitle = sUrl if sTitle == '' or sTitle=='None': sTitle = sUrl except: sTitle = sUrl return sTitle ######### ## end ## ######### On my site the updater script I use to call the external method looks like: for oItem in context.content.objectValues('ContentItem'): for oReferrer in oItem.objectValues('Referrer'): sTitle = context.getPageTitle(oReferrer.referrer) oReferrer.propertysheets.common.manage_changeProperties(title = sTitle) (Where "getPageTitle" is the name of the external method.) ============= Scott Wilson Assistant Director Centre For Educational Technology Interoperability Standards (CETIS) +44 (0)1248 383645 web: http://www.cetis.ac.uk newsfeed: http://www.cetis.ac.uk/news.xml From lmcdonnell@protonenergy.com Mon May 13 17:02:00 2002 From: lmcdonnell@protonenergy.com (McDonnell, Larry) Date: Mon, 13 May 2002 12:02:00 -0400 Subject: [Zope] How to use conditional statements Message-ID: <318685741A5BD31183A4006097BD8DD93808F6@PROSERV> Hi, As part of my process, I need to have authorized users approval document in the system I am building. I have setup a username/password call and ZSQL. But my problem is error checking. This is how I input the information
Last Name: Password:
On password_lookup I call . If this information is wrong the process continues and I want this to stop. How do I check if there is an error? Also, using statements , how do I check if the field is empty? The reason is I need to let the user use the next empty approval block. Thanks. Larry McDonnell Proton Energy Systems 50 Inwood Rd. Rocky Hill, CT 06067 (860) 571-6533 ext. 531 Email:lmcdonnell@protonenergy.com www.protonenergy.com From rlfisher@sprynet.com Mon May 13 17:30:24 2002 From: rlfisher@sprynet.com (Roger Fisher) Date: Mon, 13 May 2002 09:30:24 -0700 Subject: [Zope] TinyTablesPlus - key columns Message-ID: Hello - I am having difficulty setting up an integer "key" (unique) column: Task:int is accepted (integer, not a key) Task* is accepted (string, key) Task:int* and task*:int do not work as expected - the "*" is apparently ignored after the change/save. From wayne.pascoe@ehsbrann.com Mon May 13 18:35:32 2002 From: wayne.pascoe@ehsbrann.com (Wayne Pascoe) Date: Mon, 13 May 2002 17:35:32 +0000 Subject: [Zope] Virtualhost monster problems In-Reply-To: <3CDFDAAE.4060405@gmx.net> Message-ID: On 13/5/02 3:24 pm, "Oliver Bleutgen" wrote: >> >> RewriteEngine On >> RewriteCond %{HTTP_HOST} ^.*$ >> RewriteRule ^/(.*) >> http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P] > > This won't work when a client includes the port in the host header, > like Host: zaphod-content.mydomain.com:80. > Some clients do that, wget for instance, and you'll get an extra ":80" > in your request to zope. Ah, ok. The reason I did this is that the original had RewriteCond %{HTTP_HOST}:80 ^.*$ and this only worked if I included the :80 in my browser line. >> >> ProxyRequests On > > Are you sure you want that? You now have open your server as a proxy > for the whole world, if no other access rules are installed. > You don't need that for what you describe here, see > http://httpd.apache.org/docs/mod/mod_proxy.html#proxyrequests My main reason for including that is that the zope document I read at http://www.zope.org/Members/Jace/apache-vhm said I should include those lines. I shall remove it. Thanks for the tip :) >> Any ideas why the contents of zaphod-content.mydomain.com are not being >> served as / when I request it as zaphod-content.mydomain.com ? > > Well, it seems that your rule doesn't match. I would enable logging for > mod_rewrite (see docs for how to do that) and see what the rewrite I have done this at a rewriteloglevel of 3 and I get the following output: sd213.52.146.197 - - [13/May/2002:15:27:30 +0100] [zaphod-content.mydomain.com/sid#80dd578][rid#8134048/initial] (2) init rewrite engine with requested uri / 213.52.146.197 - - [13/May/2002:15:27:30 +0100] [zaphod-content.mydomain.com/sid#80dd578][rid#8134048/initial] (3) applying pattern '^/(.*)' to uri '/' 213.52.146.197 - - [13/May/2002:15:27:30 +0100] [zaphod-content.mydomain.com/sid#80dd578][rid#8134048/initial] (2) rewrite / -> http://127.0.0.1:8080/VirtualHostBase/http/zaphod-content.mydomain.com:80/ 213.52.146.197 - - [13/May/2002:15:27:30 +0100] [zaphod-content.mydomain.com/sid#80dd578][rid#8134048/initial] (2) forcing proxy-throughput with http://127.0.0.1:8080/VirtualHostBase/http/zaphod-content.mydomain.com:80/ This to me looks correct. The request is being translated to http://127.0.0.1:8080/VirtualHostBase/http/zaphod-content.mydomain.com:80/ Or is this not what it should be proxied to ? -- Wayne Pascoe Give me enough medals, and I'll win any war. - Napolean From tpassin@mitretek.org Mon May 13 18:18:48 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Mon, 13 May 2002 13:18:48 -0400 Subject: [Zope] ZSQL questions References: <318685741A5BD31183A4006097BD8DD93808F5@PROSERV> Message-ID: <00c901c1faa2$3ea8cb60$f70510ac@mitretek.org> [McDonnell, Larry] > > First I want to thank the people who helped me get this populating form > thing working (Colin Fox, Tom Passin, and Jon Erickson). You're welcome :-) >I have a couple > questions on how ZSQL methods and their behavior. From a form I created, I > input the data and hit the submit button. Under superuser the data is added > to the db but if I am not superuser, the ZSQL method the you would see in > test mode appears where you would need to file in the data again. Why does > it work under superuser and no where else? Is it a permission thing? > I don't know, but can you try it with one or more other browsers, just to make sure it's not related to a browser bug with authentication? > Also on the same subject, how do I suppress the message telling me "no data > matched" while it is adding a new record to the db? Thanks. > I've never seen that. However, you should not get messages back if you invoke the zsql method using dtml-call rather than dtml-var. Cheers, Tom P From kyroraz@yahoo.com Mon May 13 18:22:07 2002 From: kyroraz@yahoo.com (J. Joy) Date: Mon, 13 May 2002 10:22:07 -0700 (PDT) Subject: [Zope] PIL Question In-Reply-To: <3CDE938F.1020003@netscape.net> Message-ID: <20020513172207.44795.qmail@web14912.mail.yahoo.com> Thanks :) And considering the lack of material based on this information, I'd be happy to make a brief how-to on this matter. :) Jason --- foohbah wrote: > Ah. I see. > To solve this, I made this very simple fakefile object: > > class FakeFile: > ''' > memory map equivalent of a real file > ''' > def __init__(self): > self.contents = [] > > def write(self,s): > self.contents.append(s) > > def read(self): > return string.join(self.contents,'') > > > and I tell PIL to write to it - the write method takes any file like > object - as long as it has a write method. The code (where ldp is a PIL > canvas) sort of looks like: > > fakef = FakeFile() > ldp.writeimage(fakef,'jpeg') > > I then return fakef.read() from my external method as the binary image. > > Does that help? > > When you've finished, please write this up as a howto if you have time? > > cheers.. > > J. Joy wrote: > > > > > > > Ross Lazarus wrote: > > > > the img tag expects the server to deliver an existing image file from > > somewhere. What you need to do is a little more complex (!). You COULD > > write the image into a zope object (bad idea for lots of reasons - eg > > zodb bloat) or to a localFS (better but still sucky) and deliver it > > from > > there using an img tag. AFAIK, this is the ONLY way to embed your image > > into a page with text and stuff. > > > > This is not a problem. In the HTML example of how this is called, I may > > not have shown > > clearly enough that what I want to do is have the src be an object in > > the same folder that > > would generate this image upon calling it and the external python method > > would generate > > and return the image back. The part that I am having trouble with is > > with the return part of > > my external method. I do not know how to make it return the data of the > > image that was just > > generated. I can save it to a file, but I can't find a nice way of > > returning the image data back > > from the call. I searched for a few hours to try to find some practical > > examples of perhaps > > how to do this on google, but nothing came up. > > > > To wit, the External Call should act like a image when referenced, it's > > just having "stuff" passed to > > it to form the image in question. :) > > > > The External Call would be called like: > > > > > > > > Where MakeImage would be the External Method. > > > > > > > > > > I'm trying to create an external method that will take variables that > > exist in a ZSQL call and will output an image > > > > > > based on that: > > > > > > import Image, ImageDraw, StringIO, os.path > > > > > > def PILtest(): > > > image = Image.new('RGB',[25,25]) > > > ## IMage Stuff Happens here! > > > return image > > > > > > Where this would occur in a DTML-Method of: > > > > > > > > > > > > > > > > > > But I can't get PILtest to output the image itself. Save() doesn't > > seem to be of help directly. Anyone have any suggestions? > > > > > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com From stroh@scan-plus.de Mon May 13 18:25:01 2002 From: stroh@scan-plus.de (Igor Stroh) Date: 13 May 2002 19:25:01 +0200 Subject: [Zope] ZEO Client with a custom INSTANCE_HOME Message-ID: <1021310701.1182.14.camel@neo> --=-oiIo6p90lU2q2Rnx7pVt Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi there, I'm trying to setup a "discless" ZEO client. The INSTANCE_HOME is pointing to '/var/run/zope'[1] (/var is mounted on a ramdisk). If I try to start zope with=20 `/usr/sbin/zopectl -I /var/run/zope/ start -P 8000 -u www-data -D` I get the errors in [2]. The custom_zodb.py looks like [3]. Afaik all file permissions/modes are set correctly, what else might be the reason? ZEO is running smooth, everything works if I try to run Zope with a default INSTANCE_HOME. If I remove the old INSTANCE_HOME and supply a custom one I get those erros in [1]... some more info: Zope version: 2.5.1-1 (from debian woody) python version: 2.1.3 Thnx in advance, Igor [1]: NFSROOT@test1:~# ls -l /var/run/zope/ /var/run/zope/var total 12 -rw-r--r-- 1 www-data www-data 39 May 13 17:54 access -rw-r--r-- 1 www-data www-data 90 May 13 17:54 custom_zodb.py -rw-r--r-- 1 root root 245 May 13 18:38 custom_zodb.pyc drwxr-xr-x 2 www-data www-data 0 May 13 19:02 var /var/run/zope/var: total 0 -rw-r--r-- 1 www-data www-data 0 May 13 18:33 Z2.log [2]: NFSROOT@test1:~# /etc/init.d/zope start Starting Zope...------ 2002-05-13T17:19:19 INFO(0) client Trying to connect to server: ('', 7700) ------ 2002-05-13T17:19:19 INFO(0) ClientStorage Connected to storage ------ 2002-05-13T17:19:19 INFO(0) ZODB Opening database for mounting: '142508672_1021297398.478297' ------ 2002-05-13T17:19:19 INFO(0) ZODB Mounted database '142508672_1021297398.478297' at /temp_folder ------ 2002-05-13T17:19:19 INFO(0) Zope Default Object Creation /usr/lib/zope/lib/python/../../import/Examples.zexp examples import file could not be found. ------ 2002-05-13T17:19:19 INFO(0) ZServer HTTP server started at Mon May 13 19:19:19 2002 Hostname: test1.domain.tld Port: 8080 ------ 2002-05-13T17:19:19 INFO(0) ZServer FTP server started at Mon May 13 19:19:19 2002 Hostname: test1 Port: 8021 ------ 2002-05-13T17:19:19 ERROR(200) ZServer Cannot write PID file. ------ 2002-05-13T17:19:19 PANIC(300) z2 Startup exception Traceback (innermost last): File /usr/sbin/zope-z2, line 627, in ? File /usr/lib/zope/ZServer/PCGIServer.py, line 275, in __init__ File /usr/lib/zope/ZServer/medusa/asyncore.py, line 306, in bind error: (2, 'No such file or directory') [3]: NFSROOT@fs0:/var/run/zope# cat custom_zodb.py import ZEO.ClientStorage Storage=3DZEO.ClientStorage.ClientStorage(('', 7700)) --=20 ScanPlus GmbH NOC Ulm - Germany - Griesbadgasse 7-13 - D 89073 Ulm TEL +49 731 920 13 100 - FAX +49 731 920 13 290 eMail: support@scan-plus.de Amtsgericht Ulm - HRB3220 - Geschaeftsfuehrer: Juergen Hoermann --=-oiIo6p90lU2q2Rnx7pVt Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA83/bt0gPMpf2mtqkRAgxRAKC/aa/i39jrz/wRFgm6zZwZ13v+TwCgtlMW QfcWlkpDK797BPtQpqEk6Z8= =DrFK -----END PGP SIGNATURE----- --=-oiIo6p90lU2q2Rnx7pVt-- From tino@wildenhain.de Tue May 7 04:16:45 2002 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 07 May 2002 05:16:45 +0200 Subject: [Zope] "To: undisclosed recipient;:" when sending mail through a script !!! In-Reply-To: <047701c1fa81$454c2d70$0601a8c0@provence> References: <047701c1fa81$454c2d70$0601a8c0@provence> Message-ID: <2230236.1020748605@buzzer> Hi Gilles, --On Montag, 13. Mai 2002 15:22 +0200 Gilles Lenfant wrote: > Hi, > > My app sends mail through a python script like this... > > body = "blah blah body" > title = "blah blah title" > mh = container.mailhost_list()[0] > mh.send(body, mto='me@somedomain.com', > mfrom='mailmaster@somedomain.com', > subject=title, encoding='quoted-printable') > return 'OK' > > This works but the mail has not the excepted "to" header and shows... > > "To: undisclosed-recipients: ;" > > This is pretty unfair in the mail client. > > Did I miss something to have the "mto" parameter of the .send() method in > the "To:" header of the mail ? The mto parameter is only for the envelope. If you want to have some extra headers in the mail, you should add them at beginning at the very first line in your mail. Dont forget the empty line before you start with the body. Extra headers can be (but are not limited to): to: from: sender: reply-to: precedence: ... see http://www.faqs.org/ for rfc822 HTH Tino Wildenhain > Thanks in advance > > --Gilles > > > > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) From myzope@gmx.net Mon May 13 18:13:51 2002 From: myzope@gmx.net (Oliver Bleutgen) Date: Mon, 13 May 2002 19:13:51 +0200 Subject: [Zope] Virtualhost monster problems References: Message-ID: <3CDFF44F.3060106@gmx.net> Sorry for me not sipping, I'am in a hurry... Wayne Pascoe wrote: > On 13/5/02 3:24 pm, "Oliver Bleutgen" wrote: > > >>> >>> RewriteEngine On >>> RewriteCond %{HTTP_HOST} ^.*$ >>> RewriteRule ^/(.*) >>>http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P] >>> >>This won't work when a client includes the port in the host header, >>like Host: zaphod-content.mydomain.com:80. >>Some clients do that, wget for instance, and you'll get an extra ":80" >>in your request to zope. >> > > Ah, ok. The reason I did this is that the original had > RewriteCond %{HTTP_HOST}:80 ^.*$ and this only worked if I included the :80 > in my browser line. Well, you need to do both, in one way or other. If you want the flexibility of variable HTTP_HOSTs, you need to cope with the fact that HTTP_HOST may be sent with or without the port tacked at the end of the hostname. This can be done with two RewriteConds + different following RewriteRules, something like (untested, wrapped) RewriteCond &{HTTP_HOST} ^.*:80$ RewriteRule http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}/$1 [L,P] RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [L,P] You should really read up about mod_rewrite, because, reading it again, I have no idea what effect your RewriteCond line should have. Seems to me it matches always. Here it filters if HTTP_HOST has a trailing ":80" and rewrites accordingly. If there's no trailing ":80" the second RewriteRule comes into effect. Thinking about it, I had emailed the author about this thing and it seems he just didn't quite adapt his howto correctly to the host-header "problem". The 3 lines above should do the trick. > > >>> >>> ProxyRequests On >>> >>Are you sure you want that? You now have open your server as a proxy >>for the whole world, if no other access rules are installed. >>You don't need that for what you describe here, see >>http://httpd.apache.org/docs/mod/mod_proxy.html#proxyrequests >> > > My main reason for including that is that the zope document I read at > http://www.zope.org/Members/Jace/apache-vhm said I should include those > lines. I shall remove it. Thanks for the tip :) Once, I tried to contact the authors of the various apache+zope howtos which did do that wrong, but didn't find always contacts. It would be nice if you could inform that guy about this problem. > > >>>Any ideas why the contents of zaphod-content.mydomain.com are not being >>>served as / when I request it as zaphod-content.mydomain.com ? >>> >>Well, it seems that your rule doesn't match. I would enable logging for >>mod_rewrite (see docs for how to do that) and see what the rewrite >> > > I have done this at a rewriteloglevel of 3 and I get the following output: > > sd213.52.146.197 - - [13/May/2002:15:27:30 +0100] > [zaphod-content.mydomain.com/sid#80dd578][rid#8134048/initial] (2) init > rewrite engine with requested uri / > 213.52.146.197 - - [13/May/2002:15:27:30 +0100] > [zaphod-content.mydomain.com/sid#80dd578][rid#8134048/initial] (3) applying > pattern '^/(.*)' to uri '/' > 213.52.146.197 - - [13/May/2002:15:27:30 +0100] > [zaphod-content.mydomain.com/sid#80dd578][rid#8134048/initial] (2) rewrite / > -> > http://127.0.0.1:8080/VirtualHostBase/http/zaphod-content.mydomain.com:80/ > 213.52.146.197 - - [13/May/2002:15:27:30 +0100] > [zaphod-content.mydomain.com/sid#80dd578][rid#8134048/initial] (2) forcing > proxy-throughput with > http://127.0.0.1:8080/VirtualHostBase/http/zaphod-content.mydomain.com:80/ > > > This to me looks correct. The request is being translated to > http://127.0.0.1:8080/VirtualHostBase/http/zaphod-content.mydomain.com:80/ > > Or is this not what it should be proxied to ? Ahh, now I see. No it isn't the right thing to do. Darn, forget the rules I wrote above, but the concept still holds. You should rewrite to http://127.0.0.1:8080/zaphod-content.mydomain.comVirtualHostBase/http/zaphod-content.mydomain.com:80/ with a VHM in the folder zaphod-content.mydomain.com. This is, because you still have to get into the right folder in zope, that work isn't done by VHM. To do that with the flexibility of HTTP_HOST - so it would work with any A record of your domain just by creating a folder with the right name and a VHM in it - needs some work with the HTTP_HOST cause of the ":80-problem". But if you have one static host and filter the subdomains via other means (say apache name-based VirtualHosts), and you have just one hostname per virtual host, one line is enough: RewriteRule ^/(.*) http://localhost:40080/zaphod-content.mydomain.com/VirtualHostBase/http/zaphod-content.mydomain.com:80/VirtualHostRoot/$1 For further needs, I recommend reading up about mod_rewrite on httpd.apache.org. cheers, oliver From jens@zope.com Mon May 13 18:36:18 2002 From: jens@zope.com (Jens Vagelpohl) Date: Mon, 13 May 2002 13:36:18 -0400 Subject: [Zope] ZEO Client with a custom INSTANCE_HOME In-Reply-To: <1021310701.1182.14.camel@neo> Message-ID: you start zope as root thus the user running zope is the "nobody" account. nobody cannot write anywhere from what it looks like. jens On Monday, May 13, 2002, at 01:25 , Igor Stroh wrote: > Hi there, > > I'm trying to setup a "discless" ZEO client. The INSTANCE_HOME is > pointing to '/var/run/zope'[1] (/var is mounted on a ramdisk). > If I try to start zope with > `/usr/sbin/zopectl -I /var/run/zope/ start -P 8000 -u www-data -D` > I get the errors in [2]. The custom_zodb.py looks like [3]. Afaik all > file permissions/modes are set correctly, what else might be the reason? > ZEO is running smooth, everything works if I try to run Zope with a > default INSTANCE_HOME. If I remove the old INSTANCE_HOME and supply a > custom one I get those erros in [1]... > > some more info: > Zope version: 2.5.1-1 (from debian woody) > python version: 2.1.3 > > > Thnx in advance, > Igor > > [1]: > NFSROOT@test1:~# ls -l /var/run/zope/ /var/run/zope/var > total 12 > -rw-r--r-- 1 www-data www-data 39 May 13 17:54 access > -rw-r--r-- 1 www-data www-data 90 May 13 17:54 custom_zodb.py > -rw-r--r-- 1 root root 245 May 13 18:38 custom_zodb.pyc > drwxr-xr-x 2 www-data www-data 0 May 13 19:02 var > > /var/run/zope/var: > total 0 > -rw-r--r-- 1 www-data www-data 0 May 13 18:33 Z2.log > > > [2]: > NFSROOT@test1:~# /etc/init.d/zope start > Starting Zope...------ > 2002-05-13T17:19:19 INFO(0) client Trying to connect to server: (' IP>', 7700) > ------ > 2002-05-13T17:19:19 INFO(0) ClientStorage Connected to storage > ------ > 2002-05-13T17:19:19 INFO(0) ZODB Opening database for mounting: > '142508672_1021297398.478297' > ------ > 2002-05-13T17:19:19 INFO(0) ZODB Mounted database > '142508672_1021297398.478297' at /temp_folder > ------ > 2002-05-13T17:19:19 INFO(0) Zope Default Object Creation > /usr/lib/zope/lib/python/../../import/Examples.zexp examples import file > could not be found. > ------ > 2002-05-13T17:19:19 INFO(0) ZServer HTTP server started at Mon May 13 > 19:19:19 2002 > Hostname: test1.domain.tld > Port: 8080 > ------ > 2002-05-13T17:19:19 INFO(0) ZServer FTP server started at Mon May 13 > 19:19:19 2002 > Hostname: test1 > Port: 8021 > ------ > 2002-05-13T17:19:19 ERROR(200) ZServer Cannot write PID file. > ------ > 2002-05-13T17:19:19 PANIC(300) z2 Startup exception > Traceback (innermost last): > File /usr/sbin/zope-z2, line 627, in ? > File /usr/lib/zope/ZServer/PCGIServer.py, line 275, in __init__ > File /usr/lib/zope/ZServer/medusa/asyncore.py, line 306, in bind > error: (2, 'No such file or directory') > > > > [3]: > NFSROOT@fs0:/var/run/zope# cat custom_zodb.py > import ZEO.ClientStorage > Storage=ZEO.ClientStorage.ClientStorage(('', 7700)) > > -- > ScanPlus GmbH NOC Ulm - Germany - Griesbadgasse 7-13 - D 89073 Ulm > TEL +49 731 920 13 100 - FAX +49 731 920 13 290 > eMail: support@scan-plus.de > Amtsgericht Ulm - HRB3220 - Geschaeftsfuehrer: Juergen Hoermann > From c.roth@themelios.de Mon May 13 18:44:50 2002 From: c.roth@themelios.de (Christoph Roth) Date: Mon, 13 May 2002 19:44:50 +0200 Subject: [Zope] Using Zope to generate offline content In-Reply-To: <20020513154437.GB17089@dman.ddts.net> References: <17499.1021273975@www2.gmx.net> Message-ID: <3CE017B2.13026.7A2ABF@localhost> On 13 May 2002 at 10:44, dman wrote: (...) > > If all you're allowed on your site is static HTML, then you won't get > any real benefit from using zope. Zope's real strength is it's > dynamic building of pages and in it's management of permissions. > You'll lose all of that when you use wget to export the site to your > ISP. > > -D That' true, but what about using Zope in an Intranet, benefitting from it's excellent user and security management, not to mention all other strengths and then export a static copy for the masses to a web server once a day? Quite tempting... Regards, Christoph (Roth, not Schmitz) From Sylvain =?iso-8859-1?Q?Th=E9nault?= Mon May 13 18:40:43 2002 From: Sylvain =?iso-8859-1?Q?Th=E9nault?= (Sylvain =?iso-8859-1?Q?Th=E9nault?=) Date: Mon, 13 May 2002 19:40:43 +0200 Subject: [Zope] making product from the filesystem Message-ID: <20020513174043.GA6752@ntw23.fr> hello, I'm attempting to make my first Zope product but I have some problems to install it to test it behavior. I've just put my code under the /usr/lib/zope/lib/python/Products directory, but Zope doesn't load my product. Is there anything else to do ? (there is a __init__.py which initialize the product, I took MailHost as example to construct my product) In a more general way, I don't understand how to reinstall a product which has been removed from the Zope www control panel... Does the products live in the ZODB ? Is there any problems with installing a product in Zope for testing (code may change directly in the filesystem) ? I didn't found consistent information about how to construct Zope products from the SF instead of from the www interface, and I'ld be able to read a document which answer to all those questions :-) cheers -- Sylvain Thénault From fg@nuxeo.com Mon May 13 18:53:17 2002 From: fg@nuxeo.com (Florent Guillaume) Date: 13 May 2002 19:53:17 +0200 Subject: [Zope] Re: Two buttons one method - In-Reply-To: <027e01c1fa9f$b33abe00$0602a8c0@linkline.com> References: <027e01c1fa9f$b33abe00$0602a8c0@linkline.com> Message-ID: <1021312398.14393.13.camel@flo.in.nuxeo.com> Hi, - Why are you sending this to me? I'm not the one who has a problem. - Please don't send HTML mails. - Please keep the subject so that we can find the thread you're responding to. - Your first method isn't always applicable, it's not always possible to split the form in two. - Your second method doesn't work. Florent On Mon, 2002-05-13 at 19:00, Gary Speer wrote: > Don't understand why you didn't get a helpful response. > > Sounds like you are trying to pass a variable. I'm a bit new at Zope so there may be more elegant means. > You can define the value of the variable in the request. Wrap the button in a form with hidden elements that have your variable name and value. The method will obtain the variables by acquisition. > >
> > > >
> > ... > >
> > > >
> > in the method, passedvariable will have the respective string. > > Another is to define a global variable > > > > > ... > > > > > Hope these trigger some ideas... > Gary -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com From jdhunter@ace.bsd.uchicago.edu Mon May 13 18:59:10 2002 From: jdhunter@ace.bsd.uchicago.edu (John Hunter) Date: Mon, 13 May 2002 12:59:10 -0500 Subject: [Zope] making product from the filesystem In-Reply-To: <20020513174043.GA6752@ntw23.fr> (Sylvain =?iso-8859-1?q?Th=E9nault's?= message of "Mon, 13 May 2002 19:40:43 +0200") References: <20020513174043.GA6752@ntw23.fr> Message-ID: >>>>> "Sylvain" =3D=3D Sylvain Th=E9nault writes: Sylvain> hello, I'm attempting to make my first Zope product but I Sylvain> have some problems to install it to test it Sylvain> behavior. I've just put my code under the Sylvain> /usr/lib/zope/lib/python/Products directory, but Zope Sylvain> doesn't load my product. Is there anything else to do ? Sylvain> (there is a __init__.py which initialize the product, I Sylvain> took MailHost as example to construct my product) This is the right approach -- perhaps there is a bug in your code somewhere? Without seeing your code, it's hard to know where the problem is. Start with a minimal product, see below) and try to import that. You can grow from there. Sylvain> In a more general way, I don't understand how to Sylvain> reinstall a product which has been removed from the Zope Sylvain> www control panel... Does the products live in the ZODB ? Sylvain> Is there any problems with installing a product in Zope Sylvain> for testing (code may change directly in the filesystem) Sylvain> ? If you restart Zope, the product should reappear, as far as I know. As for working with test code, if you put a file called refresh.txt in your product dir, you can reload your product from the manager interface without restarting zope. Sylvain> I didn't found consistent information about how to Sylvain> construct Zope products from the SF instead of from the Sylvain> www interface, and I'ld be able to read a document which Sylvain> answer to all those questions :-) 3 very helpful resources for this, the maxm minimal product guides: http://www.zope.org/Members/maxm/HowTo/minimal_01 http://www.zope.org/Members/maxm/HowTo/minimal_02 and Chapter 4 of the Zope Developer's guide: http://www.zope.org/Documentation/ZDG You may also find the Boring Product Guide helpful http://www.zope.org/Members/gtk/Boring/HowTo-Boring Good luck, John Hunter From eric.n.dunn@bankofamerica.com Mon May 13 18:50:57 2002 From: eric.n.dunn@bankofamerica.com (eric.n.dunn@bankofamerica.com) Date: Mon, 13 May 2002 13:50:57 -0400 Subject: [Zope] Mailhost Duplicate Sendmail Message-ID: <86256BB8.00620D9A.00@notes.bankofamerica.com> Has anyone ever had problems with their Mailhost sending duplicate emails via an Eform? Eric Dunn From milos.prudek@tiscali.cz Mon May 13 08:51:46 2002 From: milos.prudek@tiscali.cz (Milos Prudek) Date: Mon, 13 May 2002 09:51:46 +0200 Subject: [Zope] [ANN] TextIndexNG 1.0 alpha 2 released References: <003901c1f7a9$f9a74ff0$02010a0a@suxlap> <3CDBF980.3040608@tiscali.cz> <022801c1f940$26dd1210$02010a0a@suxlap> Message-ID: <3CDF7092.3030805@tiscali.cz> Andreas Jung wrote: > Milos, > > because the limitation was an issue of the QueryParser module > (using flex/yacc) I have rewritten the parser as native Python module. > This new parser has the advantage that it will run on all platforms > and accepts *any* encoding based on your locale settings. And it will > accept unicode strings (but they are currently not very well handled > inside TXNG). Hope, this makes TXNG attractive for you. Great news! It definitely does. There's something that perhaps is a problem. It's this: Althouth ISO-8859-2 is an international standard for many East European languages (such as Czech and Slovak), 95% of pages published on the World Wide Web are in Win-1250 encoding. Even Linux servers publish web pages in Win-1250 [but have ISO-8859-2 or even ISO-8859-1 locale set] because older Microsoft browsers cannot display ISO-8859-2 encoding. However, Mozilla and other browsers on Linux can display Win-1250 (even if the client host is set to ISO-8859-2), even in web forms. Since TXNG relies on locale setting, that would mean that Linux (server) locale must be set to Win-1250. I'm not sure whether it is possible to set Linux locale to Win-1250, and even if it was possible it could bring other problems. Do you think that this is an issue for TXNG, or that people should switch to more recent MSIE browsers? Thank you for your time! -- Milos Prudek From milos.prudek@tiscali.cz Mon May 13 09:10:55 2002 From: milos.prudek@tiscali.cz (Milos Prudek) Date: Mon, 13 May 2002 10:10:55 +0200 Subject: [Zope] tutorial References: <000e01c1f913$b5fdf9a0$095bfea9@sebastiaanlapt> Message-ID: <3CDF750F.6060807@tiscali.cz> Sebastiaan Schimmel wrote: > I've done the Elvis tutorial. I want to set a cookie and I do it like > it's done in the elvis tutorial but it doesn't work. The elvis tutorial Here's a sample Python Script to set a cookie: request = container.REQUEST RESPONSE = request.RESPONSE tag=repr(DateTime().timeTime()) RESPONSE.setCookie('zopeimp',tag,path='/') return You do not need a function to read a cookie. Cookies are in the request. I recommend that you add this line to your standard_html_footer: You'll see everything that's in the request. Great for debugging! Admittedly, Zope Book is still somewhat incomplete and the example you tested may be wrong. I did not test the Elvis example but I'll try to give you general advice: Do not rely too much on Zope Book as "the complete, perfect source of documentation". The best resources that complement Zope Book are: - Archives of this mailing list - http://zopelabs.com - your own testing (try-fail-try-fail-try-success method) Write your own small test scripts. Record the results of these test scripts in a good knowledge management system (I use Hierarchical Notebook, available from SourceForge for both Linux and Windows). Build your own know-how. -- Milos Prudek From jon.erickson@neicoltech.org Mon May 13 19:42:39 2002 From: jon.erickson@neicoltech.org (Jon Erickson) Date: 13 May 2002 13:42:39 -0500 Subject: [Zope] Building SQL statements dynamically In-Reply-To: References: Message-ID: <1021315364.2280.104.camel@xit.neicoltech.org> On Mon, 2002-05-13 at 06:40, Tille, Andreas wrote: > Hello, > > I have to port a complex database application which has no fix SQL > statements. The user builds the statement while interacting with > some menus and after having done some selections a database query > is builded depending from several options. > > Any hint how this can be performed using Zope? If the dynamic queries are used to select data from the database you may want to take a look at the tag. You can create dynamic queries with optional\required arguments based on user input. http://www.zope.org/Documentation/Guides/ZSQL-HTML/ZSQL.1.5.4.html Jon From fg@nuxeo.com Mon May 13 19:46:23 2002 From: fg@nuxeo.com (Florent Guillaume) Date: Mon, 13 May 2002 18:46:23 +0000 (UTC) Subject: [Zope] two submit buttons/ one method References: Message-ID: Ok there are basically two ways. The one I use in most cases:
...
and check which of "submit1" or "submit2" variables exist to distinguish the buttons. Or use :method with two different methods: some_func.py ##parameters=..., isbutton2=0 ... processing here ... some_other_func.py: ##parameters=... context.some_func(..., isbutton2=1) Florent John Hunter wrote: > >>>>> "Florent" == Florent Guillaume writes: > > Florent> Please don't do that. It's a maintenance nightmare, an > Florent> internationalization nightmare, and an ugly design to > Florent> boot. Use the :method idiom, it's designed to that. > > Right, but unless I'm missing something, the method idiom is used to > call different methods. If you saw the original post, I want to call > the same method with different values for a given variable. Can you > do this with :method? > > Thanks, > John Hunter > > > _______________________________________________ > Zope maillist - Zope@zope.org > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com From pydan@danshafer.com Mon May 13 20:04:06 2002 From: pydan@danshafer.com (Dan Shafer) Date: Mon, 13 May 2002 12:04:06 -0700 Subject: [Zope] URGENT -Version Blow-Up In-Reply-To: <3CDE6011.90603@gmx.net> References: <5.1.0.14.0.20020511171740.02c08968@mail.hurrah.com> Message-ID: <5.1.0.14.0.20020513120320.04340048@mail.hurrah.com> Oliver... Thanks for the help. Your suggestion that I try to delete the version from the Control Panel - a feature I didn't even know existed until I got your reply - did the trick. At 02:29 PM 5/12/2002 +0200, Oliver Bleutgen wrote: >Dan Shafer wrote: > >>I have managed to get myself into a gnarly position from which I cannot >>find an escape route. The site I'm building is currently absolutely >>unusable as a result. >>I was making extensive changes to a page, so I created a version (called >>"adding scripts" -- notice the space, which I think may be a culprit >>here). I started using the version, made the changes to the page in >>question, saved changes, tested the page and, after a few more tweaks, >>got it where I wanted it. >>So I went to the version page figuring I'd commit the changes. It said >>there were no unsaved changes. I stopped using the version and when I >>went back to the ZMI, the changed page had a version lock on it and there >>was no unlocked/original version of the page showing up. That's when I >>noticed that even though I had quit using the version in question, the >>page still showed that I was using it.That's also when I noticed that the >>top of the page that showed what version I was using called the version >>simply "adding" rather than "adding scripts." After several more start >>using - stop using sequences, I could not get out of this morass. >>I restarted the Zope server. No effect. >>I quit using the version and deleted the version object. I know, bad >>move, but I did not receive a warning from Zope about this. It just >>happily deleted the version, an action which I later found out was undoable. >>So now Zope thinks I am working in a non-existent version and it won't >>let me use the site past a certain point (even though the process I'm >>testing with doesn't even use the changed page). I get a version lock error. >>This is clearly a Catch-22. Is there any way out of this? This is the >>first thing I've run into in the ZMI that seems to me just not to work >>very well or to be documented clearly or something. I've used versions in >>the past successfully, and this just has me bewildered. And my client >>very angry. >>HELP!!!!!!!!!!! > >Dan, first, backup your Data.fs. >Second, I only can repeat something out of my memory, cause I don't have >access to a zope ATM. But I see several things you can do: > >- In the control panel, there's also the possibility to save/discard >versions, take a look there. >- You can always (re-)create a version you need, because zope identifies >versions only from their path, so recreating the a version with the right >idea might be a possibility. >- Entering version just means sending the right cookie, so you can write >your own method which sends the cookie in order to enter that version. >So, maybe entering that version and doing copy&paste might be a last resort. >- Maybe importing/exporting might be possible, though I don't know if >(how) it's possible to export versioned data. > >cheers, >oliver > > From stroh@scan-plus.de Mon May 13 19:57:10 2002 From: stroh@scan-plus.de (Igor Stroh) Date: 13 May 2002 20:57:10 +0200 Subject: [Zope] ZEO Client with a custom INSTANCE_HOME In-Reply-To: References: Message-ID: <1021316230.1182.20.camel@neo> --=-e6cUWMyQj2gV2WWThuHy Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2002-05-13 at 19:36, Jens Vagelpohl wrote: > you start zope as root thus the user running zope is the "nobody" account= . > nobody cannot write anywhere from what it looks like. no, I start zope as www-data... anyway, the problem was, I installed zope as a binary pakage from debian/woody... debian post-install scripts created a file /usr/lib/cgi-bin/Zope that contained absolute path names, i.e. "/var/lib/zope/var", so when I called zopectl, it tried to start up pcgi which returned an error 'cos I removed /var/lib/zope... greetings, Igor --=20 ScanPlus GmbH NOC Ulm - Germany - Griesbadgasse 7-13 - D 89073 Ulm TEL +49 731 920 13 100 - FAX +49 731 920 13 290 eMail: support@scan-plus.de Amtsgericht Ulm - HRB3220 - Geschaeftsfuehrer: Juergen Hoermann --=-e6cUWMyQj2gV2WWThuHy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA84AyG0gPMpf2mtqkRAh6GAJ4lDwzGl6JRD+WyTpn/crMwpudOCACgmvuY M9D0WYYmhGRaxdtQrnmYKTo= =ML3I -----END PGP SIGNATURE----- --=-e6cUWMyQj2gV2WWThuHy-- From pydan@danshafer.com Mon May 13 20:08:19 2002 From: pydan@danshafer.com (Dan Shafer) Date: Mon, 13 May 2002 12:08:19 -0700 Subject: [Zope] Defensive Zope Development Message-ID: <5.1.0.14.0.20020513120408.00b1fbc8@mail.hurrah.com> After my recent versioning fiasco, which I was able to solve with the help of the great folks on this list, it seemed to me that I need to re-think my one-instance-fits-all approach to Zope development. This was too scary. My entire Zope instance, complete with multiple virtual hosts I'm building and maintaining for clients, was inoperable for almost two days while I battled the problem. So what is the preferred/recommended best practice for Zope development? Do I: 1. Stay with versioning, backing up my Zope sites more often and living with rough edges (or my mistakes)? 2. Create a second Zope instance, perhaps on my local drive (Win2K) and only upload revised objects after proving them locally? 3. Use some other brilliant strategy I haven't thought of? I'm sure this is a recurring issue. It's probably been talked about on this list before, though I *did* search the archives and not find anything illuminating. From lmcdonnell@protonenergy.com Mon May 13 20:06:02 2002 From: lmcdonnell@protonenergy.com (McDonnell, Larry) Date: Mon, 13 May 2002 15:06:02 -0400 Subject: [Zope] ZSQL questions Message-ID: <318685741A5BD31183A4006097BD8DD93808F9@PROSERV> Hi, This was the only way I was able to get this to work.
input_test is the zsql. I tried this method but this is where the next thing I see is this zsql method in test mode. Any sugesstions, thanks ahead of time. -----Original Message----- From: Jon Erickson [mailto:jon.erickson@neicoltech.org] Sent: Monday, May 13, 2002 1:23 PM To: McDonnell, Larry Subject: Re: [Zope] ZSQL questions On Mon, 2002-05-13 at 10:50, McDonnell, Larry wrote: > > Hi, > > First I want to thank the people who helped me get this populating form > thing working (Colin Fox, Tom Passin, and Jon Erickson). I have a couple No problem! > questions on how ZSQL methods and their behavior. From a form I created, I > input the data and hit the submit button. Under superuser the data is added > to the db but if I am not superuser, the ZSQL method the you would see in > test mode appears where you would need to file in the data again. Why does > it work under superuser and no where else? Is it a permission thing? > > Also on the same subject, how do I suppress the message telling me "no data > matched" while it is adding a new record to the db? Thanks. How are you calling the zsql method that inserts the data? It sounds like you may be trying to pass the form variables directly to the zsql method (which isn't the best way to do it). Does your forms' "action" variable reference a ZSQL method? Jon From chrisw@nipltd.com Mon May 13 20:19:11 2002 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 13 May 2002 20:19:11 +0100 Subject: [Zope] Strange Data.fs files References: <00e401c1fa81$d5722f80$1717a8c0@suxlap> Message-ID: <3CE011AF.79D96BD1@nipltd.com> Andreas Jung wrote: > > Then you should install Python with largefile support. Andreas, It's not as simple as that. You also need to make sure your glibc supports large files and the filesystem you are using supports large files... LFS is not as trivial as some people would like to make out ;-) cheers, Chris From dieter@handshake.de Mon May 13 20:03:37 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 13 May 2002 21:03:37 +0200 Subject: [Zope] Re: Kinterbasdb + Firebird + Zope Q's In-Reply-To: <20020512202653.81178.qmail@web20807.mail.yahoo.com> References: <15582.8246.976919.413818@linux.local> <20020512202653.81178.qmail@web20807.mail.yahoo.com> Message-ID: <15584.3593.367442.750548@linux.local> Derek Basch writes: > ... installing Kinterbasdb on Windows ... Sorry, I cannot help you to install something on Windows. I have been successful, to be almost MS-free... Dieter From dieter@handshake.de Mon May 13 20:22:11 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 13 May 2002 21:22:11 +0200 Subject: [Zope] problem on delete off a ZObjectManager In-Reply-To: References: Message-ID: <15584.4707.660113.946855@linux.local> dorian santner writes: > I have an object to delete (id=Santner.Dorian) and > try to call a method (EPerson_delete) that is defined in the ZClass (EPerson) > which simply does: > > You see the "plural"? "manage_delObjects" wants a list of id's to delete. Is you ZClass an ObjectManager? You call "manage_delObjects" on the ObjectManager that contains the object to be deleted, not the object itself. Dieter From dieter@handshake.de Mon May 13 20:14:09 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 13 May 2002 21:14:09 +0200 Subject: [Zope] "To: undisclosed recipient;:" when sending mail through a script !!! In-Reply-To: <047701c1fa81$454c2d70$0601a8c0@provence> References: <047701c1fa81$454c2d70$0601a8c0@provence> Message-ID: <15584.4225.748091.300460@linux.local> Gilles Lenfant writes: > My app sends mail through a python script like this... > > body = "blah blah body" > title = "blah blah title" > mh = container.mailhost_list()[0] > mh.send(body, mto='me@somedomain.com', > mfrom='mailmaster@somedomain.com', > subject=title, encoding='quoted-printable') > return 'OK' > > This works but the mail has not the excepted "to" header and shows... > > "To: undisclosed-recipients: ;" > > This is pretty unfair in the mail client. > > Did I miss something to have the "mto" parameter of the .send() method in the "To:" header of the mail ? If you put it there, that will be at least a workaround... Dieter From dieter@handshake.de Mon May 13 20:12:19 2002 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 13 May 2002 21:12:19 +0200 Subject: [Zope] Re: Using Dieter's Dispatcher In-Reply-To: References: <15582.8559.111819.766148@linux.local> Message-ID: <15584.4115.576062.43858@linux.local> Dennis Allison writes: > ... > The bindings of forma and formadesc and FSSession are done throuygh the > manage interface. > > Using the doform is the dispatcher instance, > > > > should create new object (forma instance) and render it. > > > renders the form with filled-in values from the current session, > > whereas update renders the form with saved values or new values > with new values taking precedence. > > > > is used to save variables in the session object and then dispatch > to an object with the format (.*)__disp(.[x]])? found somewhere > in the form. (A bit more explantion and and example would help > here....) This is very similar to Zope's ":method". The "xxx__disp" is either the name of a button (more precisely, input type=submit) or a hidden variable, then usually in the form "__disp" with the value specifying the destination. With the "__disp", you specify the destination page that should be rendered when the variables are saved. > Is my understanding of how to use the product correct? Mostly (see the "update" remark above). > I think I am missing something fundamental as the small example > I put together fails with an attribute error in _setup. Maybe a bug or an incompatibility with your session product? You know, how you should report errors? Error Type, Error Value and traceback are necessary information to say anything about a problem. I will be away for several weeks and thanks to lots of email ads, my mailbox will probably run out of quota. Thus, be patient and submit the additional information in about 3 to 4 weeks. Dieter From chrisw@nipltd.com Mon May 13 20:24:40 2002 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 13 May 2002 20:24:40 +0100 Subject: [Zope] Mailhost Duplicate Sendmail References: <86256BB8.00620D9A.00@notes.bankofamerica.com> Message-ID: <3CE012F8.FC5DBE00@nipltd.com> eric.n.dunn@bankofamerica.com wrote: > > Has anyone ever had problems with their Mailhost sending duplicate emails > via an Eform? What's an 'Eform'? This can theoretically happen if a transaction conflicts with another one that is being committed, the results in the transaction being retried and the mail sent a second time... cheers, Chris From jon.erickson@neicoltech.org Mon May 13 20:30:43 2002 From: jon.erickson@neicoltech.org (Jon Erickson) Date: 13 May 2002 14:30:43 -0500 Subject: [Zope] ZSQL questions In-Reply-To: <318685741A5BD31183A4006097BD8DD93808F9@PROSERV> References: <318685741A5BD31183A4006097BD8DD93808F9@PROSERV> Message-ID: <1021318244.2280.121.camel@xit.neicoltech.org> On Mon, 2002-05-13 at 14:06, McDonnell, Larry wrote: > Hi, > > This was the only way I was able to get this to work. > > method="get"> > input_test is the zsql. > > I tried this method > but this is where the next thing I see is this zsql method in test mode. Any > sugesstions, thanks ahead of time. Try this: A very simple form_handler would be a dtml method like so: ---------------------------------------------- ---------------------------------------------- When the form is posted (user clicks on submit) the form variables are stored in the REQUEST object, which you can pass to a zsql method. You will need to make sure that the form variable names match that of your zsql method arguments. Jon From tpassin@mitretek.org Mon May 13 20:37:12 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Mon, 13 May 2002 15:37:12 -0400 Subject: [Zope] Defensive Zope Development References: <5.1.0.14.0.20020513120408.00b1fbc8@mail.hurrah.com> Message-ID: <035501c1fab5$9460a1f0$f70510ac@mitretek.org> One thing's for certain - develop on a separate machine from your production machine. If you can't do that, better run a second Zope instance on a different port. Cheers, Tom P [Dan Shafer] > After my recent versioning fiasco, which I was able to solve with the help > of the great folks on this list, it seemed to me that I need to re-think my > one-instance-fits-all approach to Zope development. This was too scary. My > entire Zope instance, complete with multiple virtual hosts I'm building and > maintaining for clients, was inoperable for almost two days while I battled > the problem. > > So what is the preferred/recommended best practice for Zope development? Do I: > > 1. Stay with versioning, backing up my Zope sites more often and living > with rough edges (or my mistakes)? > 2. Create a second Zope instance, perhaps on my local drive (Win2K) and > only upload revised objects after proving them locally? > 3. Use some other brilliant strategy I haven't thought of? > > I'm sure this is a recurring issue. It's probably been talked about on this > list before, though I *did* search the archives and not find anything > illuminating. > From tpassin@mitretek.org Mon May 13 20:42:10 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Mon, 13 May 2002 15:42:10 -0400 Subject: [Zope] ZSQL questions References: <318685741A5BD31183A4006097BD8DD93808F9@PROSERV> Message-ID: <035c01c1fab6$45d62ae0$f70510ac@mitretek.org> [McDonnell, Larry] > > This was the only way I was able to get this to work. > > method="get"> > input_test is the zsql. > > I tried this method > but this is where the next thing I see is this zsql method in test mode. Any > sugesstions, thanks ahead of time. > If you use Netscape 4.x on Windows, there is a problem with POST (at least up to Zope 2.3.3, I don't know about the more recent versions). I've never been able to track down the reason or a work-around (there are a few threads in the list archives about this). It's not exactly the same as what you are describing, but it's worth trying another browser. Also, does it work when you use a GET instead of a POST? You certainly do not want to call manage_test in a production page! Cheers, Tom P From marcos@paladin-its.com Mon May 13 21:03:46 2002 From: marcos@paladin-its.com (Mark A. Robinson) Date: Mon, 13 May 2002 15:03:46 -0500 Subject: [Zope] framed menu refresh?!? Message-ID: Hi all. Ok I have 2 frames in my app. Left frame is my tree'd menu with some status info, too. Right frame is my data input side. User navigates with left frame, and it anchors the appropriate page over in the right frame. Now, here's the problem: if on the right the user selects something that affects the status of the app, how can I refresh the left frame so that it will display the change in status? Thanks for any help! From maxm@mxm.dk Mon May 13 21:06:03 2002 From: maxm@mxm.dk (Max M) Date: Mon, 13 May 2002 22:06:03 +0200 Subject: [Zope] Cannot copy/paste/rename zClasses Message-ID: <3CE01CAB.4070308@mxm.dk> Hmmm ... I have changed the meta type on a few of my zClass based products. I have also changed the "Add list name" in the factory, but I still cannot copy, move, rename etc. Has anybody got a clue?? Zope 2.5.1 but has been upgraded several times from way back. If I don't find a solution I will probably have to refactor into Python Products :-( and I could use that time for something else ... regards Max M From complaw@hal-pc.org Mon May 13 21:20:59 2002 From: complaw@hal-pc.org (complaw@hal-pc.org) Date: Mon, 13 May 2002 20:20:59 GMT Subject: [Zope] Squishdot Post Time-Shifting Code - For Posterity Message-ID: This is for posterity. I hope someone can use it in the future and save themselves a little time. The Problem: Your Zope site (and, but extension your Squishdot site) are in a server in one time zone, and your users are in another time zone. Your users are annoyed when their postings seem to be seven hours off. While you are happy that they notice such things, they pepper you with emails and postings to the effect that something is wrong, when in fact, all is right. To stop receiving the "bug" notices, you need some code to "time shift" the time displayed by Squishdot from your user's time zone. The Solution: In the index_html and posting_html DTML Methods in the Squishdot site, replace... with... .. where, in the case above, 0.2916667 is the time shift (7/24) to move from the Netherlands to CST. Substitute the value above for your time shift. The posting object has a "date" method that retuns a DateTime that you can use to perform the arithmatic. Many thanks to Chris Withers for his astounding patience. Hope that helps. Ron From george@ellenburg.org Mon May 13 21:21:09 2002 From: george@ellenburg.org (George M. Ellenburg) Date: Mon, 13 May 2002 16:21:09 -0400 Subject: [Zope] framed menu refresh?!? In-Reply-To: References: Message-ID: <200205131621.09740@athlon> On Monday 13 May 2002 04:03 pm, Mark A. Robinson wrote: > Hi all. > Ok I have 2 frames in my app. Left frame is my tree'd menu with some > status info, too. Right frame is my data input side. User navigates with > left frame, and it anchors the appropriate page over in the right frame. > Now, here's the problem: if on the right the user selects something that > affects the status of the app, how can I refresh the left frame so that > it will display the change in status? > Thanks for any help! I'm doing something similar. In your right- frame, just do this: This does requrie that javascript be turned on in your visitor's browsers. ;-( -- George M. Ellenburg 3 Years and counting of being 100% Microsoft-free; and much more productive. Proud user of ASK , the Active Spam Killer! --- A disciple of another sect once came to Drescher as he was eating his morning meal. "I would like to give you this personality test", said the outsider, "because I want you to be happy." Drescher took the paper that was offered him and put it into the toaster -- "I wish the toaster to be happy too". From complaw@hal-pc.org Mon May 13 21:26:36 2002 From: complaw@hal-pc.org (complaw@hal-pc.org) Date: Mon, 13 May 2002 20:26:36 GMT Subject: [Zope] Squishdot Post Time-Shifting Code - For Posterity Message-ID: Even better, replace... ..with... ..which is cleaner all around. Ron From tpassin@mitretek.org Mon May 13 21:37:43 2002 From: tpassin@mitretek.org (Thomas B. Passin) Date: Mon, 13 May 2002 16:37:43 -0400 Subject: [Zope] framed menu refresh?!? References: Message-ID: <037301c1fabe$08a6e490$f70510ac@mitretek.org> [Mark A. Robinson] Ok I have 2 frames in my app. Left frame is my tree'd menu with some status info, too. Right frame is my data input side. User navigates with left frame, and it anchors the appropriate page over in the right frame. Now, here's the problem: if on the right the user selects something that affects the status of the app, how can I refresh the left frame so that it will display the change in status? [Tom P] It depends what you mean by "refresh the left frame" - 1) Change some displayed value without reloading the frame. In this case, you have to notify the left frame using javascript executed in the right frame. You also have to figure out how you will show the update, and you have to handle an error condition in case the left frame isn't there any more or is not ready to handle the instruction. You also have to decide how many different browsers to support (in otherwords, how plain vanilla your javascript will be). Your code might look like this: // In the right frame, when the event occurs parent['left_frame'].update_selection('new_value') // In head element of the left frame // Display the new value in an input element in the left frame function update_selection(new_value){ document.form1.input1.value=new_value } 2) You reload the left frame from the server. In this case, you probably will want to send some data to the server so it knows what to display when the left frame reloads. To reload the left frame: // In the right frame parent['left_frame'].location.replace('the_left_page.html?newselection=new_v alue') This replaces the frame without adding to the history list, which is usually want for reloading frames. In the Zope page for the left frame, you look for "newselection" in the REQUEST and do the appropriate thing with it. Note that you have to handle the case where "newselection" is missing so that the page can open successfully the first time, when it will not receive any parameter. Of course, you can use as many parameters as you like. These basic methods are completely browser-neutral except that javascript has to be enabled. If you do not want that, you will have to modify 2) to reload the frameset instead of the left frame, and process the passed form data in the frameset instead of the left frame. Method 1) avoids a roundtrip to the server and is fast, therefore desirable for the user. Cheers, Tom P From Sylvain =?iso-8859-1?Q?Th=E9nault?= Mon May 13 21:37:04 2002 From: Sylvain =?iso-8859-1?Q?Th=E9nault?= (Sylvain =?iso-8859-1?Q?Th=E9nault?=) Date: Mon, 13 May 2002 22:37:04 +0200 Subject: [Zope] making product from the filesystem In-Reply-To: References: <20020513174043.GA6752@ntw23.fr> Message-ID: <20020513203704.GA8179@ntw23.fr> On Monday 13 May à 12:59, John Hunter wrote: > >>>>> "Sylvain" == Sylvain Th?nault writes: > > Sylvain> hello, I'm attempting to make my first Zope product but I > Sylvain> have some problems to install it to test it > Sylvain> behavior. I've just put my code under the > Sylvain> /usr/lib/zope/lib/python/Products directory, but Zope > Sylvain> doesn't load my product. Is there anything else to do ? > Sylvain> (there is a __init__.py which initialize the product, I > Sylvain> took MailHost as example to construct my product) > > This is the right approach -- perhaps there is a bug in your code > somewhere? Without seeing your code, it's hard to know where the > problem is. Start with a minimal product, see below) and try to > import that. You can grow from there. > > Sylvain> In a more general way, I don't understand how to > Sylvain> reinstall a product which has been removed from the Zope > Sylvain> www control panel... Does the products live in the ZODB ? > Sylvain> Is there any problems with installing a product in Zope > Sylvain> for testing (code may change directly in the filesystem) > Sylvain> ? > > If you restart Zope, the product should reappear, as far as I know. > As for working with test code, if you put a file called refresh.txt in > your product dir, you can reload your product from the manager > interface without restarting zope. > > Sylvain> I didn't found consistent information about how to > Sylvain> construct Zope products from the SF instead of from the > Sylvain> www interface, and I'ld be able to read a document which > Sylvain> answer to all those questions :-) > > 3 very helpful resources for this, the maxm minimal product guides: > > http://www.zope.org/Members/maxm/HowTo/minimal_01 > http://www.zope.org/Members/maxm/HowTo/minimal_02 > > and Chapter 4 of the Zope Developer's guide: > > http://www.zope.org/Documentation/ZDG > > You may also find the Boring Product Guide helpful > > http://www.zope.org/Members/gtk/Boring/HowTo-Boring > > Good luck, > John Hunter thanks for your answer and for the links. Actually my product is now loaded by Zope. It's appeared just after I had installed another product (ZRoundup). Strange... -- Sylvain Thénault From gspeer@linkline.com Mon May 13 21:03:53 2002 From: gspeer@linkline.com (Gary Speer) Date: Mon, 13 May 2002 13:03:53 -0700 Subject: [Zope] Re: Two buttons one method - References: <027e01c1fa9f$b33abe00$0602a8c0@linkline.com> <1021312398.14393.13.camel@flo.in.nuxeo.com> Message-ID: <02b401c1fab9$4ee97120$0602a8c0@linkline.com> Dear Mr. Guillaume - Pardon me for trying to help. Thank you for advising of my errors, its clear the requester and I both need to understand the software better. It appears that both of us have been appropriately chastized by your two notes. I am disappointed to see the requester still doesn't have a viable suggestion since no one is offering a solution, only criticizing our posts. As a newbie, I tried to locate a mailing list FAQ similar to those found on NNTP groups and monitor for several days so that I could learn the proper way to participate. We're obviously on the wrong mailing list. I do invite you to refer us to a place where new zope users can try to find assistance so we do not disturb your group. My apologies to you and the group. Gary ----- Original Message ----- From: "Florent Guillaume" To: "Gary Speer" Cc: Sent: Monday, May 13, 2002 10:53 AM Subject: Re: Two buttons one method - > Hi, > > - Why are you sending this to me? I'm not the one who has a problem. > > - Please don't send HTML mails. > > - Please keep the subject so that we can find the thread you're > responding to. > > - Your first method isn't always applicable, it's not always possible to > split the form in two. > > - Your second method doesn't work. > > Florent > From c.roth@themelios.de Mon May 13 18:30:51 2002 From: c.roth@themelios.de (Christoph Roth) Date: Mon, 13 May 2002 19:30:51 +0200 Subject: [Zope] Using Zope to generate offline content In-Reply-To: <17499.1021273975@www2.gmx.net> Message-ID: <3CE0146B.24148.6D5D33@localhost> On 13 May 2002 at 9:12, Christoph Schmitz wrote: > Hi all, > > I wonder if anyone uses Zope to generate "offline" content; what I mean is, > I'd like to use Zope to manage content, generate navigation stuff and the > like, but my ISP only offers static HTML pages. Thus, the idea is to export a > Zope site to static HTML pages and publish those. (Actually, I'm looking for a > replacement for the Website Meta Language (WML).) (..) Hi Christoph, a good starting point for me was a short Howto "Mirror Zope with wget" on Zope.org, look at http://www.zope.org/Members/hdw/Tip/wget Greetings, Christoph From octos@austin.rr.com Mon May 13 22:00:00 2002 From: octos@austin.rr.com (Eric Adam) Date: Mon, 13 May 2002 16:00:00 -0500 Subject: [Zope] ZCatalog can't find anything Message-ID: I have a fresh install of Zope 2.5.1 (Python 1.3.1) running on XP pro and am attempting to use a Zcatalog. The catalog is created without proublems bot I can not get the "Find Objects" tab to return any results no matter how narrow or broad the criteria is. The "Find" tab of any other object works fine. Is this a problem with me or the software? I've followed a number of tutorials and examples to the letter with the same (lack of) results. "I am not a number! I am a free man!" --The Prisoner From matt@zope.com Mon May 13 22:07:19 2002 From: matt@zope.com (Matthew T. Kromer) Date: Mon, 13 May 2002 17:07:19 -0400 Subject: [Zope] ZCatalog can't find anything References: Message-ID: <3CE02B07.2060703@zope.com> Eric Adam wrote: >I have a fresh install of Zope 2.5.1 (Python 1.3.1) running on XP pro and am attempting to use a Zcatalog. The catalog is created without proublems bot I >can not get the "Find Objects" tab to return any results no matter how narrow or broad the criteria is. The "Find" tab of any other object works fine. > >Is this a problem with me or the software? I've followed a number of tutorials and examples to the letter with the same (lack of) results. > >"I am not a number! I am a free man!" --The Prisoner > > > Finding objects in a catalog context means cataloging those objects :) It doesn't have a 'search results' type dialog. -- Matt Kromer Zope Corporation http://www.zope.com/ From fg@nuxeo.com Mon May 13 22:16:32 2002 From: fg@nuxeo.com (Florent Guillaume) Date: 13 May 2002 23:16:32 +0200 Subject: [Zope] Re: Two buttons one method - In-Reply-To: <02b401c1fab9$4ee97120$0602a8c0@linkline.com> References: <027e01c1fa9f$b33abe00$0602a8c0@linkline.com> <1021312398.14393.13.camel@flo.in.nuxeo.com> <02b401c1fab9$4ee97120$0602a8c0@linkline.com> Message-ID: <1021324592.14393.17.camel@flo.in.nuxeo.com> Please don't be overly dramatic about this. zope@zope.org is the perfect place. Just because I try to be brief and to the point doesn't mean that I have anything against you or what you say. Besides, I did propose alternative solutions. Florent On Mon, 2002-05-13 at 22:03, Gary Speer wrote: > Dear Mr. Guillaume - > Pardon me for trying to help. > Thank you for advising of my errors, its clear the requester and I both > need to understand the software better. > It appears that both of us have been appropriately chastized by your two > notes. I am disappointed to see the requester still doesn't have a viable > suggestion since no one is offering a solution, only criticizing our > posts. > > As a newbie, I tried to locate a mailing list FAQ similar to those found > on NNTP groups and monitor for several days so that I could learn the > proper way to participate. We're obviously on the wrong mailing list. > > I do invite you to refer us to a place where new zope users can try to > find assistance so we do not disturb your group. > My apologies to you and the group. > Gary > > ----- Original Message ----- > From: "Florent Guillaume" > To: "Gary Speer" > Cc: > Sent: Monday, May 13, 2002 10:53 AM > Subject: Re: Two buttons one method - > > > > Hi, > > > > - Why are you sending this to me? I'm not the one who has a problem. > > > > - Please don't send HTML mails. > > > > - Please keep the subject so that we can find the thread you're > > responding to. > > > > - Your first method isn't always applicable, it's not always possible to > > split the form in two. > > > > - Your second method doesn't work. > > > > Florent > > > > > -- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com From pydan@danshafer.com Mon May 13 22:29:10 2002 From: pydan@danshafer.com (Dan Shafer) Date: Mon, 13 May 2002 14:29:10 -0700 Subject: [Zope] Duplicating a Zope Instance Message-ID: <5.1.0.14.0.20020513142630.00b1db38@mail.hurrah.com> I'm trying to figure out the best way to take an existing Zope instance on a remote server, which has a *lot* of virtual host stuff and quite a bit of product installed, and replicate it on a local Win2K box both for safety and to give me a local instance to experiment with. I copied down Data.fs and the related index file to my local Zope instance and fired up the local instance. Of course, I generated a huge number of errors. Not surprising. It became obvious I'd have to either copy down or reinstall locally all the products I've added to the remote Zope instance. But I'm not at all sure what pieces of the Zope install are essential, which will be automatically generated if not found (indexes?), or, frankly, much of anything else about this process. From chrisw@nipltd.com Mon May 13 22:33:03 2002 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 13 May 2002 22:33:03 +0100 Subject: [Zope] Squishdot Post Time-Shifting Code - For Posterity References: Message-ID: <3CE0310F.62F2A952@nipltd.com> complaw@hal-pc.org wrote: > > The posting object has a "date" method that retuns a DateTime that you can use > to perform the arithmatic. Many thanks to Chris Withers for his astounding > patience. *grinz* Now that I want recorded for posterity, I think it's the first time anyone has ever seen me have patience rather than cause patients ;-) Chris From robert@redcor.ch Mon May 13 22:46:09 2002 From: robert@redcor.ch (Robert Rottermann) Date: Mon, 13 May 2002 23:46:09 +0200 Subject: [Zope] Javascript question Message-ID: <000701c1fac7$97e110f0$74c5a2d9@karin> Hi, I am trying to copy data the user has entered in an >input> tag programmatically. like so function moveToZope() { document.forms[0].data.value = document.all.doc.innerHTML document.forms[0].submit() } this works fin to to about 2000 characters. If there is more data that is to be passed, I get an sintax error upon calling submit(). I tried both with document.forms[0].data being an or a