From sven.hohage@zeitspringer.de Sat Sep 2 15:44:10 2000 From: sven.hohage@zeitspringer.de (Sven Hohage) Date: Sat, 02 Sep 2000 16:44:10 +0200 Subject: [Zope] Proxy-role???? Message-ID: <39B1123A.35F2FC3F@zeitspringer.de> Hello, I wanted to change a method (code->Zurueck zur Einstiegsseite)because I had changed the Objectname.The role was manager with all the premissions, but Zope didn't want me to do that!! Message of Zope ->"You are not authorized to change link_home because you do not have proxy roles. " Why???? Thanks. From sven.hohage@zeitspringer.de Sun Sep 3 09:46:07 2000 From: sven.hohage@zeitspringer.de (Sven Hohage) Date: Sun, 03 Sep 2000 10:46:07 +0200 Subject: [Zope] Security Problem Message-ID: <39B20FCE.DDC1BA4D@zeitspringer.de> Hi, I've got two questions. 1.Is Zope 2.2.0 masking the length of the passwords? 2. the more important-> I'm using a method to change properties by form. The user i.e. Tim has the role manager in the highest user_folder and acquisition is kept but Zope tells me that the user is not authorized. Why??? Thanks! From sven.hohage@zeitspringer.de Sun Sep 3 10:08:30 2000 From: sven.hohage@zeitspringer.de (Sven Hohage) Date: Sun, 03 Sep 2000 11:08:30 +0200 Subject: [Zope] Security (proxy role??) Message-ID: <39B2150E.A1A90FE5@zeitspringer.de> Hi, I've got two questions. 1.Is Zope 2.2.0 masking the length of the passwords? 2. the more important-> I'm using a method to change properties by form. The user i.e. Tim has the role manager in the highest user_folder and acquisition is kept but Zope tells me that the user is not authorized. Why??? Thanks! From dkt@registriesltd.com.au Fri Sep 1 01:19:47 2000 From: dkt@registriesltd.com.au (David Trudgett) Date: Thu, 31 Aug 2000 14:19:47 -1000 Subject: [Zope] Localtime logging Message-ID: <4.3.1.2.20000831141855.00b31520@regint> Does anyone happen to know if Zope can be made to log in local time instead of UTC? David Trudgett From hungjunglu@hotmail.com Fri Sep 1 01:46:45 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Thu, 31 Aug 2000 17:46:45 PDT Subject: [Zope] Re: HappySession Message-ID: --- In zope@egroups.com, Diego Rodrigo Neufert wrote: >I'm making a site with frames with session management. I'm using >HappySession >to do it... >I need to call SESSION['something'] in various frames at the same time, but >when a SESSION expire I got a Transaction Error that blow up my Zserver... > >Anyone know how to solve this or another SESSION product that doesnt have >that >problem? Arghh! Sorry about that. It made you very unhappy, I guess. :( Please try SQLSession and FSSession. I'll go dig into the problem. Could you provide a little bit more details? Anything will help. (Is your server Unix of Windows based? Have you had more then one crash?) obrigado, Hung Jung _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From chrism@digicool.com Fri Sep 1 02:20:39 2000 From: chrism@digicool.com (Chris McDonough) Date: Thu, 31 Aug 2000 21:20:39 -0400 Subject: [Zope] Localtime logging References: <4.3.1.2.20000831141855.00b31520@regint> Message-ID: <39AF0467.F17EDCF7@digicool.com> I think the most recent release does do this.. at least I dimly remember a checkin message to that effect. David Trudgett wrote: > > Does anyone happen to know if Zope can be made to log in local time instead > of UTC? > > David Trudgett > > _______________________________________________ > 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 dkuhlman@netcom.com Fri Sep 1 02:27:07 2000 From: dkuhlman@netcom.com (G. David Kuhlman) Date: Thu, 31 Aug 2000 18:27:07 -0700 (PDT) Subject: [Zope] How to use DocumentTemplate custom formats from Python? In-Reply-To: <39ADE549.2805DABD@earthlink.net> from "Kapil Thangavelu" at Aug 30, 2000 09:55:37 PM Message-ID: <200009010127.SAA04890@netcom.com> > > Hamish Lawson wrote: > > > > I'm using DocumentTemplate from Python (not in Zope) and I want to use > > a custom format 'javascript_quote' that I've written. In my DTML file I > > have: > > [snip] > > > you should implement a formating function and register it with > special_formats > > for examples of both look near the end /DocumentTemplate/DT_Var.py > > Kapil Another suggestion -- If the thing identified by the 'name' attribute is an instance of a class that you have implemented, then implement javascript_quote as a method in that class. If not, then use Kapil's suggestion above. In either case, you can find the relevant code in /DocumentTemplate/DT_Var.py. Search for 'special_formats' to find out how DocumentTemplate processing does the lookup and applies the formatting format/function/method. - Dave > > _______________________________________________ > 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 bill@libc.org Fri Sep 1 02:13:55 2000 From: bill@libc.org (Bill Anderson) Date: Thu, 31 Aug 2000 19:13:55 -0600 Subject: [Zope] Re[2]: [Zope] and PARENTS[0] References: <00c501c0134e$0758a280$0301a8c0@tim> <31197008363.20000831153041@funcom.com> <00e501c01351$c1348fe0$0301a8c0@tim> <12198537832.20000831155611@funcom.com> Message-ID: <39AF02D3.AAB7F6D6@libc.org> Geir BXkholt wrote: ... > acquisition, i guess.. satandard_html_header would not Now that is one 'hell' of a typo! ;^)= -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From hungjunglu@hotmail.com Fri Sep 1 03:03:17 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Thu, 31 Aug 2000 19:03:17 PDT Subject: [Zope] Re: HappySession Message-ID: My conjecture now is that your error-handling HTML might be accessing attributes from Zope server. A more correct way of handling exceptions should have been using the ...... block. But I kind of make a cheat sheet recipe recommendation, tweaking the standard_error_message, which was not a good idea. When Zope arrives to standard_error_message, the transaction has been aborted and if your session_not_found_html is not simple enough and uses more DTML features, I can see that it can cause transaction error. Can you send me your session_not_found_html? I think this was the problem. In the future I will remove the standard_error_message trick from the help file and instead tell people to use proper exception handling, which is the right way of doing things. But it will require people to structure their sites more carefully so they can catch the SessionNotFound exception. Basically, it is recommended that you have single (or few) index_html on your site, and place a ...... block to capture all exceptions from Zope and deal with them. It's the right way of doing things, it's just that many people tend to have many index_html and it will make their site harder to catch exceptions and deal with them in a centralized way. In short, HappySession itself is probably not the cause of the transaction error. The problem probably comes from bad exception handling. If you want to use the standard_error_message trick, then please use a simple html page for session_not_found_html without additional Zope features. If I find out more, I'll let you know. regards, Hung Jung _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From twcook@iswt.com Fri Sep 1 04:05:41 2000 From: twcook@iswt.com (Tim Cook) Date: Thu, 31 Aug 2000 22:05:41 -0500 Subject: [Zope] The Challenge: Zealots vs. Skeptics References: <20000831200326.49778C0ED@argyle.goingv.com> Message-ID: <39AF1D05.E33EEF47@iswt.com> Marty McKeever at Work wrote: > The question is this: "What are some examples of high-profile and/or > enterprise level ecommerce or web production sites using zope?" > > Send me examples and i'll post them to the original thread. > Did you try here? http://www.zope.org/Resources/CaseStudies -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From bill@libc.org Fri Sep 1 04:09:09 2000 From: bill@libc.org (Bill Anderson) Date: Thu, 31 Aug 2000 21:09:09 -0600 Subject: [Zope] The Challenge: Zealots vs. Skeptics References: <20000831200326.49778C0ED@argyle.goingv.com> Message-ID: <39AF1DD5.BF92CCC5@libc.org> Marty McKeever at Work wrote: > > A recent thread has developed on a well established web development list > concerning the viability of zope as an appserver. > > I dont want to continue the thread here, but a good question was asked and > no suitable answers have come in. Surely this list can help. > > The question is this: "What are some examples of high-profile and/or > enterprise level ecommerce or web production sites using zope?" > > Send me examples and i'll post them to the original thread. > > Marty > > PS: dont send me to YOUR website, unless you can provide the traffic > numbers that back it up. http://www.netcraft.com/survey/Reports/0008/bydomain/com/Zope.html Is a decent starting point... Particularly noteworthy entries: www.toyota-motorsports.com www.hiretechs.com www.hiringtools.com www.codecatalog.com and of course, zope.org. It may help to define what you mean by 'enterprise level'. Seems everyone has a different meaning for it. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From curtis@umd.com.au Fri Sep 1 04:46:16 2000 From: curtis@umd.com.au (Curtis Maloney) Date: Fri, 1 Sep 2000 14:46:16 +1100 Subject: [Zope] Zope.org is soooooo slow (not really) In-Reply-To: References: Message-ID: <00090114461600.19370@localhost.localdomain> On Fri, 01 Sep 2000, J. Atwood wrote: > Umm.. what makes you say it is slow? It popped up just as fast as > Microsoft.com and Apple.com this morning (with each page after even > faster). > > Might be your connection. Certainly not slow from here (NYC, DSL) > > J > I have to agree with Erik... Sometimes (much of the time) it comes through just fine. But on some days (and it does seem to last just the day) it's slower than a wet weekend. Saying it works fine for you isn't really all that fair, since you are in the same country. What would be interesting to know is WHY it gets slow. If it really is something beyond their control, perhaps mirror sites? Have a better one, Curtis. From kthangavelu@earthlink.net Fri Sep 1 01:51:24 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Thu, 31 Aug 2000 17:51:24 -0700 Subject: [Zope] indexing pdf files References: <39ADF318.16EF8E34@adroit.net> Message-ID: <39AEFD8C.5AC90697@earthlink.net> Terry Kerr wrote: > > Hi, > > I need to be able to index the text within pdf files. I assume I will > somehow use PrincipiaSearchSource, but I need to know how to get the > text out of the pdf when it is uploaded to the ZODB. Has anyone done > this before? Are there any packages around that I can use that run in > python or at least on a linux box that I can pipe to and from? > > terry > from xml2pdf there are a multitude of ways in python XSLT - check out the ibm.com/developer xmlzone they have an article in the education lib for transforming xml to pdf. platypus packages from http://www.reportlab.com/ they might give you some help in going the other way.. as for implementation... looking at a pdf in a text viewer it appears to be formating text and encoded display strings. you could write a subclass of file, which read its content upon upload stripping the formatting string and decoding the display strings and storing that as a property to be indexed. Kapil From twcook@iswt.com Fri Sep 1 07:14:43 2000 From: twcook@iswt.com (Tim Cook) Date: Fri, 01 Sep 2000 01:14:43 -0500 Subject: [Zope] Designing with Zope Message-ID: <39AF4953.96515A11@iswt.com> Hoefully this is not too ambiguous. But I'm wondering if there are any "gotcha's" in developing an application that would maintain parts of it's data in ZODB and the rest in an RDBMS? This might be better stated as a situation where one application that uses Zope and an RDBMS was a sub-part of a ZODB application. Say, a sales management app in ZODB uses an accounting app that stores its data in an RDBMS through the same Zope server? Thanks, -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From kayeva@hotmail.com Fri Sep 1 09:14:13 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Fri, 01 Sep 2000 08:14:13 GMT Subject: [Zope] Copying a dtml method when creating a ZClass instance Message-ID: Hi, I need some help. I have a DTML method at the root of Zope called 'Template'. How can I make the constructor of a ZClass (folderish) to copy this method to each of its instances ? Can someone provide me with a complete snippet to add in the ZClass constructor ? Many thanks. Kamon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From dsergent@imexpert.com Fri Sep 1 09:42:12 2000 From: dsergent@imexpert.com (dsergent@imexpert.com) Date: Fri, 1 Sep 2000 10:42:12 +0200 Subject: [Zope] a redirect of an url in Python Message-ID: This is a multipart message in MIME format. --=_alternative 003027DDC125694D_= Content-Type: text/plain; charset="us-ascii" I want to redirect my current url to another in Python. I've tried return REQUEST.get('url'), but It only writes the url on the screen. Can anyone help me ????? thks a lot David Sergent A french zoppeur :o) --=_alternative 003027DDC125694D_= Content-Type: text/html; charset="us-ascii"
I want to redirect my current url to another in Python. I've tried return REQUEST.get('url'), but It only writes the url on the screen.

Can anyone help me ?????

thks a lot
David Sergent
A french zoppeur :o) --=_alternative 003027DDC125694D_=-- From dsergent@imexpert.com Fri Sep 1 10:11:06 2000 From: dsergent@imexpert.com (dsergent@imexpert.com) Date: Fri, 1 Sep 2000 11:11:06 +0200 Subject: [Zope] =?iso-8859-1?q?R=E9f?= =?us-ascii?q?=2E_=3A_?= =?us-ascii?q?Re?= =?us-ascii?q?=3A_[?= =?us-ascii?q?Zope?= =?us-ascii?q?]_?= =?us-ascii?q?a?= redirect of an url in Python =?us-ascii?q?=3A_[?= =?us-ascii?q?Zope?= =?us-ascii?q?]_?= =?us-ascii?q?a?= redirect of an url in Python Message-ID: This is a multipart message in MIME format. --=_alternative 0032C838C125694D_= Content-Type: text/plain; charset="us-ascii" Thks for your answer, but it's not the good solution : Error Type: KeyError Error Value: redirect Troubleshooting Suggestions This resource may be trying to reference a nonexistent object or variable redirect. 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 C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Program Files\ZopeServer\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Program Files\ZopeServer\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_defined_roles) File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_defined_roles) File C:\Program Files\ZopeServer\lib\python\AccessControl\Role.py, line 478, in manage_defined_roles (Object: Traversable) File C:\Program Files\ZopeServer\lib\python\AccessControl\Role.py, line 500, in _addRole (Object: Traversable) File C:\Program Files\ZopeServer\lib\python\ZPublisher\HTTPRequest.py, line 810, in __getitem__ KeyError: (see above) try to use REQUEST.redirect(url) ----- Original Message ----- From: dsergent@imexpert.com To: zope@zope.org Sent: Friday, September 01, 2000 1:42 AM Subject: [Zope] a redirect of an url in Python I want to redirect my current url to another in Python. I've tried return REQUEST.get('url'), but It only writes the url on the screen. Can anyone help me ????? thks a lot David Sergent A french zoppeur :o) --=_alternative 0032C838C125694D_= Content-Type: text/html; charset="us-ascii"
Thks for your answer, but it's not the good solution :

Error Type: KeyError
Error Value: redirect


Troubleshooting Suggestions

  • This resource may be trying to reference a nonexistent object or variable redirect.
  • 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 C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 222, in publish_module
 File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 187, in publish
 File C:\Program Files\ZopeServer\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
   (Object: Traversable)
 File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 171, in publish
 File C:\Program Files\ZopeServer\lib\python\ZPublisher\mapply.py, line 160, in mapply
   (Object: manage_defined_roles)
 File C:\Program Files\ZopeServer\lib\python\ZPublisher\Publish.py, line 112, in call_object
   (Object: manage_defined_roles)
 File C:\Program Files\ZopeServer\lib\python\AccessControl\Role.py, line 478, in manage_defined_roles
   (Object: Traversable)
 File C:\Program Files\ZopeServer\lib\python\AccessControl\Role.py, line 500, in _addRole
   (Object: Traversable)
 File C:\Program Files\ZopeServer\lib\python\ZPublisher\HTTPRequest.py, line 810, in __getitem__
KeyError: (see above)





try to use REQUEST.redirect(url)


----- Original Message -----
From:  dsergent@imexpert.com
To: zope@zope.org
Sent: Friday, September 01, 2000 1:42  AM
Subject: [Zope] a redirect of an url in  Python


I want to redirect my current  url to another in Python. I've tried return REQUEST.get('url'), but It only  writes the url on the screen.

Can  anyone help me ?????

thks a  lot
David Sergent
A french zoppeur :o)

--=_alternative 0032C838C125694D_=-- From chrisw@nipltd.com Fri Sep 1 10:32:39 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 10:32:39 +0100 Subject: [Zope] Good Examples of Zope in Action References: <20000831200326.49778C0ED@argyle.goingv.com> Message-ID: <39AF77B7.4677B8E0@nipltd.com> Marty McKeever at Work wrote: > The question is this: "What are some examples of high-profile and/or > enterprise level ecommerce or web production sites using zope?" > > Send me examples and i'll post them to the original thread. Paul, Maybe now would be a good time to chime in with the CBS and Yahoo!(HomeSite?) examples you mentioned in Paris :-) cheers, Chris From chrisw@nipltd.com Fri Sep 1 10:37:12 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 10:37:12 +0100 Subject: [Zope] Designing with Zope References: <39AF4953.96515A11@iswt.com> Message-ID: <39AF78C8.9FAF0722@nipltd.com> Tim Cook wrote: > Hoefully this is not too ambiguous. But I'm wondering if there > are any "gotcha's" in developing an application that would > maintain parts of it's data in ZODB and the rest in an RDBMS? Can't think of any... If you're brave you could try ZPatterns and then realyl not care at all ;-) cheers, Chris From chrisw@nipltd.com Fri Sep 1 10:44:47 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 10:44:47 +0100 Subject: [Zope] a redirect of an url in Python References: Message-ID: <39AF7A8F.E34969AB@nipltd.com> dsergent@imexpert.com wrote: > > I want to redirect my current url to another in Python. I've tried > return REQUEST.get('url'), but It only writes the url on the screen. Firstup, posting HTML mail to the list doesn't help anyone ;-) That said, It sounds like what you want to do is end your python method with: return REQUEST.RESPONSE.redirect(REQUEST['url']) HTH, Chris From Paul@digicool.com Fri Sep 1 10:54:21 2000 From: Paul@digicool.com (Paul Everitt) Date: Fri, 1 Sep 2000 05:54:21 -0400 Subject: [Zope] RE: Good Examples of Zope in Action Message-ID: <613145F79272D211914B0020AFF640197138B0@gandalf.digicool.com> First, note that I can only talk on the record about things that are here now and that I have the OK to talk about. There have been a number of big things we've done over the last year, like our work with HomeGain that you allude to below. It's important for me to work closely with them to get the correct statement on the record. It's not always a fast process, but these things are likely to get accelerated in September. --Paul > -----Original Message----- > From: Chris Withers [mailto:chrisw@nipltd.com] > Sent: Friday, September 01, 2000 2:33 AM > To: paul@digicool.com > Cc: Marty McKeever at Work; zope@zope.org > Subject: Good Examples of Zope in Action > > > Marty McKeever at Work wrote: > > The question is this: "What are some examples of > high-profile and/or > > enterprise level ecommerce or web production sites using zope?" > > > > Send me examples and i'll post them to the original thread. > > Paul, > > Maybe now would be a good time to chime in with the CBS and > Yahoo!(HomeSite?) examples you mentioned in Paris :-) > > cheers, > > Chris > From kedai@kedai.com.my Fri Sep 1 07:39:41 2000 From: kedai@kedai.com.my (Bak @ kedai) Date: Fri, 1 Sep 2000 14:39:41 +0800 Subject: [Zope] Success in installing ZPoPyDA (after 3 months...) Message-ID: <000301c013fb$3010cba0$e593bcca@kedai> where did you find lin ux.h that's needed by PoPy? thtt stump me from continuing. thanks -----Original Message----- From: Hung Jung Lu To: zope@zope.org Date: Friday, September 01, 2000 4:04 AM Subject: [Zope] Success in installing ZPoPyDA (after 3 months...) >Good news. I finally succeeded in installing ZPoPyDA (PostgreSQL database >adapter for Zope.) I think it was more than 3 months ago when I started to >try to install ZPoPyDA. > >The process involved many tricky steps, the most tricky one was, uh, >installing a whole new Linux operating system. (Upgrade from 5.2 to 6.2) :) > >But sweat and blood were involved in many other little tiny things. >Including installing PostgreSQL and its dev package RPMs, Python Dev, >figuring out what was missing in os.h and where to find linux.h for the >PostgreSQL, version compatibility problems between PoPy and ZPoPyDA, etc. So >many steps that I don't remember them all, now. > >Do I recommend PostgreSQL to other Zope users? Probably yes. But I'd advise >them to give themselves *plenty* of time to deal with installation issues. I >know, some have been lucky and did not have any problems. But for me, it's >been a horrible experience. But I hope the reward of a good (and cheap) >database will compensate all the bad times. > >regards, > >Hung Jung > >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > >Share information about yourself, create your own public profile at >http://profiles.msn.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 zope@philosoft.at Fri Sep 1 11:23:23 2000 From: zope@philosoft.at (Philipp Auersperg) Date: Fri, 01 Sep 2000 12:23:23 +0200 Subject: [Zope] Wish for the next Zope Release: Doc tab for every Zope entity Message-ID: <200009011223230687.262D2376@192.7.2.223> --=====_96780380341=_ Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Mostly when developing a project it should be documented as well :) The best would be a strucutral documentation that can be generated out of the project so that it always keeps track of the software and is up= to date - Python has that because there are the doc strings for classes and methods - Java has it (javadoc) - Zope - ? For Zope it would be fine if every entity in the ODB has a 'Documentation'= tab So I could when developing a Zope site always on the fly document its= structure without having to leave y developing environment. Then its an easy thing to write a doc generator that queries the objects in= the ODB and their documentation. Did I miss something and such a beast exists or is there really something= to be done? I don't mean documentation in , I mean documentation as= seperate property for each object and method. Philipp Auersperg (zwork) --=====_96780380341=_ Content-Type: text/html; charset="us-ascii"
Mostly when developing a project it should be documented as well :)
The best would be a strucutral documentation that can be generated
out of the project so that it always keeps track of the software and is up to date
 
- Python has that because there are the doc strings for classes and methods
- Java has it (javadoc)
- Zope - ?
 
For Zope it would be fine if every entity in the ODB has a 'Documentation' tab
So I could when developing a Zope site always on the fly document its structure
without having to leave y developing environment.
 
Then its an easy thing to write a doc generator that queries the objects in the ODB
and their documentation.
 
Did I miss something and such a beast exists or is there really something to be done?
I don't mean documentation in <dtml-comment>, I mean documentation as seperate
property for each object and method.
 
Philipp Auersperg (zwork)
 
--=====_96780380341=_-- From Paul@digicool.com Fri Sep 1 11:34:10 2000 From: Paul@digicool.com (Paul Everitt) Date: Fri, 1 Sep 2000 06:34:10 -0400 Subject: [Zope] Is anyone know when Zope was born ??? Message-ID: <613145F79272D211914B0020AFF640197138B9@gandalf.digicool.com> As far as I'm concerned, Zope was born Saturday, June 8, 1996. This was Jim Fulton's plane trip back from IPC4: http://www.python.org/workshops/1996-06/ Beyond that, Zope (as a unification of previous software) was announced in November 1998 and released in December 1998. DC had some prior art in the field before IPC4, such as my W3C tech note on the "ILU Requester", technology for making web servers talk CORBA to services. Also, Brian Lloyd had, with someone else here at the time, cooked up an early ORB to handle message dispatch from the web into Python. However, our work was tiny compared to Jim's plane trip back. I pick the 1996 date because, well, from a marketing perspective it makes Zope look more mature. :^) But that's the best date. Here's "the rest of the story". Jim joined Digital Creations about a week before IPC4. He had already scheduled to go to IPC4, and I had scheduled to go and teach a CGI class. Instead, I decided to go on vacation and make him teach the class. Slight problem: he had never heard of CGI. So on the plane ride there he read the CGI spec, some background material, and rewrote my presentation. In the process he decided CGI was broken and needed a bunch of things, primarily object orientation. The "python object publisher" (an ORB) was conceived during the conference and was largely written on the plane ride back. The ORB quickly took over our consulting business. Within a year we added a template system, then a persistent object system, then... That's the story. So there, we have a birthdate! --Paul > -----Original Message----- > From: Chris Withers [mailto:chrisw@nipltd.com] > Sent: Wednesday, August 30, 2000 5:17 AM > To: Frederic Quin > Cc: zope@zope.org; paul@digicool.com > Subject: Re: [Zope] Is anyone know when Zope was born ??? > > > Frederic Quin wrote: > > > > Is anyone know when Zope was born ??? > > Paul, you must know the answer to this one ;-) > > cheers, > > Chris > From akm@mail.theinternet.com.au Fri Sep 1 11:36:54 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Fri, 1 Sep 2000 20:36:54 +1000 Subject: [Zope] Is anyone know when Zope was born ??? In-Reply-To: <613145F79272D211914B0020AFF640197138B9@gandalf.digicool.com>; from Paul Everitt on Fri, Sep 01, 2000 at 06:34:10AM -0400 References: <613145F79272D211914B0020AFF640197138B9@gandalf.digicool.com> Message-ID: <20000901203654.N76681@zeus.theinternet.com.au> +-------[ Paul Everitt ]---------------------- | | As far as I'm concerned, Zope was born Saturday, June 8, 1996. This was | Jim Fulton's plane trip back from IPC4: | | http://www.python.org/workshops/1996-06/ That's the conception date, if you always skip straight to the birth, you're missing out on some fun d;) | Within a year we added a | template system, then a persistent object system, then... -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From chrisw@nipltd.com Fri Sep 1 11:43:30 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 11:43:30 +0100 Subject: [Zope] ZCatalog and OR searching References: <14766.46785.79690.445542@lindm.dm> Message-ID: <39AF8852.779FDD17@nipltd.com> Dieter Maurer wrote: > A ZCatalog search usually combines searches to the different > indexes with an "And". > You want to combine them with an "Or". Don't you wish there was a decent query language for ZCatalog so this kindof rediculous complexiting to achieve a simple outcome wasn't necessary? cheers, Chris PS: The example in the Advanced ZCatalog How-To does away with most of the catalog's advantages (like lazy searches, small results set, etc) From phd@mail2.phd.pp.ru Fri Sep 1 12:06:08 2000 From: phd@mail2.phd.pp.ru (Oleg Broytmann) Date: Fri, 1 Sep 2000 11:06:08 +0000 (GMT) Subject: [Zope] Is anyone know when Zope was born ??? In-Reply-To: <613145F79272D211914B0020AFF640197138B9@gandalf.digicool.com> Message-ID: Hello! Very interesting! Could you please publish the story somewhere on zope.org? On Fri, 1 Sep 2000, Paul Everitt wrote: > As far as I'm concerned, Zope was born Saturday, June 8, 1996. This was > Jim Fulton's plane trip back from IPC4: > > http://www.python.org/workshops/1996-06/ > > Beyond that, Zope (as a unification of previous software) was announced > in November 1998 and released in December 1998. > > DC had some prior art in the field before IPC4, such as my W3C tech note > on the "ILU Requester", technology for making web servers talk CORBA to > services. Also, Brian Lloyd had, with someone else here at the time, > cooked up an early ORB to handle message dispatch from the web into > Python. However, our work was tiny compared to Jim's plane trip back. > > I pick the 1996 date because, well, from a marketing perspective it > makes Zope look more mature. :^) But that's the best date. Here's "the > rest of the story". > > Jim joined Digital Creations about a week before IPC4. He had already > scheduled to go to IPC4, and I had scheduled to go and teach a CGI > class. Instead, I decided to go on vacation and make him teach the > class. Slight problem: he had never heard of CGI. > > So on the plane ride there he read the CGI spec, some background > material, and rewrote my presentation. In the process he decided CGI > was broken and needed a bunch of things, primarily object orientation. > The "python object publisher" (an ORB) was conceived during the > conference and was largely written on the plane ride back. The ORB > quickly took over our consulting business. Within a year we added a > template system, then a persistent object system, then... > > That's the story. So there, we have a birthdate! > > --Paul Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From zope@philosoft.at Fri Sep 1 12:30:11 2000 From: zope@philosoft.at (Philipp Auersperg) Date: Fri, 01 Sep 2000 13:30:11 +0200 Subject: [Zope] Re: HappySession In-Reply-To: References: Message-ID: <200009011330110203.266A49D1@192.7.2.223> I also use HappySession and when catching the SessionNotFoundError weird things happen: here my code: session error! When the session is expired the error is not caught correctly and I get the error mentioned below. Plus, I have to restart my server because ZODB reports a transactional error and sets itself to read-only. thanks Philipp Auersperg (zwork) ----------------------------------- Zope Error Zope has encountered an error while publishing this resource. Error Type: KeyError Error Value: SessionUID ----------------------------------- and the traceback: Traceback (innermost last): File /usr/local/Zope-2.1.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/Zope-2.1.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/Zope-2.1.4-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/local/Zope-2.1.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 169, in publish File /usr/local/Zope-2.1.4-linux2-x86/lib/python/ZODB/Transaction.py, line 275, in commit File /usr/local/Zope-2.1.4-linux2-x86/lib/python/Shared/DC/ZRDB/TM.py, line 120, in tpc_finish (Object: TM) File /usr/local/Zope-2.1.4-linux2-x86/lib/python/Products/HappySession/HappySession.py, line 168, in _finish (Object: TM) File /usr/local/Zope-2.1.4-linux2-x86/lib/python/Products/HappySession/HappySession.py, line 291, in _onTransactionEnded (Object: SESSION) File /usr/local/Zope-2.1.4-linux2-x86/lib/python/Products/HappySession/HappySession.py, line 255, in _store (Object: SESSION) KeyError: (see above) *********** REPLY SEPARATOR *********** On 31.08.2000 at 19:03 Hung Jung Lu wrote: >My conjecture now is that your error-handling HTML might be accessing >attributes from Zope server. A more correct way of handling exceptions >should have been using the ...... block. >But I kind of make a cheat sheet recipe recommendation, tweaking the >standard_error_message, which was not a good idea. When Zope arrives to >standard_error_message, the transaction has been aborted and if your >session_not_found_html is not simple enough and uses more DTML features, I >can see that it can cause transaction error. > >Can you send me your session_not_found_html? I think this was the problem. > >In the future I will remove the standard_error_message trick from the help >file and instead tell people to use proper exception handling, which is the >right way of doing things. But it will require people to structure their >sites more carefully so they can catch the SessionNotFound exception. >Basically, it is recommended that you have single (or few) index_html on >your site, and place a ...... block to >capture all exceptions from Zope and deal with them. It's the right way of >doing things, it's just that many people tend to have many index_html and it >will make their site harder to catch exceptions and deal with them in a >centralized way. > >In short, HappySession itself is probably not the cause of the transaction >error. The problem probably comes from bad exception handling. If you want >to use the standard_error_message trick, then please use a simple html page >for session_not_found_html without additional Zope features. If I find out >more, I'll let you know. > >regards, > >Hung Jung > >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > >Share information about yourself, create your own public profile at >http://profiles.msn.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 chrisw@nipltd.com Fri Sep 1 12:14:37 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 12:14:37 +0100 Subject: [Zope] ZPatterns Stability References: <39AF4953.96515A11@iswt.com> <39AF78C8.9FAF0722@nipltd.com> <39AF8E6A.8844BEB9@iswt.com> Message-ID: <39AF8F9D.81D064D3@nipltd.com> Tim Cook wrote: > > If you're brave you could try ZPatterns and then realyl not care at all > > ;-) > > > > > Don't you mean; 'If you're insane...' ? No, I really don't! ZPatterns is very cool, but still not documented. It's alpha but seems stable enough for production in a lot of cases. Phil? Steve A? backup? ;-) cheers, Chris From diego@magicwebdesign.com.br Fri Sep 1 12:09:43 2000 From: diego@magicwebdesign.com.br (Diego Rodrigo Neufert) Date: Fri, 1 Sep 2000 08:09:43 -0300 Subject: [Zope] Re: HappySession In-Reply-To: References: Message-ID: <00090108220900.20402@belzebu.magicwebdesign.com.br> Well, this problem just accours when I restart the server or I stay too much time idle and the session expires... The frame[0] (the first to be loaded) show a session not found message and in frame[1] I got this error: Error Type: KeyError Error Value: NDxCfgEr_89YtG So, if I refesh the page zope show me the transaction error and everything stops working.... I need to restart zope and my netscape (to clean all cookies) to get things working again.... Here's my session not found page but this error occours when I doesnt have one too... well, in the standard html header I call call a method that do a call in all my sessions.... I have two SESSION objects, one in the root of zope and other in the opt folder of zope.... look how I call the SESSIONS.... in standard_html_header The callSession method: session_not_found_html: O tempo máximo de duração foi ultrapassado.
Os items existentes no seu carrinho foram apagados.

Continue suas compras normalmente agora...
On Thu, 31 Aug 2000, you wrote: > My conjecture now is that your error-handling HTML might be accessing > attributes from Zope server. A more correct way of handling exceptions > should have been using the ...... block. > But I kind of make a cheat sheet recipe recommendation, tweaking the > standard_error_message, which was not a good idea. When Zope arrives to > standard_error_message, the transaction has been aborted and if your > session_not_found_html is not simple enough and uses more DTML features, I > can see that it can cause transaction error. > > Can you send me your session_not_found_html? I think this was the problem. > > In the future I will remove the standard_error_message trick from the help > file and instead tell people to use proper exception handling, which is the > right way of doing things. But it will require people to structure their > sites more carefully so they can catch the SessionNotFound exception. > Basically, it is recommended that you have single (or few) index_html on > your site, and place a ...... block to > capture all exceptions from Zope and deal with them. It's the right way of > doing things, it's just that many people tend to have many index_html and it > will make their site harder to catch exceptions and deal with them in a > centralized way. > > In short, HappySession itself is probably not the cause of the transaction > error. The problem probably comes from bad exception handling. If you want > to use the standard_error_message trick, then please use a simple html page > for session_not_found_html without additional Zope features. If I find out > more, I'll let you know. > > regards, > > Hung Jung > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. -- --------------------------- Diego Rodrigo Neufert -webmaster --------------------------- (Magic Web Design) (email) (diego@magicwebdesign.com.br) (curitiba) (pr) From chrisw@nipltd.com Fri Sep 1 12:59:38 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 12:59:38 +0100 Subject: [Zope] Zope.org is slow, it's being hit hard! :-) References: <00090114461600.19370@localhost.localdomain> Message-ID: <39AF9A2A.D2D981BC@nipltd.com> Curtis Maloney wrote: > Sometimes (much of the time) it comes through just fine. But on some days > (and it does seem to last just the day) it's slower than a wet weekend. > What would be interesting to know is WHY it gets slow. This might help explain it: > I noticed this also, it appears from the logs that we're being crawled > by about 7 different bots. I guess popularity has its price... > > > -- > - Matthew Burleigh > - Systems Administrator, Digital Creations - publishers of Zope. > - (888)344-4332 -- http://www.digicool.com - http://www.zope.org Maybe it's be possible to have some sort of 'current load indicator' in the standard_html_footer on zope.org? Matt mentioned a quick hack: > watch "netstat -an | grep "1380" -c" > > Averages around 140, since I've been watchin for last couple mins.... I wonder if something similar could be bent to the job? > If it really is > something beyond their control, perhaps mirror sites? Well, NIP would be happy to do this, but, as you may or may not know, Zope doesn't mirror very well :-( cheers, Chris From chrisw@nipltd.com Fri Sep 1 13:01:06 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 13:01:06 +0100 Subject: [Zope] Copying a dtml method when creating a ZClass instance References: Message-ID: <39AF9A82.B6218CE6@nipltd.com> kamon ayeva wrote: > I need some help. > I have a DTML method at the root of Zope called 'Template'. > How can I make the constructor of a ZClass (folderish) to copy this method > to each of its instances ? Can someone provide me with a complete snippet to > add in the ZClass constructor ? It might be easier to move the the DTML document to the Product your ZClass is in. Then you could use the examples from the ZCMG and ZDG on zope.org/Documentation about factories and cloning... HTH, Chris PS: I think something like manage_clone is what you're after... From chrism@digicool.com Fri Sep 1 13:16:18 2000 From: chrism@digicool.com (Chris McDonough) Date: Fri, 1 Sep 2000 08:16:18 -0400 Subject: [Zope] Wish for the next Zope Release: Doc tab for every Zope entity Message-ID: <613145F79272D211914B0020AFF640199E6D40@gandalf.digicool.com> I agree that instances of DTML methods, DTML documents, SQL methods, Python methods, objects based on ZClasses, etc. should have "docstring" capabilities in some sort of common-denominator fashion. is the only way this can be done for DTML methods. The other objects can have properties, which could be documentation. -----Original Message----- From: Philipp Auersperg [mailto:zope@philosoft.at] Sent: Friday, September 01, 2000 6:23 AM To: zope@zope.org Subject: [Zope] Wish for the next Zope Release: Doc tab for every Zope entity Mostly when developing a project it should be documented as well :) The best would be a strucutral documentation that can be generated out of the project so that it always keeps track of the software and is up to date - Python has that because there are the doc strings for classes and methods - Java has it (javadoc) - Zope - ? For Zope it would be fine if every entity in the ODB has a 'Documentation' tab So I could when developing a Zope site always on the fly document its structure without having to leave y developing environment. Then its an easy thing to write a doc generator that queries the objects in the ODB and their documentation. Did I miss something and such a beast exists or is there really something to be done? I don't mean documentation in , I mean documentation as seperate property for each object and method. Philipp Auersperg (zwork) From tino@wildenhain.de Fri Sep 1 13:18:25 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Fri, 01 Sep 2000 14:18:25 +0200 Subject: [Zope] Copying a dtml method when creating a ZClass instance References: Message-ID: <39AF9E91.2B2B4374@wildenhain.de> Hi Kamon, kamon ayeva wrote: > > Hi, > > I need some help. > I have a DTML method at the root of Zope called 'Template'. > How can I make the constructor of a ZClass (folderish) to copy this method > to each of its instances ? Can someone provide me with a complete snippet to > add in the ZClass constructor ? Copy? Why? aquisition should make it 'visible' in every subfolder automatically. Regards Tino From zope@philosoft.at Fri Sep 1 13:53:29 2000 From: zope@philosoft.at (Philipp Auersperg) Date: Fri, 01 Sep 2000 14:53:29 +0200 Subject: [Zope] Wish for the next Zope Release: Doc tab for every Zope entity In-Reply-To: <613145F79272D211914B0020AFF640199E6D40@gandalf.digicool.com> References: <613145F79272D211914B0020AFF640199E6D40@gandalf.digicool.com> Message-ID: <200009011453290250.26B68D70@192.7.2.223> Is DC planning to do something in that matter? also the docstring should perhaps not be just one property, but structured (author,parameters,prerequisites...) as it is in javadoc (ok, we don't like java, but thats a point where we can learn from java) The next point: if there is a 'Documentation' tab then every Zope developer is leaded to document his code. ( DTML is not always simple to read for other people except the author ;-) just my 2 cents... phil *********** REPLY SEPARATOR *********** On 01.09.2000 at 08:16 Chris McDonough wrote: >I agree that instances of DTML methods, DTML documents, SQL methods, >Python methods, objects based on ZClasses, etc. should have "docstring" >capabilities in some sort of common-denominator fashion. > > is the only way this can be done for DTML methods. > >The other objects can have properties, which could be documentation. > >-----Original Message----- >From: Philipp Auersperg [mailto:zope@philosoft.at] >Sent: Friday, September 01, 2000 6:23 AM >To: zope@zope.org >Subject: [Zope] Wish for the next Zope Release: Doc tab for every Zope >entity > > >Mostly when developing a project it should be documented as well :) >The best would be a strucutral documentation that can be generated >out of the project so that it always keeps track of the software and is >up to date > >- Python has that because there are the doc strings for classes and >methods >- Java has it (javadoc) >- Zope - ? > >For Zope it would be fine if every entity in the ODB has a >'Documentation' tab >So I could when developing a Zope site always on the fly document its >structure >without having to leave y developing environment. > >Then its an easy thing to write a doc generator that queries the objects >in the ODB >and their documentation. > >Did I miss something and such a beast exists or is there really >something to be done? >I don't mean documentation in , I mean documentation as >seperate >property for each object and method. > >Philipp Auersperg (zwork) From chrism@digicool.com Fri Sep 1 13:48:16 2000 From: chrism@digicool.com (Chris McDonough) Date: Fri, 1 Sep 2000 08:48:16 -0400 Subject: [Zope] Wish for the next Zope Release: Doc tab for every Zope entity Message-ID: <613145F79272D211914B0020AFF640199E6D41@gandalf.digicool.com> > Is DC planning to do something in that matter? It's not a priority right now. You may want to propose something on dev.zope.org if you think you have an idea of how it should work. > > also the docstring should perhaps not be just one property, but > structured (author,parameters,prerequisites...) as it is in > javadoc (ok, we don't like java, but thats a point where we > can learn from java) Good point. > > The next point: > if there is a 'Documentation' tab then > every Zope developer is leaded to document his code. > ( DTML is not always simple to read for other people except > the author ;-) Perhaps. It depends on the developer. > > just my 2 cents... Thanks... > phil > *********** REPLY SEPARATOR *********** > > On 01.09.2000 at 08:16 Chris McDonough wrote: > > >I agree that instances of DTML methods, DTML documents, SQL methods, > >Python methods, objects based on ZClasses, etc. should have > "docstring" > >capabilities in some sort of common-denominator fashion. > > > > is the only way this can be done for DTML methods. > > > >The other objects can have properties, which could be documentation. > > > >-----Original Message----- > >From: Philipp Auersperg [mailto:zope@philosoft.at] > >Sent: Friday, September 01, 2000 6:23 AM > >To: zope@zope.org > >Subject: [Zope] Wish for the next Zope Release: Doc tab for > every Zope > >entity > > > > > >Mostly when developing a project it should be documented as well :) > >The best would be a strucutral documentation that can be generated > >out of the project so that it always keeps track of the > software and is > >up to date > > > >- Python has that because there are the doc strings for classes and > >methods > >- Java has it (javadoc) > >- Zope - ? > > > >For Zope it would be fine if every entity in the ODB has a > >'Documentation' tab > >So I could when developing a Zope site always on the fly document its > >structure > >without having to leave y developing environment. > > > >Then its an easy thing to write a doc generator that queries > the objects > >in the ODB > >and their documentation. > > > >Did I miss something and such a beast exists or is there really > >something to be done? > >I don't mean documentation in , I mean documentation as > >seperate > >property for each object and method. > > > >Philipp Auersperg (zwork) > > > > > _______________________________________________ > 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 nick@videosystem.co.uk Fri Sep 1 13:49:17 2000 From: nick@videosystem.co.uk (Nick Trout) Date: Fri, 1 Sep 2000 13:49:17 +0100 Subject: [Zope] Newbie: ZClass questions Message-ID: <009c01c01413$0a5d1360$67c8c8c8@nick> This is a multi-part message in MIME format. ------=_NextPart_000_0099_01C0141B.6C180580 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm new to Zope. I'm just flailing around in all the docs and = examples at the moment. I'm setting up a small intranet for our office. I've been reading about ZClasses (havent done any SQL). Are these a very = efficient way of storing data? Are these more/less efficient than = setting up a database and managing it using ZSQL? I read that any changes to a class instance is stored in the Zope = database. Is there a way of turning this feature off to avoid the undo = facility? ie. if you dont want undo. I'm trying to set up a simple chat room as a teaching exercise. I'm = thing I should implement a ZClass which is the room, containg a ZClass = which will be a chat item. I've noticed an example, ZRTChat but = everything there is implemented in Python (yuck!). It's much nicer to = use the interface to create your classes. What are the pros and cons of = the 2 approaches. Why implement it all in Python? Cheers, Nick. ------=_NextPart_000_0099_01C0141B.6C180580 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi, I'm new to Zope. I'm just flailing = around in=20 all the docs and examples at the moment. I'm=20 setting up a small intranet for our office.
 
I've been reading about ZClasses = (havent done any=20 SQL). Are these a very efficient way of storing data? Are these = more/less=20 efficient than setting up a database and managing it using = ZSQL?
 
I read that any changes to a class = instance is=20 stored in the Zope database. Is there a way of turning this feature off = to avoid=20 the undo facility? ie. if you dont want undo.
 
I'm trying to set up a simple chat room = as a=20 teaching exercise. I'm thing I should implement a ZClass which is the = room,=20 containg a ZClass which will be a chat item. I've noticed an example, = ZRTChat=20 but everything there is implemented in Python (yuck!). It's much nicer = to use=20 the interface to create your classes. What are the pros and cons of the = 2=20 approaches. Why implement it all in Python?
 
Cheers,
Nick.
 
 
------=_NextPart_000_0099_01C0141B.6C180580-- From marty.mckeever@goingv.com Fri Sep 1 14:58:14 2000 From: marty.mckeever@goingv.com (Marty McKeever at Work) Date: Fri, 01 Sep 2000 09:58:14 -0400 Subject: [Zope] The Challenge: Zealots vs. Skeptics In-Reply-To: References: <20000831200326.49778C0ED@argyle.goingv.com> Message-ID: <20000901135817.7CA3DC0EE@argyle.goingv.com> At 11:22 AM 9/1/2000 +0200, you wrote: >curiosity... what web development list is this? As i mentioned before, i do not want to mingle the threads, or incite a riot on either list. All i will say is that it is a very high profile list for professional web artists. Mainly Silicon Alley types If that describes you, you should know what list i mean. Others have asked "what to you mean by enterprise?" I'll rephrase that part of the question. "What large US corporations are creating mission-critical e-business applications (and of what type -- send URLs if you can) with zope?" As for traffic figures, someone in my office (you know who) claims that zope can easily handle 1million hits per day running on crappy hardware. Hardware aside, where are the Zope sites that generate this kind of traffic? Certainly not toyota-motosports.com.... Thanks for your participation. Marty ## Marty McKeever - marty.mckeever@goingv.com ## Manager / Web Services Division ## Going Virtual LLC., Matthews NC ## http://www.goingv.com (704) 849-0731 From chrisw@nipltd.com Fri Sep 1 15:06:12 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 15:06:12 +0100 Subject: [Zope] http://zdnetindia.com/ References: <20000831200326.49778C0ED@argyle.goingv.com> <20000901135817.7CA3DC0EE@argyle.goingv.com> Message-ID: <39AFB7D4.DED9C5FB@nipltd.com> IIRC, someone working on this tells em it takes several hundred thousand hits a day on a Dual PIII. he could be lying though ;-) cheers, Chris PS: Whoever told me about this, please comment ;-) From chrisw@nipltd.com Fri Sep 1 15:08:45 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 15:08:45 +0100 Subject: [Zope] __allow_access_to_unprotected_subobjects__=1 References: Message-ID: <39AFB86D.D7EC26F2@nipltd.com> odysseus@acedsl.com wrote: > Is this the __allow_access_to_unprotected_subobjects__=1 within the > Posting class you're referring to? It is indeed... > How big of an issue is it using this > within Squishdot, I mean, what kind of malicious things could be done to a > Squishdot site with it set? Well, it's not going to be any worse that it was before. In short, I don't know, but I'm not happy with it being in there. Also, if Zope has some problems in this area, I'd like to find them and help them get sorted out, for everyone's benefit... > Do you have any working ideas on how to deal with it without > _allow_access...=1 ? I'm playing now ;-) cheers, Chris From neeloy_saha@infy.com Fri Sep 1 09:57:05 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Fri, 1 Sep 2000 14:27:05 +0530 Subject: [Zope] manage Message-ID: <8EE756E49A17D21194860008C7F49AFE045290A1@TWRMSG01> Hi dieter, Thx for ur reply. The child window pop ups when u do http://localhost:8080/manage . One enters the username and password there. That is validated against the acl_user folders member names or if it is a superuser who installed zope it validates it against the access file. I want to look at the source code and understand the authentication mechanism.That's why i want to know the following:- 1.what is the python file which pops up that child window for entering username and password ? 2.After u give the username and password what is the file / module name against which the username and password is authenticated. 3.what is this 'manage'....? method/module??? Thx in advance -neeloy -----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Friday, September 01, 2000 1:34 AM To: neeloy_saha Cc: 'zope@zope.org' Subject: Re: [Zope] manage neeloy_saha writes: > when i do http://localhost:8080/manage it pops up a login window which asks > for username and password. what is the entry point after that?? That is exactly what one would expect. Enter the username and password that was assigned during installation or that you set with python zpasswd.py access > Is there a way of running zope with debugger?? There is "Test.py" in "lib/python/ZPublisher". It will, however, not help you with the above problem. Dieter From Francois-Regis.CHALAOUX@sanofi-synthelabo.com Fri Sep 1 15:23:00 2000 From: Francois-Regis.CHALAOUX@sanofi-synthelabo.com (Francois-Regis CHALAOUX) Date: Fri, 1 Sep 2000 16:23:00 +0200 Subject: [Zope] Render the number of occurrence in a batch Message-ID: <39AFCA13.32D4.06F3.000@MHS> Hi, How to render the total number of result coming from the search in a ZCatalog even if the batch will be render in several sequences ? Howto render XXXX : "Your search contain XXXX results" FR. From hungjunglu@hotmail.com Fri Sep 1 15:56:19 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Fri, 01 Sep 2000 07:56:19 PDT Subject: [Zope] Re: HappySession Message-ID: >From: Diego Rodrigo Neufert >... >too... well, in the standard html header I call call a method that do a >call in >all my sessions.... Okie, now I see why you get the Transaction error problem. After an exception is raised, Zope aborts the http request transaction, and any attempt to further use Zope objects that are transaction-aware will cause an error. In the next release of HappySession I will try to detect whether the transaction has ended, and return some meaningless result like None. But the real thing is, after the exception happens, SESSION object should not be called again. If you really need to call SESSION in your standard_html_header, then please do two things: (1) Please use a standard_error_message, and it should start with something like: .... (2) In your session_not_found_html, please do NOT use . Instead, write another DTML and call it session_ended_html_header, and use it instead. Inside your session_ended_html_header, please do NOT call the SESSION object. >I have two SESSION objects, one in the root of zope and >other in the opt folder of zope.... look how I call the SESSIONS.... >in standard_html_header > > >The callSession method: > > (Hmmm... multiple SESSION objects... in typical situations usually one single SESSION object should be enough. Notice that two SESSION objects mean two separate storage. Although HappySession is designed to handle multiple SESSION objects sharing the same key cookie, the expiration time might be a tricky issue... I do not recommend multiple SESSION objects.) The thing I don't understand is why you need to make explicit call to the SESSION objects. Ohh...! I see, you probably think that SESSION objects need to be initialized? OK, unlike FSSession or SQLSession, HappySession's SESSION objects do NOT need to be initialized! You don't need to make an explicit call to SESSION in your standard_html_header. HappySession is smart enough to initialize itself whenever you touch it the first time using any of its methods. No explicit initialization call needed. (I'll add an observation on this in the help file in the future.) --------------------- In short, I think that by simply removing your callSession method and its reference in standard_html_header, you will be fine and happy! :) regards, Hung Jung _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From hungjunglu@hotmail.com Fri Sep 1 16:15:11 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Fri, 01 Sep 2000 08:15:11 PDT Subject: [Zope] Re: HappySession Message-ID: >From: "Philipp Auersperg" > >I also use HappySession and when catching the SessionNotFoundError >weird things happen: >here my code: > > > > >session error! > > >When the session is expired the error is not caught correctly and I get the >error mentioned below. Plus, I have to restart my server because ZODB >reports a transactional error and sets itself to read-only. I would guess you have the same problem as Diego Rodrigo... could you check your standard_html_header? Does it make any reference to SESSION? One thing about HappySession is that I made it so no initialization is required. So please do not call SESSION object in standard_html_header to initialize it. (In the next release I'll make it safe even if someone calls it in standard_html_header.) I will try to guess what you want to do: you want to initialize FLinkID at the beginning of the session? If so, since HappySession's dictionary does not require initialization, you can do something like: ... normal operation here ... (If an item does not exist, SESSION['FLinkID'] returns ._None) regards, Hung Jung _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From kthangavelu@earthlink.net Fri Sep 1 11:19:07 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Fri, 01 Sep 2000 03:19:07 -0700 Subject: [Zope] Render the number of occurrence in a batch References: <39AFCA13.32D4.06F3.000@MHS> Message-ID: <39AF829B.D936F372@earthlink.net> Francois-Regis CHALAOUX wrote: > > Hi, > > How to render the total number of result coming from the search in a ZCatalog > even if the batch will be render in several sequences ? > > Howto render XXXX : "Your search contain XXXX results" > > FR. > > Kapil From hungjunglu@hotmail.com Fri Sep 1 16:28:19 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Fri, 01 Sep 2000 08:28:19 PDT Subject: [Zope] Success in installing ZPoPyDA (after 3 months...) Message-ID: >From: "Bak @ kedai" >where did you find linux.h that's needed by PoPy? thtt stump me from >continuing. Download postgresql-7.0.2 source (not the RedHat's RPM), unzip and untar it, and the file is located at: postgresql-7.0.2/src/include/port/linux.h What I did was: (1) copy this file into your /usr/include/pgsql (2) delete /usr/include/pgsql/os.h (which is merely a link, not an actual file) (3) rename /usr/include/pgsql/linux.h to /usr/include/pgsql/os.h Oh, I also had to tweak some of the Makefiles at some point, so the include directory becomes pgsql instead of postgresql. regards, Hung Jung _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From tdickenson@geminidataloggers.com Fri Sep 1 16:31:14 2000 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Fri, 01 Sep 2000 16:31:14 +0100 Subject: [Zope] Re: ZOPE Python edit debug cycle In-Reply-To: <007401c01214$2109a520$2101a8c0@pavilion> References: <003601c011fb$192e44a0$e21764cb@zzstey> <007401c01214$2109a520$2101a8c0@pavilion> Message-ID: On Tue, 29 Aug 2000 16:52:02 -0700, "Loren Stafford" wrote: >There's also the Refresh product >(http://www.zope.org/Members/hathawsh/Refresh) which helps reload some >(most) products without restarting Zope. Is this still needed? Are you still suffering from Zope taking a long time restart? Toby Dickenson tdickenson@geminidataloggers.com From mindlace@digicool.com Fri Sep 1 16:33:15 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Fri, 01 Sep 2000 11:33:15 -0400 Subject: [Zope] What's up with zope.org? References: <007501c01368$49f392c0$9542bcca@kedai> Message-ID: <39AFCC3B.B8BA16E@digicool.com> "Bak @ kedai" wrote: > > what's happenng to zope.org? i got this message when i tried accessing it Ok, this is a bit late, but "Running into ZEO/ mounted file storage bugs" is the answer. Aparently, our in-house MountedClientStorage (and the MountedDatabase) doesn't play nice with ZEO. So we've backed off of ZEO for the moment, pending the magic Jim touch. -- ethan mindlace fremen Zopatista Community Liason Abnegate I! From lehmann@catworkx.de Fri Sep 1 16:44:14 2000 From: lehmann@catworkx.de (Holger Lehmann) Date: Fri, 1 Sep 2000 17:44:14 +0200 Subject: [Zope] manage In-Reply-To: <8EE756E49A17D21194860008C7F49AFE045290A1@TWRMSG01> References: <8EE756E49A17D21194860008C7F49AFE045290A1@TWRMSG01> Message-ID: <00090117491805.02289@cat-pc-holle> Am Fre, 01 Sep 2000 schrieben Sie: > Hi dieter, > > Thx for ur reply. > > The child window pop ups when u do http://localhost:8080/manage . One > enters the username and password there. That is validated against the > acl_user folders member names or if it is a superuser who installed zope it > validates it against the access file. > > I want to look at the source code and understand the authentication > mechanism.That's why i want to know the following:- > > 1.what is the python file which pops up that child window for entering > username and password ? It is your web browser, not a python script :-) It does that because it got a "401 authentication required" response from zope. > 2.After u give the username and password what is the file / module name > against which the username and password is authenticated. Well, username/password will be send together with all subsequent requests to zope. Zope veryfies if username and password match against the info retreived from the acl_users folder. What happens there depends on what object *is* acl_users (i.e. Generic User Folder, mySQLuser, ACL Manager, Login Manager ....) > 3.what is this 'manage'....? method/module??? Well, that is the way to get the management screen. Source can be viewed at /lib/python/OFS/manage.dtml > > Thx in advance > > -neeloy - Holle > > > > -----Original Message----- > From: Dieter Maurer [mailto:dieter@handshake.de] > Sent: Friday, September 01, 2000 1:34 AM > To: neeloy_saha > Cc: 'zope@zope.org' > Subject: Re: [Zope] manage > > > neeloy_saha writes: > > when i do http://localhost:8080/manage it pops up a login window which > asks > > for username and password. what is the entry point after that?? > That is exactly what one would expect. > > Enter the username and password that was assigned during installation > or that you set with > > python zpasswd.py access > > > Is there a way of running zope with debugger?? > There is "Test.py" in "lib/python/ZPublisher". > It will, however, not help you with the above problem. > > > 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 ) -- ----------------------------------- catWorkX GmbH Hamburg Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 40 890 646-0 Fax: +49 40 890 646-66 mailto:lehmann@catworkx.de http://www.catworkx.de http://www.catbridge.de From kthangavelu@earthlink.net Fri Sep 1 12:01:50 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Fri, 01 Sep 2000 04:01:50 -0700 Subject: [Zope] a redirect of an url in Python References: Message-ID: <39AF8C9E.7FFF608@earthlink.net> dsergent@imexpert.com wrote: > > Part 1.1Type: Plain Text (text/plain) in python you have to raise a redirect, search the lists for exact syntax something along the lines of raise Redirect "url" Kapil From hungjunglu@hotmail.com Fri Sep 1 17:09:53 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Fri, 01 Sep 2000 09:09:53 PDT Subject: [Zope] Re: HappySession Message-ID: >(Hmmm... multiple SESSION objects... in typical situations usually one >single SESSION object should be enough. Notice that two SESSION objects >mean two separate storage. Although HappySession is designed to handle >multiple SESSION objects sharing the same key cookie, the expiration time >might be a tricky issue... I do not recommend multiple SESSION objects.) Argh, I take back what I said. As long as your SESSION objects have different cookie names, it should be OK to have multiple SESSION objects. They will operate independently. It's OK to have multiple SESSION objects. (They expire independently, too.) regards, Hung Jung _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From andym@ActiveState.com Fri Sep 1 17:11:25 2000 From: andym@ActiveState.com (Andy McKay) Date: Fri, 1 Sep 2000 09:11:25 -0700 Subject: [Zope] _setObject error - urgent! References: <000901c0136c$f5036510$6703a8c0@torch> <39AF7630.68DF13B0@nipltd.com> Message-ID: <002801c0142f$4763b8b0$6703a8c0@torch> Yeah I know, I apologise I was just panicking with a deadline approaching. Sorry. ----- Original Message ----- From: "Chris Withers" To: "Andy McKay" Sent: Friday, September 01, 2000 2:26 AM Subject: Re: [Zope] _setObject error - urgent! > Andy McKay wrote: > > I think I have traced my error with cut and paste, I am getting an error on > > _setObject. If the object is not registered with Zope properly this will be > > a problem. Basic synopsis: > > Well, what you're doing is kindof weird... > > sounds like something for the zope-dev guys. My only comment would be: > > > ** No cross posts or HTML encoding! ** > > I know it's urgent (although putting that in the subject line will lower > it in a lot of people's priorities ;-) but things generally belong in > one list or another... > > Sorry for seeming like a 'list nanny' but it degrades the identity and > the quality of the lists if there are too many cross-posts... > > cheers, > > Chris > From andym@ActiveState.com Fri Sep 1 17:15:03 2000 From: andym@ActiveState.com (Andy McKay) Date: Fri, 1 Sep 2000 09:15:03 -0700 Subject: [Zope] _setObject error - urgent! References: <000901c0136c$f5036510$6703a8c0@torch> <39AF7630.68DF13B0@nipltd.com> <002801c0142f$4763b8b0$6703a8c0@torch> Message-ID: <004701c0142f$c94b5630$6703a8c0@torch> Traced the problem to a faulty catalog attribute, which automatically happens. Damn, its been a while I still cant see why I cant cut and paste. ----- Original Message ----- From: "Andy McKay" To: Sent: Friday, September 01, 2000 9:11 AM Subject: Re: [Zope] _setObject error - urgent! > Yeah I know, I apologise I was just panicking with a deadline approaching. > Sorry. > > ----- Original Message ----- > From: "Chris Withers" > To: "Andy McKay" > Sent: Friday, September 01, 2000 2:26 AM > Subject: Re: [Zope] _setObject error - urgent! > > > > Andy McKay wrote: > > > I think I have traced my error with cut and paste, I am getting an error > on > > > _setObject. If the object is not registered with Zope properly this will > be > > > a problem. Basic synopsis: > > > > Well, what you're doing is kindof weird... > > > > sounds like something for the zope-dev guys. My only comment would be: > > > > > ** No cross posts or HTML encoding! ** > > > > I know it's urgent (although putting that in the subject line will lower > > it in a lot of people's priorities ;-) but things generally belong in > > one list or another... > > > > Sorry for seeming like a 'list nanny' but it degrades the identity and > > the quality of the lists if there are too many cross-posts... > > > > cheers, > > > > Chris > > > > > _______________________________________________ > 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 Menard.Jean-Francois@hydro.qc.ca Fri Sep 1 17:20:59 2000 From: Menard.Jean-Francois@hydro.qc.ca (Menard.Jean-Francois@hydro.qc.ca) Date: Fri, 1 Sep 2000 12:20:59 -0400 Subject: [Zope] Catalog AND Zieve Message-ID: <11459E174416D011B1B800805F9A524D01270042@msxvpti10.vpi.hydro.qc.ca> I'm trying to use the Zieve product with my Catalog to sort the results on a variable key. Since the Catalog do not return the actual objects, how can I use Zieve with it? Maybe an external method returning the object list? If so, how shold I do that? Jean-François Ménard Intranet DPAS Pratiques d'affaires et orientations * (514) 840-3000 poste 3939 * (514) 840-5585 * menard.jean-francois@hydro.qc.ca * 855 Ste-Catherine est, 6e étage Montréal, Qué. H2L 4P5 From twcook@iswt.com Fri Sep 1 17:28:05 2000 From: twcook@iswt.com (Tim Cook) Date: Fri, 01 Sep 2000 11:28:05 -0500 Subject: [Zope] Re: ZPatterns Stability References: <39AF4953.96515A11@iswt.com> <39AF78C8.9FAF0722@nipltd.com> <39AF8E6A.8844BEB9@iswt.com> <39AF8F9D.81D064D3@nipltd.com> Message-ID: <39AFD915.D1D79C1A@iswt.com> Chris Withers wrote: > > Tim Cook wrote: > > > If you're brave you could try ZPatterns and then realyl not care at all > > > ;-) > > > > > > > > Don't you mean; 'If you're insane...' ? > > No, I really don't! > > ZPatterns is very cool, but still not documented. It's alpha but seems > stable enough for production in a lot of cases. > > Thanks for the tip Chris. I had not even looked at ZPatterns (I'm having enough problems getting basic Zopisms into my head ). It looks very exciting but I think it'll wait for the next version. Complete redesign would be in order to take advantage of the concepts. -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From chrisw@nipltd.com Fri Sep 1 17:45:19 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 01 Sep 2000 17:45:19 +0100 Subject: [Zope] Getting Zope running on IIS or Apache using PCGI.... References: Message-ID: <39AFDD1F.849E8300@nipltd.com> Tina Sawyer wrote: > Problem is : I was running Zope on Win 2000 Platform with IIS 5.0 > I could not get zope to run as a pcgi. So.. I set up a Linux server using > Redhat version 6.2, running apache and I still cannot get zope to run as a > pcgi. Any thoughts on this? Might be best to ask on the zope@zope.org list instead of the PTK one (I've copeid the message there) You could also do with describing, in detail, what the problem you encoutnered were. Error messages and the like are always helpful, cheers, Chris From vsbabu@csoft.net Fri Sep 1 17:48:51 2000 From: vsbabu@csoft.net (Satheesh Babu) Date: Fri, 1 Sep 2000 11:48:51 -0500 Subject: [Zope] Silly string question Message-ID: <20000901114851.A20377@csoft.net> Aaarghhh!!! I want to print the following line exactly as it appears on a web page (no HTML coding). How do I do that in DTML without Zope cribbing about tags are not good? I got it to print it without using quotes like this However I need the quotes around header.inc too. I tried escaping quotes with \, but doesn't work. I don't want to put <!--include .... Zopistas, I think I'm missing something very basic here. HELP!!! Zope 2.1.6 on NT4. Browser IE5.5 on Win98. vsb http://easy.to/babu/ From troy.farrell@wilcom.com Fri Sep 1 18:48:53 2000 From: troy.farrell@wilcom.com (Farrell, Troy) Date: Fri, 1 Sep 2000 12:48:53 -0500 Subject: [Zope] Newbie SQL problem: Query Error: Cannot render query t emplate Message-ID: When I try to test my connection (http://jester/profiles/Jet_database_connection/manage_test). SQL is as follows: INSERT INTO test VALUES ( 'line one', 123456) I get an error with the following traceback: Error Type: Query Error Error Value: Invalid Operation Traceback (innermost last): File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\JESTER\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\JESTER\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_test) File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_test) File C:\PROGRA~1\JESTER\lib\python\Shared\DC\ZRDB\Connection.py, line 180, in manage_test (Object: RoleManager) File C:\PROGRA~1\JESTER\lib\python\Products\ZJetDA\db.py, line 130, in query Query Error: (see above) Testing my SQL inside Access yields expected results. The SQL is fine. If a user tries to access a dtml_document that trys to modify the database, they get the same error. I'm thinking that Zope 2.2.0 and 2.2.1 have some big problems with DA's under Windoze. Unfortunately, my app _MUST_ use Access. I'm not thrilled. Can anyone more familiar with Python clue me in on this? Troy Farrell -----Original Message----- From: Philipp Auersperg [mailto:zope@philosoft.at] Sent: Thursday, August 31, 2000 10:14 AM To: zope@zope.org; Stephen Nosal Subject: Re: [Zope] Newbie SQL problem: Query Error: Cannot render query template When starting Zope as a service under Win NT always make sure that the ODBC data sources you use are *system* data sources and not *user* data sources. This could explain why your ODBC connections work when you start Zope from the console and don't work when starting it as service. Anyhow: Zope 2.1.6 is not the best for SQL (problems with recordsets show up when used in ) Zope 2.2.0 has problems with ZODBC under Windows 2000 (Authorisation dialogs pop up). My hint: Use 2.1.4 or 2.2.1 (does it fine with SQL under Linux and Windows ) phil *********** REPLY SEPARATOR *********** On 31.08.2000 at 06:40 Stephen Nosal wrote: >Troy- > >Have you tried running this from the DOS prompt? I ran into all sorts of problems running 2.1.6 on NT4WS with the ODBCDA. Everything was fine when I used the start and stop scripts from the command line. When I moved to starting zope as a service, my ODBC connections kept failing. Never did find an NT solution, I just moved everything to Linux. > >It's worth a try. > >- Steve > >On Wed, 30 August 2000, "Farrell, Troy" wrote: > >> >> Hello. >> >> I am running Zope as a service on NT4WS. I have multiple MS Access >> databases connected to different ZJetDAs and I am not able to modify the >> data in them with SQL statements. For example, INSERT INTO test VALUES >> (, ) >> returns the error "Query Error: Cannot render query template". Can you tell >> me what the cause is. I think it might be a permissions problem, but I have >> everything wide open and I can't figure it out. >> >> Thanks. >> Troy Farrell >> >> Troy Farrell >> Video Operations Technician II >> Williams VYVX Services >> 918.573.3029 >> 918.573.1441 fax >> mailto:troy.farrell@wilcom.com >> http://www.williams.com From kayeva@hotmail.com Fri Sep 1 18:45:21 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Fri, 01 Sep 2000 17:45:21 GMT Subject: [Zope] Copying a dtml method when creating a ZClass instance Message-ID: Thanks Tino and Chris for your feedback. >From: Tino Wildenhain >To: kamon ayeva >CC: zope@zope.org >Subject: Re: [Zope] Copying a dtml method when creating a ZClass instance >Date: Fri, 01 Sep 2000 14:18:25 +0200 > >Hi Kamon, > >kamon ayeva wrote: > > > > Hi, > > > > I need some help. > > I have a DTML method at the root of Zope called 'Template'. > > How can I make the constructor of a ZClass (folderish) to copy this >method > > to each of its instances ? Can someone provide me with a complete >snippet to > > add in the ZClass constructor ? > >Copy? Why? >aquisition should make it 'visible' in every subfolder automatically. > >Regards >Tino I have several reasons whay I need to attach a template to each ZClass. Among them are: 1/ cases like high level folders where I might want to customize the page's rendering and/or skin, 2/ cases like contained objects which uses a generic skin (but you can still customize the skin of one among them, if you want) 3/ my site needs to be easily designed / modified by Web Designers that do not understand Acquisition. Thanks for the tip Chris, I was able to do it by adding my ZClass-specific-template in the Zope Product folder and adding a call to manage_clone(ZClass-specific-template, 'standard_template', [REQUEST]) in the ZClass constructor method. I use the same id 'standard_template' to exploit acquisition globally on the site (the Web designer would not have to care about that). Next thing is generalising this method to also allow multiple templates available for each object i.e. the Content Manager can choose a prefered skin when instanciating an object. Best Regards, Kamon Ecubateur _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From casey.duncan@state.co.us Fri Sep 1 20:22:18 2000 From: casey.duncan@state.co.us (Casey Duncan) Date: Fri, 1 Sep 2000 13:22:18 -0600 Subject: [Zope] ZCatalog and OR searching Message-ID: <000101c01449$f2871100$14da7fa5@defenders.state.co.us> It would be wonderful if ZCatalog could support something like a SQL where clause for doing complex searching. Is this anything anybody has in the works or would be interested in working on? I forsee something like Catalog(query_expr="title contains 'foo' and not title contains 'bar' or title contains 'spam'"). Support for the simple searching in existence now should of course remain. Perhaps some code could be borrowed from Gadfly or something. I would be interested in working on something such as this, but I don't want to reinvent the wheel. Anyone with futher input or info, please let me know. -Casey Duncan ----- Original Message ----- Date: Fri, 01 Sep 2000 11:43:30 +0100 From: Chris Withers Organization: New Information Paradigms To: Dieter Maurer CC: Francois-Regis CHALAOUX , Receipt Notification Requested Subject: [Zope] ZCatalog and OR searching Dieter Maurer wrote: > A ZCatalog search usually combines searches to the different > indexes with an "And". > You want to combine them with an "Or". Don't you wish there was a decent query language for ZCatalog so this kindof rediculous complexiting to achieve a simple outcome wasn't necessary? cheers, Chris PS: The example in the Advanced ZCatalog How-To does away with most of the catalog's advantages (like lazy searches, small results set, etc) From dieter@handshake.de Fri Sep 1 18:54:52 2000 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 1 Sep 2000 19:54:52 +0200 (CEST) Subject: [Zope] Re: ZCatalog and OR searching In-Reply-To: <39AF8852.779FDD17@nipltd.com> References: <14766.46785.79690.445542@lindm.dm> <39AF8852.779FDD17@nipltd.com> Message-ID: <14767.60721.740494.803813@lindm.dm> Chris Withers writes: > Dieter Maurer wrote: > > A ZCatalog search usually combines searches to the different > > indexes with an "And". > > You want to combine them with an "Or". > > Don't you wish there was a decent query language for ZCatalog so this > kindof rediculous complexiting to achieve a simple outcome wasn't > necessary? I do -- but not enough to implement it ;-) Dieter From dieter@handshake.de Fri Sep 1 19:47:29 2000 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 1 Sep 2000 20:47:29 +0200 (CEST) Subject: [Zope] Site Access 2.x problem In-Reply-To: <14117901@toto.iv> Message-ID: <14767.63791.771114.682109@lindm.dm> Hi Joshua, Joshua Brauer writes: > I have Site Access running on the latest Zope (2.2) but I cannot seem to get "Site Root" to show up in my list of available products. Those sites that already have site roots seem to work fine, but I cannot add new site roots. Anybody else having this problem or have ideas? Fetch the latest Zope distribution (2.2.1, not 2.2.1b1), because earlier versions had a logging bug. Start your Zope with a "STUPID_LOG_FILE=zope.log" argument. Look into "zope.log", if you see any message related to "SiteAccess". Dieter From dieter@handshake.de Fri Sep 1 19:08:17 2000 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 1 Sep 2000 20:08:17 +0200 (CEST) Subject: [Zope] HappySession In-Reply-To: <84154246@toto.iv> Message-ID: <14767.61313.986957.961801@lindm.dm> Diego Rodrigo Neufert writes: > I'm making a site with frames with session management. I'm using HappySession > to do it... > I need to call SESSION['something'] in various frames at the same time, but > when a SESSION expire I got a Transaction Error that blow up my Zserver... > > Anyone know how to solve this or another SESSION product that doesnt have that > problem? I can tell you, that FSSession has the same problem, at least the version before the current one (announced some days ago). I would expect that SQLSession is more robust. But beware, there may well be transaction conflicts, because several threads may try to change the same record in the database. If this indeed happens, than at least one transaction cannot be committed and must be roled back. Dieter From dieter@handshake.de Fri Sep 1 20:10:51 2000 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 1 Sep 2000 21:10:51 +0200 (CEST) Subject: [Zope] manage In-Reply-To: <98790422@toto.iv> Message-ID: <14767.64058.157840.695987@lindm.dm> neeloy_saha writes: > .... authentication .... > 1.what is the python file which pops up that child window for entering > username and password ? In plain vanilla Zope (i.e. without GUF, LoginManager or some other login catcher) Zope simply raises an Unauthorized exception. This is turned into an HTTP Unauthorized response. Your browser, upon receipt of such a response, pops up the dialog and ask you for username and password. It then automatically reissues the request. > 2.After u give the username and password what is the file / module name > against which the username and password is authenticated. For any request, Zope traverses the hierarchical WebSite object guided by the request's URL. At the URL's end, it reaches some object (or has raised a "NotFound" exception). From that object, Zope looks back along its path for objects that are able to authenticate some users. Usually, these are objects that contain a "user folder", usually called "acl_users". Authentication is done by such a "user folder". You find the code near the end of "ZPublisher.BaseRequest.traverse". A user folder has a method "validate". It gets the request, authentication information and (optionally) the list of roles necessary to access the target object. It returns a user object, if it can one authenticate for the given authentication information and with the required roles, otherwise, it returns None. If it return None, Zope looks furhter up in the path. If it reaches the end without being able to authenticate the user, it raises an Unauthorized exception (this leads to 1) above). You find Zope's vanilla user folder in "AccessControl.User.UserFolder". > 3.what is this 'manage'....? method/module??? There is none. Dieter From bill@carbonecho.com Fri Sep 1 21:59:34 2000 From: bill@carbonecho.com (Bill Welch) Date: Fri, 1 Sep 2000 20:59:34 +0000 (GMT) Subject: [Zope] a redirect of an url in Python In-Reply-To: <39AF8C9E.7FFF608@earthlink.net> Message-ID: Both this one line python method: raise 'Redirect', 'http://www.zope.org' and this DTML method http://www.zope.org work. P. S. the double quotes around Redirect in the DTML method are significant. With single quotes, it shows up as an error named Redirect Bill. On Fri, 1 Sep 2000, Kapil Thangavelu wrote: > in python you have to raise a redirect, search the lists for exact > syntax > something along the lines of > > raise Redirect "url" From pavlos@gaaros.com Fri Sep 1 22:33:45 2000 From: pavlos@gaaros.com (Pavlos Christoforou) Date: Fri, 1 Sep 2000 17:33:45 -0400 (EDT) Subject: [Zope] HappySession In-Reply-To: <14767.61313.986957.961801@lindm.dm> Message-ID: On Fri, 1 Sep 2000, Dieter Maurer wrote: > I can tell you, that FSSession has the same problem, at least > the version before the current one (announced some days ago). FSSession has no longer such problem. However you might still loose data if you access the same SessionUID from many frames. I don't thing there is a general solution to the problem without involving read locks which will slow down the whole Zope site. Or raising ConflictErrors which for frame usage like the case you mention will occur very often. The same problem will occur whether you store the Session info in an RDBMs or not. For instance: Thread A reads Session1 Thread B reads Session1 Thread A modifies Session1 and commits Thread B modifies Session1 and commits. This creates a conflict and the solution I have chosen is to keep the last to commit. In general we can achieve very high write rates because there is a natural isolation among requests, one thread per SessionUID. Problems will occur if multiple concurrent requests try to access the same SessionUID. This could occur in situations that employ frames but (at least in our case) most of the time the Session info is required only in one frame. In any case I have tested the latest version of FSSession against multiple frames accessing the same SessionUID and I do not get TransactionErrors. Actually there is a slightly better way but it will involve a lot of complicated programming so I won't even mention it ... :-) Pavlos From dieter@handshake.de Fri Sep 1 22:46:48 2000 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 1 Sep 2000 23:46:48 +0200 (CEST) Subject: [Zope] ZCatalog in 2.2.x In-Reply-To: <37682255@toto.iv> Message-ID: <14768.8235.682064.302267@lindm.dm> Terry Kerr writes: > .... only field searches yield non empty query results .... > The product I am working on is Etailer. I downloaded Etailer and looked into the problem. Indeed, I could reproduce your observation. I analysed the problem and now do understand what went wrong here in my installation: I have 2 vocabularies, both named 'Vocabulary'. One is in my root, the other is in the Etailer "Catalog". When objects are indexed, this happens in the context of "Etailer/Catalog". Therefore, "Etailer/Catalog/Vocabulary" is used for this purpose. When objects are searched for, this happens in the context of "Etailer". Therefore, "/Vocabulary" is used for word lookup. It does know nothing about the words used in my Etailer products. Maybe, in your installation things are similar. At least, Etailer is very volatile when there is another object called 'Vocabulary' above it. This results from line 159 of "Etailer.py": searchResults = ZCatalog.searchResults You should provide a true, redirecting definition for "searchResults": def searchResults(self,REQUEST=None, used=None, **kw): " " return apply(self.Catalog.searchResults,(REQUEST,used),kw) to make it more robust. Dieter From evan@4-am.com Fri Sep 1 23:46:07 2000 From: evan@4-am.com (Evan Simpson) Date: Fri, 1 Sep 2000 18:46:07 -0400 Subject: [Zope] Silly string question References: <20000901114851.A20377@csoft.net> Message-ID: <014f01c01466$6a917070$3e48a4d8@digicool.com> From: Satheesh Babu > I want to print the following line exactly as it > appears on a web page (no HTML coding). > These aren't general solutions, but off the top of my head (tested): !--#include file="header.inc" --> <&dtml.missing--;!--#include file="header.inc" --> Cheers, Evan @ digicool & 4-am From akm@mail.theinternet.com.au Sat Sep 2 00:55:43 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Sat, 2 Sep 2000 09:55:43 +1000 Subject: [Zope] Regaining lost privileges Message-ID: <20000902095542.O76681@zeus.theinternet.com.au> Is there anyway to regain 'root' privs from inside a zope product? Using the -u flag to start causes the privs to be permanently gone because z2.py uses setuid + setgid (and python doesn't seem to define sete[ug]id, at least not on my system). Other than running zope as root permanently (which I really would like to avoid), does anyone have any quick ideas on how to achieve this? I saw people asking about building 'admin' systems using Zope, this isn't going to be trivially possible without super user privs. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From sbillard@suse.com Sat Sep 2 00:10:46 2000 From: sbillard@suse.com (Sebastien Billard) Date: Fri, 1 Sep 2000 16:10:46 -0700 (PDT) Subject: [Zope] problems installing PoPy-1.3.4 (fwd) Message-ID: I'm on a suse 6.4 system, with postgresql installed. I've got the latest zope installed from tarball.. and I get this problem trying to install PoPy ./autogen.sh --with-postgres-libraries=/usr/lib/pgsql/lib --with-postgres-includes=/usr/lib/pgsql/include loading cache ./config.cache checking for python... /usr/bin/python checking python version... 1.5 checking python installation prefix... /usr checking python installation exec_prefix... /usr checking definitions in Python library makefile... done checking location of python library... $(prefix)/lib/python1.5/site-packages checking location of python shared modules... $(exec_prefix)/lib/python1.5/site-packages checking for PQconnectStart in -lpq... no configure: error: can't build without PostgreSQL libraries Now type 'make' to compile PoPy python module. From Albert.Langer@Directory-Designs.org Sat Sep 2 03:43:22 2000 From: Albert.Langer@Directory-Designs.org (Albert Langer) Date: Sat, 2 Sep 2000 12:43:22 +1000 Subject: [Zope] ZCatalog Queries... In-Reply-To: <39AD8471.C145A613@earthlink.net> Message-ID: <000401c01487$90041120$17448490@vic.bigpond.net.au> [Kapil] I think that zcatalog is great for simple property indexing but it has some signifigant drawbacks for its most common use, which is mass text indexing, and searching. As object an catalog, its fine, But i think as a mass text indexing/searching machinery it bites. I think Zope could really use either a companion to zcatalog for text searching or a replacement. If i'd like to index 50M i'd like not to have my search take unreasonable long, give erroneous results, thrash my machine because i choose to index it at once, yet these are all things that i've experienced with zcatalog since i started using zope. for sure its gotten much better, but it still can't handle my use cases. So i've accepted that ZCatalog isn't a site wide nor a scalable tool. [Albert] Render up to an RDBMS or ORDBMS that which requires indexing and searching. Render up to ZODB that which requires pointer structures. Substring searches can be quite efficient with an RDBMS. Use for words in conjunction with pointers to sentence/paragraph/section/document/category structure maintained in ZODB. See: http://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=0000Ec&topic_id=11&to pic=OpenACS From kedai@kedai.com.my Sat Sep 2 03:57:50 2000 From: kedai@kedai.com.my (Bak @ kedai) Date: Sat, 2 Sep 2000 10:57:50 +0800 Subject: [Zope] What's up with zope.org? Message-ID: <002401c01489$95dc6d20$1994bcca@kedai> -----Original Message----- From: ethan mindlace fremen To: Bak @ kedai Cc: zope@zope.org Date: Friday, September 01, 2000 11:49 PM Subject: [Zope] What's up with zope.org? >"Bak @ kedai" wrote: >> >> what's happenng to zope.org? i got this message when i tried accessing it > >Ok, this is a bit late, but "Running into ZEO/ mounted file storage >bugs" is the answer. > >Aparently, our in-house MountedClientStorage (and the MountedDatabase) >doesn't play nice with ZEO. So we've backed off of ZEO for the moment, >pending the magic Jim touch. >-- so, if i use only ZEO, it should be a problem then? >ethan mindlace fremen >Zopatista Community Liason >Abnegate I! > >_______________________________________________ >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 nhead@houbits.com Sat Sep 2 08:40:33 2000 From: nhead@houbits.com (Nigel Head) Date: Sat, 2 Sep 2000 07:40:33 +0000 Subject: [Zope] Regaining lost privileges In-Reply-To: <20000902095542.O76681@zeus.theinternet.com.au> References: <20000902095542.O76681@zeus.theinternet.com.au> Message-ID: <00090207494900.00662@thinman> Hi Andrew! On Fri, 01 Sep 2000, you wrote ... > I saw people asking about building 'admin' systems using Zope, this isn't > going to be trivially possible without super user privs. That people was me. Having looked into things a little further (but not actually started the admin tool yet due to "day job" pressures) I've decided to go the route (root?!) of using something like 'sudo' or 'runas' which allow you to provide a selection of suid scripts and specify which users are allowed to run them (zope, in my case, I suppose). I'm still considering the relative merits of using a sort of 'quarantine' file/database where zope will dump requests to do things and a cron job will poll it periodically to grab things out again and execute them. As I wrote that, I realise dthat it would be interesting to see if that file couldn't be made a ZODB storage so I could transfer structured information 'tween Zope and a python admin backend; perhaps make it a mountable storage from the zope point of view? This would have the added advantage of a little mild 'security through obscurity' for the file format for casual hackers who may get near to it one day ... -- Nigel Head Houbits Hi-Tech Servers nhead@houbits.com From jason_zope@yahoo.com Sat Sep 2 07:09:23 2000 From: jason_zope@yahoo.com (Jason Byron) Date: Fri, 1 Sep 2000 23:09:23 -0700 (PDT) Subject: [Zope] illegal id chars? Message-ID: <20000902060923.2139.qmail@web4605.mail.yahoo.com> Why is it that objects can't be created because the id chosen contains characters that aren't proper in urls? Spaces are allowed and converted to their hex values when you create an object. Why not do this with every illegal url character? I must me missing something here because this seems like this should have been one of the first things designed into Zope. Right? __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From terry@adroit.net Fri Sep 1 19:29:20 2000 From: terry@adroit.net (Terry Kerr) Date: Sat, 02 Sep 2000 05:29:20 +1100 Subject: [Zope] illegal id chars? References: <20000902060923.2139.qmail@web4605.mail.yahoo.com> Message-ID: <39AFF580.77625800@adroit.net> Spaces are not converted to their hex values...they are a valid character for an id! I think you may be confused when clicking on a link which are url_quote'd, hence, the space is replaced by its hex value since it is an illegal url character. terry Jason Byron wrote: > Why is it that objects can't be created because the id > chosen contains characters that aren't proper in urls? > Spaces are allowed and converted to their hex values > when you create an object. Why not do this with every > illegal url character? > > I must me missing something here because this seems > like this should have been one of the first things > designed into Zope. Right? > > __________________________________________________ > Do You Yahoo!? > Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.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 ) -- Terry Kerr (terry@adroit.net) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 938 124 ICQ: 79303381 From tino@wildenhain.de Sat Sep 2 08:32:51 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Sat, 02 Sep 2000 09:32:51 +0200 Subject: [Zope] Socket.Error References: <5.0.0.13.2.20000830222351.01d468c0@pop.btx.dtag.de> Message-ID: <39B0AD23.928F99FA@wildenhain.de> Hi, Matthias Füsting wrote: > > The other day I have change my hostname. > Today I have restart ZOPE and I get follow > Error-Message: > > 2000-08-30T20:12:44 PROBLEM(100) ZServer Computing default hostname > Traceback (innermost last): > File "/opt/zope/2-1-6/z2.py", line 493, in ? > logger_object=lg) > File "/opt/zope/2-1-6/ZServer/medusa/http_server.py", line 560, in __init__ > ip = socket.gethostbyname (socket.gethostname()) > socket.error: host not found Zope does a so called double-reverse lookup to make sure one can unduptfully reresolve the hostname to its ip-address again. It asks first for the name to the ip-address. Then it asks for the ip-address to this name. The question is, where did you change the name? In DNS you have to change it in both databases. Regards Tino Wildenhain From tino@wildenhain.de Sat Sep 2 08:51:41 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Sat, 02 Sep 2000 09:51:41 +0200 Subject: [Zope] SQL Methods References: <000001c01318$10e156c0$0102a8c0@roche.up-front.co.za> Message-ID: <39B0B18D.48AFA78D@wildenhain.de> Hi Campaan, RC Compaan wrote: > > I have a sql method and a dtml method calling the sql method. They live in > the same folder and the dtml method's proxy roles are set. I've tried > everything and Zope tells me I don't have permission to do view the sql > result returned by the sql method. This worked fine in Zope 2.1.6 so I > guess it has something to do with the new security model. I also have > explicit ownership of all objects that I'm working with - still no luck. There was a bug in sql-methods returning subobjects without giving them the proper access rights. This was due to a change in the security mechanism on 2.2.x. The default policy is now: disallow everything as log as its not explicitely permittet. I would suggest to look for the patch on sql-methods or simply upgrade to the latest 2.2.1 where this (and much more) has already been fixed. Regards Tino Wildenhain From tino@wildenhain.de Sat Sep 2 09:26:19 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Sat, 02 Sep 2000 10:26:19 +0200 Subject: [Zope] Copying a dtml method when creating a ZClass instance References: Message-ID: <39B0B9AB.F0D220D@wildenhain.de> Hi, kamon ayeva wrote: > > I have several reasons whay I need to attach a template to each ZClass. > Among them are: > 1/ cases like high level folders where I might want to customize the page's > rendering and/or skin, > 2/ cases like contained objects which uses a generic skin (but you can still > customize the skin of one among them, if you want) > 3/ my site needs to be easily designed / modified by Web Designers that do > not understand Acquisition. Ah yes. But then, you throw all the advantages of aquisition away. I would suggest to at least copy the template only on request, if changes are really made. The 'web designers' should have the opportunity to delete this template to derive their design from the previus folder. This way you would not have all the templates laying around in every subfolder and making changes very very hard. An yes, this is understandable even by the underenlighted web designer ;-) Cheers Tino From nicklo@siliconcreation.com Sat Sep 2 10:44:48 2000 From: nicklo@siliconcreation.com (Nicholas Lo) Date: Sat, 02 Sep 2000 17:44:48 +0800 Subject: [Zope] Testing FastCGI Message-ID: <39B0CC10.32572A44@siliconcreation.com> Hi, I have set up my Apache and ZOPE according to How-To. It looks okay to me. However, how can I know if my setup is correct. Is there any test FastCGI application I can simply drop it in and test out my system? Thanks Nicholas Lo From steve@cat-box.net Sat Sep 2 10:56:36 2000 From: steve@cat-box.net (Steve Alexander) Date: Sat, 02 Sep 2000 10:56:36 +0100 Subject: [Zope] Slow zope.org? References: <87n1ht377u.fsf@src.no> <39AE68B8.2146B020@digicool.com> Message-ID: <39B0CED4.3010309@cat-box.net> ethan mindlace fremen wrote: > > Short term, we will soon have a mirror of zope.org, which should reduce > the possibility of slowdown. What kind of mirroring? Something static, or something clever using ZEO? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net From zope@philosoft.at Sat Sep 2 11:44:48 2000 From: zope@philosoft.at (Philipp Auersperg) Date: Sat, 02 Sep 2000 12:44:48 +0200 Subject: [Zope] Re: HappySession In-Reply-To: References: Message-ID: <200009021244480843.2B671B9A@192.7.2.223> Hi! I do not have any reference to HappySession in my headers. I enclosed the session.set(..) in in order to catch the SessionNotFoundError, your slution just tests if the item exists in the session but does it prevent from the SessionNotFoundError exception? thanks phil *********** REPLY SEPARATOR *********** On 01.09.2000 at 08:15 Hung Jung Lu wrote: >>From: "Philipp Auersperg" >> >>I also use HappySession and when catching the SessionNotFoundError >>weird things happen: >>here my code: >> >> >> >> >>session error! >> >> >>When the session is expired the error is not caught correctly and I get the >>error mentioned below. Plus, I have to restart my server because ZODB >>reports a transactional error and sets itself to read-only. > >I would guess you have the same problem as Diego Rodrigo... could you check >your standard_html_header? Does it make any reference to SESSION? > >One thing about HappySession is that I made it so no initialization is >required. So please do not call SESSION object in standard_html_header to >initialize it. (In the next release I'll make it safe even if someone calls >it in standard_html_header.) > >I will try to guess what you want to do: you want to initialize FLinkID at >the beginning of the session? If so, since HappySession's dictionary does >not require initialization, you can do something like: > > > > > ... normal operation here ... > > >(If an item does not exist, SESSION['FLinkID'] returns ._None) > >regards, > >Hung Jung > >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > >Share information about yourself, create your own public profile at >http://profiles.msn.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 kedai@kedai.com.my Sat Sep 2 12:12:08 2000 From: kedai@kedai.com.my (Bak @ kedai) Date: Sat, 2 Sep 2000 19:12:08 +0800 Subject: [Zope] Testing FastCGI Message-ID: <011201c014ce$a324f2a0$1994bcca@kedai> -----Original Message----- From: Nicholas Lo To: zope@zope.org Date: Saturday, September 02, 2000 6:00 PM Subject: [Zope] Testing FastCGI >Hi, > >I have set up my Apache and ZOPE according to How-To. It looks okay to >me. However, how can I know if my setup is correct. Is there any test >FastCGI application I can simply drop it in and test out my system? > off the top of my head, not that i'm aware of. but you can see that it's working thru the apache access/error log >Thanks > >Nicholas Lo > >_______________________________________________ >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 fresh@bay-c.co.uk Sat Sep 2 12:12:21 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Sat, 02 Sep 2000 12:12:21 +0100 Subject: [Zope] Zope.org Mirroring References: <87n1ht377u.fsf@src.no> <39AE68B8.2146B020@digicool.com> <39B0CED4.3010309@cat-box.net> Message-ID: <39B0E095.5A31A388@bay-c.co.uk> Steve Alexander wrote: > What kind of mirroring? > > Something static, or something clever using ZEO? AFAIK, ZEO doesn't currently have a distributed storage system, so anything other than a static mirror is still going to share a point of failure with Zope.org... That said, threads on the lists suggest that Zope sucks when you try to mirror it statically :( What to do? ;-) Chris From fresh@bay-c.co.uk Sat Sep 2 12:18:39 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Sat, 02 Sep 2000 12:18:39 +0100 Subject: [Zope] Who wants to do a decent ZCatalog Query Language? References: <14766.46785.79690.445542@lindm.dm> <39AF8852.779FDD17@nipltd.com> <14767.60721.740494.803813@lindm.dm> Message-ID: <39B0E20F.41F83692@bay-c.co.uk> Dieter Maurer wrote: > Chris Withers writes: > > Don't you wish there was a decent query language for ZCatalog so this > > kindof rediculous complexiting to achieve a simple outcome wasn't > > necessary? > I do -- but not enough to implement it ;-) Same here :-( I wonder if there's a standard search language/interface that ZCatalog could implement? I wonder if anyone could do it and then open source it? DC? If not, I wonder whether something like Cosource.com couldn't be leveraged to cough up funds so someone like Dieter, who has a lot of experience with the Catalog, could dedicate the the time to do it and make everyone happy? Here's hoping... Chris From administrator@consotec.de Sat Sep 2 13:09:36 2000 From: administrator@consotec.de (administrator@consotec.de) Date: 02 Sep 00 12:09:36 UT Subject: [Zope] Generic workflow Message-ID: --------------1DD2510B41FE Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable As I saw during the last days there is a big interest for generic workflow. There is an open source project called wftk: Open-source workflow toolkit (http://www.vivtek.com/wftk). Currently it's Tcl/C based with XML as description language. Maybe we could pull together our resources and finish it on a Zope/Python platform. I already contact the developer and waiting for a response. Arno Gross email: arno.gross@consotec.de --------------1DD2510B41FE-- From erik+list@esol.no Sat Sep 2 14:26:21 2000 From: erik+list@esol.no (Erik Enge) Date: 02 Sep 2000 15:26:21 +0200 Subject: [Zope] Zope.org Mirroring In-Reply-To: <39B0E095.5A31A388@bay-c.co.uk> References: <87n1ht377u.fsf@src.no> <39AE68B8.2146B020@digicool.com> <39B0CED4.3010309@cat-box.net> <39B0E095.5A31A388@bay-c.co.uk> Message-ID: <87vgwf53ia.fsf@src.no> (sorry for jumping in here) [Chris Withers] | What to do? ;-) It might not be interesting, but what I would really like is a complete mirror of documentation and products up and running all the time. That could be done statically, even without Zope if it sucks that much. (Although, I can't see why it would in such a situation.) From chrism@digicool.com Sat Sep 2 15:42:41 2000 From: chrism@digicool.com (Chris McDonough) Date: Sat, 02 Sep 2000 10:42:41 -0400 Subject: [Zope] What's up with zope.org? References: <002401c01489$95dc6d20$1994bcca@kedai> Message-ID: <39B111E1.882D2365@digicool.com> "Bak @ kedai" wrote: > > > >Aparently, our in-house MountedClientStorage (and the MountedDatabase) > >doesn't play nice with ZEO. So we've backed off of ZEO for the moment, > >pending the magic Jim touch. > >-- > so, if i use only ZEO, it should be a problem then? > If you're not using the mountedclientstorage or trying to serve more than one database out of ZEO, you shouldn't be having problems. From reasley@rcnchicago.com Sat Sep 2 15:54:27 2000 From: reasley@rcnchicago.com (Samuel H. Easley) Date: Sat, 2 Sep 2000 09:54:27 -0500 Subject: [Zope] confirm Message-ID: <003301c014ed$b1101600$2c109418@21stcentury.net> This is a multi-part message in MIME format. ------=_NextPart_000_0030_01C014C3.C7F6EA80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable confirm 723772 ------=_NextPart_000_0030_01C014C3.C7F6EA80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
confirm 723772
------=_NextPart_000_0030_01C014C3.C7F6EA80-- From bill@libc.org Sat Sep 2 18:21:56 2000 From: bill@libc.org (Bill Anderson) Date: Sat, 02 Sep 2000 11:21:56 -0600 Subject: [Zope] PCGI not working --isolated cause! Message-ID: <39B13734.6B669826@libc.org> OK, after being much frustrated with PCGI/ZServer (I run ZServer, and talk to it both direct to port (management), and from Roxen through PCGI), not working. I found the 'problem'. This works: ===== #! /bin/sh reldir=`dirname $0` PYTHONHOME=`cd $reldir; pwd` export PYTHONHOME exec /usr/bin/python \ $PYTHONHOME/z2-2.2.py \ -m '' -f '' -w6001 -d 127.0.0.1 ==== This Does not: ==== #! /bin/sh reldir=`dirname $0` PYTHONHOME=`cd $reldir; pwd` export PYTHONHOME exec /usr/bin/python \ $PYTHONHOME/z2-2.2.py \ -X -w6001 -d 127.0.0.1 ====== The difference is in the port options passed to z2.py. If you use the new -X, it shuts of pcgi. If you use the old -m '' -f '' (fo ronly running web), it works. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From Jonathan Desp" Hi guys, Anyone here would like to send me the program loadsite via email, by attachment, please? There is a problems with the current loadsite at zope.com, I'm getting this problem: "Error reading header after processing 0 entries" So if you could send me your files via email, I would greatly appreciate. I'm waiting a reply from Itamar since 3 weeks, and I cannot continue to make B2BEmerging.com and MEMSCenter.com --Jon From bcoleman@questcon.com Sat Sep 2 20:23:47 2000 From: bcoleman@questcon.com (Coleman, Bryan) Date: Sat, 2 Sep 2000 15:23:47 -0400 Subject: [Zope] Oracle DB Connection Message-ID: <919A9AB4EB0DD411B7E700508B9B13664229@JQCEXCH01> I have tried to install the ZOracleDA product for Zope and there is a little broken box to the product listing which I am assuming meens it is not working. I also get an error that says. ZOracleDA Import Traceback Traceback (innermost last): File "C:\PROGRA~1\QUESTC~1\lib\python\OFS\Application.py", line 396, in import_products product=__import__(pname, global_dict, global_dict, silly) File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\__init__.py", line 91, in ? import DA File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\DA.py", line 91, in ? from db import DB File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\db.py", line 89, in ? import DCOracle, DateTime File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\DCOracle\__init__.py", line 52, in ? import sys, Buffer ImportError: No module named Buffer I am using Zope 2.2.1, is there another module I should be using or is this the right one? - Bryan Patrick Coleman Questcon Technologies (336)273-2428 ext-416 bcoleman@questcon.com From Tim Hicks" For those of you who saw my posts from a couple of days ago (Dieter Maurer and Geir Bfkholt), this is the question that I think I should have been asking in the first place. I have a standard_html_header that is inserted into Zclasses. These Zclasses have properties including meta_author, meta_description etc (I don't think it is important what they are, just that they are properties that standard_html_header does not have). In the standard_html_header, I use code such as and . This works fine and the properties of the *zclass* are inserted. However, if I put into the standard_html_header, I get the id of standard_html_header, *not* of the zclass. How do I tell zope to which item I am refering (bearing in mind, I don't know the name of the zclass ie it is variable)? Cheers tim ps. As a workaround, I have simply given my zclasses an alternative property (counter_id) that I make the same as the real id, but this seems to be a clumsy way of doing it. From Tim Hicks" For those of you who saw my posts from a couple of days ago (Dieter Maurer and Geir Bfkholt), this is the question that I think I should have been asking in the first place. I have a standard_html_header that is inserted into Zclasses. These Zclasses have properties including meta_author, meta_description etc (I don't think it is important what they are, just that they are properties that standard_html_header does not have). In the standard_html_header, I use code such as and . This works fine and the properties of the *zclass* are inserted. However, if I put into the standard_html_header, I get the id of standard_html_header, *not* of the zclass. How do I tell zope to which item I am refering (bearing in mind, I don't know the name of the zclass ie it is variable)? Cheers tim ps. As a workaround, I have simply given my zclasses an alternative property (counter_id) that I make the same as the real id, but this seems to be a clumsy way of doing it. From kthangavelu@earthlink.net Sat Sep 2 15:59:55 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Sat, 02 Sep 2000 07:59:55 -0700 Subject: [Zope] How to access id and title of document calling standard_html_header References: <003101c01516$9ed69260$0301a8c0@tim> Message-ID: <39B115EB.25E03F5@earthlink.net> Tim Hicks wrote: > > For those of you who saw my posts from a couple of days ago (Dieter > Maurer and Geir Bfkholt), this is the question that I think I should > have been asking in the first place. > > I have a standard_html_header that is inserted into Zclasses. These > Zclasses have properties including meta_author, meta_description etc > (I don't think it is important what they are, just that they are > properties that standard_html_header does not have). In the > standard_html_header, I use code such as and > . This works fine and the properties of > the *zclass* are inserted. However, if I put into the > standard_html_header, I get the id of standard_html_header, *not* of > the zclass. How do I tell zope to which item I am refering (bearing > in mind, I don't know the name of the zclass ie it is variable)? > > Cheers Make your standard_html_header a DTML Method not a Document. Methods operate on their containers. Documents operate on themselves. The Document is acquiring the ZClass properties after looking through its own. The Method looks for the properties of its containers. Kapil From chrism@digicool.com Sat Sep 2 21:34:38 2000 From: chrism@digicool.com (Chris McDonough) Date: Sat, 02 Sep 2000 16:34:38 -0400 Subject: [Zope] ZCatalog in 2.2.x References: <613145F79272D211914B0020AFF640199E6D22@gandalf.digicool.com> <39AEA9C0.4105C6FA@adroit.net> Message-ID: <39B1645D.CC0AC455@digicool.com> What is the actual word you're looking for? 'blah'? Terry Kerr wrote: > > Hi, > > I can rebuild indexes and recatalog etc, it doesn't change anything. I > don't see how it could change anything...it is a brand new zcatalog > instance. Simply, the ZCatalog is created, the indexes are created, and > the zcatalog is initially empty. Then I create one CatalogAware object, > and it catalogs itself. I can see this object in the catalog, and I can > see the textindexed words in the vocabulary. But when I search for a word > in the vocabulary using a textindex (which obviously belongs to the only > object in the catalog), I get an empty result. The only way I can get a > non empty result it to search for the id of the object or one other > property I have which are indexed as field indexes. > > The product I am working on is Etailer. If anyone is kind enough to take a > look, you can download it at http://e-tailer.adriot.net/download.html. The > function that does the search is searchFor(), at line 419 of Etailer.py. > Creating an instance of etailer in 2.1.6 works fine, but creating an > instance of etailer in 2.2.x and the catalog doesn't work. > > i am very confused ;-). > > Chris McDonough wrote: > > > This is not right, obviously. Can you rebuild your indexes (by deleting > > and reentering them), recatalog, and see if the problem goes away? We > > haven't had any colluding reports of something like this, and I'm using > > the 2.2.1 catalog with textindexes successfully on a customer project. > > > > > -----Original Message----- > > > From: Terry Kerr [mailto:terry@adroit.net] > > > Sent: Wednesday, August 30, 2000 3:27 AM > > > To: pja@clari.net.au; zope@zope.org > > > Subject: Re: [Zope] ZCatalog in 2.2.x > > > > > > > > > I am not searching from a form in that sense...I am talking > > > about at the python > > > level. > > > > > > I have self.searchResults({'description':'blah'}) where > > > description is meta > > > data in the catalog and a textindex and 'blah' is in the > > > Vocabulary. This > > > previously worked in zope2.1.6. Now in 2.2.0 and 2.2.1 it > > > doesn't work. The > > > only thing way I can get searchResults() to return a non > > > empty list is to search > > > using a Field index and a valid string to match with. > > > > > > > > > pja@clari.net.au wrote: > > > > > > > Terry Kerr said: > > > > > > > > > Hi, > > > > > > > > > > I have a python product which uses a ZCatalog and CatalogAware > > > > > products. The catalog has a number of Field and > > > TextIndex indexes. > > > > > Search the ZCatalog has worked fine when my product is > > > instantiated in > > > > > 2.1.6. But now when I instantiate my product in 2.2.0 or 2.2.1, > > > > > searching only works when I search using a field index. > > > Searching using > > > > > a textindex always results in an empty result, even tho I > > > can see the > > > > > words I am searching for in the Vocabulary! Any > > > suggestions? I have > > > > > tried reindexing, completey recreating the Zcatalog, > > > recreating the > > > > > Vobulary and reindexing, and nothing has changed the > > > behaviour. Are > > > > > textindexes simply broken? > > > > > > > > > > > > > > > ZCatalog seems very volatile to me! Every time I have > > > upgraded way back > > > > > from zope2.1.3, something in zcatalog has changed and > > > boken my product. > > > > > So far I have managed to find fixes, but this one has got > > > me baffled!! > > > > > > > > > > > > > My experience has been that if field indexes are > > > unspecified, the catalog > > > > will only match where those fields are empty. In other > > > words, by not > > > > specifing anything for the field indexes, you are actually > > > specifying that > > > > for a match, they need to be empty. > > > > To get around this, I put another method between the form > > > for entering what > > > > you wish to search for, and the method that actually > > > searches the form. This > > > > method looks at the field indexes, and if nothing has been > > > specified, it > > > > doesn't pass them on to the method that does the actual search. > > > > An alternative to this, is to use names for the field > > > indexes that aren't in > > > > the catalog index, and then at the start of the search > > > method, check those > > > > names, and if they have a value associated with them, add > > > to REQUEST what the > > > > names in the index are with the appropriate values. > > > > > > > > There may be a better way, I'm still pretty new to Zope and > > > DTML sort of > > > > stuff. > > > > > > > > Peter Armstrong > > > > > > -- > > > Terry Kerr (terry@adroit.net) > > > Adroit Internet Solutions Pty Ltd (www.adroit.net) > > > Phone: +613 9563 4461 > > > Fax: +613 9563 3856 > > > Mobile: +61 414 938 124 > > > ICQ: 79303381 > > > > > > > > > > > > > > > _______________________________________________ > > > 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 ) > > > > > > > _______________________________________________ > > 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 ) > > -- > Terry Kerr (terry@adroit.net) > Adroit Internet Solutions Pty Ltd (www.adroit.net) > Phone: +613 9563 4461 > Fax: +613 9563 3856 > Mobile: +61 414 938 124 > ICQ: 79303381 > > _______________________________________________ > 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 jasonic@nomadicsltd.com Sat Sep 2 21:49:41 2000 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Sat, 2 Sep 2000 16:49:41 -0400 Subject: [Zope] Ad banners in Zope anyone ? Message-ID: <004101c0151f$51834220$c3090740@megapathdsl.net> Hello I am glad to see any new web site anoncements using Zope. For example the new Malaysian news service at http://www.emedia.com.my/ Out of curiosity I checked to see how they handled their ad banners: It looks like this is perhaps some instant cut-and-paste of exsiting PHP tools tacked onto the Zope Server. If it ain't broke don't fix it..and DTML aint pretty we know.. - Can one run PHP from inside of Zserver/ZODB easily? - How would to do that? - Is anyone using Zope for Ad Banner services?? - What would would make it a good or bad choice? thanks Jason ________________________________________________________________ Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director From Tim Hicks" <39B115EB.25E03F5@earthlink.net> Message-ID: <003f01c01524$119d47a0$0301a8c0@tim> ----- Original Message ----- From: "Kapil Thangavelu" To: "Tim Hicks" Cc: Sent: Saturday, September 02, 2000 3:59 PM Subject: Re: [Zope] How to access id and title of document calling standard_html_header > Tim Hicks wrote: > > > > For those of you who saw my posts from a couple of days ago (Dieter > > Maurer and Geir Bfkholt), this is the question that I think I should > > have been asking in the first place. > > > > I have a standard_html_header that is inserted into Zclasses. These > > Zclasses have properties including meta_author, meta_description etc > > (I don't think it is important what they are, just that they are > > properties that standard_html_header does not have). In the > > standard_html_header, I use code such as and > > . This works fine and the properties of > > the *zclass* are inserted. However, if I put into the > > standard_html_header, I get the id of standard_html_header, *not* of > > the zclass. How do I tell zope to which item I am refering (bearing > > in mind, I don't know the name of the zclass ie it is variable)? > > > > Cheers > > > Make your standard_html_header a DTML Method not a Document. Methods > operate on their containers. Documents operate on themselves. The > Document is acquiring the ZClass properties after looking through its > own. The Method looks for the properties of its containers. > > Kapil > It is a method already! Any ideas. If it makes any difference, I'm running Zope 2.2.0 (although I really don't think this is important). tim From terry@adroit.net Sat Sep 2 11:48:06 2000 From: terry@adroit.net (Terry Kerr) Date: Sat, 02 Sep 2000 21:48:06 +1100 Subject: [Zope] ZCatalog in 2.2.x References: <613145F79272D211914B0020AFF640199E6D22@gandalf.digicool.com> <39AEA9C0.4105C6FA@adroit.net> <39B1645D.CC0AC455@digicool.com> Message-ID: <39B0DAE6.38FF56F1@adroit.net> any word...however, i fixed the problem thanks. to Dieter Maurer Chris McDonough wrote: > What is the actual word you're looking for? 'blah'? > > Terry Kerr wrote: > > > > Hi, > > > > I can rebuild indexes and recatalog etc, it doesn't change anything. I > > don't see how it could change anything...it is a brand new zcatalog > > instance. Simply, the ZCatalog is created, the indexes are created, and > > the zcatalog is initially empty. Then I create one CatalogAware object, > > and it catalogs itself. I can see this object in the catalog, and I can > > see the textindexed words in the vocabulary. But when I search for a word > > in the vocabulary using a textindex (which obviously belongs to the only > > object in the catalog), I get an empty result. The only way I can get a > > non empty result it to search for the id of the object or one other > > property I have which are indexed as field indexes. > > > > The product I am working on is Etailer. If anyone is kind enough to take a > > look, you can download it at http://e-tailer.adriot.net/download.html. The > > function that does the search is searchFor(), at line 419 of Etailer.py. > > Creating an instance of etailer in 2.1.6 works fine, but creating an > > instance of etailer in 2.2.x and the catalog doesn't work. > > > > i am very confused ;-). > > > > Chris McDonough wrote: > > > > > This is not right, obviously. Can you rebuild your indexes (by deleting > > > and reentering them), recatalog, and see if the problem goes away? We > > > haven't had any colluding reports of something like this, and I'm using > > > the 2.2.1 catalog with textindexes successfully on a customer project. > > > > > > > -----Original Message----- > > > > From: Terry Kerr [mailto:terry@adroit.net] > > > > Sent: Wednesday, August 30, 2000 3:27 AM > > > > To: pja@clari.net.au; zope@zope.org > > > > Subject: Re: [Zope] ZCatalog in 2.2.x > > > > > > > > > > > > I am not searching from a form in that sense...I am talking > > > > about at the python > > > > level. > > > > > > > > I have self.searchResults({'description':'blah'}) where > > > > description is meta > > > > data in the catalog and a textindex and 'blah' is in the > > > > Vocabulary. This > > > > previously worked in zope2.1.6. Now in 2.2.0 and 2.2.1 it > > > > doesn't work. The > > > > only thing way I can get searchResults() to return a non > > > > empty list is to search > > > > using a Field index and a valid string to match with. > > > > > > > > > > > > pja@clari.net.au wrote: > > > > > > > > > Terry Kerr said: > > > > > > > > > > > Hi, > > > > > > > > > > > > I have a python product which uses a ZCatalog and CatalogAware > > > > > > products. The catalog has a number of Field and > > > > TextIndex indexes. > > > > > > Search the ZCatalog has worked fine when my product is > > > > instantiated in > > > > > > 2.1.6. But now when I instantiate my product in 2.2.0 or 2.2.1, > > > > > > searching only works when I search using a field index. > > > > Searching using > > > > > > a textindex always results in an empty result, even tho I > > > > can see the > > > > > > words I am searching for in the Vocabulary! Any > > > > suggestions? I have > > > > > > tried reindexing, completey recreating the Zcatalog, > > > > recreating the > > > > > > Vobulary and reindexing, and nothing has changed the > > > > behaviour. Are > > > > > > textindexes simply broken? > > > > > > > > > > > > > > > > > > ZCatalog seems very volatile to me! Every time I have > > > > upgraded way back > > > > > > from zope2.1.3, something in zcatalog has changed and > > > > boken my product. > > > > > > So far I have managed to find fixes, but this one has got > > > > me baffled!! > > > > > > > > > > > > > > > > My experience has been that if field indexes are > > > > unspecified, the catalog > > > > > will only match where those fields are empty. In other > > > > words, by not > > > > > specifing anything for the field indexes, you are actually > > > > specifying that > > > > > for a match, they need to be empty. > > > > > To get around this, I put another method between the form > > > > for entering what > > > > > you wish to search for, and the method that actually > > > > searches the form. This > > > > > method looks at the field indexes, and if nothing has been > > > > specified, it > > > > > doesn't pass them on to the method that does the actual search. > > > > > An alternative to this, is to use names for the field > > > > indexes that aren't in > > > > > the catalog index, and then at the start of the search > > > > method, check those > > > > > names, and if they have a value associated with them, add > > > > to REQUEST what the > > > > > names in the index are with the appropriate values. > > > > > > > > > > There may be a better way, I'm still pretty new to Zope and > > > > DTML sort of > > > > > stuff. > > > > > > > > > > Peter Armstrong > > > > > > > > -- > > > > Terry Kerr (terry@adroit.net) > > > > Adroit Internet Solutions Pty Ltd (www.adroit.net) > > > > Phone: +613 9563 4461 > > > > Fax: +613 9563 3856 > > > > Mobile: +61 414 938 124 > > > > ICQ: 79303381 > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > 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 ) > > > > > > > > > > _______________________________________________ > > > 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 ) > > > > -- > > Terry Kerr (terry@adroit.net) > > Adroit Internet Solutions Pty Ltd (www.adroit.net) > > Phone: +613 9563 4461 > > Fax: +613 9563 3856 > > Mobile: +61 414 938 124 > > ICQ: 79303381 > > > > _______________________________________________ > > 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 ) -- Terry Kerr (terry@adroit.net) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 938 124 ICQ: 79303381 From fresh@bay-c.co.uk Sun Sep 3 00:06:13 2000 From: fresh@bay-c.co.uk (Chris Withers) Date: Sun, 03 Sep 2000 00:06:13 +0100 Subject: [Zope] Can you send me LoadSite ? References: <008201c01511$e8321ec0$befdacce@user> Message-ID: <39B187E5.E0A20AA3@bay-c.co.uk> Jonathan Desp wrote: > Anyone here would like to send me the program loadsite via email, by > attachment, please? Why not just search the mailing list archives? > I'm waiting a reply from Itamar since 3 weeks, and I cannot continue to make > B2BEmerging.com and MEMSCenter.com Maybe Itamar has his own work to do?! Chris From Jonathan Desp" <39B187E5.E0A20AA3@bay-c.co.uk> Message-ID: <001401c01532$ad0e0860$96dbe2d1@user> ----- Original Message ----- From: "Chris Withers" To: "Jonathan Desp" Cc: "zope zope zope" Sent: Saturday, September 02, 2000 7:06 PM Subject: Re: [Zope] Can you send me LoadSite ? > Jonathan Desp wrote: > > Anyone here would like to send me the program loadsite via email, by > > attachment, please? > > Why not just search the mailing list archives? I did, there is no attachment of loadsite... do you have it in your computer? why don't you email it to me right now, and then I'll stop to waste my time. please, email me the program. > > > I'm waiting a reply from Itamar since 3 weeks, and I cannot continue to make > > B2BEmerging.com and MEMSCenter.com > > Maybe Itamar has his own work to do?! I think so. but why you are saying that? it's desctructive.. > > Chris > From Jonathan Desp" Hi, Anyone can give me LoadSite by email please? We cannot get it from zope.org site. so if you have the files of the program called LoadSite, then you know what to do :) Just give it to Jonathan! :) --Jon From kthangavelu@earthlink.net Sun Sep 3 00:51:08 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Sat, 02 Sep 2000 16:51:08 -0700 Subject: [Zope] ANN: NewsCenter0.1.0 Message-ID: <39B1926C.7E431848@earthlink.net> available @ http://www.zope.org/Members/k_vertigo/ZopeProducts/NewsCenter from the README Current Status: - I've realized that Zope sites tend to keep user info in a variety of formats, so rather than reduplicating that info within NewsCenter, I've implemented a hook get_syndicated_content(channel_ids, lastdate=None) which will retrieve all the items of a channel that are newer than lastdate. if lastdate is none it retrieves all items from the last 24 hrs. this hook can be used to build syndicated content in the form of user pages and emails. - NewsCenter supports aggregate channels in the ocs format. - NewsCenter support searching of channels. - NewsCenter supports channels in the RSS format version (0.9-1.0) - i've imported over 1965 channels using ocs files from http://www.xmltree.com/export/ocs.cfm and http://www.moreover.com/categories/ocs/ocsdirectory.rdf from the CHANGES file version 0.1.0 The Birthday Boy Release - THIS RELEASE IS NOT BACKWARDS COMPATIBLE - This release has been tested on zope 2.2.0 and 2.2.1 on linux if there are any problems running it on windows please let me know (kthangavelu@earthlink.net) - Channel.py has undergone massive changes - no longer uses XMLDocument, hence XMLDoc. is not required - implements syndicated content hook - supports all RSS versions (0.9-1.0) - no longer registered as a top level class - implements image tags of RSS (only for v.91+) - no longer causes ZCatalog to throw spurious errors on intial update() - renamed to remove references to rss - NewsCenter.py - ocs channels maybe added from filesystem. - returns elasped time on most actions of management view- channels tab. - implements syndicated content hook (see README for more info) - minor changes to management interface to support 1K+ channels - internal storage renamed to remove references to rss - The product is now released under one license the LGPL - total channel count i've gotten is up to 1965 (albeit with some duplication). Cheers, Kapil From kedai@kedai.com.my Sun Sep 3 05:32:52 2000 From: kedai@kedai.com.my (Bak @ kedai) Date: Sun, 3 Sep 2000 12:32:52 +0800 Subject: [Zope] Ad banners in Zope anyone ? Message-ID: <004901c01564$61e0a8c0$2194bcca@kedai> -----Original Message----- From: Jason Cunliffe To: zope@zope.org Date: Sunday, September 03, 2000 5:01 AM Subject: [Zope] Ad banners in Zope anyone ? >Hello > >I am glad to see any new web site anoncements using Zope. >For example the new Malaysian news service at http://www.emedia.com.my/ > >Out of curiosity I checked to see how they handled their ad banners: >border="0" width="468" height="60"> > >It looks like this is perhaps some instant cut-and-paste of exsiting PHP >tools tacked onto the Zope Server. this a temporary measure until we got a "real(?)" banner ad system. at the time of development, there was no banner ad system in zope that can furnish us some stats that we can give to advertisers. although later there was banner system (a zope product), we just got stuck with phpads. we have now real media installed, and will be replacing phpads with it. >If it ain't broke don't fix it..and DTML aint pretty we know.. > >- Can one run PHP from inside of Zserver/ZODB easily? >- How would to do that? >- Is anyone using Zope for Ad Banner services?? >- What would would make it a good or bad choice? > my take: sales dept and upper management needed a proven system that can give advertisers assurance that advertisers got what they asked for. and banner system, though a good product, can't give us what real media can; in terms of stats and other stuff. so, we forked some dough to get some dough in :) but i'm still looking at banner system. >thanks >Jason >________________________________________________________________ >Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director > > > >_______________________________________________ >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 zope@philosoft.at Sun Sep 3 12:11:03 2000 From: zope@philosoft.at (Philipp Auersperg) Date: Sun, 03 Sep 2000 13:11:03 +0200 Subject: [Zope] Oracle DB Connection In-Reply-To: <919A9AB4EB0DD411B7E700508B9B13664229@JQCEXCH01> References: <919A9AB4EB0DD411B7E700508B9B13664229@JQCEXCH01> Message-ID: <200009031311030562.30A57ED9@192.7.2.223> Did you also build the *DCOracle* package that is needed by the ZOracleDA? you have to exactly follow the build instructions that come with this package. When you have built it there are two shared libraries: Buffer.so and oci_.so. Your traceback says that Buffer cannot be imported, that means python cannot find Buffer.so Solution: 1. Build the DCOracle package 2. You have to check that the two .so files are to the *lib/python1.5/site-packes* directory under your Zope main directory Good luck Philipp Auersperg (zwork) *********** REPLY SEPARATOR *********** On 02.09.2000 at 15:23 Coleman, Bryan wrote: >I have tried to install the ZOracleDA product for Zope and there is a little >broken box to the product listing which I am assuming meens it is not >working. I also get an error that says. > >ZOracleDA Import Traceback >Traceback (innermost last): > File "C:\PROGRA~1\QUESTC~1\lib\python\OFS\Application.py", line 396, in >import_products > product=__import__(pname, global_dict, global_dict, silly) > File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\__init__.py", >line 91, in ? > import DA > File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\DA.py", line 91, >in ? > from db import DB > File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\db.py", line 89, >in ? > import DCOracle, DateTime > File >"C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\DCOracle\__init__.py", >line 52, in ? > import sys, Buffer >ImportError: No module named Buffer > >I am using Zope 2.2.1, is there another module I should be using or is this >the right one? > >- Bryan Patrick Coleman > Questcon Technologies > (336)273-2428 ext-416 > bcoleman@questcon.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 ap@big1.de Sun Sep 3 12:19:35 2000 From: ap@big1.de (Andy Pahne) Date: Sun, 3 Sep 2000 13:19:35 +0200 Subject: [Zope] SQL-Session 3.0 -- session won't be writen to database Message-ID: Hi, I'm playing around with SQLSession-3.0 When I do something like the following: my session variable "foo" renders as I expected. But when I move to another page my session-variable "foo" is not available. Creating a session works perfect and the next page remembers about the created session and gives me the correct name, but no session-variables. I checked the database and there werde no entries in my session-data table. Am I missing something like or what? Andy Pahne ap@big1.de From mail@okstudio.com.au Sun Sep 3 17:26:20 2000 From: mail@okstudio.com.au (George) Date: Mon, 04 Sep 2000 03:26:20 +1100 Subject: [Zope] Folder and SQL security Message-ID: <39B27BAB.E90E9943@okstudio.com.au> Security in ZOPE is very puzzling. If I have certain rules set for the root folder, can I set something different for the sub folders? Any changes seem to have no effect at all. I am especially wandering about setting for anonymous user. I'd like to give them only 'viewing' privilege but that does not work. The site is not functional at all and asks for the password even for the viewing. Then I enable 'access the content' and the site works as long as I do not try to use sql. When I how ever enable 'use sql methods' permission they can access my database, delete and add entries to it. What do I have to do to allow anonymous viewers to just view the site (keep in mind that I am using a couple of zsql methods for embedding of data in my html) I also want to have one of the sub folders not accessible to any one but me. Can you help anyone? Regards, George From ksmith@web-oats.com Sun Sep 3 19:23:02 2000 From: ksmith@web-oats.com (Kevin Smith) Date: Sun, 3 Sep 2000 11:23:02 -0700 Subject: [Zope] Way to list vocabulary words specific to a page? Message-ID: I am interested in showing the vocabulary words indexed for the page being viewed, to be used as meta keyword data. Is this possible? Thank you, Kevin Smith From chrism@digicool.com Sun Sep 3 19:49:54 2000 From: chrism@digicool.com (Chris McDonough) Date: Sun, 03 Sep 2000 14:49:54 -0400 Subject: [Zope] Folder and SQL security References: <39B27BAB.E90E9943@okstudio.com.au> Message-ID: <39B29D52.80A9B50E@digicool.com> George wrote: > > Security in ZOPE is very puzzling. If I have certain rules set for the > root folder, can I set something different for the sub folders? Sure... for general security information see both http://www.zope.org/Members/michel/ZB (the Zope book security chapter, mostly finished) and http://www.zope.org/Members/mcdonc/PDG (security chapter mostly finished). > Any > changes seem to have no effect at all. can you be more specific? > I am especially wandering about > setting for anonymous user. I'd like to give them only 'viewing' > privilege but that does not work. How doesn't it work? > The site is not functional at all and > asks for the password even for the viewing. Then I enable 'access the > content' and the site works as long as I do not try to use sql. Yes, "access contents information" is equivalent to allowing the user to list the objects in an object manager. It's given to anonymous by default most of the time, and is probably required for most operations. > When I > how ever enable 'use sql methods' permission they can access my > database, delete and add entries to it. This should have nothing to do with 'access contents information'. There should be permissions available to restrict the use of sql methods. Have you seen them? > What do I have to do to allow > anonymous viewers to just view the site Give them "view" and "access contents information" permissions. Depending on the products you've got installed and the operations you want the users to be able to carry out, you may need to give them other permissions. > (keep in mind that I am using a > couple of zsql methods for embedding of data in my html) I also want to > have one of the sub folders not accessible to any one but me. > Can you help anyone? > > Regards, > George > > _______________________________________________ > 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 sebastien.yapo@free.fr Sun Sep 3 20:27:50 2000 From: sebastien.yapo@free.fr (Sebastien Yapo) Date: Sun, 03 Sep 2000 21:27:50 +0200 Subject: [Zope] ZCatalog in 2.2.x Message-ID: <4.3.2.7.0.20000903212254.00ae7cd0@pop.lucky.net> And how did you fix it ? I had the same kind of problem with ZCatalog an CatalogAware ... Terry Kerr wrote: any word...however, i fixed the problem thanks. to Dieter Maurer Chris McDonough wrote: > What is the actual word you're looking for? 'blah'? > > Terry Kerr wrote: > > > > Hi, > > > > I can rebuild indexes and recatalog etc, it doesn't change anything. I > > don't see how it could change anything...it is a brand new zcatalog > > instance. Simply, the ZCatalog is created, the indexes are created, and > > the zcatalog is initially empty. Then I create one CatalogAware object, > > and it catalogs itself. I can see this object in the catalog, and I can > > see the textindexed words in the vocabulary. But when I search for a word > > in the vocabulary using a textindex (which obviously belongs to the only > > object in the catalog), I get an empty result. The only way I can get a > > non empty result it to search for the id of the object or one other > > property I have which are indexed as field indexes. > > > > The product I am working on is Etailer. If anyone is kind enough to take a > > look, you can download it at http://e-tailer.adriot.net/download.html. The > > function that does the search is searchFor(), at line 419 of Etailer.py. > > Creating an instance of etailer in 2.1.6 works fine, but creating an > > instance of etailer in 2.2.x and the catalog doesn't work. > > > > i am very confused ;-). > > > > Chris McDonough wrote: > > > > > This is not right, obviously. Can you rebuild your indexes (by deleting > > > and reentering them), recatalog, and see if the problem goes away? We > > > haven't had any colluding reports of something like this, and I'm using > > > the 2.2.1 catalog with textindexes successfully on a customer project. > > > > > > > -----Original Message----- > > > > From: Terry Kerr [mailto:terry@adroit.net] > > > > Sent: Wednesday, August 30, 2000 3:27 AM > > > > To: pja@clari.net.au; zope@zope.org > > > > Subject: Re: [Zope] ZCatalog in 2.2.x > > > > > > > > > > > > I am not searching from a form in that sense...I am talking > > > > about at the python > > > > level. > > > > > > > > I have self.searchResults({'description':'blah'}) where > > > > description is meta > > > > data in the catalog and a textindex and 'blah' is in the > > > > Vocabulary. This > > > > previously worked in zope2.1.6. Now in 2.2.0 and 2.2.1 it > > > > doesn't work. The > > > > only thing way I can get searchResults() to return a non > > > > empty list is to search > > > > using a Field index and a valid string to match with. > > > > > > > > > > > > pja@clari.net.au wrote: > > > > > > > > > Terry Kerr said: > > > > > > > > > > > Hi, > > > > > > > > > > > > I have a python product which uses a ZCatalog and CatalogAware > > > > > > products. The catalog has a number of Field and > > > > TextIndex indexes. > > > > > > Search the ZCatalog has worked fine when my product is > > > > instantiated in > > > > > > 2.1.6. But now when I instantiate my product in 2.2.0 or 2.2.1, > > > > > > searching only works when I search using a field index. > > > > Searching using > > > > > > a textindex always results in an empty result, even tho I > > > > can see the > > > > > > words I am searching for in the Vocabulary! Any > > > > suggestions? I have > > > > > > tried reindexing, completey recreating the Zcatalog, > > > > recreating the > > > > > > Vobulary and reindexing, and nothing has changed the > > > > behaviour. Are > > > > > > textindexes simply broken? > > > > > > > > > > > > > > > > > > ZCatalog seems very volatile to me! Every time I have > > > > upgraded way back > > > > > > from zope2.1.3, something in zcatalog has changed and > > > > boken my product. > > > > > > So far I have managed to find fixes, but this one has got > > > > me baffled!! > > > > > > > > > > > > > > > > My experience has been that if field indexes are > > > > unspecified, the catalog > > > > > will only match where those fields are empty. In other > > > > words, by not > > > > > specifing anything for the field indexes, you are actually > > > > specifying that > > > > > for a match, they need to be empty. > > > > > To get around this, I put another method between the form > > > > for entering what > > > > > you wish to search for, and the method that actually > > > > searches the form. This > > > > > method looks at the field indexes, and if nothing has been > > > > specified, it > > > > > doesn't pass them on to the method that does the actual search. > > > > > An alternative to this, is to use names for the field > > > > indexes that aren't in > > > > > the catalog index, and then at the start of the search > > > > method, check those > > > > > names, and if they have a value associated with them, add > > > > to REQUEST what the > > > > > names in the index are with the appropriate values. > > > > > > > > > > There may be a better way, I'm still pretty new to Zope and > > > > DTML sort of > > > > > stuff. > > > > > > > > > > Peter Armstrong > > > > > > > > -- > > > > Terry Kerr (terry@adroit.net) > > > > Adroit Internet Solutions Pty Ltd (www.adroit.net) > > > > Phone: +613 9563 4461 > > > > Fax: +613 9563 3856 > > > > Mobile: +61 414 938 124 > > > > ICQ: 79303381 > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > 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 ) > > > > > > > > > > _______________________________________________ > > > 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 ) > > > > -- > > Terry Kerr (terry@adroit.net) > > Adroit Internet Solutions Pty Ltd (www.adroit.net) > > Phone: +613 9563 4461 > > Fax: +613 9563 3856 > > Mobile: +61 414 938 124 > > ICQ: 79303381 > > > > _______________________________________________ > > 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 ) -- Terry Kerr (terry@adroit.net) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 938 124 ICQ: 79303381 From Jonathan Desp" Hi, I don't know, but I'm searching a helper. I cannot pay you yet, because Atomasoft is still very little, very small. I have another team constructing NanoSoft O.S., it's a future operating system for the revolution of the miniaturization industry (MEMS,Nanotech). I'll be able to pay people in the future, but not yet. I tryed several times to understand Zope. But like Bill Gates said in an interview, The Open Source world is full of non-compatible system. So everyday, I'm trying to work with Zope, but I'm getting big angryness. I would prefer to see a volunteers, that know this Zope. So that me, I can focus on my businesses. I'm more a business man than a web programmer. --Jon Atomasoft: MEMS Center, B2B Emerging, MEMS Conference, Photonic Software, NanoSoft O.S., MEMS Software, Design/Simulation, in Palo Alto. From kayeva@hotmail.com Sun Sep 3 22:59:35 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Sun, 03 Sep 2000 21:59:35 GMT Subject: [Zope] Copying a dtml method when creating a ZClass instance Message-ID: >From: Tino Wildenhain >To: kamon ayeva >CC: zope@zope.org >Subject: Re: [Zope] Copying a dtml method when creating a ZClass instance >Date: Sat, 02 Sep 2000 10:26:19 +0200 > >Hi, > >kamon ayeva wrote: > > > > I have several reasons whay I need to attach a template to each ZClass. > > Among them are: > > 1/ cases like high level folders where I might want to customize the >page's > > rendering and/or skin, > > 2/ cases like contained objects which uses a generic skin (but you can >still > > customize the skin of one among them, if you want) > > 3/ my site needs to be easily designed / modified by Web Designers that >do > > not understand Acquisition. > >Ah yes. But then, you throw all the advantages of aquisition away. >I would suggest to at least copy the template only on request, >if changes are really made. The 'web designers' should have the >opportunity to delete this template to derive their design from the >previus folder. This way you would not have all the templates laying >around in every subfolder and making changes very very hard. >An yes, this is understandable even by the underenlighted web designer >;-) Definitely agree. Thanks. >Cheers >Tino Kamon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From khowe@performance-net.com Sun Sep 3 23:42:08 2000 From: khowe@performance-net.com (Kevin Howe) Date: Sun, 3 Sep 2000 19:42:08 -0300 Subject: [Zope] ZCatalog problem! Message-ID: <004301c015f8$33134ef0$23029a8e@kevin> Hi, I have a Folderish class (FClass) and I am trying to write it so that when an FClass object is added in ZOPE, it will automatically create a ZCatalog object inside itself. I attempted to do this in the manner I had successfully done this before with other object types: # handle represents the new object to be added with self,_setObject(id, handle) handle.manage_addZCatalog('CatName', 'CatTitle, None) But this doesn't work. I then did some testing with DTML using the following method inside a Folder: The new Folder and new Image were both added with no problems. This was what I expected since the "manage_addFolder" and "manage_addZCatalog" methods are inherited from OFS.Folder.Folder. The method "manage_addZCatalog" however, doesn't seem to have been inherited for some reason. I can add a ZCatalog using the "Add" List, but not programmatically for some reason, as I can with Folder and Image (and probably most other object types). Anyone have the faintest clue why this might be? Thanks, kh From Willem@pangaea.nu Mon Sep 4 00:54:11 2000 From: Willem@pangaea.nu (Willem Oudyk) Date: Mon, 04 Sep 2000 09:54:11 +1000 Subject: [Zope] How do I start ? Message-ID: <4.3.2.7.2.20000904091024.0678ee10@pangaea.nu> Hi, I have just discovered Zope and am interested in developing a web based application but I don't know where to start. While I am going through the documentation, which will be of help no doubt, I hope these initial questions attract some replies. Here are some of my starting requirements; 1) I need to create a small DB retrieval(mainly) system with only 000's of records and possibly 00's of users. 2) Only a few nominated users will have update rights to the data. 3) The user needs to be able to search for all occurrences of any of the data items presented to them 4) It seems the users have a UNIX infrastructure with an existing DB that is ODBC compliant and has data items which I need to retrieve and update. 5) Re: this last point, I'm not sure of yet if my app also needs to be hosted by the UNIX server or whether it can have it's own server and simply make ODBC calls to the UNIX box. I also don't know what would be preferable. I guess having it all on the same box is more efficient. 6) I am based in Australia and if anyone is in the same timezone (ie. Melbourne) it would be great to make personal contact. I hope someone out there can point me in the right direction. ------------------------------------------------- Willem Oudyk 14 Fortescue Grove Vermont Sth. Victoria 3133 Australia Ph/Fax: +61 (3) 9887 9121 mailto:willem@pangaea.nu Web:www.pangaea.nu ------------------------------------------------- From phansen@kaval.com Sun Sep 3 23:50:26 2000 From: phansen@kaval.com (Peter Hansen) Date: Sun, 3 Sep 2000 18:50:26 -0400 Subject: [Zope] Anyone has LoadSite please? Message-ID: <5FA0083DE632D311BEEC00508B4A8BD11F779D@MARKHAM2> In posting this I hope to stave off a flame war. I've downloaded loadsite-1.4.0.tgz from zope.org (without problems) and have sent an email separately to Mr. Desp so he can stop pestering the list for it. (The email contains free advice on etiquette, too.) -Peter > > Jonathan Desp wrote: > > > Anyone here would like to send me the program loadsite via email, by > > > attachment, please? > > > > Why not just search the mailing list archives? > > I did, there is no attachment of loadsite... do you have it in your > computer? why don't you email it to me right now, and then I'll stop to > waste my time. please, email me the program. > > > > > > I'm waiting a reply from Itamar since 3 weeks, and I cannot continue to > make > > > B2BEmerging.com and MEMSCenter.com > > > > Maybe Itamar has his own work to do?! > > I think so. but why you are saying that? it's desctructive.. > > > > > Chris > > > > > --__--__-- > > Message: 12 > Anyone can give me LoadSite by email please? We cannot get it from zope.org > site. so if you have the files of the program called LoadSite, then you know > what to do :) Just give it to Jonathan! :) > > --Jon From Jonathan Desp" Hi Zope Community, I'm sorry about my emails, my friends said me that I was rude. I learned and I hope to be able to don't re-do it. It's only an image, I mean, I know how to give in return, when people give me something. I think it would be great to get a personal assistant. If you know someone beside you, just say that he could be useful at Atomasoft, I have several and clever ideas on how to make money. Plus 4 projects that will make more money. NanoSoft is alot more complex then Zope itself, and we are building it presently, with 8 programmers. Very truly yours, <><><><><><><><><><><><><><><><><><><><><> Jonathan Desp Chairman and CEO, Atomasoft Inc. Matter will become software http://www.atomasoft.com/jonathan <><><><><><><><><><><><><><><><><><><><><> From ergul@ccs.neu.edu Mon Sep 4 00:48:50 2000 From: ergul@ccs.neu.edu (Ayhan Ergul) Date: Sun, 3 Sep 2000 19:48:50 -0400 (EDT) Subject: [Zope] Retrieving ROWID's from Oracle crashes python Message-ID: Zope has been dying silently with the following configuration: Zope version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 ZOracleDA-2.2.0b1 Oracle 8i (8.1.6.1) Not being able to figure out what the problem was, I replicated the site on WinNT zope. Crashes repeated there too with NT popping up a dialog box telling that python.exe could not read some memory location. I tracked the problem down to a query that returned ROWID's from an Oracle table. Upon rewriting the query to eliminate the need for ROWID's, crashes went away and Zope has been up since. Anybody had a similar experience? Is it a problem with DCOracle included? Ayhan From kthangavelu@earthlink.net Sun Sep 3 19:47:10 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Sun, 03 Sep 2000 11:47:10 -0700 Subject: [Zope] ZCatalog problem! References: <004301c015f8$33134ef0$23029a8e@kevin> Message-ID: <39B29CAE.EBA629A9@earthlink.net> Kevin Howe wrote: > > Hi, I have a Folderish class (FClass) and I am trying to write it so that > when an FClass object is added in ZOPE, it will automatically create a > ZCatalog object inside itself. I attempted to do this in the manner I had > successfully done this before with other object types: > > # handle represents the new object to be added with self,_setObject(id, > handle) > handle.manage_addZCatalog('CatName', 'CatTitle, None) generally i reserve this type of stuff into the __init__ method of the object... hence i don't clutter up my manage_add method with code thats not directly relevant to its function. anyways, such is mainly a style matter.. to answer your question... here is a method i call from my __init__ method of a python product. def setup_catalog(self): ''' setups catalog for searching news channels ''' id = 'news_catalog' catalog = Products.ZCatalog.ZCatalog.ZCatalog(id) self._setObject(id, catalog) # setup indexes and such self.news_catalog.manage_addColumn('description') self.news_catalog.manage_addColumn('Date') self.news_catalog.manage_addIndex('Date', 'FieldIndex') self.news_catalog.manage_addColumn('ChannelName') self.news_catalog.manage_addIndex('ChannelName', 'FieldIndex') self.news_catalog.manage_addColumn('link') self.news_catalog.manage_addIndex('link', 'FieldIndex') self.news_catalog.manage_addIndex('SearchableText', 'TextIndex') # get rid of defaults self.news_catalog.manage_delColumns(['bobobase_modification_time', 'summary']) self.news_catalog.manage_delIndexes(['bobobase_modification_time', 'PrincipiaSearchSource']) return 1 you can also do it from a dtml-method. i'd don't have the exact syntax handy... but i'll take a stab at it  > But this doesn't work. I then did some testing with DTML using the following > method inside a Folder: > > > > > > The new Folder and new Image were both added with no problems. This was what > I expected since the "manage_addFolder" and "manage_addZCatalog" methods are > inherited from OFS.Folder.Folder. The method "manage_addZCatalog" however, > doesn't seem to have been inherited for some reason. the Folder, Image, Document, Method manage_adds are globally available methods... to add a product you need see the howto on adding zclasses programamtically for examples/more info. if i remember correctly the syntax is something like but i would check that... Cheers Kapil From khowe@performance-net.com Mon Sep 4 00:54:55 2000 From: khowe@performance-net.com (Kevin Howe) Date: Sun, 3 Sep 2000 20:54:55 -0300 Subject: [Zope] initialize() Message-ID: <000d01c01602$6091fde0$af8b280a@aphowe> This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C015E9.36A7BE20 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've noticed that some ZOPE Python Products define an initialize() = routine in their __init__.py file and some don't. From what I can tell = it is not really needed, but simply offers a more organized way of = registering the Product. Is it good practice to define initialize(), and if so, why + what does = it do? kh ------=_NextPart_000_000A_01C015E9.36A7BE20 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I've noticed that some ZOPE Python Products = define an=20 initialize() routine in their __init__.py file and some don't. From what = I can=20 tell it is not really needed, but simply offers a more = organized way=20 of registering the Product.
 
Is it good practice to define initialize(), and if = so, why +=20 what does it do?
 
kh
 
 
 
------=_NextPart_000_000A_01C015E9.36A7BE20-- From akm@mail.theinternet.com.au Mon Sep 4 01:11:10 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Mon, 4 Sep 2000 10:11:10 +1000 Subject: [Zope] Regaining lost privileges In-Reply-To: <00090207494900.00662@thinman>; from Nigel Head on Sat, Sep 02, 2000 at 07:40:33AM +0000 References: <20000902095542.O76681@zeus.theinternet.com.au> <00090207494900.00662@thinman> Message-ID: <20000904101110.S76681@zeus.theinternet.com.au> +-------[ Nigel Head ]---------------------- | Hi Andrew! | | On Fri, 01 Sep 2000, you wrote | ... | > I saw people asking about building 'admin' systems using Zope, this isn't | > going to be trivially possible without super user privs. | | That people was me. Having looked into things a little further (but not | actually started the admin tool yet due to "day job" pressures) I've decided | to go the route (root?!) of using something like 'sudo' or 'runas' which | allow you to provide a selection of suid scripts and specify which users are | allowed to run them (zope, in my case, I suppose). | | I'm still considering the relative merits of using a sort of 'quarantine' | file/database where zope will dump requests to do things and a cron job will | poll it periodically to grab things out again and execute them. | | As I wrote that, I realise dthat it would be interesting to see if that file | couldn't be made a ZODB storage so I could transfer | structured information 'tween Zope and a python admin backend; perhaps make it | a mountable storage from the zope point of view? This would have the added | advantage of a little mild 'security through obscurity' for the file format for | casual hackers who may get near to it one day ... You are intrinsically reducing the platforms your software will run on as soon as you start trying to use external programs. If you only care about Linux, then that's all well and good. If you have a transaction database for polling, you may as well run another Zope as root, that only listens on the loopback device, and post the transactions into the root zope across SSL. At least that way you can share code. At least if you stick with the python API, you can cover most of the platforms that python covers. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From chrism@digicool.com Mon Sep 4 01:28:28 2000 From: chrism@digicool.com (Chris McDonough) Date: Sun, 03 Sep 2000 20:28:28 -0400 Subject: [Zope] initialize() References: <000d01c01602$6091fde0$af8b280a@aphowe> Message-ID: <39B2ECAC.69B4162A@digicool.com> Hi Kevin, Please try not to send HTML mail to the list... thanks. the initialize function defined in __init__.py for each Product is a hook which makes it easier to perform registration and initialization tasks when the product is imported. If you search for "boring product" on zope.org, you'll find a how-to related to its usage. Kevin Howe wrote: > > I've noticed that some ZOPE Python Products define an initialize() > routine in their __init__.py file and some don't. From what I can tell > it is not really needed, but simply offers a more organized way of > registering the Product. > > Is it good practice to define initialize(), and if so, why + what does > it do? > > kh > > > From chrism@digicool.com Mon Sep 4 01:36:06 2000 From: chrism@digicool.com (Chris McDonough) Date: Sun, 03 Sep 2000 20:36:06 -0400 Subject: [Zope] How do I start ? References: <4.3.2.7.2.20000904091024.0678ee10@pangaea.nu> Message-ID: <39B2EE76.DDC024E3@digicool.com> Hi willem, > > Hi, > > I have just discovered Zope and am interested in developing a web based > application Great... > but I don't know where to start. :-) > While I am going through the documentation, which will be of help no doubt, > I hope these initial questions attract some replies. > > Here are some of my starting requirements; > > 1) I need to create a small DB retrieval(mainly) system with only 000's of > records and possibly 00's of users. OK.. this is doable. > 2) Only a few nominated users will have update rights to the data. Check the Zope Book draft doc at http://www.zope.org/Members/michel/ZB (security chapter) > 3) The user needs to be able to search for all occurrences of any of the > data items presented to them (assuming these are the same data items you talk about in #4)... see the ZSQL user's guide on Zope.org under Documentation. > 4) It seems the users have a UNIX infrastructure with an existing DB that > is ODBC compliant and has data items which I need to retrieve and update. There's no easy way to access an ODBC datastore from a UNIX platform from within Zope right now, I'm afraid. It's possible, AFAIK, but it's somewhat badly documented. Personally, I don't know how to do it. > 5) Re: this last point, I'm not sure of yet if my app also needs to be > hosted by the UNIX server or whether it can have it's own server and simply > make ODBC calls to the UNIX box. It's sort of strange that the UNIX box is accessed via ODBC. This is usually the case with Windows databases, but UNIX databases are generally accessible directly. I'd make sure that the assumption that the database needs to be accessed via ODBC is correct. > preferable. I guess having it all on the same box is more efficient. It's probably not really all that important. > 6) I am based in Australia and if anyone is in the same timezone (ie. > Melbourne) it would be great to make personal contact. > > I hope someone out there can point me in the right direction. > > ------------------------------------------------- > Willem Oudyk > 14 Fortescue Grove > Vermont Sth. Victoria 3133 > Australia Ph/Fax: +61 (3) 9887 9121 > mailto:willem@pangaea.nu > Web:www.pangaea.nu > ------------------------------------------------- > > _______________________________________________ > 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 dandraka@arcas.nuclear.mech.ntua.gr Mon Sep 4 01:43:51 2000 From: dandraka@arcas.nuclear.mech.ntua.gr (Dimitris Andrakakis) Date: Mon, 4 Sep 2000 03:43:51 +0300 Subject: [Zope] Folder and SQL security References: <39B27BAB.E90E9943@okstudio.com.au> Message-ID: <002401c01609$37570360$59df6693@PHOBOS> Hi George ! Please check what Chris wrote too but I can answer this: > Security in ZOPE is very puzzling. If I have certain rules set for the > root folder, can I set something different for the sub folders? It's as simple as having a separate Acl_users in those folders that you need to have different security for. Say your site is: / (root) /department1 /department2 /subdept1 /subdept2 /department3 ...and you want a common security model except for subdept2. So you tweak the acl_users in the / (root) as you want and *only in subdept2* you create another acl_users and tweak that as well. Hope this helps, Dimitris http://www.zope.org/Members/dandraka From curtis@cardgate.net Mon Sep 4 01:53:14 2000 From: curtis@cardgate.net (Curtis Maloney) Date: Mon, 4 Sep 2000 11:53:14 +1100 Subject: [Zope] How do I start ? In-Reply-To: <4.3.2.7.2.20000904091024.0678ee10@pangaea.nu> References: <4.3.2.7.2.20000904091024.0678ee10@pangaea.nu> Message-ID: <00090411531400.00878@localhost.localdomain> On Mon, 04 Sep 2000, Willem Oudyk wrote: > Hi, > > I have just discovered Zope and am interested in developing a web based > application but I don't know where to start. Hi! Welcome to the group! (o8 > While I am going through the documentation, which will be of help no doubt, > I hope these initial questions attract some replies. > > Here are some of my starting requirements; > > 1) I need to create a small DB retrieval(mainly) system with only 000's of > records and possibly 00's of users. Zope has interfaces for many popular DBs, and a very easy way to use them. If you check http://www.zope.org/Products you will see adapters for DBs like Oracle, Postgressl, MySQL, Sybase, and many others. By using SQL Methods (Documentation at http://www.zope.org/Documentation/Guides/ZSQL-HTML/ZSQL.html ) you can easily insert and extract from any connected DB. As for your user base, I would advise you try one of the alternative user management tools ( http://www.zope.org/Products/user_management ) > 2) Only a few nominated users will have update rights to the data. Zope makes it easy to use fine grained access control to documents for various 'roles', which you can create and name yourself. Just attribute each user with the appropriate 'roles', and they have all and only the access you give them. > 3) The user needs to be able to search for all occurrences of any of the > data items presented to them I'm not entirely sure what sort of 'data items' you have in mind here, but afaik, ZCatalogs are a very powerful search tool provided as standard with Zope. http://www.zope.org/Documentation/How-To/ZCatalogTutorial > 4) It seems the users have a UNIX infrastructure with an existing DB that > is ODBC compliant and has data items which I need to retrieve and update. There is at least one, possibly two Unix based ODBC interfaces for zope. ZmxODBC being one of them. > 5) Re: this last point, I'm not sure of yet if my app also needs to be > hosted by the UNIX server or whether it can have it's own server and simply > make ODBC calls to the UNIX box. I also don't know what would be > preferable. I guess having it all on the same box is more efficient. Well, Zope can run anywhere you can run Python. I personally have run Zope on Solaris (Sparc), Linux (i386) and MS Windows 98. 6) I am based in Australia and if anyone is in the same timezone (ie. > Melbourne) it would be great to make personal contact. I live in Melbourne. > I hope someone out there can point me in the right direction. > Always willing to help another Zopista. (o8 > ------------------------------------------------- > Willem Oudyk > 14 Fortescue Grove > Vermont Sth. Victoria 3133 > Australia Ph/Fax: +61 (3) 9887 9121 > mailto:willem@pangaea.nu > Web:www.pangaea.nu > ------------------------------------------------- > Pangaea? Hmm.. I know some people from Pangaean.net... small world, hey? (o8 Have a better one, Curtis Maloney. From nhead@houbits.com Mon Sep 4 08:18:02 2000 From: nhead@houbits.com (Nigel Head) Date: Mon, 4 Sep 2000 07:18:02 +0000 Subject: [Zope] Regaining lost privileges In-Reply-To: <20000904101110.S76681@zeus.theinternet.com.au> References: <20000902095542.O76681@zeus.theinternet.com.au> <00090207494900.00662@thinman> <20000904101110.S76681@zeus.theinternet.com.au> Message-ID: <00090407251801.00665@thinman> On Mon, 04 Sep 2000, you wrote: > You are intrinsically reducing the platforms your software will run on as > soon as you start trying to use external programs. If you only care about > Linux, then that's all well and good. True! I'd like to find some method which is a little more portable, or at least external programs that run on multiple Unix versions. I guess, possibly unadvisedly, that any platform where Zope is running wouldn't be an impossible target for some of the other tools too. Except of course the various windows versions - but then the Admin tasks are completely different anyway, as is the security policy and mechanism. On the other hand the very nature of an admin tool means that its functions are likely to be system specific to some degree ... > If you have a transaction database for polling, you may as well run > another Zope as root, that only listens on the loopback device, and post > the transactions into the root zope across SSL. At least that way you can > share code. Hhhm. But is all the 'baggage' of a full Zope needed in this context? I can also share the python methods which would almost certainly have to do the bulk of the work in a Zope anyway. -- Nigel Head Houbits Hi-Tech Servers nhead@houbits.com From Jean@mosaicsoftware.com Mon Sep 4 07:58:10 2000 From: Jean@mosaicsoftware.com (Jean Jordaan) Date: Mon, 4 Sep 2000 08:58:10 +0200 Subject: [Zope] PyWinTypes15.dll not found Message-ID: Hi Zopers .. I've installed Zope to start as a service. It seems to work perfectly fine, but I notice messages like the following in the eventlog:: 2000/09/02 10:25:36 Application Popup Information None 26 N/A JEAN Application popup: python.exe - Unable To Locate DLL : The dynamic link library PyWinTypes15.dll could not be found in the specified path C:\programs\ZopeDev\lib\python\Products\LocalFS; .; C:\WINNT\System32; C:\WINNT\system; C:\WINNT; C:\Perl\bin\; C:\WINNT\system32; C:\WINNT; C:\WINNT\System32\Wbem; C:\Program Files\Network Associates\PGPNT; C:\Program Files\Resource Pro Kit\; c:\programs\vim\vim57; C:\programs\NcFTP; c:\cygwin\bin; c:\cygwin\usr\bin. (I broke the path into separate lines for clarity.) Now, when I examine the environment variables thru 'Control Panel|System|Advanced|Environment Variables', Zope does not feature. I also don't notice anything untoward when I examine the registry. The registry entry that starts Zope seems to be:: REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev] "Type"=dword:00000010 "Start"=dword:00000002 "ErrorControl"=dword:00000001 "ImagePath"="C:\\Programs\\ZopeDev\\bin\\lib\\win32\\PythonService.exe" "DisplayName"="Zope (ZopeDev)" "ObjectName"="LocalSystem" @="" [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\Parameters] "start"="\"C:\\programs\\ZopeDev\\bin\\python.exe\" \"C:\\programs\\ZopeDev\\z2.py\" -S" [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\PythonClass] @="C:\\programs\\ZopeDev\\ZServer\\ZService.ZServerService" [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\Security] "Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,0 2,\ 00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\ 00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\ 05,12,00,00,00,4f,00,47,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\ 20,00,00,00,20,02,00,00,4f,00,4e,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\ 00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\ 00,05,20,00,00,00,23,02,00,00,4f,00,4e,00,01,01,00,00,00,00,00,05,12,00,00,\ 00,01,01,00,00,00,00,00,05,12,00,00,00 (This also occurs as [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ZopeDev] except that the 'ControlSet001' version has an additional key, 'Enum':: [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ZopeDev\Enum] "0"="Root\\LEGACY_ZOPEDEV\\0000" "Count"=dword:00000001 "NextInstance"=dword:00000001 Now for the questions: - What is the difference between the 'ControlSet002' version and the 'ControlSet001' version? - How and where does 'LocalFS' get into the path? - Why isn't 'C:\programs\ZopeDev\bin\lib\win32\PyWinTypes15.dll' found? - What, for that matter, is the difference between *that* PyWinTypes15 and this one: 'C:\programs\ZopeDev\bin\PyWinTypes15.dll'? Any answers sorely appreciated! Regards, -- Jean Jordaan -- technical writer -- Mosaic Software -- Zope 2.1.6 on WinNT and W2K From Jean@mosaicsoftware.com Mon Sep 4 07:58:11 2000 From: Jean@mosaicsoftware.com (Jean Jordaan) Date: Mon, 4 Sep 2000 08:58:11 +0200 Subject: [Zope] The difference between ControlSet 001 and 002 .. Message-ID: Answering myself, from the Resource Pro Kit: .................................................................. The subkeys represent a control set for the system. The numbered ControlSet00n subkeys, such as ControlSet001 and ControlSet002, contain control sets that can be used to start and run Windows 2000. Most systems have two numbered control sets, an original and a backup copy of a control set that has been used to start the system successfully, but the system can maintain as many as four control sets. Windows 2000 maintains backup copies so that you can undo configuration changes that might otherwise prevent you from starting the system. .................................................................. So that's that, anyway. For the record, the current one in my case was number 1. -- Jean Jordaan -- technical writer -- Mosaic Software -- Zope 2.1.6 on WinNT and W2K From LCortes@IMEME.NET Mon Sep 4 09:03:02 2000 From: LCortes@IMEME.NET (Luis Cortes) Date: Mon, 4 Sep 2000 01:03:02 -0700 Subject: [Zope] Re: File Attachments with Sendmail References: <200008301900.MAA17687@zope.codeit.com> <003501c012ca$4def5c40$8101bed4@openport.com> <39AE410D.2446CB7@nipltd.com> <005801c01344$c40c05c0$bb01bed4@openport.com> Message-ID: <012901c01646$8ebac320$4de61f26@test.com> Great answer, but I have one question: does not expand the Required_Doc name, do anyone know why?? ----- Original Message ----- From: "Brendon Grunewald" To: "Chris Withers" Cc: Sent: Thursday, August 31, 2000 5:12 AM Subject: [Zope] Re: File Attachments with Sendmail > Hi Chris, > > This is what I have in total. I know I am being stupid, but this is > frustrating me to hell. Perhaps I should not be doing this at 1AM. > > The form looks like this: > -------- > >
> Please provide the following information:
>
> Email address: > >
> Document: > >
>

>
> > --------- > > send_webdoc looks like this... > ------- > > > <!--#var title_or_id--> > > > > > > > To: > From: WebForm > Subject: Web Doc Request > > Attached is the document you requested: > disposition=attachment encode=base64> > > > > >

Form Information Confirmation

> Thank you the document should be email to you immediately.
> You should be automatically redirected in a few seconds.
>

> If not > Click here. >

> > ------ > > Thanks > Brendon > > ------------------ > 70South: the No.1 source for Antarcticles. > For the latest news and views on Antarctica visit : http://www.70south.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 chrisw@nipltd.com Mon Sep 4 08:50:45 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 08:50:45 +0100 Subject: [Zope] Re: File Attachments with Sendmail References: <200008301900.MAA17687@zope.codeit.com> <003501c012ca$4def5c40$8101bed4@openport.com> <39AE410D.2446CB7@nipltd.com> <005801c01344$c40c05c0$bb01bed4@openport.com> <012901c01646$8ebac320$4de61f26@test.com> Message-ID: <39B35455.A1DC76F8@nipltd.com> Luis Cortes wrote: > > Great answer, but I have one question: > > disposition=attachment encode=base64> > > does not expand the Required_Doc name, do anyone know why?? Urm... read me previous post in this thread?! Chris From dario@ita.chalmers.se Mon Sep 4 08:44:43 2000 From: dario@ita.chalmers.se (Dario Lopez-Kästen) Date: Mon, 4 Sep 2000 09:44:43 +0200 Subject: [Zope] Help with calcualtions in DTML Message-ID: <004e01c01644$0b19c7c0$2135b5d4@ita.chalmers.se> Hello! I have the following listing of objects in my folder:

Name

Size

date

bytes

It gives me the name of the object, the size in bytes and the modification time in GMT. I need to do the following: express the size in kb, format the output with spaces for thousands. I also need the date displayed according to my locale (+2 GMT in Sweden) so if bobobase_modification_time is 10:48, I need to show it as 8:48, and on top of that I also need to take dayligth savings into account. How do I do it? The fmt strings are abviously adjusted to US standards, so us ISO-people need to hack our own format strings :-). I know i could calculate the size in KB myself IF I only knew how to get the get_size attribute into a calculation expression (that goes for bobobase_modification_time as well, however this returns as string. How do I get the date as a date?) Any help is appreciated and needed. Thank you. /dario PS: has anyone been thinking of renaming bobobase_modification_time to something shorter and more intuitive, like, say, modification_time? :-)) - -------------------------------------------------------------------- Dario Lopez-Kästen Systems Developer Chalmers Univ. of Technology dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services From zope@philosoft.at Mon Sep 4 09:21:07 2000 From: zope@philosoft.at (Philipp Auersperg) Date: Mon, 04 Sep 2000 10:21:07 +0200 Subject: [Zope] PyWinTypes15.dll not found In-Reply-To: References: Message-ID: <200009041021070359.353045EE@192.7.2.223> This dll exists in in the Zope tree in the directories bin and bin\lib\win32. unfortunately none of these is in the PYTHONPATH. Remedy: copy PyWinTypes15.dll into one of the directories where it searches for ( e.g. in your case C:\programs\ZopeDev\lib\python\Products\LocalFS) or change the start.bat so that PythonPath also points to these directories phil *********** REPLY SEPARATOR *********** On 04.09.2000 at 08:58 Jean Jordaan wrote: >Hi Zopers .. > >I've installed Zope to start as a service. It seems to work perfectly >fine, but I notice messages like the following in the eventlog:: > > 2000/09/02 10:25:36 Application Popup Information None >26 N/A > JEAN Application popup: python.exe - Unable To Locate DLL : The >dynamic > link library PyWinTypes15.dll could not be found in the specified path > C:\programs\ZopeDev\lib\python\Products\LocalFS; > .; > C:\WINNT\System32; > C:\WINNT\system; > C:\WINNT; > C:\Perl\bin\; > C:\WINNT\system32; > C:\WINNT; > C:\WINNT\System32\Wbem; > C:\Program Files\Network Associates\PGPNT; > C:\Program Files\Resource Pro Kit\; > c:\programs\vim\vim57; > C:\programs\NcFTP; > c:\cygwin\bin; > c:\cygwin\usr\bin. > >(I broke the path into separate lines for clarity.) Now, when I >examine the environment variables thru >'Control Panel|System|Advanced|Environment Variables', Zope does not >feature. I also don't notice anything untoward when I examine the >registry. The registry entry that starts Zope seems to be:: > > REGEDIT4 > > [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev] > "Type"=dword:00000010 > "Start"=dword:00000002 > "ErrorControl"=dword:00000001 > "ImagePath"="C:\\Programs\\ZopeDev\\bin\\lib\\win32\\PythonService.exe" > "DisplayName"="Zope (ZopeDev)" > "ObjectName"="LocalSystem" > @="" > > [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\Parameters] > "start"="\"C:\\programs\\ZopeDev\\bin\\python.exe\" >\"C:\\programs\\ZopeDev\\z2.py\" -S" > > [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\PythonClass] > @="C:\\programs\\ZopeDev\\ZServer\\ZService.ZServerService" > > [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\ZopeDev\Security] > >"Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,0 >2,\ > >00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\ > >00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\ > >05,12,00,00,00,4f,00,47,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\ > >20,00,00,00,20,02,00,00,4f,00,4e,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\ > >00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\ > >00,05,20,00,00,00,23,02,00,00,4f,00,4e,00,01,01,00,00,00,00,00,05,12,00,00,\ > 00,01,01,00,00,00,00,00,05,12,00,00,00 > >(This also occurs as > [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ZopeDev] >except that the 'ControlSet001' version has an additional key, 'Enum':: > > [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ZopeDev\Enum] > "0"="Root\\LEGACY_ZOPEDEV\\0000" > "Count"=dword:00000001 > "NextInstance"=dword:00000001 > >Now for the questions: > > - What is the difference between the 'ControlSet002' version and the > 'ControlSet001' version? > > - How and where does 'LocalFS' get into the path? > > - Why isn't 'C:\programs\ZopeDev\bin\lib\win32\PyWinTypes15.dll' > found? > > - What, for that matter, is the difference between *that* > PyWinTypes15 and this one: > 'C:\programs\ZopeDev\bin\PyWinTypes15.dll'? > >Any answers sorely appreciated! > >Regards, >-- >Jean Jordaan -- technical writer -- >Mosaic Software -- Zope 2.1.6 on WinNT and W2K > >_______________________________________________ >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 brendon@70south.com Mon Sep 4 09:06:20 2000 From: brendon@70south.com (Brendon Grunewald) Date: Mon, 4 Sep 2000 10:06:20 +0200 Subject: [Zope] Re: File Attachments with Sendmail References: <200008301900.MAA17687@zope.codeit.com> <003501c012ca$4def5c40$8101bed4@openport.com> <39AE410D.2446CB7@nipltd.com> <005801c01344$c40c05c0$bb01bed4@openport.com> <012901c01646$8ebac320$4de61f26@test.com> Message-ID: <001901c01647$0381c820$1002bed4@openport.com> Dear Luis, Dieter Mauer was kind enough to assist me with the answer to this question. The normal Sendmail tag does not accept variables. You need to install the MIME.py.patch. Once that is done you can include variables. Brendon ----- Original Message ----- From: "Luis Cortes" To: "Brendon Grunewald" Cc: "Zope mailing list" Sent: Monday, 04 September, 2000 10:03 Subject: Re: [Zope] Re: File Attachments with Sendmail > Great answer, but I have one question: > > disposition=attachment encode=base64> > > does not expand the Required_Doc name, do anyone know why?? > > > > > ----- Original Message ----- > From: "Brendon Grunewald" > To: "Chris Withers" > Cc: > Sent: Thursday, August 31, 2000 5:12 AM > Subject: [Zope] Re: File Attachments with Sendmail > > > > Hi Chris, > > > > This is what I have in total. I know I am being stupid, but this is > > frustrating me to hell. Perhaps I should not be doing this at 1AM. > > > > The form looks like this: > > -------- > > > >
> > Please provide the following information:
> >
> > Email address: > > > >
> > Document: > > > >
> >

VALUE="Reset > > Form">

> >
> > > > --------- > > > > send_webdoc looks like this... > > ------- > > > > > > <!--#var title_or_id--> > > > > > > > > > > > > > To: > > From: WebForm > > Subject: Web Doc Request > > > > Attached is the document you requested: > > > disposition=attachment encode=base64> > > > > > > > > > >

Form Information Confirmation

> > Thank you the document should be email to you immediately.
> > You should be automatically redirected in a few seconds.
> >

> > If not > > Click here. > >

> > > > ------ > > > > Thanks > > Brendon > > > > ------------------ > > 70South: the No.1 source for Antarcticles. > > For the latest news and views on Antarctica visit : http://www.70south.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 grizel@mouli.net Mon Sep 4 09:13:33 2000 From: grizel@mouli.net (Pierre-Julien Grizel) Date: Mon, 04 Sep 2000 10:13:33 +0200 Subject: [Zope] Images slow rendering problem Message-ID: <39B359AD.4FACB228@mouli.net> Hi, I already posted this message several monthes ago, expecting a new Zope version would fix the problem, but... I have some images on my pages (let's say 10 - not a lot), rendered either by dtml-var or a manual tag. When I render the page on some of my LAN boxes (especially with IE), some images doesn't load at the first time. I need to reload the page to make them appear. When I monkeyly hit the 'F5' key, some images do not show again. Argl. Anoying.... The problem is worst ever through Internet. Any clues ? Is it a Zope images rendering problem ? Many thanks, P.-J. From jorgen.skogstad@norway.sun.com Mon Sep 4 09:15:27 2000 From: jorgen.skogstad@norway.sun.com (=?iso-8859-1?Q?J=F8rgen?= Skogstad) Date: Mon, 04 Sep 2000 10:15:27 +0200 Subject: [Zope] Zope + Apache + fastcgi + unix socket .. Message-ID: <39B35A1F.462ED7A9@norway.sun.com> Hi there.. Have any1 of you gotten local unix domain socket style access of Zope behind Apache to work? I have not .. and I am running this on Solaris. I see that Apache is trying to access the "file" .. and I presume the request is passed to fastcgi .. but I never see the request in Z2.log. I have fired Zope with socket access .. and configured Fast- CgiExternalServer .. etc. for apache. Anyone have any information about this? Would apriciate any! I have browsed www.zope.org too .. without any success .. ;) -- Med vennlig hilsen, Jřrgen Skogstad /\ System Specialist \\ \ \ \\ / Sun Microsystems AS / \/ / / Gjerdrums vei 12 / / \//\ N-0486 Oslo, NORWAY \//\ / / / / /\ / Phone: + 47 22 02 39 00 / \\ \ Cellular: + 47 92 41 30 23 \ \\ Fax: + 47 22 02 39 99 \/ EMail: jorgen.skogstad@Norway.Sun.Com Web: www.sun.no BTW; Opinions formed by myself in informal mailings are mine and not of my employer. From chrisw@nipltd.com Mon Sep 4 09:31:15 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 09:31:15 +0100 Subject: [Zope] Non-blocking MailHost References: <399D07EF.AD3AF1B2@nipltd.com> <399CD7C5.91C8DD1F@earthlink.net> Message-ID: <39B35DD3.8C6777EC@nipltd.com> Kapil Thangavelu wrote: > i was think about this in regard to doing bulk email, the best i could > think of was to response.write and than send the email. no real > confirmation but the user gets the page and the mail hopefully gets > sent. i was planning on doing this from python with either calls to the > mailhost or smtplib. What we really want is a non-blocking MailHost. Anyone know how or want to write one? cheers, Chris From tom@othermedia.com Mon Sep 4 10:30:40 2000 From: tom@othermedia.com (tom smith) Date: Mon, 04 Sep 2000 10:30:40 +0100 Subject: [Zope] PyWinTypes15.dll not found In-Reply-To: Message-ID: I had this problem...and the paths reported are a bit spurious if I remember rightly. I think I got complaints about Tk/Tcl, then MTS, then something else. The dialog that popped up is on a remote server, so I had to fix this quickly. To fix it. I reinstalled python (Don't know if I needed to do this) and Tcl/TK (part of the same installer). I don't think you need to do this. Then I copied and pasted the PyWinTypes.dll. Tk80.dll. (Maybe the Msvcrt.dll too) into to the Zope/lib/Python/ folder. If they're already there, copy them into your python DLL folder. OK, I admit it, I sprayed them all over the place, restarted and I've not had any bother since. This problem *may* be caused by the Tcl install, making a mess of the registry. I don't think you need Tcl for zope, so next time I won't install it and see if the same problem happens hope this helps tom From Marcin.Kasperski@softax.com.pl Mon Sep 4 10:45:35 2000 From: Marcin.Kasperski@softax.com.pl (Marcin Kasperski) Date: Mon, 04 Sep 2000 11:45:35 +0200 Subject: [Zope] Migrating passwords from Apache to Zope? Message-ID: <39B36F3F.B1DE1958@softax.com.pl> Is it possible to smoothly migrate accounts and passwords from Apache to Zope? More details: I keep Apache accounts in some file of the format username:encoded_password where username is plaintext username and encoded_password is the password encoded in the normal Unix way (via crypt function). I would like to migrate those accounts to Zope. I do not know the passwords and I would not like to ask users for them or force them to change the password. Is it possible? -- Serwis dla programistów, kącik mieszkaniowy: http://www.mk.w.pl | | Working overtime sucks the spirit and motivation out of a team. | Projects that require overtime to be finished on time will be late no | matter what you do. (Wells) From chrisw@nipltd.com Mon Sep 4 10:55:28 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 10:55:28 +0100 Subject: [Zope] Announce: Squishdot 0.7.1 now available! Message-ID: <39B37190.3D814FD7@nipltd.com> Squishdot 0.7.1 is now available from http://www.zope.org/Members/chrisw/Squishdot/ http://www.squishdot.org/Download/Squishdot The following changes were made: - Slightly updated roadmap. - Fixed bug that prevented deleting postings. If you run into problems, remember Squishdot has a mailing list at eGroups and a bug collector on SourceForge. The URL for the bug collector is: https://sourceforge.net/bugs/?group_id=1083 cheers, Chris From Danny@Adair.net Mon Sep 4 11:08:44 2000 From: Danny@Adair.net (Danny William Adair) Date: Mon, 4 Sep 2000 12:08:44 +0200 Subject: [Zope] Repost: zzLocale problems Message-ID: After installing zzLocale I get an "AttributeError" every time I try to add a ZGadfly Connection: ------------------------------------------------------ Traceback (innermost last): File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_addZGadflyConnectionForm) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_addZGadflyConnectionForm) File C:\PROGRA~1\WebSite\lib\python\Products\ZGadflyDA\__init__.py, line 131, in manage_addZGadflyConnectionForm (Object: Traversable) File C:\Programme\WebSite\lib\python\Products\zzLocale\zzLocale.py, line 119, in __call__ (Object: addConnectionForm) AttributeError: dft_addConnectionForm ------------------------------------------------------ Right now I don't have the time to go take a deeper look at this (or isn't it that deep?), so I tried to DE-install zzLocale, just for now. Well: Zope(Win2k :-() won't work without it anymore!!! What I did was remove the product through the product management screen, then deleting the folder "Locales" in lib/python and the folder "zzLocale" in lib/python/Products and then restart Zope. Actually just vice versa of what I did when installing it... ------------------------------------------------------ 2000-08-31T13:35:20 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\00 0\000\000\006' Traceback (innermost last): File C:\PROGRA~1\WebSite\lib\python\ZODB\Connection.py, line 447, in setstate ImportError: No module named zzLocale.zzLocale Traceback (innermost last): File "C:\Programme\WebSite\z2.py", line 554, in ? exec "import "+MODULE in {} File "", line 1, in ? File "C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py", line 144, in ? OFS.Application.initialize(c) File "C:\PROGRA~1\WebSite\lib\python\OFS\Application.py", line 317, in initial ize app.Control_Panel.initialize_cache() File "C:\PROGRA~1\WebSite\lib\python\ZODB\Connection.py", line 447, in setstat e state = unpickler.load() ImportError: No module named zzLocale.zzLocale ------------------------------------------------------ Who can help me with either one of the problems? (let me deinstall zzLocale or fix the gadfly creation error) TYVMIA, Danny _______________________________________________ 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 kthangavelu@earthlink.net Mon Sep 4 06:23:44 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Sun, 03 Sep 2000 22:23:44 -0700 Subject: [Zope] Help with calcualtions in DTML References: <004e01c01644$0b19c7c0$2135b5d4@ita.chalmers.se> Message-ID: <39B331E0.ACB95D50@earthlink.net> "Dario Lopez-Kästen" wrote: > > Hello! > > I have the following listing of objects in my folder: > > > > > > > > > > > > > > >

Name

Size

date

>

>
>

bytes

>
>

>
you might want to grab a copy of the ZQR which goes through most of the zope's methods and syntax. http://www.zope.org/Members/ZQR get size in kbs assuming its an int this should do the formatting (tested) 3"> the time stuff > It gives me the name of the object, the size in bytes and the modification > time in GMT. there is also a way to set this to be local time(your zope that is).... to sleepy to remember or look it up....... try searching the mailing lists... although i'm sure someone will chime in. > I need to do the following: express the size in kb, format the output with > spaces for thousands. > I also need the date displayed according to my locale (+2 GMT in Sweden) so > if bobobase_modification_time is 10:48, I need to show it as 8:48, and on > top of that I also need to take dayligth savings into account. > > How do I do it? The fmt strings are abviously adjusted to US standards, so > us ISO-people need to hack our own format strings :-). > > I know i could calculate the size in KB myself IF I only knew how to get the > get_size attribute into a calculation expression (that goes for > bobobase_modification_time as well, however this returns as string. How do I > get the date as a date?) you might want to check out some of the howtos on DTML stuff, although generally its easier to do complex calculations in a python method. bobobase_modification_time is a method that returns a date time object, its just formatted as a string on the page when you render it. > Any help is appreciated and needed. Thank you. > > /dario > > PS: has anyone been thinking of renaming bobobase_modification_time to > something shorter and more intuitive, like, say, modification_time? it gets my vote. Cheers Kapil From chrisw@nipltd.com Mon Sep 4 11:39:44 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 11:39:44 +0100 Subject: [Zope] DTML Entity Syntax References: Message-ID: <39B37BF0.8566A39B@nipltd.com> Stuart Foster wrote: > > Where can I find more information on how this is done. I'm not familiar with > the dtml. notation? http://www.zope.org/Members/AlexR/EntitySyntax cheers, Chris From chrisw@nipltd.com Mon Sep 4 11:53:52 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 11:53:52 +0100 Subject: [Zope] doesn't but should! References: <3.0.6.32.20000819120004.00522100@spicklemire.com> Message-ID: <39B37F40.81581A59@nipltd.com> Jerry wrote: > Sure, is meant for "comments", but every > programmer needs to disable blocks of code to eliminate > factors while debugging. We all abuse comment characters for > this purpose, and it works well enough to get the job done. Gotta agree with that!! > But in Zope it goes like so: cut the suspect block, paste it > into another window (text editor), save the DTML object, test, > paste back into DTML, etc. This was the last thing a colleague > saw before he refused to have any more to do with Zope. Yeah, it is a pain in the arse... :-( Chris From chrisw@nipltd.com Mon Sep 4 11:56:26 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 11:56:26 +0100 Subject: [Zope] doesn't? Please fix... ;-) References: <399EA5FB.972E2FA2@nipltd.com> <399EC24D.1515E369@wildenhain.de> <399F8B79.8688F596@haul.de> <20000820182600.A9168@zeus.theinternet.com.au> Message-ID: <39B37FDA.1B4FEA17@nipltd.com> Andrew Kenneth Milton wrote: > But then you'd have to parse the contents to find out if the comments are > properly nested... Well, the parsing should be pretty simple: 1. find 2. search for 3. if found: ignore that block of text else if end of text reached: bitch like hell ;-) What's wrong with that? > I've looked at this briefly today, and the code inside DT_String.py is > recursively ugly... d;) You do surprise me ;-) > It doesn't look difficult to provide what you want, but, I'm not motivated > enough to fix it either at this stage. d8) Aww... go on, you know you want to really ;-) cheers, Chris From chrisw@nipltd.com Mon Sep 4 11:59:42 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 11:59:42 +0100 Subject: [Zope] yuk... References: <14750.54442.828351.319555@lindm.dm> Message-ID: <39B3809E.846F9AAA@nipltd.com> Dieter Maurer wrote: > Chris Withers writes: > > Is is just me or does stuff inside a get parsed? > "" must do a bit of parsing: > > It must at least recognized "". well, yeah, but that's not what I meant... > Maybe, it wants to recognize nested "" (probably not), > then it must look at all tags. that wouldn't be nice ;-( > Probably, however, just uses the same parser > as every other tag and simply discards its content. > Then, naturally, the content of "...." > must be as syntactically correct as the content of > e.g. "....". Surely that's a bit inefficient? I hope the contents don't actually get _executed_ and then discarded each time as well... > I would expect: patches welcome. Yes, indeed :-) Chris From kthangavelu@earthlink.net Mon Sep 4 06:57:44 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Sun, 03 Sep 2000 22:57:44 -0700 Subject: [Zope] Re: Non-blocking MailHost References: <399D07EF.AD3AF1B2@nipltd.com> <399CD7C5.91C8DD1F@earthlink.net> <39B35DD3.8C6777EC@nipltd.com> Message-ID: <39B339D8.FD3AE2D1@earthlink.net> Chris Withers wrote: > > Kapil Thangavelu wrote: > > i was think about this in regard to doing bulk email, the best i could > > think of was to response.write and than send the email. no real > > confirmation but the user gets the page and the mail hopefully gets > > sent. i was planning on doing this from python with either calls to the > > mailhost or smtplib. > > What we really want is a non-blocking MailHost. > > Anyone know how or want to write one? first, lets gather some requirements... probably best done on a fishbowl wikis... any volunteers?:) what do you mean by non-blocking MailHost, the smtplib.py waits for a reply to see if it should raise an error, but thats it as far as block that i see, i pretty much regard that as nonblocking and proper. if you're looking for send which doesn't check for reply than you could just hack smtplib but i doubt you'd see any performance benefit. assuming that smtplib and Mailhost are nonblocking... then the question becomes how to make it suitable for bulk emails and what are the requirements? do you want a mailhost that isn't connected to via a publishing thread? ie is it a requirement that processing won't affect a zope site and no response will be sent back to zope for messages processed (although an xml-rpc callback is possible). do you want to get respones back for messages you've sent? if this going to be added as a general zope feature its probably best to add some sort of mail queue, that can be added to by other zope objects. this would also avoid the overhead of connecting to the mailserver on every mail send. does it need to be multi=platform? (ie no cron, no popen2) if its for squishdot i guess i can assume the answer to this and my next question are yes. are zope/python solutions preferred? i ask because i've been considering a zope bridge into JServ which has an enterprise capable email system in James (http://java.apache.org/james/) a quick stab at portable implementation outside of zope would bundle a python script to be called by popen2 on Unix or spawnv on Windows that would read a pickle of email data and send it. course its ugly but it would work, could even get fancy and do it with an asyncore. another quick stab, if you assume the existence of xron, you could store email messages to be sent and a list of addrs to which they should be sent and xron it to be sent some other time. one possible (minor) speed improvement depending on the protocol def and the various server implementation is to mantain an open socket to the server as part of the MailHost, or at least maintain for as long as possible before getting a new connection. i need to sleep, i'll brainstorm some more in the morning night Kapil > cheers, > > Chris From chrisw@nipltd.com Mon Sep 4 12:10:22 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 12:10:22 +0100 Subject: [Zope] Pages Half Rendering, probably fixed in 2.2? References: <14750.53555.219162.339679@lindm.dm> Message-ID: <39B3831E.4622D743@nipltd.com> Dieter Maurer wrote: > When I reported the problem, DC immediatedly answered that > the problem was already fixed in CVS: the threads > were now synchronized. That sounds like it... > Maybe, you should take a 2.2 ZServer and use it with your Zope 2.1.6. > I do not know, however, whether this will bring up other problems. Guess I'll just have to wait and see if 2.2 makes it go away... cheers, Chris From js@aixtraware.de Mon Sep 4 11:54:49 2000 From: js@aixtraware.de (Joachim Schmitz) Date: Mon, 4 Sep 2000 12:54:49 +0200 (CEST) Subject: [Zope] Zope + Apache + fastcgi + unix socket .. In-Reply-To: <39B35A1F.462ED7A9@norway.sun.com> Message-ID: I tried this on a Redhat 6.1 as far as I remember some time ago, and didn't succeed. It only worked with a tcp-socket. On Mon, 4 Sep 2000, Jřrgen Skogstad wrote: > Hi there.. > > Have any1 of you gotten local unix domain socket style access > of Zope behind Apache to work? I have not .. and I am running > this on Solaris. > > I see that Apache is trying to access the "file" .. and I presume > the request is passed to fastcgi .. but I never see the request > in Z2.log. > > I have fired Zope with socket access .. and configured Fast- > CgiExternalServer .. etc. for apache. > > Anyone have any information about this? Would apriciate any! > I have browsed www.zope.org too .. without any success .. ;) > Look in the jun-2000 zope-dev mailinglist archives for zope, apache and fastcgi. Mit freundlichen Grüßen Joachim Schmitz AixtraWare, Ing. Büro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 From chrisw@nipltd.com Mon Sep 4 12:16:58 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 12:16:58 +0100 Subject: [Zope] Overdue comments on 6-1-Security.stx References: Message-ID: <39B384AA.6B513B3D@nipltd.com> Chris McDonough wrote: > > > > See (sneak peek) http://www.zope.org/Members/mcdonc/PDG/6-1-Security.stx, > > > section named "The Superuser". > > > > No offence meant, but it doesn't do a very good job of explaining _why_ > > the superuser can't own anything. > > Well, I think the real problem is that the account that you use to > "bootstrap" Zope is named "superuser". If it was named something else > like "bootstrapuser" or "fixupuser" or something, I doubt you'd wonder why > it couldn't own anything. Well, okay, let me rephrase the question: Why is it bad for the bootstrap user to own anything? It used to be considered okay before Zope 2.2, so was has been changed/discovered that makes this now such a bad idea that despite loads of newbie pain and confusion, it's still worth while/necessary? > > Come to thing of it, is there a concise description anywhere of what the > > new rules are WRT to ownership, the logged in user and how 'code' of all > > the various types is executed? > > What isn't covered in that document that you'd like to know? Urm, again, no offence ('cos I think the book is aimed at a different audience) but the keyword for me was 'concise'. I did have a look at the document above, but didn't read it 'cos it looked about 10 pages long :-( I'm looking for something closer to 10 _lines_ long, but that may not be possible ;-) cheers, Chris From chrisw@nipltd.com Mon Sep 4 12:22:56 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 12:22:56 +0100 Subject: [Zope] If-Modified-Since problem again?! References: <14754.61943.302223.584992@lindm.dm> Message-ID: <39B38610.B4C81A05@nipltd.com> Dieter Maurer wrote: > > weboats@web-oats.com writes: > > To your image in properites add a string property called > > > > Last-Modified > > > > with value > > > > Wed, 15 Mar 2002 19:02:17 GMT > > > > And your broken image problem will disappear. What version of Zope is this with? > However, this avoids browser caching of the images (at > least until 2002-3-15). I think, disabling the caching > is not a good thing. Definitely! > By the way, Zope should cope with rounding problems > for the "If-Modified-Since" headers. AFAIK, Brian Lloyd fixed this with a pretty generalised try...except in Image.py If stuff is still getting through, we should narrow it down further... A traceback for this would go a long way.... cheers, Chris From chrisw@nipltd.com Mon Sep 4 12:32:54 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 12:32:54 +0100 Subject: [Zope] 2.1.6 will be your problem... References: Message-ID: <39B38866.8E5EDC4A@nipltd.com> "T.J. Mannos" wrote: > Yes, I have, and I spent hours tearing apart my site thinking I'd seriously > screwed-up when suddenly all my images refused to load. But that was just > on my Solaris 2.6 server. PCs and even Macs render my pages beautifully. > It's just Netscape Communicator for Solaris that causes a problem. I don't > have a clue. Yup, this is 'the Netscape with Images problem' :-( > At work: Zope 2.1.6, Sparc Solaris 2.7, Linux Netscape 4.51 > > Sometimes, images are not shown by Netscape (broken image). > No "simple" reload is able to change this, however a "forced" reload > lets Netscape show the image correctly. > From then on, the image is always shown correctly: by "simple" reload, > "forced" reload or directly (served from cache). > > The strange thing, inside "Image.index_html" the failing > "simple" reload and the succeeding "forced" reload look > completely identical. > > At home: Zope 2.1.6, Intel Linux 2, Linux Netscape 4.5 > > All images are always shown correctly. > However, there is no log entry in "var/Z2.log" for > about 50 % of the requests that are answered by > a 304 response. It is non-deterministic whether > a log entry is written or not. This does seem a lot like the "If-Modified-Since problem" in 2.1.6 caused by certain versions of Netscape sending crap header information back to Zope, and zope throwing an exception. IIRC, 2.2 handles this much better... Check these bugs and see if any help: http://classic.zope.org:8080/Collector/1014/view http://classic.zope.org:8080/Collector/1388/view And try it with 2.2 to see if it's still broken... cheers, Chris From chrisw@nipltd.com Mon Sep 4 12:42:46 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 12:42:46 +0100 Subject: [Zope] ZSQL, crashing & reliability... References: <372E9068C013D211891F00805F9FD1C204793A40@mail3.oulan.ou.edu> Message-ID: <39B38AB6.FDC00A88@nipltd.com> "Leichtman, David J" wrote: > We are running Zope 2.2.0 on Solaris, and we're running it through Apache + > SSL. We're using a PostgreSQL DB with the ZPoPyDA. We are also using > Previously, when we were accessing ZServer directly, Zope would > spontaneously quit. No reason, it would just die. Restarting it would bring > it back up, but minutes, sometimes hours, sometimes days later, it would > spontaneously die again. I asked the list, but no one had had such problems > (except Dieter, but that was an Oracle problem). I'd guess something ZSQL-related is the problem. IMHO, Zope's working with SQL are/were significantly less reliable than any other part of Zope. I'm just hoping someone wil tell me I'm talkign crap, and back it up with evidence ;-) > So now that we're running it through Apache, we're still, apparently, having > the same problem. What will happen is that every once in a while (more > frequently with more traffic), Zope will hang indefinitely. The only way to > get over it is to restart Zope. So apparently, the ZServer (which I guess > takes requests from the pcgi process), is still going down as before. That soudns about right... > The question is, why is this happeneing? Or, more to the point, how can I > figure out why it is happeneing? Does anyone know of a how-to or two that answers this problem? I'd love to read them... cheers, Chris From chrisw@nipltd.com Mon Sep 4 12:45:13 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 12:45:13 +0100 Subject: [Zope] Missing pictures: what's the error? References: <7148A0B46D6BD3119D270080C85AEBE405C8E6@srvphase.phase.be> Message-ID: <39B38B49.AF23003A@nipltd.com> William JOYE wrote: > I use Apache and Zope 2.1.6 under Linux. In the Apache log, I have notified > that http code is always 304 but when pictures are missing in web page the > transferred size is '-' and no '0'. If possible, try the system with Zope 2.2. Otherwise, checkout my recent reply to Dieter and also: http://classic.zope.org:8080/Collector/1388/view Hope they help, Chris From chrisw@nipltd.com Mon Sep 4 12:48:42 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 12:48:42 +0100 Subject: [Zope] Tree problems in standard_html_header? References: <200008260849.KAA02039@gw-theesen.localguru.de> Message-ID: <39B38C1A.EEFF10A@nipltd.com> Marcus Schopen wrote: > I would also like to put my global navigation method in the standard header, so each document can use it. > But I get a strange behaviour (see http://marcus.localguru.de:8080/b3/ ) That wasn't responding... Could you describe the behaviour or any errors you're getting? cheers, Chris From kthangavelu@earthlink.net Mon Sep 4 07:49:25 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Sun, 03 Sep 2000 23:49:25 -0700 Subject: [Zope] Fourth Posting, is this really that difficult or have I been blackballed :)balled :) References: <399D9C1B.8BD8D9AD@globalcrossing.com> <399DA30A.8802D9F0@earthlink.net> <399DA71F.F5B9B969@earthlink.net> <39A1727A.EA98DC5C@globalcrossing.com> Message-ID: <39B345F5.68221E1B@earthlink.net> Daniel Rusch wrote: > > not sure what you mean by "subobject adding in your __init__ method"???? python prod def manage_addfooclass(): x= fooclass() id = 1 self._setObject(id, x) def fooclass: def __init__(): >>> add subobjects here seems like you were adding subobjects to your class in your manage_addfoo when it probably would have been better to add them in your __init__ method > Dan > > Kapil Thangavelu wrote: > > > btw daniel, > > > > i've looked at some your postings for the day and i thought i should > > tell you that most of your problems would go away if you did subobject > > adding in your __init__ method within your class or in the hook method > > manage_afterAdd within your class. for future reference. You'd get all > > the benefits of inheritance. Let manage_add to do just that, instantiate > > and set a instance of your class. > > > > Kapil > > > > Kapil Thangavelu wrote: > > > > > > Daniel wrote > > > > > > > I've created a folderish product. When I select that product from the > > > > available objects list, thus creating an instance of that product, I can > > > > > > > > create objects like dtml document and dtml method in the new folderish > > > > object (very similar to what happens when you instantiate a folder > > > > object, you can have a dtml method created in the new folder). > > > > > > > > The question is why can't I create objects from the Products directory, > > > > such as Local File System????? > > > > > > > > The code below works great, I get a dtml document, two folders each with > > > > > > > > a dtml method in them.... > > > > HOW CAN I CREATE A LOCAL FILE SYSTEM OR ANY OTHER OBJECT FROM THE > > > > PRODUCTS DIRECTORY IN THIS MANAGE_ADD FUNCTION??????? > > > > > > > > def manage_addSimpleSite(self, id, title='', > > > > createNewFolder=0, > > > > createEditFolder=0, > > > > REQUEST=None): > > > > """Add a new SimpleSite object with id *id*. > > > > > > > > If the 'createNewFolder' and 'createEditFolder' parameters are set > > > > to any true > > > > value, an 'New sub Folder' and an 'edit sub Folder' objects are > > > > created respectively > > > > in the new SimpleSite. > > > > """ > > > > ob=SimpleSite() > > > > ob.id=id > > > > ob.title=title > > > > self._setObject(id, ob) > > > > try: user=REQUEST['AUTHENTICATED_USER'] > > > > except: user=None > > > > ob.manage_addDTMLDocument(id='index_html', title='') > > > > if createNewFolder: > > > > if (user is not None) and not ( > > > > user.has_permission('Add User SimpleSites', self)): > > > > raise 'Unauthorized', ( > > > > 'You are not authorized to add User SimpleSites.' > > > > ) > > > > ob.manage_addFolder(id='New'+id, title='', createPublic=1) > > > > if createEditFolder: > > > > if (user is not None) and not ( > > > > user.has_permission('Add Documents, Images, and Files', > > > > self)): > > > > raise 'Unauthorized', ( > > > > 'You are not authorized to add DTML Documents.' > > > > ) > > > > ob.manage_addFolder(id='Edit'+id, title='', createPublic=1) > > > > if REQUEST is not None: > > > > return self.manage_main(self, REQUEST, update_menu=1) > > > > > > > > > > a couple of things. > > > > > > A. you're not being blackballed. when you're posting to the list its > > > hard to help without specifics. you're posting above, would be better > > > with a traceback of code that does attempt to instantiate a product. > > > which leads to > > > > > > B. how are you attempting to instantiate your other products. example > > > code of what you're trying to do would be helpful. are you doing it the > > > same as adding folders like above... i have no idea... > > > > > > C. seems like you're doing this in python. the code below should work > > > fine. > > > > > > from Products import LocalFS > > > > > > in manage_add: > > > > > > id = 'foo' > > > ob2 = LocalFS.LocalFS(id) # check the exact calls to __init__ in > > > LocalFS > > > id2 = 'foo2' > > > > > > ob = yourproduct(id2) > > > ob._setObject(id , ob2) > > > > > > in  __init__ or manage_afterAdd > > > > > > id ='foo' > > > ob = LocalFS.LocalFS(id) > > > self._setObject(id, ob) > > > > > > _______________________________________________ > > > 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 ) > > > > _______________________________________________ > > 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 chrisw@nipltd.com Mon Sep 4 12:54:13 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 12:54:13 +0100 Subject: [Zope] 2.1.6 Image problem again? References: <39AD2918.CA638D4A@piensa.com> Message-ID: <39B38D65.BDB6BF88@nipltd.com> "Felipe E. Barousse Boué" wrote: > > Has anyone seen the following behavior: > > I am using PCGI with Zope 2.1.6 and Apache 1.3.9. Everything works fine > except when reloading the same page, the graphics in it are not > "painted" by the client browser. Try the patch in the following: http://classic.zope.org:8080/Collector/1388/view > Nevertheless, the graphic is never rendered. Weirdly this happens on IE > 5.0, Netscape 4.75 and StarOffice 5.2. All browsers do have at least 5 > MB of disk cache and 3 MB of memory cache. This confirms the problem > lies on Apache itself. Am I right? That said, if that patch stops this happening for these browsers, then I think Zope has a problem that needs fixing. Can you try Zope 2.2.1 in the same situation and see if you still get the same problems? cheers, Chris From chrisw@nipltd.com Mon Sep 4 12:58:56 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 12:58:56 +0100 Subject: [Zope] Zope.org Mirroring References: <87n1ht377u.fsf@src.no> <39AE68B8.2146B020@digicool.com> <39B0CED4.3010309@cat-box.net> <39B0E095.5A31A388@bay-c.co.uk> <87vgwf53ia.fsf@src.no> Message-ID: <39B38E80.D059CE23@nipltd.com> Erik Enge wrote: > It might not be interesting, but what I would really like is a > complete mirror of documentation and products up and running all the > time. That could be done statically, even without Zope if it sucks > that much. (Although, I can't see why it would in such a situation.) You misunderstand how Zoep sucks ;-) The problem is making the mirror. I've seen quite a few postings describing how the common mirroring tools don't do a very good job of mirroring Zope sites, because of things like that BASE tag abomination and the confusion about what objects a file-system like 'folders' and what objects aren't. Anyone knwo of a tool that _does_ mirror Zope well? cheers, Chris From chrisw@nipltd.com Mon Sep 4 13:00:37 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 13:00:37 +0100 Subject: [Zope] Images slow nor not rendering? References: <39B359AD.4FACB228@mouli.net> Message-ID: <39B38EE5.7D5F9558@nipltd.com> Pierre-Julien Grizel wrote: > I have some images on my pages (let's say 10 - not a lot), rendered > either by dtml-var or a manual tag. > When I render the page on some of my LAN boxes (especially with IE), > some images doesn't load at the first time. I need to reload the page to > make them appear. When I monkeyly hit the 'F5' key, some images do not > show again. Argl. Anoying.... What version of Zope are you using? What version(s) of what browser(s) are you using? cheers, Chris From akm@mail.theinternet.com.au Mon Sep 4 13:08:08 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Mon, 4 Sep 2000 22:08:08 +1000 Subject: [Zope] doesn't? Please fix... ;-) In-Reply-To: <39B37FDA.1B4FEA17@nipltd.com>; from Chris Withers on Mon, Sep 04, 2000 at 11:56:26AM +0100 References: <399EA5FB.972E2FA2@nipltd.com> <399EC24D.1515E369@wildenhain.de> <399F8B79.8688F596@haul.de> <20000820182600.A9168@zeus.theinternet.com.au> <39B37FDA.1B4FEA17@nipltd.com> Message-ID: <20000904220808.B1642@zeus.theinternet.com.au> +-------[ Chris Withers ]---------------------- | Andrew Kenneth Milton wrote: | > But then you'd have to parse the contents to find out if the comments are | > properly nested... | | Well, the parsing should be pretty simple: | 1. find | 2. search for Or | 3. if found: | ignore that block of text | else if end of text reached: | bitch like hell ;-) | | What's wrong with that? It's wrong :-) crap more crap Lots of crap In order to parse that fragment, you need to parse the blocks in case you find another opening block, so that you can recursively process comments. | > I've looked at this briefly today, and the code inside DT_String.py is | > recursively ugly... d;) | | You do surprise me ;-) | | > It doesn't look difficult to provide what you want, but, I'm not motivated | > enough to fix it either at this stage. d8) | | Aww... go on, you know you want to really ;-) Now you know the problem domain, it shouldn't be hard for you to create a cut-down equivalent of the DT_String parser that only parses comment blocks. Take you less time than writing these emails I'm sure d;) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From chrisw@nipltd.com Mon Sep 4 13:32:53 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 13:32:53 +0100 Subject: [Zope] doesn't? Please fix... ;-) References: <399EA5FB.972E2FA2@nipltd.com> <399EC24D.1515E369@wildenhain.de> <399F8B79.8688F596@haul.de> <20000820182600.A9168@zeus.theinternet.com.au> <39B37FDA.1B4FEA17@nipltd.com> <20000904220808.B1642@zeus.theinternet.com.au> Message-ID: <39B39675.D88D3C32@nipltd.com> Andrew Kenneth Milton wrote: > | What's wrong with that? > > It's wrong :-) > > > crap > more crap > > Lots of crap > > > > In order to parse that fragment, you need to parse the blocks in case you > find another opening block, so that you can recursively process comments. Yeah, fair point... > | > It doesn't look difficult to provide what you want, but, I'm not motivated > | > enough to fix it either at this stage. d8) > | > | Aww... go on, you know you want to really ;-) > > Now you know the problem domain, it shouldn't be hard for you to create > a cut-down equivalent of the DT_String parser that only parses comment blocks. You obviously have a better understanding of DT_String than me and so would be much better suited to the task ;-) Good luck, we're all rootin' for ya :P Chris PS: > Take you less time than writing these emails I'm sure d;) Er... no! From grizel@mouli.net Mon Sep 4 13:38:56 2000 From: grizel@mouli.net (Pierre-Julien Grizel) Date: Mon, 04 Sep 2000 14:38:56 +0200 Subject: [Zope] Images slow nor not rendering? References: <39B359AD.4FACB228@mouli.net> <39B38EE5.7D5F9558@nipltd.com> Message-ID: <39B397E0.CE44655A@mouli.net> Chris Withers wrote: > > Pierre-Julien Grizel wrote: > > I have some images on my pages (let's say 10 - not a lot), rendered > > either by dtml-var or a manual tag. > > When I render the page on some of my LAN boxes (especially with IE), > > some images doesn't load at the first time. I need to reload the page to > > make them appear. When I monkeyly hit the 'F5' key, some images do not > > show again. Argl. Anoying.... > > What version of Zope are you using? > What version(s) of what browser(s) are you using? > > cheers, > > Chris Hi, I've got the problem with Zope 2.1.6 on a FreeBSD box. In fact, IE AND NS are affected (all versions, 3, 4, 5...), while NS less frequently than IE (???). Many thanks, P.-J. From andres@corrada.com Mon Sep 4 14:10:25 2000 From: andres@corrada.com (andres@corrada.com) Date: Mon, 4 Sep 2000 09:10:25 -0400 Subject: [Zope] Images slow rendering problem In-Reply-To: <39B359AD.4FACB228@mouli.net>; from Pierre-Julien Grizel on Mon, Sep 04, 2000 at 10:13:33AM +0200 References: <39B359AD.4FACB228@mouli.net> Message-ID: <20000904091025.B2344@corrada.com> What IE browser are you using? What version of Zope? A similar sort of problem was once traced to a Y2K problem with IE but the new versions of Zope (>2.1.6) should be able to handle the problem gracefully now. On Mon, Sep 04, 2000 at 10:13:33AM +0200, Pierre-Julien Grizel wrote: > Hi, > > I already posted this message several monthes ago, expecting a new Zope > version would fix the problem, but... > > > I have some images on my pages (let's say 10 - not a lot), rendered > either by dtml-var or a manual tag. > When I render the page on some of my LAN boxes (especially with IE), > some images doesn't load at the first time. I need to reload the page to > make them appear. When I monkeyly hit the 'F5' key, some images do not > show again. Argl. Anoying.... > > The problem is worst ever through Internet. > > > > > Any clues ? Is it a Zope images rendering problem ? > ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com ------------------------------------------------------ From chrisw@nipltd.com Mon Sep 4 14:09:47 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 14:09:47 +0100 Subject: [Zope] Maybe 2.1.6 problem? References: <39B359AD.4FACB228@mouli.net> <39B38EE5.7D5F9558@nipltd.com> <39B397E0.CE44655A@mouli.net> Message-ID: <39B39F1B.315B868@nipltd.com> Pierre-Julien Grizel wrote: > I've got the problem with Zope 2.1.6 on a FreeBSD box. > In fact, IE AND NS are affected (all versions, 3, 4, 5...), while NS > less frequently than IE (???). Can you try Zope 2.2? Also, I posted a few times about this recently, there are some patches mentioned in there which you could try, although if they help, I'd be a bit worried about the processing of the 'if-modified-since' header that Zope is doing :-( Anyway, let us know if either of the above helps, Chris From andres@corrada.com Mon Sep 4 14:12:25 2000 From: andres@corrada.com (andres@corrada.com) Date: Mon, 4 Sep 2000 09:12:25 -0400 Subject: [Zope] Non-blocking MailHost In-Reply-To: <39B35DD3.8C6777EC@nipltd.com>; from Chris Withers on Mon, Sep 04, 2000 at 09:31:15AM +0100 References: <399D07EF.AD3AF1B2@nipltd.com> <399CD7C5.91C8DD1F@earthlink.net> <39B35DD3.8C6777EC@nipltd.com> Message-ID: <20000904091225.C2344@corrada.com> Chris, Out of curiosity, what exactly is a non-blocking MailHost? On Mon, Sep 04, 2000 at 09:31:15AM +0100, Chris Withers wrote: > > What we really want is a non-blocking MailHost. > > Anyone know how or want to write one? ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com ------------------------------------------------------ From chrisw@nipltd.com Mon Sep 4 14:24:59 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 14:24:59 +0100 Subject: [Zope] Non-blocking MailHost References: <399D07EF.AD3AF1B2@nipltd.com> <399CD7C5.91C8DD1F@earthlink.net> <39B35DD3.8C6777EC@nipltd.com> <20000904091225.C2344@corrada.com> Message-ID: <39B3A2AB.B5E8A21D@nipltd.com> andres@corrada.com wrote: > Out of curiosity, what exactly is a non-blocking MailHost? One that doesn't hold up the process that is rendering the page... cheers, Chris From neeloy_saha@infy.com Mon Sep 4 15:36:57 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Mon, 4 Sep 2000 20:06:57 +0530 Subject: [Zope] (no subject) Message-ID: <8EE756E49A17D21194860008C7F49AFE045290AC@TWRMSG01> Hi all, I am getting the following error when i try to install the portal toolkit with the ' experimental login manager support'. I am using the zpatterns version : ZPatterns-0-4-1snap1and demo portal : 0.8.2 and other products. If I create the portal with no initail member then i am able to have a portal with login manager support. But then after I have installed the portal I am unable to add a member. ?? Can i have a working snapshot of the portal toolkit with the login manager for a windows version or probably a direction as to how to go abt fixing the above problem?? -neeloy ============================================================================ ================================= Error Type: NameError Error Value: client File C:\Program Files\WebSite\lib\python\Products\ZPatterns\DataSkins.py, line 377, in _v_currentSheets (Object: wqeqw) NameError: (see above) ============================================================================ ================================================= Traceback (innermost last): File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: Portal_add) File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: Portal.createInObjectManager(REQUEST['id'], REQUEST)) File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: apply_wizard(REQUEST)) (Info: REQUEST) File , line 0, in ? File C:\Program Files\WebSite\lib\python\Products\PTKDemo\Portal.py, line 261, in apply_wizard (Object: DemoPortalBase) File C:\Program Files\WebSite\lib\python\Products\Membership\PersistentUserSource.py, line 63, in setMemberProperties (Object: wqeqw) File C:\PROGRA~1\WebSite\lib\python\OFS\PropertySheets.py, line 607, in __getitem__ (Object: Traversable) File C:\Program Files\WebSite\lib\python\Products\ZPatterns\PropertySheets.py, line 11, in __propsets__ (Object: Traversable) File C:\Program Files\WebSite\lib\python\Products\ZPatterns\DataSkins.py, line 377, in _v_currentSheets (Object: wqeqw) NameError: (see above) From Doug.Hellmann@ZapMedia.com Mon Sep 4 15:52:33 2000 From: Doug.Hellmann@ZapMedia.com (Doug Hellmann) Date: Mon, 04 Sep 2000 10:52:33 -0400 Subject: [Zope] doesn't? Please fix... ;-) References: <399EA5FB.972E2FA2@nipltd.com> <399EC24D.1515E369@wildenhain.de> <399F8B79.8688F596@haul.de> <20000820182600.A9168@zeus.theinternet.com.au> <39B37FDA.1B4FEA17@nipltd.com> <20000904220808.B1642@zeus.theinternet.com.au> <39B39675.D88D3C32@nipltd.com> Message-ID: <39B3B731.591F0D84@ZapMedia.com> This is a multi-part message in MIME format. --------------97BB5A0A2694CC5D2822DB68 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I missed the beginning of this thread, so I'm not sure if this will help. I've attached a patch file which will add a DTML-commentline tag. This is different from the standard DTML-comment in that it does not require an end tag. Here's an example of its use:
This segment prints the 'title_or_id' for the current method, and does not execute the loop. Obviously the DTML-in syntax isn't correct, but that's part of how the commentline tag works. It eats up everything in its own <> markers, and allows the DTML parser to ignore it. It *does not* go all the way to the end of the input line, as the name might imply. Doug Chris Withers wrote: > > Andrew Kenneth Milton wrote: > > | What's wrong with that? > > > > It's wrong :-) > > > > > > crap > > more crap > > > > Lots of crap > > > > > > > > In order to parse that fragment, you need to parse the blocks in case you > > find another opening block, so that you can recursively process comments. > > Yeah, fair point... > > > | > It doesn't look difficult to provide what you want, but, I'm not motivated > > | > enough to fix it either at this stage. d8) > > | > > | Aww... go on, you know you want to really ;-) > > > > Now you know the problem domain, it shouldn't be hard for you to create > > a cut-down equivalent of the DT_String parser that only parses comment blocks. > > You obviously have a better understanding of DT_String than me and so > would be much better suited to the task ;-) > > Good luck, we're all rootin' for ya :P > > Chris > > PS: > > Take you less time than writing these emails I'm sure d;) > Er... no! > > _______________________________________________ > 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 ) --------------97BB5A0A2694CC5D2822DB68 Content-Type: text/plain; charset=us-ascii; name="comment_line.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="comment_line.patch" Index: DT_String.py =================================================================== RCS file: /cvs-repository/Zope2/lib/python/DocumentTemplate/DT_String.py,v retrieving revision 1.38 diff -r1.38 DT_String.py 91c91 < from DT_Var import Var, Call, Comment --- > from DT_Var import Var, Call, CommentLine, Comment 143a144 > 'commentline': CommentLine, Index: DT_Var.py =================================================================== RCS file: /cvs-repository/Zope2/lib/python/DocumentTemplate/DT_Var.py,v retrieving revision 1.36 diff -r1.36 DT_Var.py 448c448 < class Comment: --- > class CommentLine: 462,463c462 < name='comment' < blockContinuations=() --- > name='commentline' 470a470,473 > > class Comment(CommentLine): > name='comment' > blockContinuations=() --------------97BB5A0A2694CC5D2822DB68-- From mvmendes@emdata.com.br Sun Sep 3 16:07:16 2000 From: mvmendes@emdata.com.br (Marcus Mendes) Date: Sun, 03 Sep 2000 12:07:16 -0300 Subject: [Zope] Underscore Caracter Message-ID: <39B26924.EB648B08@emdata.com.br> Hello, I need replace 0x20 (space caracter ) to Undescore Caracter. I need also a function that UNDO this operation. How can I to do this in DTML sintaxe? Thanks. Marcus Mendes From r.taylor@eris.dera.gov.uk Mon Sep 4 16:11:15 2000 From: r.taylor@eris.dera.gov.uk (Richard Taylor) Date: 04 Sep 2000 16:11:15 +0100 Subject: [Zope] Non-blocking MailHost In-Reply-To: andres@corrada.com's message of "Mon, 4 Sep 2000 09:12:25 -0400" References: <399D07EF.AD3AF1B2@nipltd.com> <399CD7C5.91C8DD1F@earthlink.net> <39B35DD3.8C6777EC@nipltd.com> <20000904091225.C2344@corrada.com> Message-ID: I think what people have in mind (correct me if I am wrong) is something that will accept messages (for posting to the mailhost at some time in the future) and then immediately return. I guess it would spawn another process/thread to do the posting asynchronously. The problem, as I see it is how to handle an error with the posting. The user who submitted the mail is now long gone so it must be left to an administrator to pick up the pieces. Perhaps the posting routine could accept a user (developer) provided exception handler that gets called if a posting fails. It maybe better to just hand this off to a completely separate program rather than try to handle it within a zope thread. Richard andres@corrada.com writes: > Chris, > > Out of curiosity, what exactly is a non-blocking MailHost? > > On Mon, Sep 04, 2000 at 09:31:15AM +0100, Chris Withers wrote: > > > > What we really want is a non-blocking MailHost. > > > > Anyone know how or want to write one? From steve@spvi.com Mon Sep 4 16:41:39 2000 From: steve@spvi.com (Steve Spicklemire) Date: Mon, 4 Sep 2000 10:41:39 -0500 (EST) Subject: [Zope] Catalog AND Zieve In-Reply-To: <11459E174416D011B1B800805F9A524D01270042@msxvpti10.vpi.hydro.qc.ca> (Menard.Jean-Francois@hydro.qc.ca) References: <11459E174416D011B1B800805F9A524D01270042@msxvpti10.vpi.hydro.qc.ca> Message-ID: <200009041541.KAA67959@mercury.spvi.com> Hi Jean-Francios, You need to give Zieve a list of objects that have the attributes that you want to sort on defined. You can ether build a list of 'real results' from the ZCatalog that can then be passed to your Zieve, or you can just make sure the ZCatalog's 'meta_data_table' has all the attributes you might want to sort on. I haven't been following all the changes, but I think that the newer '' may now support dynamic sorting... I'm sure I saw some patches about this... I don't know off hand if they've been incorporated into Zope-2.2.1, but I'll check... -steve >>>>> "Menard" == Menard Jean-Francois writes: Menard> I'm trying to use the Zieve product with my Catalog to Menard> sort the results on a variable key. Since the Catalog do Menard> not return the actual objects, how can I use Zieve with Menard> it? Menard> Maybe an external method returning the object list? Menard> If so, how shold I do that? Menard> Jean-François Ménard Intranet DPAS Pratiques d'affaires et Menard> orientations * (514) 840-3000 poste 3939 * (514) 840-5585 Menard> * menard.jean-francois@hydro.qc.ca * 855 Ste-Catherine Menard> est, 6e étage Montréal, Qué. H2L 4P5 Menard> _______________________________________________ Zope Menard> maillist - Zope@zope.org Menard> http://lists.zope.org/mailman/listinfo/zope ** No cross Menard> posts or HTML encoding! ** (Related lists - Menard> http://lists.zope.org/mailman/listinfo/zope-announce Menard> http://lists.zope.org/mailman/listinfo/zope-dev ) From dieter@handshake.de Sun Sep 3 12:28:36 2000 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 3 Sep 2000 13:28:36 +0200 (CEST) Subject: [Zope] Regaining lost privileges In-Reply-To: <58159297@toto.iv> Message-ID: <14770.13682.813121.712731@lindm.dm> Andrew Kenneth Milton writes: > Is there anyway to regain 'root' privs from inside a zope product? > > Using the -u flag to start causes the privs to be permanently gone because > z2.py uses setuid + setgid (and python doesn't seem to define sete[ug]id, at > least not on my system). > > Other than running zope as root permanently (which I really would like to > avoid), does anyone have any quick ideas on how to achieve this? The same trick could be used by any process to gain root privileges.... It is easy to implement a Python wrapper for the sete[ug]id. Dieter From lstaffor@dynalogic.com Mon Sep 4 18:29:26 2000 From: lstaffor@dynalogic.com (Loren Stafford) Date: Mon, 4 Sep 2000 10:29:26 -0700 Subject: [Zope] Non-blocking MailHost References: <399D07EF.AD3AF1B2@nipltd.com> <399CD7C5.91C8DD1F@earthlink.net> <39B35DD3.8C6777EC@nipltd.com> <20000904091225.C2344@corrada.com> Message-ID: <007701c01695$acbd5000$2101a8c0@pavilion> One way to start an asynchronous job in Zope is with the Xron product. Instead of sending the email, you create a Xron scheduled method to perform that task. If you specify a trigger time of "now" (or any time in the past), the scheduled method will execute (almost) immediately in a separate Zope thread. Or you could specify a later time for all emails, thereby effectively batching them. You can store as much context as you need in the acquisition path or properties of the scheduled method. Anything written to STDOUT by the scheduled method will be stored in the log file, so you can easily log any problems with sendmail. http://www.zope.org/Members/lstaffor/Xron -- HTH -- Loren ----- Original Message ----- From: "Richard Taylor" To: Sent: September 04, 2000 08:11 AM Subject: Re: [Zope] Non-blocking MailHost > I think what people have in mind (correct me if I am wrong) is > something that will accept messages (for posting to the mailhost at > some time in the future) and then immediately return. I guess it would spawn > another process/thread to do the posting asynchronously. > > The problem, as I see it is how to handle an error with the > posting. The user who submitted the mail is now long gone so it must > be left to an administrator to pick up the pieces. > > Perhaps the posting routine could accept a user (developer) provided > exception handler that gets called if a posting fails. > > It maybe better to just hand this off to a completely separate program > rather than try to handle it within a zope thread. > > Richard > > andres@corrada.com writes: > > > Chris, > > > > Out of curiosity, what exactly is a non-blocking MailHost? > > > > On Mon, Sep 04, 2000 at 09:31:15AM +0100, Chris Withers wrote: > > > > > > What we really want is a non-blocking MailHost. > > > > > > Anyone know how or want to write one? > > _______________________________________________ > 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 rugger@pangea.ca Mon Sep 4 18:42:35 2000 From: rugger@pangea.ca (Kip Rugger) Date: 4 Sep 2000 12:42:35 -0500 Subject: [Zope] doesn't? Please fix... ;-) References: <399EA5FB.972E2FA2@nipltd.com> <20000820182600.A9168@zeus.theinternet.com.au> <39B37FDA.1B4FEA17@nipltd.com> <20000904220808.B1642@zeus.theinternet.com.au> Message-ID: <8p0mub$6aj$1@rugger.nodomain.ca> In article <20000904220808.B1642@zeus.theinternet.com.au>, Andrew Kenneth Milton wrote: [snip] >It's wrong :-) > > >crap >more crap > >Lots of crap > > > >In order to parse that fragment, you need to parse the blocks in case you >find another opening block, so that you can recursively process comments. > [snip] crap more crap Lots of crap by analogy with the common practice of #if 0 in C From chrisw@nipltd.com Mon Sep 4 18:46:53 2000 From: chrisw@nipltd.com (Chris Withers) Date: Mon, 04 Sep 2000 18:46:53 +0100 Subject: [Zope] Squishdot/Swishdot RFCs Message-ID: <39B3E00D.371D59A@nipltd.com> Hi, I've just posted a set of articles relating to the future of Squishdot and Swishdot on http://www.squishdot.org which I'd really like to get lots of feedback on. Could anyone interested please pop along and comment? cheers, Chris From Didier Georgieff Mon Sep 4 20:04:09 2000 From: Didier Georgieff (Didier Georgieff) Date: Mon, 4 Sep 2000 20:04:09 +0100 Subject: [Zope] domains (acl_users) and access via proxy Message-ID: <39B40039.10011.58B536D@localhost> Hello, Our users are acessing to the Zope server thru corporate (ministers) proxys. I can't get the "domains" working, while trying (agriculture.gouv.fr, gouv.fr, fr) even with simple one. I'm suspecting some changes in the REQUEST made by the corporate proxys. Is there any doc about what REQUEST variable is used in the "domains" restriction ? (I have a HTTP_FORWARDED with the *proxy* name (unfortunately without the .gouv.fr). I can't find anything on the site and the list either. Thanks in advance. From bill@libc.org Mon Sep 4 19:21:46 2000 From: bill@libc.org (Bill Anderson) Date: Mon, 04 Sep 2000 12:21:46 -0600 Subject: [Zope] Not like ASP complaint - any good answers References: <3.0.6.32.20000824212918.00a19ec0@p18> Message-ID: <39B3E83A.15DB81E7@libc.org> Sean McGrath wrote: > > All, > > I have had a number of e-mails from developers > using Microsoft ASP in recent days. The paraphrased consensus > in the e-mails is that the external > methods/python methods approach to mixing markup > with code in Zope is more clunky than in ASP where > you can intermingle the two at will. > > Has anyone written anything on this topic I could > point them to? asp+ (the next version of asp) will be following Zope's lead of template style setups, seperating code from content. I don't have the release handy, but I saw it last week or so. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From sean@horse101.com Mon Sep 4 20:48:36 2000 From: sean@horse101.com (Sean Kelley) Date: Mon, 04 Sep 2000 12:48:36 -0700 Subject: [Zope] How does one rename document ids? References: <200009041900.MAA26320@zope.codeit.com> Message-ID: <39B3FC94.C5569513@horse101.com> Hi, I have a number of dtml documents without the form "name_html". I would like to rename everything in a particular folder to name_html from name. Is there a way to do this? Thanks From dieter@handshake.de Mon Sep 4 20:05:53 2000 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 4 Sep 2000 21:05:53 +0200 (CEST) Subject: [Zope] Migrating passwords from Apache to Zope? In-Reply-To: <94902046@toto.iv> Message-ID: <14771.61923.868296.33757@lindm.dm> Marcin Kasperski writes: > Is it possible to smoothly migrate accounts and passwords from Apache to > Zope? > > More details: I keep Apache accounts in some file of the format > > username:encoded_password > > where username is plaintext username and encoded_password is the > password encoded in the normal Unix way (via crypt function).... There is a GUF (Generic User Folder) HowTo that explains how to use encryted passwords in the same way as you do. After you have set up GUF (very good explanation in the HowTo), all you need to do is place your "username,password" pairs into the database. A small Python script can be used for this. It probably would use the DB Api to control the database. Dieter From dieter@handshake.de Mon Sep 4 19:55:51 2000 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 4 Sep 2000 20:55:51 +0200 (CEST) Subject: [Zope] Way to list vocabulary words specific to a page? In-Reply-To: <17566420@toto.iv> Message-ID: <14771.61117.39504.737740@lindm.dm> Kevin Smith writes: > I am interested in showing the vocabulary words indexed for the page being viewed, to be used as meta keyword data. > > Is this possible? Zope does not manage vocabulary words on a page basis. Therefore, you cannot simply ask: "give me the words for this given page". With some effort, you can emulate ZCatalogs word splitting: given an object, "o", and an attribute, "a", to be indexed, ZCatalog first determines "o"s "a" value: val= getattr(o,a) if callable(val): val= val() The resulting string is then fed to a C implemented module called "Splitter" which splits the text into a sequence of words. It is this sequence, you are interested in. You will probably need to write an external method. You will find the relevant code in "SearchIndex.UnTextIndex". Dieter From dieter@handshake.de Mon Sep 4 20:02:40 2000 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 4 Sep 2000 21:02:40 +0200 (CEST) Subject: [Zope] Images slow rendering problem In-Reply-To: <15407548@toto.iv> Message-ID: <14771.61507.699210.172803@lindm.dm> Pierre-Julien Grizel writes: > I already posted this message several monthes ago, expecting a new Zope > version would fix the problem, but... > > > I have some images on my pages (let's say 10 - not a lot), rendered > either by dtml-var or a manual tag. > When I render the page on some of my LAN boxes (especially with IE), > some images doesn't load at the first time. I need to reload the page to > make them appear. When I monkeyly hit the 'F5' key, some images do not > show again. Argl. Anoying.... > > The problem is worst ever through Internet. I, myself, have seen a very similar problem -- with Netscape 4.5.1 under Solaris 2.7. I tried to analyse it, but failed. I can say, that is was *not* the Netscape image bug (Netscape sends If-Modified-Since headers with two year digits). Inside Zope's "OFS.Image.File.index_html" everything looks fine. Dieter From dieter@handshake.de Mon Sep 4 19:48:50 2000 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 4 Sep 2000 20:48:50 +0200 (CEST) Subject: [Zope] How to access id and title of document calling standard_html_header In-Reply-To: <100332111@toto.iv> Message-ID: <14771.60076.951714.881856@lindm.dm> Tim Hicks writes: > I have a standard_html_header that is inserted into Zclasses. These > Zclasses have properties including meta_author ... > In standard_html_header, I use code such as ... > This works fine and the properties of > the *zclass* are inserted. However, if I put into the > standard_html_header, I get the id of standard_html_header, *not* of > the zclass. When I do this, I get the id of the Z class instance. It should be impossible to get the id of the *standard_html_header*, if this header is a DTML *method* (rather than document) as you told us in a different message. Because we see different things, we need to describe carefully, what we do. Apparently, we do not do the same. I have a folder-like ZClass, say ZC, and an instance of this class, say ZI. ZC has a method, say M, using "standard_html_header". "standard_html_header" is a DMTL method (!) rendering "id". When I open "ZI/M", "standard_html_header" renders "ZI", i.e. ZI's id. The same happens, if "standard_html_header" is not in ZI but a ZC method. Now, it is your turn to describe precisely, what you are doing. Dieter From dieter@handshake.de Mon Sep 4 19:08:25 2000 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 4 Sep 2000 20:08:25 +0200 (CEST) Subject: [Zope] If-Modified-Since problem again?! In-Reply-To: <16317771@toto.iv> Message-ID: <14771.58294.61755.62112@lindm.dm> Chris Withers writes: > Dieter Maurer wrote: > > By the way, Zope should cope with rounding problems > > for the "If-Modified-Since" headers. > > AFAIK, Brian Lloyd fixed this with a pretty generalised try...except in > Image.py > If stuff is still getting through, we should narrow it down further... No traceback, because no exception. I speak of a true rounding problem: the image is modified at "x" (expressed in seconds) Zope sends "x" converted to a date/time string as "Last-Modified" Zope receives the date/time string back as "If-Modified-Since". Zope converts it to a "long", say y. *BUT* y is not x, it is "x-1". Of cause, this does not happen for all modification times. But there are not too few of them. Dieter From chrism@digicool.com Mon Sep 4 20:37:53 2000 From: chrism@digicool.com (Chris McDonough) Date: Mon, 4 Sep 2000 15:37:53 -0400 (EDT) Subject: [Zope] Re: superuser confusion In-Reply-To: <39B384AA.6B513B3D@nipltd.com> Message-ID: On Mon, 4 Sep 2000, Chris Withers wrote: > > Well, I think the real problem is that the account that you use to > > "bootstrap" Zope is named "superuser". If it was named something else > > like "bootstrapuser" or "fixupuser" or something, I doubt you'd wonder why > > it couldn't own anything. > > Well, okay, let me rephrase the question: > Why is it bad for the bootstrap user to own anything? > It used to be considered okay before Zope 2.2, so was has been > changed/discovered that makes this now such a bad idea that despite > loads of newbie pain and confusion, it's still worth while/necessary? I've got to say I agree with you here. I'm still not 100% sure why the superuser or bootstrap user can't own anything. The argument for protecting the user against himself by making this so is something I had a rough time rationalizing in that document. I suppose there's the argument for having a meaningful audit trail when things go wrong (instead of superuser hosing your site, it'd be "chrism"). But this is also a rationalization. I guess the ultimate answer is "shrug." I'm certainly not even going to think of trying to tear apart the code that makes it that way (nevermind the flamefest it would cause). Rather, to ameliorate the situation, Zope should prompt the installer to define a separate management user at setup. > > > > Come to thing of it, is there a concise description anywhere of what the > > > new rules are WRT to ownership, the logged in user and how 'code' of all > > > the various types is executed? > > > > What isn't covered in that document that you'd like to know? > > Urm, again, no offence ('cos I think the book is aimed at a different > audience) but the keyword for me was 'concise'. I did have a look at the > document above, but didn't read it 'cos it looked about 10 pages long > :-( > > I'm looking for something closer to 10 _lines_ long, but that may not be > possible ;-) No. But the document is divided into sections, and one of those sections regards ownership. Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From rugger@pangea.ca Mon Sep 4 21:31:25 2000 From: rugger@pangea.ca (Kip Rugger) Date: 4 Sep 2000 15:31:25 -0500 Subject: [Zope] supplemental group ids (Linux) Message-ID: <8p10qt$6r2$1@rugger.nodomain.ca> I noticed when starting Zope as root (to get privilaged ports), but requesting suid to `nobody' (start -u nobody) the resulting processes have the correct uid and gid, but the supplemental group id list still has the appropriate value for root. This means that the Zope process could, for example, write to files that may belong to root. It's not clear whether this deserves a bug report, so I though I'd ask here instead. The fix is easy (and very lightly tested): 1) grab and install the supplemental gid package (for python) http://www.ccraig.org/software/group.c 2) patch (for 2.2.0) --- z2.py.orig Fri Jun 30 10:23:53 2000 +++ z2.py Mon Sep 4 14:33:51 2000 @@ -682,13 +682,20 @@ if type(UID) == type(""): uid = pwd.getpwnam(UID)[2] gid = pwd.getpwnam(UID)[3] + uname = UID elif type(UID) == type(1): uid = pwd.getpwuid(UID)[2] gid = pwd.getpwuid(UID)[3] + uname = pwd.getpwuid(UID)[1] else: raise KeyError try: if gid is not None: + try: + import group + group.initgroups(uname, gid) + except: + pass try: os.setgid(gid) except OSError: From Tim Hicks" Message-ID: <003d01c016b8$f135c3c0$0301a8c0@tim> ----- Original Message ----- From: "Dieter Maurer" To: "Tim Hicks" Cc: Sent: Monday, September 04, 2000 7:48 PM Subject: Re: [Zope] How to access id and title of document calling standard_html_header > Tim Hicks writes: > > I have a standard_html_header that is inserted into Zclasses. These > > Zclasses have properties including meta_author ... > > In standard_html_header, I use code such as ... > > This works fine and the properties of > > the *zclass* are inserted. However, if I put into the > > standard_html_header, I get the id of standard_html_header, *not* of > > the zclass. > When I do this, I get the id of the Z class instance. > It should be impossible to get the id of the *standard_html_header*, > if this header is a DTML *method* (rather than document) as you > told us in a different message. > > Because we see different things, we need to describe carefully, > what we do. Apparently, we do not do the same. > > I have a folder-like ZClass, say ZC, and an instance of this class, say ZI. > ZC has a method, say M, using "standard_html_header". > "standard_html_header" is a DMTL method (!) rendering "id". > When I open "ZI/M", "standard_html_header" renders "ZI", i.e. > ZI's id. > > The same happens, if "standard_html_header" is not in ZI but > a ZC method. > > > Now, it is your turn to describe precisely, what you are doing. > OK, I think that I am perhaps misusing zclasses then. Here is what I have. I have a Folder that was created by using the 'Add new item' menu within Zope. This folder is called 'Site'. I have a Zclass called 'theatre_class' that has "Base classes ZObject, _ZClass_for_CatalogAware, _ZClass_for_DTMLDocument". I have set the zclass to have the following properties by creating a 'theatre_class_property' property sheet for it: head_title meta_author meta_description ... amongst others. Within the Folder 'Site', I have standard_html_header dtml-method that is an edited version of the default one that is found in the root folder of a Zope instance (if that is the right term). This standard_html_header uses things code such as this: <dtml-var head_title> When I use the standard_html_header in an instance of a zclass, the appropriate property of the zclass is indeed inserted into it. See below. Zclass instance has code such as:

This is an instance of my Theatre Zclass

However, if I try to put into the standard_html_header, I get nothing, and if I use , I get 'standard_html_header' inserted into the document. I hope I have made it clear what I am doing. It is certainly becoming clear to me that I have got the wrong end of the stick a little with this. Thanks for your help. tim > > Dieter > From mattb@digicool.com Mon Sep 4 23:19:45 2000 From: mattb@digicool.com (Matthew Burleigh) Date: Mon, 04 Sep 2000 18:19:45 -0400 Subject: [Zope] . Message-ID: <39B42001.BB78D4CF@digicool.com> -- - Matthew Burleigh - Systems Administrator, Digital Creations - publishers of Zope. - (888)344-4332 -- http://www.digicool.com - http://www.zope.org From bill@libc.org Mon Sep 4 23:53:08 2000 From: bill@libc.org (Bill Anderson) Date: Mon, 04 Sep 2000 16:53:08 -0600 Subject: [Zope] . References: <39B42001.BB78D4CF@digicool.com> Message-ID: <39B427D4.6F720671@libc.org> Matthew Burleigh wrote: > > -- > - Matthew Burleigh > - Systems Administrator, Digital Creations - publishers of Zope. > - (888)344-4332 -- http://www.digicool.com - http://www.zope.org Well said (subject = Zope .) ;) -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From akm@mail.theinternet.com.au Tue Sep 5 00:04:21 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Tue, 5 Sep 2000 09:04:21 +1000 Subject: [Zope] Regaining lost privileges In-Reply-To: <14770.13682.813121.712731@lindm.dm>; from Dieter Maurer on Sun, Sep 03, 2000 at 01:28:36PM +0200 References: <58159297@toto.iv> <14770.13682.813121.712731@lindm.dm> Message-ID: <20000905090421.D1642@zeus.theinternet.com.au> +-------[ Dieter Maurer ]---------------------- | Andrew Kenneth Milton writes: | > Is there anyway to regain 'root' privs from inside a zope product? | > | > Using the -u flag to start causes the privs to be permanently gone because | > z2.py uses setuid + setgid (and python doesn't seem to define sete[ug]id, at | > least not on my system). | > | > Other than running zope as root permanently (which I really would like to | > avoid), does anyone have any quick ideas on how to achieve this? | The same trick could be used by any process to gain root privileges.... | | It is easy to implement a Python wrapper for the | sete[ug]id. I'm happy to write the wrapper, and also modify the Z2.py script to only use seteuid if explicitly requested on the command line. There's not much point in really doing so if there's only two people who want to use it :-) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From akm@mail.theinternet.com.au Tue Sep 5 00:11:03 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Tue, 5 Sep 2000 09:11:03 +1000 Subject: [Zope] doesn't? Please fix... ;-) In-Reply-To: <8p0mub$6aj$1@rugger.nodomain.ca>; from Kip Rugger on Mon, Sep 04, 2000 at 12:42:35PM -0500 References: <399EA5FB.972E2FA2@nipltd.com> <20000820182600.A9168@zeus.theinternet.com.au> <39B37FDA.1B4FEA17@nipltd.com> <20000904220808.B1642@zeus.theinternet.com.au> <8p0mub$6aj$1@rugger.nodomain.ca> Message-ID: <20000905091103.E1642@zeus.theinternet.com.au> +-------[ Kip Rugger ]---------------------- | | [snip] | | | crap | more crap | | Lots of crap | | | | by analogy with the common practice of #if 0 in C Won't work, the container will still be parsed for correctness at 'save' time. The problem isn't getting nested comments per se, we already have that. The problem is to completely ignore the contents of the comment tag whilst still allowing nested comments. Th second part of the problem is that ChrisW(hinger) really wants it, but, doesn't want to do what is necessary to do it. So the problem is simplified to not actually doing anything except talking about doing it. d8) Thankyou for playing d8) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From chrism@digicool.com Tue Sep 5 00:29:57 2000 From: chrism@digicool.com (Chris McDonough) Date: Mon, 4 Sep 2000 19:29:57 -0400 (EDT) Subject: [Zope] Fourth Posting, is this really that difficult or have I been blackballed :)balled :) In-Reply-To: <39B345F5.68221E1B@earthlink.net> Message-ID: One thing to remember about using __init__ to add subobjects: during __init__, you don't have access to any acquired objects. This is probably the main rationale for manage_afterAdd, and is the reason manage_afterAdd is so useful. There are a lot of dependencies on acquisition even in the Zope core, so when things fail during your __init__ method, suspect acquisition dependence. On Sun, 3 Sep 2000, Kapil Thangavelu wrote: > Daniel Rusch wrote: > > > > not sure what you mean by "subobject adding in your __init__ method"???? > > > python prod > > def manage_addfooclass(): > > x= fooclass() > id = 1 > self._setObject(id, x) > > > def fooclass: > > def __init__(): > > >>> add subobjects here > > > seems like you were adding subobjects to your class in your > manage_addfoo when it probably would have been better to add them in > your __init__ method > > > > > Dan > > > > Kapil Thangavelu wrote: > > > > > btw daniel, > > > > > > i've looked at some your postings for the day and i thought i should > > > tell you that most of your problems would go away if you did subobject > > > adding in your __init__ method within your class or in the hook method > > > manage_afterAdd within your class. for future reference. You'd get all > > > the benefits of inheritance. Let manage_add to do just that, instantiate > > > and set a instance of your class. > > > > > > Kapil > > > > > > Kapil Thangavelu wrote: > > > > > > > > Daniel wrote > > > > > > > > > I've created a folderish product. When I select that product from the > > > > > available objects list, thus creating an instance of that product, I can > > > > > > > > > > create objects like dtml document and dtml method in the new folderish > > > > > object (very similar to what happens when you instantiate a folder > > > > > object, you can have a dtml method created in the new folder). > > > > > > > > > > The question is why can't I create objects from the Products directory, > > > > > such as Local File System????? > > > > > > > > > > The code below works great, I get a dtml document, two folders each with > > > > > > > > > > a dtml method in them.... > > > > > HOW CAN I CREATE A LOCAL FILE SYSTEM OR ANY OTHER OBJECT FROM THE > > > > > PRODUCTS DIRECTORY IN THIS MANAGE_ADD FUNCTION??????? > > > > > > > > > > def manage_addSimpleSite(self, id, title='', > > > > > createNewFolder=0, > > > > > createEditFolder=0, > > > > > REQUEST=None): > > > > > """Add a new SimpleSite object with id *id*. > > > > > > > > > > If the 'createNewFolder' and 'createEditFolder' parameters are set > > > > > to any true > > > > > value, an 'New sub Folder' and an 'edit sub Folder' objects are > > > > > created respectively > > > > > in the new SimpleSite. > > > > > """ > > > > > ob=SimpleSite() > > > > > ob.id=id > > > > > ob.title=title > > > > > self._setObject(id, ob) > > > > > try: user=REQUEST['AUTHENTICATED_USER'] > > > > > except: user=None > > > > > ob.manage_addDTMLDocument(id='index_html', title='') > > > > > if createNewFolder: > > > > > if (user is not None) and not ( > > > > > user.has_permission('Add User SimpleSites', self)): > > > > > raise 'Unauthorized', ( > > > > > 'You are not authorized to add User SimpleSites.' > > > > > ) > > > > > ob.manage_addFolder(id='New'+id, title='', createPublic=1) > > > > > if createEditFolder: > > > > > if (user is not None) and not ( > > > > > user.has_permission('Add Documents, Images, and Files', > > > > > self)): > > > > > raise 'Unauthorized', ( > > > > > 'You are not authorized to add DTML Documents.' > > > > > ) > > > > > ob.manage_addFolder(id='Edit'+id, title='', createPublic=1) > > > > > if REQUEST is not None: > > > > > return self.manage_main(self, REQUEST, update_menu=1) > > > > > > > > > > > > > a couple of things. > > > > > > > > A. you're not being blackballed. when you're posting to the list its > > > > hard to help without specifics. you're posting above, would be better > > > > with a traceback of code that does attempt to instantiate a product. > > > > which leads to > > > > > > > > B. how are you attempting to instantiate your other products. example > > > > code of what you're trying to do would be helpful. are you doing it the > > > > same as adding folders like above... i have no idea... > > > > > > > > C. seems like you're doing this in python. the code below should work > > > > fine. > > > > > > > > from Products import LocalFS > > > > > > > > in manage_add: > > > > > > > > id = 'foo' > > > > ob2 = LocalFS.LocalFS(id) # check the exact calls to __init__ in > > > > LocalFS > > > > id2 = 'foo2' > > > > > > > > ob = yourproduct(id2) > > > > ob._setObject(id , ob2) > > > > > > > > in  __init__ or manage_afterAdd > > > > > > > > id ='foo' > > > > ob = LocalFS.LocalFS(id) > > > > self._setObject(id, ob) > > > > > > > > _______________________________________________ > > > > 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 ) > > > > > > _______________________________________________ > > > 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 ) > > _______________________________________________ > 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 Digital Creations, Publishers of Zope http://www.zope.org From chrism@digicool.com Tue Sep 5 00:44:14 2000 From: chrism@digicool.com (Chris McDonough) Date: Mon, 4 Sep 2000 19:44:14 -0400 (EDT) Subject: [Zope] supplemental group ids (Linux) In-Reply-To: <8p10qt$6r2$1@rugger.nodomain.ca> References: <8p10qt$6r2$1@rugger.nodomain.ca> Message-ID: Aplogies for the ignorance, but can you maybe explain the concept of supplemental group ids and give an example of how the current unpatched behavior could be subverted? On 4 Sep 2000 rugger@pangea.ca wrote: > I noticed when starting Zope as root (to get privilaged ports), > but requesting suid to `nobody' (start -u nobody) the resulting > processes have the correct uid and gid, but the supplemental > group id list still has the appropriate value for root. This > means that the Zope process could, for example, write to files > that may belong to root. > > It's not clear whether this deserves a bug report, so I though > I'd ask here instead. > > > The fix is easy (and very lightly tested): > > 1) grab and install the supplemental gid package (for python) > http://www.ccraig.org/software/group.c > > 2) patch (for 2.2.0) > > --- z2.py.orig Fri Jun 30 10:23:53 2000 > +++ z2.py Mon Sep 4 14:33:51 2000 > @@ -682,13 +682,20 @@ > if type(UID) == type(""): > uid = pwd.getpwnam(UID)[2] > gid = pwd.getpwnam(UID)[3] > + uname = UID > elif type(UID) == type(1): > uid = pwd.getpwuid(UID)[2] > gid = pwd.getpwuid(UID)[3] > + uname = pwd.getpwuid(UID)[1] > else: > raise KeyError > try: > if gid is not None: > + try: > + import group > + group.initgroups(uname, gid) > + except: > + pass > try: > os.setgid(gid) > except OSError: > > > _______________________________________________ > 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 Digital Creations, Publishers of Zope http://www.zope.org From Tamara Temple Tue Sep 5 00:44:18 2000 From: Tamara Temple (Tamara Temple) Date: Mon, 04 Sep 2000 16:44:18 -0700 Subject: [Zope] newbie question: installing ZSiteMap and ZPhotoAlbum Message-ID: <1592226756.20000904164418@email.com> Hi all, My first posting here, please forgive if this is obvious, cause it isn't to me. I already checked the How-To's and searched the zope-list archives and came up with nothing. I downloaded the two zexp files for ZSiteMap and ZPhotoAlbum, and put them in the import directory. When I try to import them, I get an error and a traceback saying that "this operation isn't support by ZSiteMap" (or ZPhotoAlbum, depending). There are no instructions with either one on how to install them. What do I need to do in order for these to work? This newbie thanks you in advance. -- Tamara Temple <^)~ tambulk@email.com Perhaps loving something is the only starting place there is for making your life your own. -- Alice Koller From chrism@digicool.com Tue Sep 5 00:56:12 2000 From: chrism@digicool.com (Chris McDonough) Date: Mon, 4 Sep 2000 19:56:12 -0400 (EDT) Subject: [Zope] Underscore Caracter In-Reply-To: <39B26924.EB648B08@emdata.com.br> Message-ID: Hi Marcus, This is untested. Turn "asd asd" into "asd_asd" and output: Turn "asd_asd" into "asd asd" and output: On Sun, 3 Sep 2000, Marcus Mendes wrote: > Hello, > > I need replace 0x20 (space caracter ) to Undescore Caracter. I need also > a function that UNDO this operation. How can I to do this in DTML > sintaxe? Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From chrism@digicool.com Tue Sep 5 01:08:12 2000 From: chrism@digicool.com (Chris McDonough) Date: Mon, 4 Sep 2000 20:08:12 -0400 (EDT) Subject: [Zope] Folder and SQL security In-Reply-To: <000001c016d3$b2537ba0$49f438cb@gosvald> Message-ID: On Tue, 5 Sep 2000, George Osvald wrote: > My sql works now and security is satisfactory so thank you. The only thing > that remains in question is that one subfolder. I created a user folder > inside, set all the security and it does not do what I want. I want to > restrict any access including viewing for nobody. Only authorised customers > would be able to view the page. After turning off all the security options > though I am still able to view the pages as nobody. How do I prevent that? Do you have "acquire permissions" set on all the permissions of the folder? Have you tried turning it off? This may be a wild goose chase because I'm sort of guessing at your problem. Your message has generalizations like "that one subfolder" (what subfolder? what are its settings?), "set all the security" (how?), "does not do what I want" (what do you want? exactly how does it fail, can you give a concrete example?) and "the page" (what page?). It'd be helpful to define these, because as much as I try, I can't read minds. :-) HTH, C > > > > George wrote: > > > > > > Security in ZOPE is very puzzling. If I have certain rules set for the > > > root folder, can I set something different for the sub folders? > > > > Sure... for general security information see both > > http://www.zope.org/Members/michel/ZB (the Zope book security chapter, > > mostly finished) and http://www.zope.org/Members/mcdonc/PDG (security > > chapter mostly finished). > > > > > Any > > > changes seem to have no effect at all. > > > > can you be more specific? > > > > > I am especially wandering about > > > setting for anonymous user. I'd like to give them only 'viewing' > > > privilege but that does not work. > > > > How doesn't it work? > > > > > The site is not functional at all and > > > asks for the password even for the viewing. Then I enable 'access the > > > content' and the site works as long as I do not try to use sql. > > > > Yes, "access contents information" is equivalent to allowing the user to > > list the objects in an object manager. It's given to anonymous by > > default most of the time, and is probably required for most operations. > > > > > When I > > > how ever enable 'use sql methods' permission they can access my > > > database, delete and add entries to it. > > > > This should have nothing to do with 'access contents information'. > > There should be permissions available to restrict the use of sql > > methods. Have you seen them? > > > > > What do I have to do to allow > > > anonymous viewers to just view the site > > > > Give them "view" and "access contents information" permissions. > > Depending on the products you've got installed and the operations you > > want the users to be able to carry out, you may need to give them other > > permissions. > > > > > (keep in mind that I am using a > > > couple of zsql methods for embedding of data in my html) I also want to > > > have one of the sub folders not accessible to any one but me. > > > Can you help anyone? > > > Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From adustman@comstar.net Tue Sep 5 01:19:40 2000 From: adustman@comstar.net (Andy Dustman) Date: Mon, 4 Sep 2000 20:19:40 -0400 (EDT) Subject: [Zope] Stumped: Python in operator seems to not work Message-ID: (Please CC: me on responses.) I have a DTML Method (build_navigation_bar) that is called from standard_html_header to (surprise) build a navigation bar. standard_html_header invokes it thusly: where foo is the top of the tree; standard_html_header can be acquired further down in the tree. parents is initialized to PARENTS, which is the list of parents of the original object. build_navigation_bar invokes itself on Folders that it finds that are among the parents of the original object. I.e., this is somewhat like a tree, but we only want to expand the branch we're in. This is done with:
Unfortunately, this doesn't work: The conditional is always false. Some of the debugging output: Note that in the first line, the expression correctly evaluates to 0, while the second line incorrectly evaluates to 0. Using should not, and does not, make a difference. Initializing parents with a copy of PARENTS (PARENTS[:]) does not make a difference, as expected. Direct comparisons, i.e. (or ==) also fail. What did I overlook, because this seems like it ought to work. -- andy dustman | programmer/analyst | comstar.net, inc. telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d "Therefore, sweet knights, if you may doubt your strength or courage, come no further, for death awaits you all, with nasty, big, pointy teeth!" From bill@libc.org Tue Sep 5 01:31:18 2000 From: bill@libc.org (Bill Anderson) Date: Mon, 04 Sep 2000 18:31:18 -0600 Subject: [Zope] newbie question: installing ZSiteMap and ZPhotoAlbum References: <1592226756.20000904164418@email.com> Message-ID: <39B43ED6.E43F5264@libc.org> Tamara Temple wrote: > > Hi all, > > My first posting here, please forgive if this is obvious, cause it > isn't to me. I already checked the How-To's and searched the zope-list > archives and came up with nothing. > > I downloaded the two zexp files for ZSiteMap and ZPhotoAlbum, and put > them in the import directory. When I try to import them, I get an > error and a traceback saying that "this operation isn't support by > ZSiteMap" (or ZPhotoAlbum, depending). There are no instructions with > either one on how to install them. What do I need to do in order for > these to work? You have to import products into the Control Panel -> Products folder. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From Eric@Walstads.net Tue Sep 5 02:05:29 2000 From: Eric@Walstads.net (Eric L. Walstad) Date: Mon, 04 Sep 2000 18:05:29 -0700 Subject: [Zope] Java applet with inner classes causing probs in Zope Message-ID: Hello all, The problem is that inner classes have names like "Parent$Inner.class" I'm unable to create a Zope file object with a name that includes the dollar sign. However, the applet won't function without it. Has any one overcome this? Yes, the applet functions properly when served from apache (but I need to serve it from Zope). Please respond directly to me and mailing list as I am not currently on the mailing list. Thanks, Eric. From cwilkins@boinklabs.com Tue Sep 5 02:13:02 2000 From: cwilkins@boinklabs.com (Charlie Wilkinson) Date: Mon, 4 Sep 2000 21:13:02 -0400 Subject: [Zope] Arrrgh!!! *Weird* SQLSession problem Message-ID: <20000904211302.K11167@boink.boinklabs.com> Ok, all weekend I've been chasing my tail. Now I scream for help... I cannot get SQLSession to insert values into the zsession_data table to save my freeking life. I'm not getting errors of any kind, just no inserted session data. However, the zsessions table shows the sessions being created, so that table is working ok. I mangled the SQL syntax for sqlSetValue, *then* I got a pg. error, so sqlSetValue *is* running, yes? I installed Logger and logged the values from sqlSetValue to the zope log. I cut and pasted those values from the log into the test query screen for sqlSetValues and when I submit the query it inserts just fine. At that point I can see the manually inserted values from session_test.dtml, so sqlGetValues is working. But if I try to insert values with session_test, they show up in the very next screen, but are gone thereafter and of course they do not show up in the database. I'm really at quite a loss here. I made sure to give SQLSession its very own ZPyGresQLDA connection. After beating on that unsuccessfully for awhile, I installed ZPoPyDA, and set SQLSession to use that, which of course didn't change anything. Here's the version particulars: Zope version: Zope 2.1.6 (source release, python 1.5.2, linux2) Python version: 1.5.2 (#1, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux (egcs- System Platform: linux-i386 ZPyGreSQLDA 0.3 ZPoPyDA 0.5.1 PoPy 1.3.2 beta SQLSession 0.3.0 PostgreSQL 7.0.2 Other installed products (if it matters...): ZPyGreSQLDA Fortune Calendar Logger Photo ZPatterns Confera LoginManager SQLSession ZPoPyDA WorldPilot iTrack Mild rant: I've got a big, scary, and now behind schedule database-enabled website to build for a client. Most everything I've read, and even my earlier, simpler experiences with Zope have been fantastic. I've been going on to my client about how great Zope is, rapid deployment, etc, blah. So I committed, but after fighting with LM (It took weeks to get it working once and I have not been able to duplicate that feat since), a failed upgrade to Zope 2.2 (LM wouldn't work there yet(?), doh!), and now SQLSession... I'm *not* having an overall good feeling about all this. I'm even starting to get thoughts of retreating to Perl or learning PHP3 and never looking back. But I really want to get over what's probably mostly newbie learning curve & lack of docs and make this work in Zope. Please help!!! -cw- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Charlie Wilkinson - cwilkins@boinklabs.com - N3HAZ Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer... Visit the Radio For Peace International Website: http://www.rfpi.org/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CLOBBER INTERNET SPAM: See!! Join!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QOTD: Failure is not an option. It's bundled with your software. From cwilkins@boinklabs.com Tue Sep 5 02:33:19 2000 From: cwilkins@boinklabs.com (Charlie Wilkinson) Date: Mon, 4 Sep 2000 21:33:19 -0400 Subject: [Zope] Nevermind? (SQLSession problem...) Message-ID: <20000904213319.L11167@boink.boinklabs.com> In a last, desparate effort I downgraded to SQLSession 0.2.9a and it's working fine. Is this normal? -cw- -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Charlie Wilkinson - cwilkins@boinklabs.com - N3HAZ Parental Unit, UNIX Admin, Homebrewer, Cat Lover, Spam Fighter, HAM, SWLer... Visit the Radio For Peace International Website: http://www.rfpi.org/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CLOBBER INTERNET SPAM: See!! Join!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QOTD: Failure is not an option. It's bundled with your software. From bill@libc.org Tue Sep 5 02:26:13 2000 From: bill@libc.org (Bill Anderson) Date: Mon, 04 Sep 2000 19:26:13 -0600 Subject: [Zope] Managed Meeting semi-broken in 2.2.1 Message-ID: <39B44BB5.D709CA55@libc.org> It appears that there has been _some_ change in security somewhere. As Manager, I cannot add a Managed Meeting object in a Zope 2.2.1 server. Nor can someone with the role 'Member', who has been given the neccessary permission. It tells me I don't have uthroization to access 'ManagedMeeting'. Bill -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From morten@esol.no Tue Sep 5 01:48:14 2000 From: morten@esol.no (Morten W. Petersen) Date: 05 Sep 2000 02:48:14 +0200 Subject: [Zope] Java applet with inner classes causing probs in Zope In-Reply-To: References: Message-ID: [Eric L. Walstad] | Hello all, | | The problem is that inner classes have names like "Parent$Inner.class" | I'm unable to create a Zope file object with a name that includes the dollar | sign. However, the applet won't function without it. | | Has any one overcome this? Adding files to Zope through FTP doesn't seem to have the same restrictions. -Morten From bitz@bitdance.com Tue Sep 5 04:10:47 2000 From: bitz@bitdance.com (R. David Murray) Date: Mon, 4 Sep 2000 23:10:47 -0400 (EDT) Subject: [Zope] Render the number of occurrence in a batch In-Reply-To: <39AF829B.D936F372@earthlink.net> Message-ID: On Fri, 1 Sep 2000, Kapil Thangavelu wrote: > Francois-Regis CHALAOUX wrote: > > How to render the total number of result coming from the search in a ZCatalog > > even if the batch will be render in several sequences ? > > > > Howto render XXXX : "Your search contain XXXX results" > > Or just while inside the dtml-in, say inside the block. --RDM From bitz@bitdance.com Tue Sep 5 05:37:23 2000 From: bitz@bitdance.com (R. David Murray) Date: Tue, 5 Sep 2000 00:37:23 -0400 (EDT) Subject: [Zope] Folder and SQL security In-Reply-To: <39B27BAB.E90E9943@okstudio.com.au> Message-ID: On Mon, 4 Sep 2000, George wrote: > asks for the password even for the viewing. Then I enable 'access the > content' and the site works as long as I do not try to use sql. When I > how ever enable 'use sql methods' permission they can access my > database, delete and add entries to it. What do I have to do to allow Chris may have pointed you in the right direction, but depending on the complexity of what you are doing you may also need to learn about using proxy roles. This allows you to write a dtml-method that an anonymous user can call, where the dtml-method can accessed privileged functions. Since you control the method code, you thereby control the security of that access and can limit it to just what you need to make the site functional. --RDM From rugger@pangea.ca Tue Sep 5 05:38:31 2000 From: rugger@pangea.ca (Kip Rugger) Date: 4 Sep 2000 23:38:31 -0500 Subject: [Zope] supplemental group ids (Linux) References: <8p10qt$6r2$1@rugger.nodomain.ca> Message-ID: <8p1tc7$7gk$1@rugger.nodomain.ca> Chris McDonough wrote: >Aplogies for the ignorance, but can you maybe explain the concept >of supplemental group ids and give an example of how the current unpatched >behavior could be subverted? I can try... Supplemental gids are useful for allowing a user to belong to more than one group, or maybe to more than one project in normal parlance. This is normally effected by listing the uid opposite more than one group in /etc/group. The login process issues the initgroups(3) call to install these supplemental groups, which are inherited by all processes forked from the login shell. The problem is comes when you change user ids; for example what I saw with Zope (start -u nobody) was: before change after change ============= ============ user id root nobody group id root nobody sup id(s) root root Thus the process has group access privilages for nobody (correct) and root (bad) in unpatched Zope. I cannot give you an exploit based on this -- my knowledge of Zope is not deep enough -- and in a bug free world there probably would be no exploit. But the reason for running as nobody, I think, is to contain damage should an exploit be found. For that reason, it would seem reasonable to change the supplemental gids too. I saw this on Linux; supplemental groups come from the BSD tradition, so you likely will find the same situation on *BSD, Solaris, etc. From evan@4-am.com Tue Sep 5 06:49:30 2000 From: evan@4-am.com (Evan Simpson) Date: Tue, 5 Sep 2000 01:49:30 -0400 Subject: [Zope] Re: superuser confusion References: Message-ID: <002b01c016fd$0fc9bc30$fcda5e3f@ehome> From: "Chris McDonough" > On Mon, 4 Sep 2000, Chris Withers wrote: > > Well, okay, let me rephrase the question: > > Why is it bad for the bootstrap user to own anything? > > It used to be considered okay before Zope 2.2, so was has been > > changed/discovered that makes this now such a bad idea that despite > > loads of newbie pain and confusion, it's still worth while/necessary? > > I've got to say I agree with you here. I'm still not 100% sure why the > superuser or bootstrap user can't own anything. It's due to a combination of the trojan horse issue and the sticky authentication issue, I think. You really don't want to be authenticated as super very often, because while you are, if you visit a page someone else wrote, they can make your browser do evil things to your site. This is also true of Managers, but less so. Similarly, a page owned by non-super has tighter permissions than one owned by the super would. Ideally, people working in a site should be operating with the bare minimum of privileges to get the job done. The super should only be called in when no one else can fix it. Cheers, Evan @ digicool & 4-am From cbeaumon@msri.org Tue Sep 5 07:37:49 2000 From: cbeaumon@msri.org (Chris Beaumont) Date: Mon, 4 Sep 2000 23:37:49 -0700 Subject: [Zope] Date-Time or SQL (Oracle) time.. or... Message-ID: Hello, Another newbie question that I hope doesn't sound too stupid.. (I guess I already know the answer to that question.. it DOES... *sheepish grin*) Have a little patience with me, I'm learning things and having fun, so in a month or three... *sigh* Anyway.... I have some questions about the best way to update time fields on my Zope site. This issue has been "the bane of my life" for the past three days.....*grin* Basically these are fields in records describing events (programs and workshops, and soon, talks) which I am listing on my site.. The dates are in an Oracle 7 table. I'm using DCOracle and the Zope OracleDA to interact with these data sources from Zope. Quite simply, I'm confused.. I've been following to the letter the ZSQL Methods Guide, but I'm completely missing something important about the relationship between Zope date-time and Oracle dates. I've scoured the lists and haven't found anything there either..How-tos deal with general date-time issues.. yes.. but this is on the border .. perhaps.. DateTime vs. Oracle SQL. *pause for dramatic effect* The How-tos I've seen don't answer several (basic) questions.. Note: So far I have just been working with dates, not hours, minutes, etc. I've noticed that if I insert data using Oracle's default and not very useful "native" format ie. 01-Jan-00 things work on the insert side. Sort-of... I've also successfully used "TO_DATE" to insert data in SQLMethods.. in forms I built myself.. But then using the exact same code in another (originally ZNolk-generated, but much edited..) form and SQL method.. no luck.. It's usually not even making it out of Zope's error check routines.. Perhaps this is a clue.. I've noticed that when displaying the results of a query, Zope translates Oracle's outputted dates into Date-Time. Does Zope also do translation on the input end? And if so, what do I need to do to be able to consistantly input dates in MM/DD/YYYY without problems.. I've been having major problems with choking on dates and I don't have the foggiest idea what I am doing wrong. Do I need to put more effort into learning TO_DATE and TO_CHAR (Oracle-isms) better or am I totally barking up the wrong tree.. (i.e. Zope translates everything into Date-Time) What is the best way to intercept SQL so I can see what is being sent to Oracle..? (I followed the suggestions in the How-to on this subject and Zope threw an error) I'm sorry this sounds so stupid, but I have been running into a brick wall..so to speak.. And in my scheme of things, dates, and the simple modification of them.. is really important... Thank you, Chris From chrism@digicool.com Tue Sep 5 07:53:31 2000 From: chrism@digicool.com (Chris McDonough) Date: Tue, 5 Sep 2000 02:53:31 -0400 (EDT) Subject: [Zope] ANN: Zope core session tracking proposal Message-ID: If you're interested in seeing session-tracking implemented in the Zope core, please review the proposal at http://dev.zope.org/Wikis/DevSite/Proposals/CoreSessionTracking and provide comments on the referenced discussion page. Thanks! Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From chrism@digicool.com Tue Sep 5 08:06:15 2000 From: chrism@digicool.com (Chris McDonough) Date: Tue, 5 Sep 2000 03:06:15 -0400 (EDT) Subject: [Zope] Re: superuser confusion In-Reply-To: <002b01c016fd$0fc9bc30$fcda5e3f@ehome> Message-ID: On Tue, 5 Sep 2000, Evan Simpson wrote: > > I've got to say I agree with you here. I'm still not 100% sure why the > > superuser or bootstrap user can't own anything. > > It's due to a combination of the trojan horse issue and the sticky > authentication issue, I think. You really don't want to be authenticated as > super very often, because while you are, if you visit a page someone else > wrote, they can make your browser do evil things to your site. This is also > true of Managers, but less so. Similarly, a page owned by non-super has > tighter permissions than one owned by the super would. Yes... the PDG security chapter has all of this in it, but it would seem that neither Chris W or I are completely satisfied by these answers. :-) It seems a matter of diminishing returns, especially when newbies hit the wall during install, since we haven't provided them with an airbag yet. Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From chrism@digicool.com Tue Sep 5 08:09:45 2000 From: chrism@digicool.com (Chris McDonough) Date: Tue, 5 Sep 2000 03:09:45 -0400 (EDT) Subject: [Zope] supplemental group ids (Linux) In-Reply-To: <8p1tc7$7gk$1@rugger.nodomain.ca> Message-ID: On 4 Sep 2000 rugger@pangea.ca wrote: I see... well, maybe we can take a look at it. In the meantime, if you figure out a patch that doesn't rely on an external program, let me know... Thanks, C > Chris McDonough wrote: > >Aplogies for the ignorance, but can you maybe explain the concept > >of supplemental group ids and give an example of how the current unpatched > >behavior could be subverted? > > I can try... > > Supplemental gids are useful for allowing a user to belong to more > than one group, or maybe to more than one project in normal parlance. > This is normally effected by listing the uid opposite more than one > group in /etc/group. The login process issues the initgroups(3) call > to install these supplemental groups, which are inherited by all > processes forked from the login shell. > > The problem is comes when you change user ids; for example what I > saw with Zope (start -u nobody) was: > > before change after change > ============= ============ > user id root nobody > group id root nobody > sup id(s) root root > > Thus the process has group access privilages for nobody (correct) and > root (bad) in unpatched Zope. > > I cannot give you an exploit based on this -- my knowledge of Zope > is not deep enough -- and in a bug free world there probably would > be no exploit. But the reason for running as nobody, I think, is > to contain damage should an exploit be found. For that reason, it > would seem reasonable to change the supplemental gids too. > > I saw this on Linux; supplemental groups come from the BSD tradition, > so you likely will find the same situation on *BSD, Solaris, etc. > > _______________________________________________ > 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 Digital Creations, Publishers of Zope http://www.zope.org From dario@ita.chalmers.se Tue Sep 5 08:30:36 2000 From: dario@ita.chalmers.se (Dario Lopez-Kästen) Date: Tue, 5 Sep 2000 09:30:36 +0200 Subject: [Zope] Could someone explain this DateTime behaviour to me? Message-ID: <001401c0170b$2f6919b0$33de1081@ita.chalmers.se> AS in is this the expected/intended behaviour or could this be classified as a bug? --- bobobase_modification_time 2000/09/02 08:49:48.326 GMT+2 bobobase_modification_time().toZone('GMT+2') 2000/09/02 12:49:48.326 GMT+2 bobobase_modification_time fmt="%Y-%m-%d %H:%M" 2000-09-02 12:49 --- Thanks, /dario - -------------------------------------------------------------------- Dario Lopez-Kästen Systems Developer Chalmers Univ. of Technology dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services From chrisw@nipltd.com Tue Sep 5 09:02:50 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 09:02:50 +0100 Subject: [Zope] Fine, don't fix :P References: <399EA5FB.972E2FA2@nipltd.com> <20000820182600.A9168@zeus.theinternet.com.au> <39B37FDA.1B4FEA17@nipltd.com> <20000904220808.B1642@zeus.theinternet.com.au> <8p0mub$6aj$1@rugger.nodomain.ca> <20000905091103.E1642@zeus.theinternet.com.au> Message-ID: <39B4A8AA.90170EA3@nipltd.com> Andrew Kenneth Milton wrote: > Th second part of the problem is that ChrisW(hinger) really wants it, "really wants it" might be a little strong... I'm not loosing any sleep... > but, > doesn't want to do what is necessary to do it. Swishdot or fixing DTML... take your pick :P (TreeTag would still get it first anyway...) > So the problem is simplified > to not actually doing anything except talking about doing it. d8) Well, since you actually have knowledge of the DT_String parser (well, more than I do at any rate...) you'd be better suited to doing less talking... *grinz* Chris From chrisw@nipltd.com Tue Sep 5 09:18:59 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 09:18:59 +0100 Subject: [Zope] Bitten by == ;-) References: Message-ID: <39B4AC73.6B041A3@nipltd.com> Andy Dustman wrote: > I have a DTML Method (build_navigation_bar) that is called from > standard_html_header to (surprise) build a navigation > bar. Word from the (pretending to be ;-) wise: Do it in an external method... I've got one that probably does 90% of what you want. Mail me off list if you're interested... > > > Unfortunately, this doesn't work: The conditional is always false. Some of > the debugging output: > > > > > Note that in the first line, the expression correctly evaluates to 0, > while the second line incorrectly evaluates to 0. *grinz* f*^*ing confusing isn't it. I did much head scratching until someone helpful pointed out you're dealing with acquisition wrappers: http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/08240A8E0D50AEE0 ...that might cover what you're looking for and that whole thread discusses the related issues. Jim suggested it wouldn't be hard to implement == to 'ignore' these wrappers and I'd love to give it a go but sadly: - I haven't written any C in about 3 years - I've _never_ written any C-extension-to-python type things So I'd probably take ages to do it and still screw it up :-S Anyone else want to give that a go? cheers, Chris From bill@libc.org Tue Sep 5 09:32:06 2000 From: bill@libc.org (Bill Anderson) Date: Tue, 05 Sep 2000 02:32:06 -0600 Subject: [Zope] supplemental group ids (Linux) References: <8p10qt$6r2$1@rugger.nodomain.ca> <8p1tc7$7gk$1@rugger.nodomain.ca> Message-ID: <39B4AF86.7F8FA992@libc.org> Kip Rugger wrote: > > Chris McDonough wrote: > >Aplogies for the ignorance, but can you maybe explain the concept > >of supplemental group ids and give an example of how the current unpatched > >behavior could be subverted? > > I can try... > > Supplemental gids are useful for allowing a user to belong to more > than one group, or maybe to more than one project in normal parlance. > This is normally effected by listing the uid opposite more than one > group in /etc/group. The login process issues the initgroups(3) call > to install these supplemental groups, which are inherited by all > processes forked from the login shell. > The problem is comes when you change user ids; for example what I > saw with Zope (start -u nobody) was: > > before change after change > ============= ============ > user id root nobody > group id root nobody > sup id(s) root root Would you mind describing how you determine this? -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From lehmann@catworkx.de Tue Sep 5 09:53:33 2000 From: lehmann@catworkx.de (Holger Lehmann) Date: Tue, 5 Sep 2000 10:53:33 +0200 Subject: [Zope] Java applet with inner classes causing probs in Zope In-Reply-To: References: Message-ID: <00090510535302.00553@cat-pc-holle> Am Die, 05 Sep 2000 schrieben Sie: > Hello all, > > The problem is that inner classes have names like "Parent$Inner.class" > I'm unable to create a Zope file object with a name that includes the dollar > sign. However, the applet won't function without it. > > Has any one overcome this? What about putting it all in a jar-file ? - Holle > > Yes, the applet functions properly when served from apache (but I need to > serve it from Zope). > > Please respond directly to me and mailing list as I am not currently on the > mailing list. > > Thanks, > > Eric. > > > _______________________________________________ > 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 ) -- ----------------------------------- catWorkX GmbH Hamburg Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 40 890 646-0 Fax: +49 40 890 646-66 mailto:lehmann@catworkx.de http://www.catworkx.de http://www.catbridge.de From steve@cat-box.net Tue Sep 5 11:32:28 2000 From: steve@cat-box.net (Steve Alexander) Date: Tue, 05 Sep 2000 11:32:28 +0100 Subject: [Zope] Could someone explain this DateTime behaviour to me? References: <001401c0170b$2f6919b0$33de1081@ita.chalmers.se> Message-ID: <39B4CBBC.6000707@cat-box.net> Dario Lopez-KXsten wrote: > AS in is this the expected/intended behaviour or could this be classified as > a bug? > > > --- > > bobobase_modification_time > 2000/09/02 08:49:48.326 GMT+2 > > bobobase_modification_time().toZone('GMT+2') > 2000/09/02 12:49:48.326 GMT+2 > > bobobase_modification_time fmt="%Y-%m-%d %H:%M" > 2000-09-02 12:49 > > --- What version of Zope are you using? Various timezone bugs in DateTime.py were fixed in the latest version of Zope. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net From nick@videosystem.co.uk Tue Sep 5 11:29:43 2000 From: nick@videosystem.co.uk (Nick Trout) Date: Tue, 5 Sep 2000 11:29:43 +0100 Subject: [Zope] ZODB efficiency Message-ID: <011401c01724$34c2b150$67c8c8c8@nick> This is a multi-part message in MIME format. ------=_NextPart_000_0111_01C0172C.967FED60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is using ZODB efficient? Is it better to use ZODB than an external = database? What are the benefits of using it? CHeers, Nick ------=_NextPart_000_0111_01C0172C.967FED60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Is using ZODB efficient? Is it better = to use ZODB=20 than an external database? What are the benefits of using = it?
 
CHeers,
Nick
------=_NextPart_000_0111_01C0172C.967FED60-- From nick@videosystem.co.uk Tue Sep 5 11:34:44 2000 From: nick@videosystem.co.uk (Nick Trout) Date: Tue, 5 Sep 2000 11:34:44 +0100 Subject: [Zope] DTML horror Message-ID: <012101c01724$e7effc60$67c8c8c8@nick> This is a multi-part message in MIME format. ------=_NextPart_000_011E_01C0172D.49A60C80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable DTML is pretty horrible. Does anyone have any solutions to allow DTML = methods to be generated using a more Pythonesque interface? It seems to = me that DTML is a bit of a shoddy half way house between HTML and = Python. Cheers, Nick. ------=_NextPart_000_011E_01C0172D.49A60C80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
DTML is pretty horrible. Does anyone = have any=20 solutions to allow DTML methods to be generated using a more = Pythonesque=20 interface? It seems to me that DTML is a bit of a shoddy half way house = between=20 HTML and Python.
 
Cheers,
Nick.
 
 
------=_NextPart_000_011E_01C0172D.49A60C80-- From rik.hoekstra@inghist.nl Tue Sep 5 11:51:35 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Tue, 05 Sep 2000 12:51:35 +0200 Subject: [Zope] DTML horror References: <012101c01724$e7effc60$67c8c8c8@nick> Message-ID: <39B4D037.99B5C0E9@inghist.nl> > Nick Trout wrote: > > DTML is pretty horrible. Does anyone have any solutions to allow DTML > methods to be generated using a more Pythonesque interface? It seems > to me that DTML is a bit of a shoddy half way house between HTML and > Python. Use Python Methods (http://www.zope.org/Members/4am/PythonMethod) or External Methods (available in all Zope installations RTFM). They will probably not completely replace DTML though. hth Rik From chrisw@nipltd.com Tue Sep 5 11:55:26 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 11:55:26 +0100 Subject: [Zope] DTML horror References: <012101c01724$e7effc60$67c8c8c8@nick> Message-ID: <39B4D11E.8896742C@nipltd.com> > Nick Trout wrote: > DTML is pretty horrible. Does anyone have any solutions to allow DTML > methods to be generated using a more Pythonesque interface? It seems > to me that DTML is a bit of a shoddy half way house between HTML and > Python. For someone who's posting HTML mail to a non-HTML list, you're a fine one to talk ;-) There are discussion happening in this area on http://dev.zope.org. Look for "Documents and Templates" or something similar. You could also just use lots of PythonMethods... cheers, Chris From chrisw@nipltd.com Tue Sep 5 11:58:59 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 11:58:59 +0100 Subject: [Zope] ZODB efficiency References: <011401c01724$34c2b150$67c8c8c8@nick> Message-ID: <39B4D1F3.60458290@nipltd.com> > Nick Trout wrote: > Is using ZODB efficient? Is it better to use ZODB than an external > database? What are the benefits of using it? There's lots of info on this on www.zope.org. And there's mailing list archives at zope.nipltd.com. And there's probably more info at zdp.zope.org. Maybe you should look there first? Chris From nick@videosystem.co.uk Tue Sep 5 12:09:39 2000 From: nick@videosystem.co.uk (Nick Trout) Date: Tue, 5 Sep 2000 12:09:39 +0100 Subject: [Zope] DTML horror References: <012101c01724$e7effc60$67c8c8c8@nick> <39B4D11E.8896742C@nipltd.com> Message-ID: <018301c01729$c888a430$67c8c8c8@nick> > For someone who's posting HTML mail to a non-HTML list, you're a fine > one to talk ;-) Oooer, *blush* sorry... From Oliver Bleutgen Tue Sep 5 12:25:02 2000 From: Oliver Bleutgen (Oliver Bleutgen) Date: Tue, 5 Sep 2000 13:25:02 +0200 Subject: [Zope] Images slow rendering problem Message-ID: <200009051128.EAA05895@zope.codeit.com> > Hi, > I already posted this message several monthes ago, expecting a new Zope > version would fix the problem, but... > I have some images on my pages (let's say 10 - not a lot), rendered > either by dtml-var or a manual tag. > When I render the page on some of my LAN boxes (especially with IE), > some images doesn't load at the first time. I need to reload the page to > make them appear. When I monkeyly hit the 'F5' key, some images do not > show again. Argl. Anoying.... > The problem is worst ever through Internet. Perhaps not the failure you see, but as you mention IE, there is at least one really annoying bug in IE 4 (all versions except SP2) and IE 5 (except 5.01). This may bite people trying to integrate zope into other webservers using redirects. http://support.microsoft.com/support/kb/articles/Q193/4/89.ASP?LN=EN-US&SD=gn&FR=0 You might want to check what versions of IE you use. A last resort may be to use a sniffer to capture the http traffic for later analysis. Cheers, oliver From tino@wildenhain.de Tue Sep 5 12:37:10 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 05 Sep 2000 13:37:10 +0200 Subject: [Zope] Re: superuser confusion References: Message-ID: <39B4DAE6.61C38B60@wildenhain.de> Hi, Chris McDonough wrote: > > On Tue, 5 Sep 2000, Evan Simpson wrote: > > > > I've got to say I agree with you here. I'm still not 100% sure why the > > > superuser or bootstrap user can't own anything. > > > > It's due to a combination of the trojan horse issue and the sticky > > authentication issue, I think. You really don't want to be authenticated as > > super very often, because while you are, if you visit a page someone else > > wrote, they can make your browser do evil things to your site. This is also > > true of Managers, but less so. Similarly, a page owned by non-super has > > tighter permissions than one owned by the super would. > > Yes... the PDG security chapter has all of this in it, but it would seem > that neither Chris W or I are completely satisfied by these answers. :-) > It seems a matter of diminishing returns, especially when newbies hit the > wall during install, since we haven't provided them with an airbag yet. Uhm. In the changes.txt there is mentioned that something had to be changed for tighter security. "The superuser can not own" is the same thing like not working with root privilegues on any unix system or log in as such. May be one should write it in

all over the page where the download of zope is ;-) That may be the confusing part: one has to read while working with mostly text based applications ;-) Ok, the switching of user context is a bit painful with current authentication. One has to close all instances of the browser and reopen to log in as new user. May be the log-out-trick with the forced "unauthorized" response could help. Sometimes it is better to force people to think about security instead of having them complain after a break in about a faulty product. just my 0.02 penny ;-) Regards Tino From akm@mail.theinternet.com.au Tue Sep 5 12:41:25 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Tue, 5 Sep 2000 21:41:25 +1000 Subject: [Zope] Fine, don't fix :P In-Reply-To: <39B4A8AA.90170EA3@nipltd.com>; from Chris Withers on Tue, Sep 05, 2000 at 09:02:50AM +0100 References: <399EA5FB.972E2FA2@nipltd.com> <20000820182600.A9168@zeus.theinternet.com.au> <39B37FDA.1B4FEA17@nipltd.com> <20000904220808.B1642@zeus.theinternet.com.au> <8p0mub$6aj$1@rugger.nodomain.ca> <20000905091103.E1642@zeus.theinternet.com.au> <39B4A8AA.90170EA3@nipltd.com> Message-ID: <20000905214125.H1642@zeus.theinternet.com.au> +-------[ Chris Withers ]---------------------- | Andrew Kenneth Milton wrote: | > Th second part of the problem is that ChrisW(hinger) really wants it, | | "really wants it" might be a little strong... I'm not loosing any | sleep... | | > but, | > doesn't want to do what is necessary to do it. | | Swishdot or fixing DTML... take your pick :P | (TreeTag would still get it first anyway...) Well since I don't use S*dot... :-) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From akm@mail.theinternet.com.au Tue Sep 5 12:53:56 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Tue, 5 Sep 2000 21:53:56 +1000 Subject: [Zope] supplemental group ids (Linux) In-Reply-To: ; from Chris McDonough on Tue, Sep 05, 2000 at 03:09:45AM -0400 References: <8p1tc7$7gk$1@rugger.nodomain.ca> Message-ID: <20000905215356.I1642@zeus.theinternet.com.au> | > I saw this on Linux; supplemental groups come from the BSD tradition, | > so you likely will find the same situation on *BSD, Solaris, etc. Sorry I missed the start of the thread, but, I can weigh in on this point. Using -u user under FreeBSD gives you the Primary Group for the user you have requested. Supplemental groups are available only for that user, not the user you ran Zope as. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From jm@recumbent.co.uk Tue Sep 5 12:38:26 2000 From: jm@recumbent.co.uk (JTC Murphy) Date: Tue, 05 Sep 2000 12:38:26 +0100 Subject: [Zope] DTML horror Message-ID: They may be available in all installations but they aren't necessarily available to all users )-: Have fun, Murph (who is not actually complaining given the price he has to pay for use of a public Zope server) >>> Rik Hoekstra 05/09/00 11:51:35 >>> Use Python Methods (http://www.zope.org/Members/4am/PythonMethod) or External Methods (available in all Zope installations RTFM). They will probably not completely replace DTML though. From dario@ita.chalmers.se Tue Sep 5 13:11:47 2000 From: dario@ita.chalmers.se (Dario Lopez-Kästen) Date: Tue, 5 Sep 2000 14:11:47 +0200 Subject: [Zope] Could someone explain this DateTime behaviour to me? References: <001401c0170b$2f6919b0$33de1081@ita.chalmers.se> <39B4CBBC.6000707@cat-box.net> Message-ID: <008201c01732$77479f00$33de1081@ita.chalmers.se> > What version of Zope are you using? > > Various timezone bugs in DateTime.py were fixed in the latest version of > Zope. Zope 2.2.1 source release /dario From brianw@hilgraeve.com Tue Sep 5 14:11:02 2000 From: brianw@hilgraeve.com (Brian Withun) Date: Tue, 5 Sep 2000 09:11:02 -0400 Subject: [Zope] Renderable Base Class ??? Message-ID: <000101c0173a$bdc4fec0$ecdb5bcf@mikew> I'd read some discussion dating back to last year about a the concept of a Renderable Base ZClass; something that would allow a ZClass to be called like Have there been any developments along this line, or any plans to incorporate the idea into Zope? I find myself in need of this functionality. Also, I did notice a product on Zope.org which claims to be a renderable base class, but it's a tgz and doesn't seem to uncompress for me on WinNT using WinZip7. Does anybody have a copy of this (working) that they might export and send? (It's a very small TGZ product and hopefully a very small zexp) ------------ Brian Withun From chrisw@nipltd.com Tue Sep 5 14:20:36 2000 From: chrisw@nipltd.com (Chris Withers) Date: Tue, 05 Sep 2000 14:20:36 +0100 Subject: [Zope] Renderable Base Class ??? References: <000101c0173a$bdc4fec0$ecdb5bcf@mikew> Message-ID: <39B4F324.DE4DF41@nipltd.com> Brian Withun wrote: > Have there been any developments along this line, or any plans to > incorporate the idea into Zope? I find myself in need of this > functionality. Checkout ZRenderable or ZCallable (which is in the PTK CVS) cheers, Chris From tino@wildenhain.de Tue Sep 5 14:29:33 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Tue, 05 Sep 2000 15:29:33 +0200 Subject: [Zope] Underscore Caracter References: Message-ID: <39B4F53D.11C3F4C1@wildenhain.de> Hi Chris, Chris McDonough wrote: > > Hi Marcus, > > This is untested. > > Turn "asd asd" into "asd_asd" and output: > > > > Turn "asd_asd" into "asd asd" and output: > > > I've seen this on plenty lines of digicools code and wondered about if this is more efficient then using just string.replace() ? I would say string.replace() should be a bit faster. Regards Tino From stephennosal@e3mil.com Tue Sep 5 15:21:21 2000 From: stephennosal@e3mil.com (Stephen Nosal) Date: 5 Sep 2000 07:21:21 -0700 Subject: [Zope] problems installing PoPy-1.3.4 (fwd) Message-ID: <20000905142121.28633.cpmta@c017.sfo.cp.net> There was a patch to the source that fixed this in 1.3.3, but it looks like the same problem is cropping up. I would contact federico (fog@mixadlive.com) and see what he's got to say...he really helped out with my 1.3.x problems. - Steve On Fri, 01 September 2000, Sebastien Billard wrote: > > > I'm on a suse 6.4 system, with postgresql installed. I've got the latest > zope installed from tarball.. and I get this problem trying to install > PoPy > > ./autogen.sh --with-postgres-libraries=/usr/lib/pgsql/lib > --with-postgres-includes=/usr/lib/pgsql/include > loading cache ./config.cache > checking for python... /usr/bin/python > checking python version... 1.5 > checking python installation prefix... /usr > checking python installation exec_prefix... /usr > checking definitions in Python library makefile... done > checking location of python > library... $(prefix)/lib/python1.5/site-packages > checking location of python shared > modules... $(exec_prefix)/lib/python1.5/site-packages > checking for PQconnectStart in -lpq... no > configure: error: can't build without PostgreSQL libraries > > Now type 'make' to compile PoPy python module. > > > > > _______________________________________________ > 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 ) __________________________________________________________________ Get your Private, Anti-Spam, Free Email at http://e3mil.com and Step into a Friendly Universe! From bill@carbonecho.com Tue Sep 5 15:23:19 2000 From: bill@carbonecho.com (Bill Welch) Date: Tue, 5 Sep 2000 14:23:19 +0000 (GMT) Subject: [Zope] Ad banners in Zope anyone ? In-Reply-To: <004101c0151f$51834220$c3090740@megapathdsl.net> Message-ID: Check out the How-To athttp://www.zope.org/Members/Mamey/PHP. Doesn't handle redirection, authorization, or cookie passing, but it's a start. If you need the above mentioned features, I'll be posting my update by the end of the week. Bill. On Sat, 2 Sep 2000, Jason Cunliffe wrote: > - Can one run PHP from inside of Zserver/ZODB easily? > - How would to do that? > - Is anyone using Zope for Ad Banner services?? > - What would would make it a good or bad choice? From zope@philosoft.at Tue Sep 5 16:23:45 2000 From: zope@philosoft.at (Philipp Auersperg) Date: Tue, 05 Sep 2000 17:23:45 +0200 Subject: [Zope] Renderable Base Class ??? In-Reply-To: <000101c0173a$bdc4fec0$ecdb5bcf@mikew> References: <000101c0173a$bdc4fec0$ecdb5bcf@mikew> Message-ID: <200009051723450046.3BD98F65@192.7.2.223> uncompresses fine, even with winzip7. perhaps a transfer error. version 0.2 is 617 bytes long, check that and download again phil *********** REPLY SEPARATOR *********** On 05.09.2000 at 09:11 Brian Withun wrote: >I'd read some discussion dating back to last year about a the concept of a >Renderable Base ZClass; something that would allow a ZClass to be called >like > >Have there been any developments along this line, or any plans to >incorporate the idea into Zope? I find myself in need of this >functionality. > >Also, I did notice a product on Zope.org which claims to be a renderable >base class, but it's a tgz and doesn't seem to uncompress for me on WinNT >using WinZip7. Does anybody have a copy of this (working) that they might >export and send? (It's a very small TGZ product and hopefully a very small >zexp) > >------------ >Brian Withun > > >_______________________________________________ >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 kthangavelu@earthlink.net Tue Sep 5 11:06:02 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Tue, 05 Sep 2000 03:06:02 -0700 Subject: [Zope] Renderable Base Class ??? References: <000101c0173a$bdc4fec0$ecdb5bcf@mikew> Message-ID: <39B4C58A.5B6188B4@earthlink.net> Brian Withun wrote: > > I'd read some discussion dating back to last year about a the concept of a > Renderable Base ZClass; something that would allow a ZClass to be called > like > > Have there been any developments along this line, or any plans to > incorporate the idea into Zope? I find myself in need of this > functionality. > > Also, I did notice a product on Zope.org which claims to be a renderable > base class, but it's a tgz and doesn't seem to uncompress for me on WinNT > using WinZip7. Does anybody have a copy of this (working) that they might > export and send? (It's a very small TGZ product and hopefully a very small > zexp) its is pretty small, it just implements the __call__ python semantics. winzip should be able to unzip a tgz file, generally i've noticed IE and netscape? tend to rename tgz files to tar on downloading (at least on win95), if you rename the file to have a tgz extension winzip should handle it fine. Kapil From shane@digicool.com Tue Sep 5 16:21:46 2000 From: shane@digicool.com (Shane Hathaway) Date: Tue, 05 Sep 2000 11:21:46 -0400 Subject: [Zope] For the Zope community Message-ID: <39B50F8A.1B24C11F@digicool.com> Zopistas, It has been very rewarding to work with DC and the Zope community. I have learned a lot about software and community spirit. I have never had the opportunity to work with a more enthusiastic and dedicated group of developers. So at this time I'm releasing two new products designed to help Zope users to get their job done more easily. http://www.zope.org/Members/hathawsh/ZDebug/index_html ZDebug is a set of patches to Zope that help in the deciphering of DTML errors and authorization exceptions. Because this is the first release, remember to make a backup before installing. http://www.zope.org/Members/hathawsh/tcpwatch/index_html TCPWatch is a simple Python script that lets you monitor a TCP connection. It does *not* depend on Zope, but it can be especially useful when writing Zope apps for WAP devices because the WAP devices will not display Zope exceptions while TCPWatch will. It's also useful for debugging any TCP/IP-based protocol implementation. Keep up the awesome work! Shane From bkc@murkworks.com Tue Sep 5 16:46:32 2000 From: bkc@murkworks.com (Brad Clements) Date: Tue, 5 Sep 2000 11:46:32 -0400 Subject: [Zope] That :method thingy.. where's it documented? Message-ID: <39B4DD0F.16348.4173A9F9@localhost> I've searched through all the how-toos and documentation on the zope site, but I can't find any reference to :method types.. I know they exist, but searching for "method type" returns too many hits. Can someone remind me where to find this documented? Thanks Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From chrism@digicool.com Tue Sep 5 16:51:02 2000 From: chrism@digicool.com (Chris McDonough) Date: Tue, 5 Sep 2000 11:51:02 -0400 Subject: [Zope] Folder and SQL security Message-ID: <613145F79272D211914B0020AFF640199E6D4F@gandalf.digicool.com> George, Hi... please continue to respond to the list... Did you clear the acquire permissions settings checkbox for all the permissions in the "wholesale" folder? Does it make any difference? How are you testing this? Are you sure that you aren't logged in as "george" when you visit the wholesale folder? (e.g. are you stopping and restarting the browser to test this?) > I am about one quarter through '6-1-Security.stx'. I printed > all 41 pages. I > also printed the security chapter form the ZB so I am trying > to learn. It's > just that at the moment I need a quick fix. Here is my case in detail: > > My site is located in the folder 'okstudio'. The 'root' > folder also contains > a user folder and me as the only user. I am the manager of > the site(and the > superuser). Several subfolders under folder 'okstudio' > contain files that > can be accessed by anyone. All subfolders except for one have the same > security settings - 'view and access contents'. I also have > an sql method > that I use with and to embed data from my database > in to HTML. > The security settings of that method are - 'view, access contents > information and use database methods'. > There is one subfolder called 'wholesale' that should have restricted > access. No viewing without authorisation. That folder will > contain info for > customers only that should not be seen by anyone else. I > created a user > subfolder in that folder where I listed myself as a > 'manager'. I also took > every permission from 'anonymous' so theoretically > 'anonymous' should not be > able to view the content of that folder. I also created > 'index_html' DTML > document and took all the permissions from anonymous there. I > am still how > ever able to view the index_html as anonymous without any > authorisation. > My question is: Is there a way how to make sure that no one > unauthorised > gets to see any of the contents of 'wholesale' folder??? > > Regards, > > George > > > > -----Original Message----- > > From: Chris McDonough [mailto:chrism@digicool.com] > > Sent: Tuesday, 5 September 2000 10:08 > > To: George Osvald > > Cc: zope@zope.org > > Subject: RE: [Zope] Folder and SQL security > > > > > > On Tue, 5 Sep 2000, George Osvald wrote: > > > > > My sql works now and security is satisfactory so thank you. The > > only thing > > > that remains in question is that one subfolder. I created > a user folder > > > inside, set all the security and it does not do what I > want. I want to > > > restrict any access including viewing for nobody. Only > > authorised customers > > > would be able to view the page. After turning off all the > > security options > > > though I am still able to view the pages as nobody. How do I > > prevent that? > > > > Do you have "acquire permissions" set on all the permissions of the > > folder? Have you tried turning it off? > > > > This may be a wild goose chase because I'm sort of guessing at your > > problem. Your message has generalizations like "that one > subfolder" > > (what subfolder? what are its settings?), "set all the security" > > (how?), "does not do what I want" (what do you want? exactly how > > does it fail, can you give a concrete example?) and "the page" (what > > page?). It'd be helpful to define these, because as much > as I try, I > > can't read minds. :-) > > > > HTH, > > > > C > > > > > > > > > > George wrote: > > > > > > > > > > Security in ZOPE is very puzzling. If I have certain rules > > set for the > > > > > root folder, can I set something different for the > sub folders? > > > > > > > > Sure... for general security information see both > > > > http://www.zope.org/Members/michel/ZB (the Zope book > security chapter, > > > > mostly finished) and http://www.zope.org/Members/mcdonc/PDG (security > > > chapter mostly finished). > > > > > > > Any > > > > changes seem to have no effect at all. > > > > > > can you be more specific? > > > > > > > I am especially wandering about > > > > setting for anonymous user. I'd like to give them only 'viewing' > > > > privilege but that does not work. > > > > > > How doesn't it work? > > > > > > > The site is not functional at all and > > > > asks for the password even for the viewing. Then I enable > 'access the > > > > content' and the site works as long as I do not try to use sql. > > > > > > Yes, "access contents information" is equivalent to allowing > the user to > > > list the objects in an object manager. It's given to anonymous by > > > default most of the time, and is probably required for most > operations. > > > > > > > When I > > > > how ever enable 'use sql methods' permission they can access my > > > > database, delete and add entries to it. > > > > > > This should have nothing to do with 'access contents information'. > > > There should be permissions available to restrict the use of sql > > > methods. Have you seen them? > > > > > > > What do I have to do to allow > > > > anonymous viewers to just view the site > > > > > > Give them "view" and "access contents information" permissions. > > > Depending on the products you've got installed and the operations you > > > want the users to be able to carry out, you may need to give > them other > > > permissions. > > > > > > > (keep in mind that I am using a > > > > couple of zsql methods for embedding of data in my html) I > also want to > > > > have one of the sub folders not accessible to any one but me. > > > > Can you help anyone? > > > > > > Chris McDonough > Digital Creations, Publishers of Zope > http://www.zope.org > > From rik.hoekstra@inghist.nl Tue Sep 5 16:50:49 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Tue, 05 Sep 2000 17:50:49 +0200 Subject: [Zope] That :method thingy.. where's it documented? References: <39B4DD0F.16348.4173A9F9@localhost> Message-ID: <39B51659.3AE4FF82@inghist.nl> Brad Clements wrote: > > I've searched through all the how-toos and documentation on the zope > site, but I can't find any reference to :method types.. I know they exist, > but searching for "method type" returns too many hits. > > Can someone remind me where to find this documented? Thanks http://www.zope.org/Members/Zen/howto/FormVariableTypes From bkc@murkworks.com Tue Sep 5 17:54:56 2000 From: bkc@murkworks.com (Brad Clements) Date: Tue, 5 Sep 2000 12:54:56 -0400 Subject: [Zope] That :method thingy.. where's it documented? In-Reply-To: <39B51659.3AE4FF82@inghist.nl> Message-ID: <39B4ED17.24666.41B24A7A@localhost> Thanks but that's not really what I'm looking for. I thought there was a type ":method" that could be used as a way to call a method.. Perhaps I'm just going crazy. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From evan@4-am.com Tue Sep 5 19:39:03 2000 From: evan@4-am.com (Evan Simpson) Date: Tue, 5 Sep 2000 14:39:03 -0400 Subject: [Zope] That :method thingy.. where's it documented? References: <39B4ED17.24666.41B24A7A@localhost> Message-ID: <00df01c01768$90ce2300$3e48a4d8@digicool.com> From: Brad Clements > Thanks but that's not really what I'm looking for. > > I thought there was a type ":method" that could be used as a way to > call a method.. > > Perhaps I'm just going crazy. No, you're right, and the page Rik referenced really should be updated to include it. If "foo:method" is included in a form (usually by making it the name of a submit button, or an option in a pick list) then "foo" is effectively added to the end of the URL path. There is also ":default_method", the value of which is used if no ":method" is specified. So:
...will invoke "act/m1" or "act/m2" depending on whether you push button "1" or "2", or "act/def" if you push the enter key (thereby submitting the form without pressing either button). Cheers, Evan @ digicool & 4-am From mindlace@digicool.com Tue Sep 5 19:36:16 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 05 Sep 2000 14:36:16 -0400 Subject: [Zope] super cannot do References: Message-ID: <39B53D20.ACAE06E8@digicool.com> Chris McDonough wrote: > > On Tue, 5 Sep 2000, Evan Simpson wrote: > > > > I've got to say I agree with you here. I'm still not 100% sure why the > > > superuser or bootstrap user can't own anything. > > > > It's due to a combination of the trojan horse issue and the sticky > > authentication issue, I think. You really don't want to be authenticated as > > super very often, because while you are, if you visit a page someone else > > wrote, they can make your browser do evil things to your site. This is also > > true of Managers, but less so. Similarly, a page owned by non-super has > > tighter permissions than one owned by the super would. > > Yes... the PDG security chapter has all of this in it, but it would seem > that neither Chris W or I are completely satisfied by these answers. :-) > It seems a matter of diminishing returns, especially when newbies hit the > wall during install, since we haven't provided them with an airbag yet. I think this is exlusively because as of 2.2.1 objects execute according to their ownership, not according to the permissions of the AUTHENTICATED_USER. Because of the widespread security implications of letting an object that can be called by anyone have superuser permissions (which was not possible under the prior regime), superuser can no longer own. You can still get superuser-esque behavior by doing something in external methods or some other mechanism that bypasses the security machinery. -- ethan mindlace fremen Zopatista Community Liason Abnegate I! From mindlace@digicool.com Tue Sep 5 19:41:03 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 05 Sep 2000 14:41:03 -0400 Subject: [Zope] illegal id chars? References: <20000902060923.2139.qmail@web4605.mail.yahoo.com> Message-ID: <39B53E3F.5F1300C4@digicool.com> Jason Byron wrote: > > Why is it that objects can't be created because the id > chosen contains characters that aren't proper in urls? > Spaces are allowed and converted to their hex values > when you create an object. Why not do this with every > illegal url character? As far as I personally know, illegal characters for id's are regulated by what limits python sets on things, with the caveat that . is legal even though you can't use a . in a pythonic context. Whether it's "legalized" for URLS is totally dependant on url_quote. -- ethan mindlace fremen Zopatista Community Liason Abnegate I! From mindlace@digicool.com Tue Sep 5 19:44:48 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 05 Sep 2000 14:44:48 -0400 Subject: [Zope] binary math & filesize References: <004e01c01644$0b19c7c0$2135b5d4@ita.chalmers.se> <39B331E0.ACB95D50@earthlink.net> Message-ID: <39B53F20.5FFE9AF5@digicool.com> Kapil Thangavelu wrote: > http://www.zope.org/Members/ZQR > > get size in kbs assuming its an int > > pedantically yours, -- ethan mindlace fremen Zopatista Community Liason Abnegate I! From kbr@pangea.ca Tue Sep 5 19:35:06 2000 From: kbr@pangea.ca (Kip Rugger) Date: 5 Sep 2000 13:35:06 -0500 Subject: [Zope] supplemental group ids (Linux) References: <8p1tc7$7gk$1@rugger.nodomain.ca> <20000905215356.I1642@zeus.theinternet.com.au> Message-ID: <8p3ecq$5j$1@rugger.nodomain.ca> Andrew Kenneth Milton wrote: > >| > I saw this on Linux; supplemental groups come from the BSD tradition, >| > so you likely will find the same situation on *BSD, Solaris, etc. > >Sorry I missed the start of the thread, but, I can weigh in on this point. > >Using -u user under FreeBSD gives you the Primary Group for the user you >have requested. Supplemental groups are available only for that user, not >the user you ran Zope as. Interesting. NetBSD has the Linux behaviour. The Apache CGI wrapper does setgid and initgroups, in that order. From kbr@pangea.ca Tue Sep 5 18:00:17 2000 From: kbr@pangea.ca (Kip Rugger) Date: 5 Sep 2000 12:00:17 -0500 Subject: [Zope] supplemental group ids (Linux) References: <8p10qt$6r2$1@rugger.nodomain.ca> <8p1tc7$7gk$1@rugger.nodomain.ca> <39B4AF86.7F8FA992@libc.org> Message-ID: <8p38r1$ic$1@rugger.nodomain.ca> Bill Anderson wrote: >Kip Rugger wrote: >> >> Chris McDonough wrote: >> >Aplogies for the ignorance, but can you maybe explain the concept >> >of supplemental group ids and give an example of how the current unpatched >> >behavior could be subverted? >> >> I can try... >> >> Supplemental gids are useful for allowing a user to belong to more >> than one group, or maybe to more than one project in normal parlance. >> This is normally effected by listing the uid opposite more than one >> group in /etc/group. The login process issues the initgroups(3) call >> to install these supplemental groups, which are inherited by all >> processes forked from the login shell. >> The problem is comes when you change user ids; for example what I >> saw with Zope (start -u nobody) was: >> >> before change after change >> ============= ============ >> user id root nobody >> group id root nobody >> sup id(s) root root > > >Would you mind describing how you determine this? [/proc] $ cat /proc/90/status Name: junkbuster State: S (sleeping) Pid: 90 PPid: 1 Uid: 101 101 101 101 Gid: 101 101 101 101 Groups: 101 <------------------------------ supplemental groups VmSize: 1348 kB VmLck: 0 kB VmRSS: 436 kB VmData: 192 kB VmStk: 84 kB VmExe: 92 kB VmLib: 952 kB SigPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000080011006 SigCgt: 0000000000000000 CapInh: 00000000fffffeff CapPrm: 0000000000000000 CapEff: 0000000000000000 On my machine 101 is uid and gid for nobody; as you can see junkbuster is correctly sandboxed. For unmodified Zope, you'll see a zero in the indicated line (or possibly several values if root belongs to several groups like `wheel' on your system). From stuartafoster@home.com Tue Sep 5 20:04:24 2000 From: stuartafoster@home.com (Stuart Foster) Date: Tue, 5 Sep 2000 12:04:24 -0700 Subject: [Zope] Getting the Date from Zope Message-ID: I know I've seen many posts about this, I just can't find one. I need to put the current date into an input's value when a form is loaded. Is there a way to do this with DTML. TIA Stuart From lda@rice.edu Tue Sep 5 20:00:50 2000 From: lda@rice.edu (Larry Albert) Date: Tue, 05 Sep 2000 14:00:50 -0500 Subject: [Zope] EVENT: First Houston Zope Users Group Meeting Message-ID: <0G0F00BYWH100L@mta5.rcsntx.swbell.net> An informal Houston Zope Users Group is holding a first meeting this Wednesday evening, September 6, at 6:30 at the Koch Building in Greenway Plaza, Houston. Topics will be Zope and Zope-related Python. Because access to the Koch Building is limited, we will meet promptly at 6:30 in front of the Quizno's (deli) at 3837 Richmond, near Weslayan. At 6:40, we will go into the Koch building accompanied by George Runyan. If you are able to join us, please be there on time or you will miss us -- there is no way for visitors to get into the building if you are unescorted. For further information, please email George Runyan at grunyan@emerging.com From dario@ita.chalmers.se Tue Sep 5 20:09:06 2000 From: dario@ita.chalmers.se (Dario Lopez-Kästen) Date: Tue, 5 Sep 2000 21:09:06 +0200 Subject: [Zope] binary math & filesize References: <004e01c01644$0b19c7c0$2135b5d4@ita.chalmers.se> <39B331E0.ACB95D50@earthlink.net> <39B53F20.5FFE9AF5@digicool.com> Message-ID: <000801c0176c$c3d29ac0$2135b5d4@ita.chalmers.se> > Kapil Thangavelu wrote: > > > http://www.zope.org/Members/ZQR > > > > get size in kbs assuming its an int > > > > > > > > pedantically yours, > -- > ethan mindlace fremen > Zopatista Community Liason > Abnegate I! actually it turns out to be get_size and getSize do not work for files (for reasons unknown to me; I am a Zope newbie :-). haven't tried for any other objects. Anybody knows more about the DateTime issues I posted about earlier? /dario - -------------------------------------------------------------------- Dario Lopez-Kästen Systems Developer Chalmers Univ. of Technology dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services From andres@corrada.com Tue Sep 5 20:16:48 2000 From: andres@corrada.com (andres@corrada.com) Date: Tue, 5 Sep 2000 15:16:48 -0400 Subject: [Zope] ANN: Serving PHP/Perl from Zope update Message-ID: <20000905151647.A8300@corrada.com> Hello Zopistas, I have updated the HOW-TO: Serve PHP/Perl within Zope with a nifty alternative by Joseph Wayne Norton. His suggestion allows PHP to call Zope methods. Check it out at www.zope.org/Members/Mamey/PHP. The methods presented in the HOW-TO still have some deficiencies with regards to Authorization and Cookies so suggestions and improvements are very much welcome. ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com ------------------------------------------------------ From brianw@hilgraeve.com Tue Sep 5 21:00:24 2000 From: brianw@hilgraeve.com (Brian Withun) Date: Tue, 5 Sep 2000 16:00:24 -0400 Subject: [Zope] Not able to render a base class... Message-ID: <000001c01773$eda7d110$ecdb5bcf@mikew> ===== :PREFACE: ===== I have placed the __init.py__ and Renderable.py into .\lib\python\Products\Renderable and have restarted Zope (necessary? ..I'm too used to windows ;-) I made a trivial little Folderish ZClass and am trying to get it to render itself... I've defined a 'view' tab that represents the ZClass, and it works as expected, with 'View' being bound to an 'index_html' method of my folderish ZClass. I've added one of these ZClasses to a development folder. The development folder also contains a dtml document named 'index_html' as follows:

This is the Document.

'test' is my product 'testclass' is my ZClass (in the product 'test') 'trial' is my development folder 'one' is the ZClass instance in the 'trial' folder 'Tropical' is an image id in the ZClass ===== :PROBLEM: ===== Why does 'trial/index_html' render this:

index_html

This is the index_html Document.

..and how do I turn '' into a rendering of the ZClass instance ? ------------ Brian Withun From mindlace@digicool.com Tue Sep 5 21:01:54 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 05 Sep 2000 16:01:54 -0400 Subject: [Zope] Getting the Date from Zope References: Message-ID: <39B55132.50A3EC58@digicool.com> Stuart Foster wrote: > > I know I've seen many posts about this, I just can't find one. > > I need to put the current date into an input's value when a form is loaded. > Is there a way to do this with DTML. "> See DateTime.py or the Zope Quick Reference for more information on how to manipulate the format. -- ethan mindlace fremen Zopatista Community Liason Abnegate I! From jasonic@nomadicsltd.com Tue Sep 5 21:14:06 2000 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Tue, 5 Sep 2000 16:14:06 -0400 Subject: [Zope] How to make and populate properties remotely..? 4 questions of the apocalypse.. Message-ID: <010301c01775$d82834e0$c3090740@megapathdsl.net> Hello Hoping some kind enlightened zopistas can point me to existing examples or show me how the syntax works for this: 1. I need to write a simple general method which will allow me to create a property in the parent folder. for example: 'createParentProperty()' DTMLmethod ----------------------------------------------------------- ------------------------------------------------------------- 2. Then I need to extend my 'createParentProperty()' method so I can call it from an URL, http POST or GET. I want to pass or fetch the parent folder's property 'Id' name. for example: http://www.zopesite.net/TOP/SUB/PROJECTA/createParentProperty?=id+statistics &type=tokens will create a property Id = 'statistics' in PROJECTA folder of my site whose type = 'tokens' but if it exists already it will return a '1' How to do this? 3. Then I need to do the same thing but this time setting or getting the property's 'Value' field via http POST or GET. for example: http://www.zopesite.net/TOP/SUB/PROJECTA/createParentProperty?=id+statistics &value+2000september will create a new property id = 'statistics', type = 'tokens', value =' 2000september' but if 'statistics' already exists, the method will just change the value 4. Finally some properties we need to 'lock' so they cannot be overwritten by the above methods. However I do need to check remotely over http if this is so. For example: http://www.zopesite.net/TOP/SUB/PROJECTA/createParentProperty?=id+admin&valu e+2000September will return an integer '2' or string such as : 'locked' or "property id = 'admin' is locked" where: 0 = does not exist 1 = exists 3 = locked How to do this? ...ideally there there should be a separete method we can call to lock or unlock a property for admin use over http Thanks for any help..deadlines loom.. - Jason ________________________________________________________________ Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director From brocken22@gmx.de Tue Sep 5 21:51:12 2000 From: brocken22@gmx.de (Sven Hohage) Date: Tue, 5 Sep 2000 22:51:12 +0200 Subject: [Zope] External method and stdout Message-ID: <001001c0177b$0742abc0$3d28cac3@zopasta> This is a multi-part message in MIME format. ------=_NextPart_000_000D_01C0178B.CA346BE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hallo, that's the problem: I've made an external method which is working with lists and should = return the result to Zope. The python code is working very well, but is = sending everything to sys.stdout( I'm using the print-statement).How do = I convince Zope to print the result on the html-page. Thanks. ------=_NextPart_000_000D_01C0178B.CA346BE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hallo,
that's the problem:
I've made an external method which is = working with=20 lists and should return the result to Zope. The python code is working = very=20 well, but is sending everything to sys.stdout( I'm using the=20 print-statement).How do I convince  Zope to print the result on the = html-page.
   = Thanks.
------=_NextPart_000_000D_01C0178B.CA346BE0-- From dieter@handshake.de Tue Sep 5 21:44:40 2000 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 5 Sep 2000 22:44:40 +0200 (CEST) Subject: [Zope] ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header) In-Reply-To: <003d01c016b8$f135c3c0$0301a8c0@tim> References: <14771.60076.951714.881856@lindm.dm> <003d01c016b8$f135c3c0$0301a8c0@tim> Message-ID: <14773.18322.270790.542419@lindm.dm> Tim Hicks writes: > OK, I think that I am perhaps misusing zclasses then. Here is what I > have. No you did not. > I have a Folder that was created by using the 'Add new item' menu > within Zope. This folder is called 'Site'. > > I have a Zclass called 'theatre_class' that has "Base classes ZObject, > _ZClass_for_CatalogAware, _ZClass_for_DTMLDocument".... > > Within the Folder 'Site', I have standard_html_header dtml-method ... > However, if I try to put into the standard_html_header, > I get nothing... I analysed your problem (in Zope 2.1.6). It is *NOT* a problem of "standard_html_header". Instead, it is a ZCLass problem. The id of a ZInstance created as you described it returns "". The browser shows this as "empty" because it is a tag it does not understand and therefore ignores. You see it, though, when you look at the HTML source. The reason for this strange id lies in a mismatch between your ZClass, more precisely its __init__ method, and the content of REQUEST: For some reason, your ZClass uses "DocumentTemplate.DT_String.__init__" as constructor. "DocumentTemplate.DT_String" defines a "id" function and lets it return the value of the "__init__" parameter "__name__". The default for "__name__" is, you guess it, "''". "ZClass.createInObjectManager" constructs the ZInstance. If the instance has a 'id', it takes this id and ignores the 'id' passed as parameter. Thus, you get a ZInstance with this strange id. I am convinced, this is a ZClass bug. I think, that the bug results from the fact, that the constructor for a ZCLass deriving from DTML Document used "__name__" as "id" replacement. The analysis provides a workaround for you. In your ZClass constructor, add before the .createInObjectManager(REQUEST['id'],REQUEST)"> Now, after I did some work for you, I have some tasks for you: * check, whether the bug is in Zope 2.2.1, too * if this turns out to be the case, file a bug report into the collector. Dieter From andym@ActiveState.com Tue Sep 5 22:13:37 2000 From: andym@ActiveState.com (Andy McKay) Date: Tue, 5 Sep 2000 14:13:37 -0700 Subject: [Zope] Re: [Zope-dev] Folderish objects and multiple inheritance References: <000901c01768$0cb26770$6703a8c0@torch> Message-ID: <007b01c0177e$28539ba0$6703a8c0@torch> Hmmm I can override inheritance in a simple class... I guess theres something in Zope thats annoying this: class A: var = 'A' def test(self): return self.var class B: var = 'B' def test(self): return self.var class C(B, A): var = 'C' def test(self): return A.var c = C() print c.test() OUTPUT>> A ----- Original Message ----- From: "Andy McKay" To: Sent: Tuesday, September 05, 2000 11:35 AM Subject: [Zope-dev] Folderish objects and multiple inheritance > Hi there, > > Ok so I have a class that has multiple inheritance. My main class (A) works > fine, but I wanted to add in folderish properties. The problem is the order > of multiple inheritance and viewing folder objects. When you view a folder > from you call index_html and this gives a content list. > > By inheriting this way: > > class B(A, Folder): > > I have kept all my A methods. However viewing it does not produce the > content list since its overwritten by A. Of course inheriting: > > class B(Folder, A): > > Does work for that, but breaks all my other methods. > > Solutions: > > Well I tried defining a tab - view_folder which was something along the line > of: > > def view_folder(self, client=None, REQUEST={}): > ''' doc string ''' > return Folder(self, client, REQUEST) > > But get an attribute error on manage_tabs. > > Any ideas? > > Thanks. > > -- > Andy McKay, Developer. > ActiveState. > > > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > From kthangavelu@earthlink.net Tue Sep 5 17:10:43 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Tue, 05 Sep 2000 09:10:43 -0700 Subject: [Zope] Not able to render a base class... References: <000001c01773$eda7d110$ecdb5bcf@mikew> Message-ID: <39B51B02.22613455@earthlink.net> Brian Withun wrote: > > ===== :PREFACE: ===== > > I have placed the __init.py__ and Renderable.py into > .\lib\python\Products\Renderable and have restarted Zope (necessary? ..I'm > too used to windows ;-) > > I made a trivial little Folderish ZClass and am trying to get it to render > itself... > > I've defined a 'view' tab that represents the ZClass, and it works as > expected, with 'View' being bound to an 'index_html' method of my folderish > ZClass. > > I've added one of these ZClasses to a development folder. > > The development folder also contains a dtml document named 'index_html' as > follows: > > >

>

> This is the Document. >

> > > > 'test' is my product > 'testclass' is my ZClass (in the product 'test') > 'trial' is my development folder > 'one' is the ZClass instance in the 'trial' folder > 'Tropical' is an image id in the ZClass > > ===== :PROBLEM: ===== > > Why does 'trial/index_html' render this: > > > >

index_html

>

> This is the index_html Document. >

> > > > ..and how do I turn '' into a rendering of > the ZClass instance ? Make sure your zclass inherits from Renderable make a dtml method called render in your zclass adjust render to display the zclass as you wish Kapil From kthangavelu@earthlink.net Tue Sep 5 17:14:22 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Tue, 05 Sep 2000 09:14:22 -0700 Subject: [Zope] External method and stdout References: <001001c0177b$0742abc0$3d28cac3@zopasta> Message-ID: <39B51BDE.B766A90D@earthlink.net> Sven Hohage wrote: > > Part 1.1 Type: Plain Text (text/plain) > Encoding: quoted-printable why are you printing in the external method?? if you want zope to print it to html than you need to return the result of your external method back to zope so it can deliver the result as part of the rendered page. you might also want to check out web python methods From andym@ActiveState.com Tue Sep 5 22:20:12 2000 From: andym@ActiveState.com (Andy McKay) Date: Tue, 5 Sep 2000 14:20:12 -0700 Subject: [Zope] Re: [Zope-dev] Folderish objects and multiple inheritance References: <000901c01768$0cb26770$6703a8c0@torch> <007b01c0177e$28539ba0$6703a8c0@torch> Message-ID: <008a01c0177f$13bbe3e0$6703a8c0@torch> Darn sorry wrong alias. ----- Original Message ----- From: "Andy McKay" To: Sent: Tuesday, September 05, 2000 2:13 PM Subject: [Zope] Re: [Zope-dev] Folderish objects and multiple inheritance > Hmmm I can override inheritance in a simple class... I guess theres > something in Zope thats annoying this: > > class A: > var = 'A' > > def test(self): > return self.var > > class B: > var = 'B' > > def test(self): > return self.var > > class C(B, A): > var = 'C' > > def test(self): > return A.var > > c = C() > print c.test() > > OUTPUT>> A > > ----- Original Message ----- > From: "Andy McKay" > To: > Sent: Tuesday, September 05, 2000 11:35 AM > Subject: [Zope-dev] Folderish objects and multiple inheritance > > > > Hi there, > > > > Ok so I have a class that has multiple inheritance. My main class (A) > works > > fine, but I wanted to add in folderish properties. The problem is the > order > > of multiple inheritance and viewing folder objects. When you view a folder > > from you call index_html and this gives a content list. > > > > By inheriting this way: > > > > class B(A, Folder): > > > > I have kept all my A methods. However viewing it does not produce the > > content list since its overwritten by A. Of course inheriting: > > > > class B(Folder, A): > > > > Does work for that, but breaks all my other methods. > > > > Solutions: > > > > Well I tried defining a tab - view_folder which was something along the > line > > of: > > > > def view_folder(self, client=None, REQUEST={}): > > ''' doc string ''' > > return Folder(self, client, REQUEST) > > > > But get an attribute error on manage_tabs. > > > > Any ideas? > > > > Thanks. > > > > -- > > Andy McKay, Developer. > > ActiveState. > > > > > > _______________________________________________ > > Zope-Dev maillist - Zope-Dev@zope.org > > http://lists.zope.org/mailman/listinfo/zope-dev > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope ) > > > > > _______________________________________________ > 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 andreasp@qbcon.com Tue Sep 5 23:09:34 2000 From: andreasp@qbcon.com (Andreas Pauley) Date: Wed, 06 Sep 2000 00:09:34 +0200 Subject: [Zope] External method and stdout References: <001001c0177b$0742abc0$3d28cac3@zopasta> Message-ID: <39B56F1E.4F295D6E@qbcon.com> For some reason you have to "return" everything that should be available to zope. You can return a sequence and loop through it with DTML or you can build a variable with everything you want to display and then return the variable. I have no idea why this is so, and why you can't just the print statement as an equivalent to . There is probably elegant ways of replacing DTML with external methods or Python Methods, I was just unable to find documentation and examples on it until now. Can anyone help with this? Regards, Andreas. > Sven Hohage wrote: > > Hallo, > that's the problem: > I've made an external method which is working with lists and should > return the result to Zope. The python code is working very well, but > is sending everything to sys.stdout( I'm using the > print-statement).How do I convince Zope to print the result on the > html-page. > Thanks. -- In a world without fences, who needs gates? From mindlace@digicool.com Tue Sep 5 23:20:30 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 05 Sep 2000 18:20:30 -0400 Subject: [Zope] wikis down momentarily Message-ID: <39B571AE.42425614@digicool.com> Zopatistas, Wikis will be offline briefly as we ZEO-fy them. Thanks for your patience, -- ethan mindlace fremen Zopatista Community Liason Abnegate I! From mindlace@digicool.com Tue Sep 5 23:45:44 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 05 Sep 2000 18:45:44 -0400 Subject: [Zope] The Ascetic Superuser References: <39B384AA.6B513B3D@nipltd.com> Message-ID: <39B57798.E2AABB66@digicool.com> Chris Withers wrote: > Well, okay, let me rephrase the question: > Why is it bad for the bootstrap user to own anything? > It used to be considered okay before Zope 2.2, so was has been > changed/discovered that makes this now such a bad idea that despite > loads of newbie pain and confusion, it's still worth while/necessary? Objects used to execute according to the permissions of the AUTHENTICATED_USER or the proxy role. "Ownership" only applied (for execution purposes) if you explicitly set the proxy role to "Owner". This was a Very Bad Thing (tm) because once you authenticated as superuser you could view a random HTML page on the web/in your inbox that had a little javascript thingy that went and wiped out your entire site or Now every object excecutes according to the permision of the owner, *not* the viewer. It can also run as a proxy role. The super-bootstrap-user lives outside of "normal" zope authentication & has permission to do anything save that which NotEvenGodShouldDo. Therefore, it shouldn't own objects. This is *quite* important, and needs to stay. I don't know how to emphasize enough that this is a well thought out correction to an extremely deadly class of security problems that still (afaik) plagues many "other" through-the-web management systems. The newbie pain, however, could probably be mitigated- don't call it a Super user, since it hardly deserves the S or the cape. Have a user in the default install. Something like that. Patches accepted. -- ethan mindlace fremen Zopatista Community Liason Abnegate I! From Tim Hicks" <003d01c016b8$f135c3c0$0301a8c0@tim> <14773.18322.270790.542419@lindm.dm> Message-ID: <015601c0178e$644963a0$0301a8c0@tim> ----- Original Message ----- From: "Dieter Maurer" To: "Tim Hicks" Cc: Sent: Tuesday, September 05, 2000 9:44 PM Subject: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header) > Tim Hicks writes: > > OK, I think that I am perhaps misusing zclasses then. Here is what I > > have. > No you did not. > That's a relief. > > I have a Folder that was created by using the 'Add new item' menu > > within Zope. This folder is called 'Site'. > > > > I have a Zclass called 'theatre_class' that has "Base classes ZObject, > > _ZClass_for_CatalogAware, _ZClass_for_DTMLDocument".... > > > > Within the Folder 'Site', I have standard_html_header dtml-method ... > > However, if I try to put into the standard_html_header, > > I get nothing... > > I analysed your problem (in Zope 2.1.6). > It is *NOT* a problem of "standard_html_header". > Instead, it is a ZCLass problem. > OK. > The id of a ZInstance created as > you described it returns "". The browser shows this > as "empty" because it is a tag it does not understand and > therefore ignores. > You see it, though, when you look at the HTML source. > Yup, I'm with you on that. > The reason for this strange id lies in a mismatch between > your ZClass, more precisely its __init__ method, and > the content of REQUEST: > For some reason, your ZClass uses > "DocumentTemplate.DT_String.__init__" as constructor. > "DocumentTemplate.DT_String" defines a "id" function > and lets it return the value of the "__init__" parameter > "__name__". The default for "__name__" is, you guess it, > "''". > You are losing me a bit with the "__init__", "DocumentTemplate.DT_String" and "__name__" (I'm afraid my Python is limited, to say the least!). I do see the results of being the default value though ;-). > "ZClass.createInObjectManager" constructs the ZInstance. > If the instance has a 'id', it takes this id and > ignores the 'id' passed as parameter. > > Thus, you get a ZInstance with this strange id. > I think I'm with you there. > > I am convinced, this is a ZClass bug. > I think, that the bug results from the fact, that > the constructor for a ZCLass deriving from DTML Document > used "__name__" as "id" replacement. > > > The analysis provides a workaround for you. > In your ZClass constructor, add > > before the > .createInObjectManager(REQUEST['id'],REQUEST)"> > Great. I presume that this will only work for all *new* instances of this class however! I don't suppose you know of a way of remaking all 44 instances of this Zclass I have using this adjusted constructor? I have tried (see below), but I think I come up against the same '' problem that I'm actually trying to counteract! Anyway, I guess this is a different problem again really isn't it? I think for now, it will be easier to use my less elegant workaround of giving the zclass another property called 'counter_id' * that is the same as the actual id. I know that this works, and it won't take as long as remaking all the instances again... I don't have the strength for that I don't think. I'll definitely file away your fix for future reference though. Thanks very much. > > > Now, after I did some work for you, I have some tasks for you: > > * check, whether the bug is in Zope 2.2.1, too Yes, it does. I have now found this to occur in 2.1.6, 2.2.0 and 2.2.1. > * if this turns out to be the case, file a bug report into > the collector. > Right, I have done that, hopefully satisfactorily! Hope you don't mind, I used 'extensive' quotes from your reply... no point in using my words to confuse the issue! Thanks very much Dieter, you've been a MASSIVE help. tim > > Dieter > From mindlace@digicool.com Wed Sep 6 00:11:20 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 05 Sep 2000 19:11:20 -0400 Subject: [Zope] newbiz : zope connection References: Message-ID: <39B57D98.C66A7848@digicool.com> Stephan Goeldi wrote: > But if you use ProxyPass like me, there is only the IP address of the Apache > Server in this logfile, so there is only one user in the Z2.log file logged. > You have to check out the Apache logfile, usually /var/log/httpd/access_log > to see the different IP addresses. The logfile-format of Apache is the same > as in Zope. You can also set up apache with server-status which indicates the current requests. See mod_status on the apache page. -- ethan mindlace fremen Zopatista Community Liason Abnegate I! From kthangavelu@earthlink.net Tue Sep 5 19:13:03 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Tue, 05 Sep 2000 11:13:03 -0700 Subject: [Zope] External method and stdout References: <001001c0177b$0742abc0$3d28cac3@zopasta> <39B56F1E.4F295D6E@qbcon.com> Message-ID: <39B537AF.64192518@earthlink.net> Andreas Pauley wrote: > > For some reason you have to "return" everything that should be available > to zope. You can return a sequence and loop through it with DTML or you > can build a variable with everything you want to display and then return > the variable. > > I have no idea why this is so, and why you can't just the print > statement as an equivalent to . > > There is probably elegant ways of replacing DTML with external methods > or Python Methods, I was just unable to find documentation and examples > on it until now. Can anyone help with this? > > Regards, > Andreas. there are a couple of ways. first zope's publishing objects. if your publishing a dtml method object than the semantics of it require that values be inserted into the template/page thats being returned to the user. you can also publish an external method or a python module directly(indeed Zope is just a published python module). but sticking to zope external methods, an example, if you had def myhello_world(self, REQUEST): page = " welcome to %s corner of my hello world "%self.getParentNode().id and just browse directly to the external method. its important to keep in mind that stdout isn't connected to the client. the client is connected to medusa/ZServer, which gives a channel to ZPublisher to publish data that will be returned to the client. this mainly applies to fs code, i'm not totally sure about the semantics of web python methods. i know this probably goes a bit further down the rabbit hole than you might be interested in going. if you want to know some more of the details. check out the medusa docs at http://www.nightmare.com/medusa and the ZPublisher docs under the Documentation Sec. of Zope.org. These are dated but they give a understanding of the interaction between medusa's asynch interfaces and zope. and of course the source code. you could also use document templates directly from python def new_world_order(self, REQUEST): from DocumentTemplate import HTML my_sites = [('My homepage','http://homepage'), ('my favorite bookstore','http://amazon.com') , ... etc] page_to_return = """
""" return HTML(my_sites)(sites=my_sites) or evaluate a dtml file on the file system using HTMLFILE see the DocumentTemplate directory for source and more examples D.Templates also give you a pretty good separation of app. logic and presentation. Doing straight python insertion in a page is not the Zope Way. if you're interested in this type of thing, you might want to check out some other python projects like mod_snake (apache), pywx.sourceforge.net (aolserver), or webware. I'll think you find the benefits of doing it through DTML offer you a lot more benefits in terms on maintainbility and site management. Cheers Kapil > > Sven Hohage wrote: > > > > Hallo, > > that's the problem: > > I've made an external method which is working with lists and should > > return the result to Zope. The python code is working very well, but > > is sending everything to sys.stdout( I'm using the > > print-statement).How do I convince Zope to print the result on the > > html-page. > > Thanks. > > -- > In a world without fences, who needs gates? > > _______________________________________________ > 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@digicool.com Wed Sep 6 00:20:49 2000 From: chrism@digicool.com (Chris McDonough) Date: Tue, 5 Sep 2000 19:20:49 -0400 (EDT) Subject: [Zope] The Ascetic Superuser In-Reply-To: <39B57798.E2AABB66@digicool.com> Message-ID: On Tue, 5 Sep 2000, ethan mindlace fremen wrote: > Now every object excecutes according to the permision of the owner, > *not* the viewer. It can also run as a proxy role. The > super-bootstrap-user lives outside of "normal" zope authentication & has > permission to do anything save that which NotEvenGodShouldDo. > Therefore, it shouldn't own objects. Methods actually now execute with the effective intersection of the permissions granted to the AUTHENTICATED_USER and the permissions granted to the method's owner. If a proxy role is specified, the method executes with permissions restricted to those roles assigned by the proxy role. This is unarguably a good thing. What's not entirely clear is *why* super can't own, which is a separate issue. The power it has beyond that of a normal management user is the ability to traverse the site unrestricted by the security machinery. I actually don't think there's an answer to this question that has to do with method execution. I think the ultimate answer is one or a few of the following: "because," "shrug," "for audit trail purposes," or "so you don't shoot yourself in the foot," or "be quiet." :-) Alternately, the answer might lie in an unobvious implementation detail that none of us really want to think about. > This is *quite* important, and needs to stay. I don't know how to > emphasize enough that this is a well thought out correction to an > extremely deadly class of security problems that still (afaik) plagues > many "other" through-the-web management systems. I just can't think of any situations where having a method execute with the effective intersection of the permissions granted to superuser and the permissions granted to another user would cause more damage than a method executing with the effective intersection of the permissions granted to a normal management user and another user. Can you? > The newbie pain, however, could probably be mitigated- don't call it a > Super user, since it hardly deserves the S or the cape. Have a user in > the default install. Something like that. I agree. This should happen soon. Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From go2ira@onebox.com Wed Sep 6 00:36:31 2000 From: go2ira@onebox.com (Ira Hochman) Date: Tue, 05 Sep 2000 16:36:31 -0700 Subject: [Zope] Zope 2.2 & ZopeAttributionButton Message-ID: <20000905233631.PUDM24872.mta01.onebox.com@onebox.com> Hello Does anyone know how to set security on ZopeAttributionButton? Since it is referenced (currently) in my standard_html_footer, users who have only access to their subdirectory get an error on pages that reference this footer. I'd rather set it up properly than remove the credits. TIA! --ira -- Ira Hochman go2ira@onebox.com - email __________________________________________________ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com From akm@mail.theinternet.com.au Wed Sep 6 01:10:13 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Wed, 6 Sep 2000 10:10:13 +1000 Subject: [Zope] supplemental group ids (Linux) In-Reply-To: <8p38r1$ic$1@rugger.nodomain.ca>; from Kip Rugger on Tue, Sep 05, 2000 at 12:00:17PM -0500 References: <8p10qt$6r2$1@rugger.nodomain.ca> <8p1tc7$7gk$1@rugger.nodomain.ca> <39B4AF86.7F8FA992@libc.org> <8p38r1$ic$1@rugger.nodomain.ca> Message-ID: <20000906101012.K1642@zeus.theinternet.com.au> +-------[ Kip Rugger ]---------------------- | | On my machine 101 is uid and gid for nobody; as you can see | junkbuster is correctly sandboxed. For unmodified Zope, you'll | see a zero in the indicated line (or possibly several values | if root belongs to several groups like `wheel' on your system). Have you actually tried to change to that group? -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From MannosTJ@slcc.edu Wed Sep 6 01:42:26 2000 From: MannosTJ@slcc.edu (T.J. Mannos) Date: Tue, 5 Sep 2000 18:42:26 -0600 Subject: [Zope] Underscore Caracter In-Reply-To: Message-ID: Hmm.. Shouldn't that be: _.string.join(_.string.split('asd asd'), ' '), '_') Or, alternatively (and more intuitively), _.string.replace('asd asd', ' ', '_') _.string.replace('asd_asd', '_', ' ') - T.J. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris McDonough Sent: Monday, September 04, 2000 5:56 PM To: Marcus Mendes Cc: zope@zope.org Subject: Re: [Zope] Underscore Caracter Hi Marcus, This is untested. Turn "asd asd" into "asd_asd" and output: Turn "asd_asd" into "asd asd" and output: On Sun, 3 Sep 2000, Marcus Mendes wrote: > Hello, > > I need replace 0x20 (space caracter ) to Undescore Caracter. I need also > a function that UNDO this operation. How can I to do this in DTML > sintaxe? Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org _______________________________________________ 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 MannosTJ@slcc.edu Wed Sep 6 01:50:04 2000 From: MannosTJ@slcc.edu (T.J. Mannos) Date: Tue, 5 Sep 2000 18:50:04 -0600 Subject: [Zope] doesn't? Please fix... ;-) In-Reply-To: <20000905091103.E1642@zeus.theinternet.com.au> Message-ID: Andrew, Did you see my solution to this? I also posted a patch that would allow you to use syntax like this: Same effect, but a bit cleaner. If you'd like a copy of that patch, send me an e-mail. Take care, T.J. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Andrew Kenneth Milton Sent: Monday, September 04, 2000 5:11 PM To: Kip Rugger Cc: zope@zope.org Subject: Re: [Zope] doesn't? Please fix... ;-) Won't work, the container will still be parsed for correctness at 'save' time. The problem isn't getting nested comments per se, we already have that. The problem is to completely ignore the contents of the comment tag whilst still allowing nested comments. From mindlace@digicool.com Wed Sep 6 02:15:51 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Tue, 05 Sep 2000 21:15:51 -0400 Subject: [Zope] categorization request Message-ID: <39B59AC7.EC04985@digicool.com> Zopatistas! I'd like to categorize the how-Tos in a similar style to how the products have been categorized. What I'm looking for is a volunteer who is willing to go through *all* the current HowTos and propose a classification. -- ethan mindlace fremen Zopatista Community Liason Abnegate I! From chrism@digicool.com Wed Sep 6 02:54:18 2000 From: chrism@digicool.com (Chris McDonough) Date: Tue, 5 Sep 2000 21:54:18 -0400 (EDT) Subject: [Zope] Underscore Caracter In-Reply-To: Message-ID: On Tue, 5 Sep 2000, T.J. Mannos wrote: > Hmm.. Shouldn't that be: > > _.string.join(_.string.split('asd asd'), ' '), '_') The second argument is implicit on string.split (it defaults to a single space). But your way works too. > Or, alternatively (and more intuitively), > > _.string.replace('asd asd', ' ', '_') > _.string.replace('asd_asd', '_', ' ') It should be noted that _.string.replace() is not mentioned in the DTML reference guide. If it exists, it should be used. Sigh. I can't wait for the Zope Book to come out, I'm going to be the first buyer. ;-) > Hi Marcus, > > This is untested. > > Turn "asd asd" into "asd_asd" and output: > > > > Turn "asd_asd" into "asd asd" and output: > > > > On Sun, 3 Sep 2000, Marcus Mendes wrote: > > Hello, > > > > I need replace 0x20 (space caracter ) to Undescore Caracter. I need also > > a function that UNDO this operation. How can I to do this in DTML > > sintaxe? > Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From cpw@suprize.com Wed Sep 6 03:02:11 2000 From: cpw@suprize.com (Chien-Pin Wang) Date: Wed, 6 Sep 2000 10:02:11 +0800 (CST) Subject: [Zope] OSError along with FSSession... Message-ID: Dear Zope Users: I have upgraded to FSSession 0.4.2 lately and occasionally run into the same problem several times. Each time it costs me a zope down. I do really need some help... Zope complains an error type "OSError" and throws the error value saying [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' occasionally since a recent upgrade of FSSession product to 0.4.2. Following that error will be a series of TransactionErrors for each and every request Zope received. And only a zope restart could help zope resume its operations. Since this error only comes up occasionally, I'm completely clueless on solving it. My environment is RedHat Linux 6.2 + Zope 2.1.6. The traceback information looks like this... Traceback (innermost last): File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 169, in publish File /usr/local/Zope-2.1.6-src/lib/python/ZODB/Transaction.py, line 275, in co mmit File /usr/local/Zope-2.1.6-src/lib/python/Shared/DC/ZRDB/TM.py, line 120, in t pc_finish (Object: TM) File /usr/local/zope/lib/python/Products/FSSession/FSSession.py, line 87, in _ finish (Object: TM) File /usr/local/zope/lib/python/Products/FSSession/FSSession.py, line 208, in final_commit (Object: FSSession) OSError: [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' Any help will be very appreciative! Chien-pin From chrism@digicool.com Wed Sep 6 03:05:12 2000 From: chrism@digicool.com (Chris McDonough) Date: Tue, 5 Sep 2000 22:05:12 -0400 (EDT) Subject: [Zope] supplemental group ids (Linux) In-Reply-To: <8p10qt$6r2$1@rugger.nodomain.ca> Message-ID: After some digging, it appears that this is a really good find. Thanks very much for reporting it. I am going to add a collector item with your message verbatim. Thanks very much! - C On 4 Sep 2000 rugger@pangea.ca wrote: > I noticed when starting Zope as root (to get privilaged ports), > but requesting suid to `nobody' (start -u nobody) the resulting > processes have the correct uid and gid, but the supplemental > group id list still has the appropriate value for root. This > means that the Zope process could, for example, write to files > that may belong to root. > > It's not clear whether this deserves a bug report, so I though > I'd ask here instead. > > > The fix is easy (and very lightly tested): > > 1) grab and install the supplemental gid package (for python) > http://www.ccraig.org/software/group.c > > 2) patch (for 2.2.0) > > --- z2.py.orig Fri Jun 30 10:23:53 2000 > +++ z2.py Mon Sep 4 14:33:51 2000 > @@ -682,13 +682,20 @@ > if type(UID) == type(""): > uid = pwd.getpwnam(UID)[2] > gid = pwd.getpwnam(UID)[3] > + uname = UID > elif type(UID) == type(1): > uid = pwd.getpwuid(UID)[2] > gid = pwd.getpwuid(UID)[3] > + uname = pwd.getpwuid(UID)[1] > else: > raise KeyError > try: > if gid is not None: > + try: > + import group > + group.initgroups(uname, gid) > + except: > + pass > try: > os.setgid(gid) > except OSError: > > > _______________________________________________ > 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 Digital Creations, Publishers of Zope http://www.zope.org From MannosTJ@slcc.edu Wed Sep 6 03:23:47 2000 From: MannosTJ@slcc.edu (T.J. Mannos) Date: Tue, 5 Sep 2000 20:23:47 -0600 Subject: [Zope] Underscore Caracter In-Reply-To: Message-ID: Yep, it's there, but it's not documented. Basically, anything in the python "string" module should be accessible from Zope DTML. Now, who do I have to beat up to get the 're' module added to the namespace variable??? :) - T.J. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris McDonough Sent: Tuesday, September 05, 2000 7:54 PM To: T.J. Mannos Cc: Marcus Mendes; zope@zope.org Subject: RE: [Zope] Underscore Caracter On Tue, 5 Sep 2000, T.J. Mannos wrote: > Hmm.. Shouldn't that be: > > _.string.join(_.string.split('asd asd'), ' '), '_') The second argument is implicit on string.split (it defaults to a single space). But your way works too. > Or, alternatively (and more intuitively), > > _.string.replace('asd asd', ' ', '_') > _.string.replace('asd_asd', '_', ' ') It should be noted that _.string.replace() is not mentioned in the DTML reference guide. If it exists, it should be used. Sigh. I can't wait for the Zope Book to come out, I'm going to be the first buyer. ;-) > Hi Marcus, > > This is untested. > > Turn "asd asd" into "asd_asd" and output: > > > > Turn "asd_asd" into "asd asd" and output: > > > > On Sun, 3 Sep 2000, Marcus Mendes wrote: > > Hello, > > > > I need replace 0x20 (space caracter ) to Undescore Caracter. I need also > > a function that UNDO this operation. How can I to do this in DTML > > sintaxe? > Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org _______________________________________________ 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@digicool.com Wed Sep 6 03:41:23 2000 From: chrism@digicool.com (Chris McDonough) Date: Tue, 5 Sep 2000 22:41:23 -0400 (EDT) Subject: [Zope] RE: re module (was: underscore character) In-Reply-To: Message-ID: On Tue, 5 Sep 2000, T.J. Mannos wrote: > Now, who do I have to beat up to get the 're' module added to the namespace > variable??? :) I don't think it matters too much who you beat up... :-) You're probably not going to get it from us. There's the perception at DC that 're' isn't appropriate for through-the-web usage because it's possible to write and use regex that sends the Python interpreter thread it's operating within into a neverending loop. Sorry. Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From nichols@tradingconnections.com Wed Sep 6 03:56:54 2000 From: nichols@tradingconnections.com (Dennis Nichols) Date: Tue, 05 Sep 2000 21:56:54 -0500 Subject: [Zope] Underscore Caracter In-Reply-To: References: Message-ID: <4.3.2.7.2.20000905215345.00d8d110@tradingconnections.com> At 9/5/00 09:54 PM, Chris McDonough wrote: >It should be noted that _.string.replace() is not mentioned in the DTML >reference guide. If it exists, it should be used. Sigh. I can't wait >for the Zope Book to come out, I'm going to be the first buyer. ;-) Not that I would expect it to exist, but according to "Python Essential Reference" p. 117, it is indeed present in the string module: replace( str, old, new [,max] ) -- Dennis Nichols nichols@tradingconnections.com From chrism@digicool.com Wed Sep 6 04:15:09 2000 From: chrism@digicool.com (Chris McDonough) Date: Tue, 5 Sep 2000 23:15:09 -0400 (EDT) Subject: [Zope] Underscore Caracter In-Reply-To: <4.3.2.7.2.20000905215345.00d8d110@tradingconnections.com> Message-ID: Yes. Thank you. Note however that methods of modules accessed via the underscore namespace may be filtered individually, so although 'replace' exists as a method of the Python string module, this does not necessarily make it accessible implicitly through Zope via _.string.replace. It happens to be accessible in this case, but I'd bet there are cases in which methods accessible via modules of the _ namespace have been removed for "safe scripting" purposes. The solution is proper documentation. On Tue, 5 Sep 2000, Dennis Nichols wrote: > At 9/5/00 09:54 PM, Chris McDonough wrote: > >It should be noted that _.string.replace() is not mentioned in the DTML > >reference guide. If it exists, it should be used. Sigh. I can't wait > >for the Zope Book to come out, I'm going to be the first buyer. ;-) > > Not that I would expect it to exist, but according to "Python Essential > Reference" p. 117, it is indeed present in the string module: > > replace( str, old, new [,max] ) > > > > -- > Dennis Nichols > nichols@tradingconnections.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 ) > Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From andres@corrada.com Wed Sep 6 04:25:39 2000 From: andres@corrada.com (andres@corrada.com) Date: Tue, 5 Sep 2000 23:25:39 -0400 Subject: [Zope] Ad banners in Zope anyone ? In-Reply-To: ; from Bill Welch on Tue, Sep 05, 2000 at 02:23:19PM +0000 References: <004101c0151f$51834220$c3090740@megapathdsl.net> Message-ID: <20000905232539.A23100@corrada.com> Of the two methods currently described on the How-To for PHP from within Zope, one of them does handle authorization. Neither handles cookies at the present time. Advise on how to fix these limitations would be much appreciated. On Tue, Sep 05, 2000 at 02:23:19PM +0000, Bill Welch wrote: > Check out the How-To athttp://www.zope.org/Members/Mamey/PHP. Doesn't > handle redirection, authorization, or cookie passing, but it's a > start. If you need the above mentioned features, I'll be posting my update > by the end of the week. > > Bill. > > On Sat, 2 Sep 2000, Jason Cunliffe wrote: > > > - Can one run PHP from inside of Zserver/ZODB easily? > > - How would to do that? > > - Is anyone using Zope for Ad Banner services?? > > - What would would make it a good or bad choice? > > > _______________________________________________ > 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 ) > > -- ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com ------------------------------------------------------ From bak@nstp.com.my Wed Sep 6 05:42:28 2000 From: bak@nstp.com.my (Bak @ kedai) Date: Wed, 6 Sep 2000 12:42:28 +0800 Subject: [Zope] RFC: ZEO howto Message-ID: <00090612422801.26335@tokey.kedai.com.my> hi all drafted a simple how-to: use zeo with zope. need your inputs, corrections, comments, experience, notes, etc before i catalog it http://www.zope.org/Members/kedai/UseZeoZope thanks! From bak@nstp.com.my Wed Sep 6 06:21:10 2000 From: bak@nstp.com.my (Bak @ kedai) Date: Wed, 6 Sep 2000 13:21:10 +0800 Subject: [Zope] problems installing PoPy-1.3.4 (fwd) In-Reply-To: <20000905142121.28633.cpmta@c017.sfo.cp.net> References: <20000905142121.28633.cpmta@c017.sfo.cp.net> Message-ID: <00090613211002.26335@tokey.kedai.com.my> > > checking location of python shared > > modules... $(exec_prefix)/lib/python1.5/site-packages > > checking for PQconnectStart in -lpq... no > > configure: error: can't build without PostgreSQL libraries > > i struggled with this for quite some time. until i upgraded postgres to v7.0.2 i don't think i saw any requirement of a v7.x anywhere, but maybe i'm blind after spending too much time in front of the computer :) also, with 1.3.4, you need to add a comma (,) at line that has __compatibility__ = ('1.3.4',) ^ in ZPoPyDA/PoPy_db.py hth > > Now type 'make' to compile PoPy python module. > > > > > > > > > > _______________________________________________ > > 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 ) > > __________________________________________________________________ > Get your Private, Anti-Spam, Free Email at http://e3mil.com > and Step into a Friendly Universe! > > _______________________________________________ > 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@digicool.com Wed Sep 6 06:40:46 2000 From: chrism@digicool.com (Chris McDonough) Date: Wed, 6 Sep 2000 01:40:46 -0400 (EDT) Subject: [Zope] RFC: ZEO howto In-Reply-To: <00090612422801.26335@tokey.kedai.com.my> Message-ID: Looks great... I'd run it through a spell-checker if you've got one, but otherwise the content is really useful. Thanks! C On Wed, 6 Sep 2000, Bak @ kedai wrote: > hi all > drafted a simple how-to: use zeo with zope. need your inputs, corrections, > comments, experience, notes, etc before i catalog it > > http://www.zope.org/Members/kedai/UseZeoZope > > thanks! > > _______________________________________________ > 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 Digital Creations, Publishers of Zope http://www.zope.org From tino@wildenhain.de Wed Sep 6 07:26:31 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 06 Sep 2000 08:26:31 +0200 Subject: [Zope] ANN: want to localize your pages and/or zope? Message-ID: <39B5E397.5E650628@wildenhain.de> Hi, last night I realized my finger-trainnig called VaryTag :-) I talkt about it at EuroZope meeting in paris, but lost my old implementation during deleting of old zope instances. So it took me 3.5h to rewrite it from scratch. This time it works according to rfc2616 (HTTP/1.1). Its just one solution for serving multi language documents, but it works very well. I will soon localize the current zope with it as well as our websites will be localized. Its easy to use, just look at http://www.zope.org/Members/tino/Vary%20tag/readme/ Sorry for the ugly url with space, it was deep in the night ;-) Unfortunately zope.org has not installed the product already, so I was not able to give the readme in different languages .-)) Best regards Tino Wildenhain From bill@libc.org Wed Sep 6 07:23:23 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 06 Sep 2000 00:23:23 -0600 Subject: [Zope] supplemental group ids (Linux) References: <8p10qt$6r2$1@rugger.nodomain.ca> <8p1tc7$7gk$1@rugger.nodomain.ca> <39B4AF86.7F8FA992@libc.org> <8p38r1$ic$1@rugger.nodomain.ca> Message-ID: <39B5E2DB.38FF0593@libc.org> Kip Rugger wrote: > > Bill Anderson wrote: > >Kip Rugger wrote: > >> > >> Chris McDonough wrote: > >> >Aplogies for the ignorance, but can you maybe explain the concept > >> >of supplemental group ids and give an example of how the current unpatched > >> >behavior could be subverted? > >> > >> I can try... > >> > >> Supplemental gids are useful for allowing a user to belong to more > >> than one group, or maybe to more than one project in normal parlance. > >> This is normally effected by listing the uid opposite more than one > >> group in /etc/group. The login process issues the initgroups(3) call > >> to install these supplemental groups, which are inherited by all > >> processes forked from the login shell. > >> The problem is comes when you change user ids; for example what I > >> saw with Zope (start -u nobody) was: > >> > >> before change after change > >> ============= ============ > >> user id root nobody > >> group id root nobody > >> sup id(s) root root > > > > > >Would you mind describing how you determine this? > > [/proc] $ cat /proc/90/status > Name: junkbuster > State: S (sleeping) > Pid: 90 > PPid: 1 > Uid: 101 101 101 101 > Gid: 101 101 101 101 > Groups: 101 <------------------------------ supplemental groups .... > On my machine 101 is uid and gid for nobody; as you can see > junkbuster is correctly sandboxed. For unmodified Zope, you'll > see a zero in the indicated line (or possibly several values > if root belongs to several groups like `wheel' on your system). OK, something is not quite right here. On my unmodified zope, it is properly 'sandboxed'. Perhaps it is the use of the explicit '-u nobody'? I don't do that on my system, which causes Zope to run as nobody implicitly. (When started as root, unless told otherwise, zope will switch to nobody). Try running without the 'u nobody switch, and see what happens. Just out of curiousity. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From andreasp@qbcon.com Wed Sep 6 09:24:58 2000 From: andreasp@qbcon.com (Andreas Pauley) Date: Wed, 06 Sep 2000 10:24:58 +0200 Subject: [Zope] Form Validation Message-ID: <39B5FF5A.7CB96740@qbcon.com> Hi, I see you can let Zope do basic form validation for you by appending ":string" or ":int" to your form name. The error messages that are displayed are not that clear, however. How can I get more control over what happens when an error occurs? (e.g. I'd like to be able to get back a list/ditionary of errors instead of handling them one by one) Where can I get documentation on all the built-in form validation options at my disposal? (e.g. a field may not be required, but if it is filled in it has to be an integer) Is Zope's built-in form validation sufficient for a complex system? Are there better ways to do form validation? I saw a php program on freshmeat.net the other day that supposedly generates forms complete with client and server-side validation. Do we have a similar product in Zope? Thanks, Andreas. -- In a world without fences, who needs gates? From mindlace@digicool.com Wed Sep 6 06:47:53 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Wed, 06 Sep 2000 01:47:53 -0400 Subject: [Zope] categorization request References: <39B59AC7.EC04985@digicool.com> Message-ID: <39B5DA89.205C914F@digicool.com> ethan mindlace fremen wrote: > > Zopatistas! > > I'd like to categorize the how-Tos in a similar style to how the > products have been categorized. > What I'm looking for is a volunteer who is willing to go through *all* > the current HowTos and propose a classification. Tim Cook has indicated that he'd classify the how-tos. Yay Tim! ~mindlace From chrisw@nipltd.com Wed Sep 6 10:43:32 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 06 Sep 2000 10:43:32 +0100 Subject: [Zope] re module & through the web security References: Message-ID: <39B611C4.90C6C957@nipltd.com> Chris McDonough wrote: > There's the perception at DC that > 're' isn't appropriate for through-the-web usage because it's possible to > write and use regex that sends the Python interpreter thread it's > operating within into a neverending loop. Sorry. Am I the only one who thinks this is silly? One of Zope's key strengths is its granular security, right? So why isn't it the reponsibility of the site designer/maintainer/owner/whatever to ensure that only people he trusts have the ability to write DTML? It seems like that perception is hobbling Python Methods, in particular, by removing useful stuff like the re module because the assumption is being made that people editing TTW code will be untrusted. IMH(umble), either you don't have confidence in Zope's security, or you're assuming your users are stupid (that may be fair for a lot of us, but still ;-) Comments? :-) Chris From lehmann@catworkx.de Wed Sep 6 11:05:48 2000 From: lehmann@catworkx.de (Holger Lehmann) Date: Wed, 6 Sep 2000 12:05:48 +0200 Subject: [Zope] Tracker weirdness Message-ID: <00090612100302.01254@cat-pc-holle> Hi everyone :-) I am trying (desperately) to use a Tracker on my own site. So I checked one out of CVS and started using it. I created some users for my website with their very own roles. Now when one of those users tries to view the issues listed in the Tracker (like someone would do on www.zope.org) we just get an error: (sorry about the lenghty posting) ----------------------------------------- Unauthorized You are not authorized to access issueSummaryRows. Traceback (innermost last): File /usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/local/Zope-2.2.0-linux2-x86/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: index_html) File /usr/local/Zope-2.2.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: index_html) File /usr/local/Zope-2.2.0-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: criteria="{'type': 'tracker_issue'}" default_batch_size="trackerpref(pref='batch_size', default=10, REQUEST=REQUEST)" refine_defaults="[('refine_show', 'Close Advanced Search'), ('refine_type', 'strict'), ('any', ''), ('public', 'ON'), ('private', 'ON'), ('requester', []), ('supporter', []), ('priority', []), ('stage', ['pending', 'accepted']), ('batch_size', default_batch_size)]" init="(not REQUEST.get('refine_mode', ()) or REQUEST.get('refine_vanilla', ()))" type="(((REQUEST.get('refine_show', ()) == 'Close Advanced Search') and 'simple') or ((REQUEST.get('refine_show', ()) == 'Open Advanced Search') and 'elaborate') or REQUEST.get('refine_mode', 'simple'))" didb="_.has_key('did_basic')" didt="_.has_key('did_traitvalues')" topp="REQUEST.get('topprev', 0)" topn="REQUEST.get('topnext', 0)" topc="REQUEST.get('topbatchchange', 0)" topretain="REQUEST.get('topbatchretain', 0)" top="(topp or topn)" botp="REQUEST.get('bottomprev', 0)" botn="REQUEST.get('bottomnext', 0)" botc="REQUEST.get('bottombatchchange', 0)" botretain="REQUEST.get('bottombatchretain', 0)" bot="(botp or botn)" batch_last_start="REQUEST.get('batch_last_start', 0)" batch_last_end="REQUEST.get('batch_last_end', 0)" cur_batch_size="_.max(1, ((top and REQUEST.get('batch_size_top', 0)) or (bot and REQUEST.get('batch_size_bottom', 0)) or (topc and REQUEST.get('batch_size_top', 0)) or (botc and REQUEST.get('batch_size_bottom', 0)) or REQUEST.get('batch_size', default_batch_size))) or 15" direction="((topp or botp) and -1) or ((topn or botn) and 1) or 0") File /usr/local/Zope-2.2.0-linux2-x86/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: got="issuesSearch(this(), criteria, REQUEST=REQUEST)" currents="got[0]" numpriors="got[1]" numafters="got[2]" totmatches="_.len(currents) + numpriors + numafters" simple="REQUEST.get('refine_show', ()) == 'Close Advanced Search'") File /usr/local/Zope-2.2.0-linux2-x86/lib/python/DocumentTemplate/DT_With.py, line 133, in render (Object: _(isr = currents[0].issueSummaryRows, elements=currents)) File /usr/local/Zope-2.2.0-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: _(isr = currents[0].issueSummaryRows, elements=currents)) (Info: currents) File , line 0, in ? File /usr/local/Zope-2.2.0-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 140, in careful_getattr File /usr/local/Zope-2.2.0-linux2-x86/lib/python/OFS/DTMLMethod.py, line 189, in validate (Object: index_html) File /usr/local/Zope-2.2.0-linux2-x86/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/local/Zope-2.2.0-linux2-x86/lib/python/AccessControl/ZopeSecurityPolicy.py, line 209, in validate Unauthorized: (see above) ----------------------------------------- Anyone got an idea or solution for that ? I even CVS'ed me the latest code an gave it a try, same error - Holger -- ----------------------------------- catWorkX GmbH Hamburg Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel: +49 40 890 646-0 Fax: +49 40 890 646-66 mailto:lehmann@catworkx.de http://www.catworkx.de http://www.catbridge.de From jasonic@nomadicsltd.com Wed Sep 6 12:50:26 2000 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Wed, 6 Sep 2000 07:50:26 -0400 Subject: [Zope] WOWDamn !! ZopeNewbies wakeup Message-ID: <001d01c017f8$a690a740$c3090740@megapathdsl.net> This is for any+all of you new to Zope.. and for those like me who have been struggling with DMTL for too long. I just found a perfect *gemstone* burried in 'Chapter6 - Advanced DTML' of the online sample of the O'Reilly Zope Book at http://www.zope.org/Members/michel/ZB/AdvDTML/view """ The REQUEST namespace is very useful in Zope since it is the primary way that clients (in this case, web browsers) communicate with Zope by providing form data, cookies and other information about themselves. A very simple and enlightening example is to simply print the REQUEST out in an HTML page: """" Try it...beautiful and yes very enlightening. This should be on www.zope.org PageZero in my opinion I never saw a single line of ZopeDTML which so well demonstrates what it is capable of and why it _is_ cool when you know what to type. Get this book in Print asap please! thanks - Jason PS. Be warned: <8-() if you try put the code above in a DTML methods named 'showREQUEST' or 'show_REQUEST' it will not work = 'Id already in use' ________________________________________________________________ Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director From jens@turbodiesel.net Wed Sep 6 12:53:54 2000 From: jens@turbodiesel.net (Jens Vagelpohl) Date: Wed, 06 Sep 2000 07:53:54 -0400 Subject: [Zope] re module & through the web security In-Reply-To: <39B611C4.90C6C957@nipltd.com> Message-ID: i for my part think it makes sense. not just from a security standpoint (think of those sites that allow members who are not necessarily hand-picked to write DTML or attempt to do so) but also from a knowledge level standpoint. who wants their site crashed just because the new programmer doesn't know how to use that re functionality correctly? looking back at all the products and projects i have been involved in i did not have to use the re module a single time. as you know, you can still use the whole module in zope code that resides on the filesystem, like in products or in external methods. i'd rather be inconvenienced once every few months than basically invite denial of service attacks. jens ---------------------------- Jens Vagelpohl The VW Type 4 on the Web: http://www.type4.org ---------------------------- on 9/6/00 5:43, Chris Withers at chrisw@nipltd.com wrote: > Chris McDonough wrote: >> There's the perception at DC that >> 're' isn't appropriate for through-the-web usage because it's possible to >> write and use regex that sends the Python interpreter thread it's >> operating within into a neverending loop. Sorry. > > Am I the only one who thinks this is silly? > > One of Zope's key strengths is its granular security, right? > So why isn't it the reponsibility of the site > designer/maintainer/owner/whatever to ensure that only people he trusts > have the ability to write DTML? > > It seems like that perception is hobbling Python Methods, in particular, > by removing useful stuff like the re module because the assumption is > being made that people editing TTW code will be untrusted. > > IMH(umble), either you don't have confidence in Zope's security, or > you're assuming your users are stupid (that may be fair for a lot of us, > but still ;-) > > Comments? :-) > > Chris From tino@wildenhain.de Wed Sep 6 12:48:35 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Wed, 06 Sep 2000 13:48:35 +0200 Subject: [Zope] re module & through the web security References: <39B611C4.90C6C957@nipltd.com> Message-ID: <39B62F13.9C614053@wildenhain.de> Hi, Chris Withers wrote: > > Chris McDonough wrote: > > There's the perception at DC that > > 're' isn't appropriate for through-the-web usage because it's possible to > > write and use regex that sends the Python interpreter thread it's > > operating within into a neverending loop. Sorry. > > Am I the only one who thinks this is silly? > > One of Zope's key strengths is its granular security, right? > So why isn't it the reponsibility of the site > designer/maintainer/owner/whatever to ensure that only people he trusts > have the ability to write DTML? > > It seems like that perception is hobbling Python Methods, in particular, > by removing useful stuff like the re module because the assumption is > being made that people editing TTW code will be untrusted. > > IMH(umble), either you don't have confidence in Zope's security, or > you're assuming your users are stupid (that may be fair for a lot of us, > but still ;-) > > Comments? :-) > I think the granularity could be finer. If one could give some users access to more 'riscy' modules and some not, it schould be sufficient. I schould write a proposal for thru the web python products... *g* Greetings Tino From chrisw@nipltd.com Wed Sep 6 12:57:26 2000 From: chrisw@nipltd.com (Chris Withers) Date: Wed, 06 Sep 2000 12:57:26 +0100 Subject: [Zope] 'showREQUEST' or 'show_REQUEST' ? References: <001d01c017f8$a690a740$c3090740@megapathdsl.net> Message-ID: <39B63126.B712B26C@nipltd.com> Jason Cunliffe wrote: > PS. Be warned: <8-() > if you try put the code above in a DTML methods named 'showREQUEST' or > 'show_REQUEST' it will not work = 'Id already in use' That's a little weird... Can anyone shed any light on this? cheers, Chris From dom@happygiraffe.net Wed Sep 6 13:10:50 2000 From: dom@happygiraffe.net (Dominic Mitchell) Date: Wed, 6 Sep 2000 13:10:50 +0100 Subject: [Zope] [ANN] Whois Tools for Python & Zope Message-ID: <20000906131050.A36833@bizboz.mistral.co.uk> Just a small package that some people may find useful. When used with Zope, it creates a tag that does a whois lookup on a variable. For example:

Will result in: ------------------------------------------------------------------------ Whois Server Version 1.1 Domain names in the .com, .net, and .org domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information. Domain Name: ZOPE.ORG Registrar: NETWORK SOLUTIONS, INC. Whois Server: whois.networksolutions.com Referral URL: www.networksolutions.com Name Server: NS02.CODEIT.COM Name Server: NS1.DIGICOOL.COM Updated Date: 22-feb-1999 >>> Last update of whois database: Tue, 5 Sep 00 05:04:09 EDT <<< The Registry database contains ONLY .COM, .NET, .ORG, .EDU domains and Registrars. ------------------------------------------------------------------------ You can also explicitly specify a server to contact. Download it from: http://www.zope.org/Members/Dom2/whoistools/ Please let me know if you find it useful or find bugs. -Dom From duncan@rcp.co.uk Wed Sep 6 14:27:16 2000 From: duncan@rcp.co.uk (Duncan Booth) Date: Wed, 6 Sep 2000 13:27:16 +0000 Subject: [Zope] Underscore Caracter In-Reply-To: <39B4F53D.11C3F4C1@wildenhain.de> Message-ID: <39B64634.25889.1F1F297B@localhost> Tino Wildenhain wrote: > > Turn "asd_asd" into "asd asd" and output: > > > > > > > I've seen this on plenty lines of digicools code and wondered > about if this is more efficient then using just string.replace() > ? > I would say string.replace() should be a bit faster. I think the reasons may be historical. For a long time the Zope documentation listed the join and split members of the string module, but whoever wrote the documentation the first time around missed out replace. So anyone coming at Zope from the DTML direction is likely not to spot the replace method. Calling _.string.replace requires two attribute lookups and one python method call. replace itself requires zero or one memory allocation for the result. Calling join/split requires four attribute lookups, two python method calls and n+3 memory allocations where n replacements are made (1 allocation when n is 0). So I agree, replace should be faster, although given everything else that is going on, unless you do a lot of them you probably won't notice. -- Duncan Booth duncan@dales.rmplc.co.uk int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure? http://dales.rmplc.co.uk/Duncan From rbeer@uni-goettingen.de Wed Sep 6 13:34:52 2000 From: rbeer@uni-goettingen.de (Ragnar Beer) Date: Wed, 6 Sep 2000 14:34:52 +0200 Subject: [Zope] acl_users mystery Message-ID: Howdy! I had a strange problem today: I added a Role "User" in the root's security tab and gave it a couple of permissions. But further down the tree in /de/support where in the acl_users folder I added a user with the role 'User' the permissions where not acquired (until set manually in the /de/support security tab I couldn't log in) although 'Acquire permission settings' was turned on all the way down the tree. Very mysterious. Did I misunderstand the whole idea or is there something wrong? (Zope 2.1.6) Ragnar From tdickenson@geminidataloggers.com Wed Sep 6 14:07:46 2000 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Wed, 06 Sep 2000 14:07:46 +0100 Subject: [Zope] Underscore Caracter In-Reply-To: References: Message-ID: On Tue, 5 Sep 2000 20:23:47 -0600, "T.J. Mannos" wrote: >Now, who do I have to beat up to get the 're' module added to the namespace >variable??? :) Not a good idea.... its too easy for a buggy regex to eat up lots of memory and processor time. Toby Dickenson tdickenson@geminidataloggers.com From daan@deeldrie.nl Wed Sep 6 14:31:06 2000 From: daan@deeldrie.nl (Daan Wormsbecher) Date: Wed, 06 Sep 2000 15:31:06 +0200 Subject: [Zope] problem with virtualhosts Message-ID: <39B6471B.8715A350@deeldrie.nl> Hi all, My server is running with Zope 2.1.6 and SiteAccess 1.0.1. I followed the instructions of the very clear how-to created by Anser. But it there is one problem which I can't solve. I want to serve pages with Apache and with Zope. The url to serve pages with Zope should be: www.myserver.nl/z In the root of Zope I add a subfolder called mysubfolder. This folder should be the siteroot of this site. This is the configuration of my httpd.conf; ServerName www.myserver.nl NameVirtualHost 12.345.67.890 ServerName www.myserver.nl DocumentRoot /home/httpd/html ProxyPass /z http://www.myserver.nl:8080/mysubfolder ProxyPassReverse /z http://www.deeldrie.nl:8080/deeldrie ProxyPass /misc_ http://www.myserver.nl:8080/misc_ ProxyPass /p_ http://www.myserver.nl:8080/p_ In 'mysubfolder' in Zope I added the following SiteRoot object: title: (ignored) base: http://www.myserver.nl/z path: / Till here everything goes fine. The url www.myserver.nl/z shows the correct pages. But the problem is in the management interface of Zope. The generated url in the main section of the management interface doesn't work anymore: Instead of sending the browser to www.myserver.nl/z/mysubfolder/mysubsubfolder, it is sending the browser to: www.myserver.nl/mysubfolder/mysubsubfolder which can't be found. I spent several days to solve this but I didn't found a solution. Can somebody please help me out with this problem? regards, Wouter From daan@deeldrie.nl Wed Sep 6 14:43:06 2000 From: daan@deeldrie.nl (Daan Wormsbecher) Date: Wed, 06 Sep 2000 15:43:06 +0200 Subject: [Zope] correction (problem with virtualhosts) Message-ID: <39B649EA.CC7150E0@deeldrie.nl> This is a correction for my last entry at the mailing list: problem with virtualhosts. The line: ProxyPassReverse /z http://www.deeldrie.nl:8080/deeldrie should be in this example: ProxyPassReverse /z http://www.myserver.nl:8080/myserver regards, Wouter From Aitor.Grajal@teleline.es Wed Sep 6 14:51:10 2000 From: Aitor.Grajal@teleline.es (Aitor Grajal) Date: Wed, 06 Sep 2000 15:51:10 +0200 Subject: [Zope] Lock and Transaction in Zope. References: <200009051328080333.009041D2@mailhost.teleline.es> <200009061512060709.010EB279@mailhost.teleline.es> Message-ID: <200009061551100729.013276CD@mailhost.teleline.es> --=====_9682482706334=_ Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable I think I know how to manage transactions in Zope, but I don't know how to= lock Zope resources for multiple requests. For example : I have a DTML Method, called "transac1", which looks like this : "waiting 10 seconds..." wait_10_seconds is an External Method that sleeps for 10 seconds. In the other hand, I have another method, called "transac2" : In the parent Folder, there's a property called "var" which I use in these= methods. It has an initial value of 0. The point is : if I call the first method, and while it's sleeping, I call= the second one (from another window, for example), it doesn't work= properly. The first one crashes, and doesn't finish right. The final "var"= value is 2. I want to know if there is any way to lock the folder, and its properties,= so no one can access to it until my method "transac1" finishes, and where= can I find information about locking resources in Zope. --=====_9682482706334=_ Content-Type: text/html; charset="us-ascii"
I think I know how to manage transactions in Zope, but I don't know how to lock Zope resources for multiple requests.
For example :
I have a DTML Method, called "transac1", which looks like this :
 
<dtml-if "var==0">
  <dtml-call wait_10_seconds>
  "waiting 10 seconds..."
  <dtml-call "manage_editProperties({'var':1})">
</dtml-if>
wait_10_seconds is an External Method that sleeps for 10 seconds.
In the other hand, I have another method, called "transac2" :
 
<dtml-if "var==0">
  <dtml-call "manage_editProperties({'var':2})">
<dtml-else>
  <dtml-call "manage_editProperties({'var':3})">
</dtml-if>
 
In the parent Folder, there's a property called "var" which I use in these methods. It has an initial value of 0.
The point is : if I call the first method, and while it's sleeping, I call the second one (from another window, for example), it doesn't work properly. The first one crashes, and doesn't finish right. The final "var" value is 2.
I want to know if there is any way to lock the folder, and its properties, so no one can access to it until my method "transac1" finishes, and where can I find information about locking resources in Zope.
--=====_9682482706334=_-- From chrism@digicool.com Wed Sep 6 15:05:14 2000 From: chrism@digicool.com (Chris McDonough) Date: Wed, 6 Sep 2000 10:05:14 -0400 (EDT) Subject: [Zope] re module & through the web security In-Reply-To: <39B611C4.90C6C957@nipltd.com> Message-ID: On Wed, 6 Sep 2000, Chris Withers wrote: > Chris McDonough wrote: > > There's the perception at DC that > > 're' isn't appropriate for through-the-web usage because it's possible to > > write and use regex that sends the Python interpreter thread it's > > operating within into a neverending loop. Sorry. > > Am I the only one who thinks this is silly? Probably not. > > One of Zope's key strengths is its granular security, right? > So why isn't it the reponsibility of the site > designer/maintainer/owner/whatever to ensure that only people he trusts > have the ability to write DTML? It is. > > It seems like that perception is hobbling Python Methods, in particular, > by removing useful stuff like the re module because the assumption is > being made that people editing TTW code will be untrusted. TTW people are implicitly untrusted. This is core to the security model. > > IMH(umble), either you don't have confidence in Zope's security, or > you're assuming your users are stupid (that may be fair for a lot of us, > but still ;-) I dont think either statement is true. It is because there are restrictions that Zope TTW scripting is "safe." It's designed to be more safe than expressive. Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org From bill@carbonecho.com Wed Sep 6 15:56:09 2000 From: bill@carbonecho.com (Bill Welch) Date: Wed, 6 Sep 2000 14:56:09 +0000 (GMT) Subject: [Zope] ANN: Serving PHP/Perl from Zope update In-Reply-To: <20000905151647.A8300@corrada.com> Message-ID: I had to dig a level deeper to support phorum (www.phorum.org), a PHP message board app. Here's my update to handle cookies, redirection, POST variables, and relative links. I'm new to python, so if I've done anything awkwardly, please let me know the more elegant way. First, a patch to Client.py - first part doesn't die on redirects and returns (instead of raising 'Redirect') so cookies and base can be set, second part opens a hole to pass headers into Client (for cookies) 224c224 < if ec==200: return (headers,response) --- > if ec==200 or ec==302: return (headers,response) 342,344c342,344 < def call(url,username=None, password=None, **kw): < < return apply(Function(url,username=username, password=password), (), kw) --- > def call(url,username=None, password=None, headers={}, **kw): > F = apply(Function, (url, (), None, username, password, None), headers) > return apply(F, (), kw) Then there's the rewrite of the code in the how-to. Here's the whole thing (I use just one .py) site = 'http://www.carbonecho.com/zforum' from string import join def DirectToPHP( self ): if self.REQUEST.path: # Build up a list of what is contained in self.REQUEST.path since # you are going to redirect the user to /PHPContent/index_html. Start # by adding the way you can access the PHP tree outside of Zope originalRequestPath = [site] # keep the original path to override base when serving origPath = [] # is the user asking for a php script? if self.REQUEST.path[0][-4:] == '.php': # I use .php, not .php3 # pop paths of REQUEST.path until its empty while self.REQUEST.path: # Remember the path components before you pop them # hang on to passed in path to set as base when served originalRequestPath.append( self.REQUEST.path[-1] ) origPath.append( self.REQUEST.path[-1] ) self.REQUEST.path.pop() # Create a full url to pass to index_html phpScript = join( originalRequestPath, '/' ) origScript = join( origPath, '/' ) # Is there a query string being passed to the script also? if self.REQUEST.environ.has_key('QUERY_STRING'): phpScript = phpScript + '?' + self.REQUEST.environ['QUERY_STRING'] origScript = origScript + '?' + self.REQUEST.environ['QUERY_STRING'] # self.REQUEST.path is now empty so the user is going to be # directed to /forum/index_html. That method needs to # know what the original request is, so pass it a REQUEST # variable self.REQUEST.set('phpScript', phpScript) self.REQUEST.set('origScript', origScript) # you also may want to redirect image requests to the PHP tree elif self.REQUEST.path[0][-3:] in ['gif', 'png', 'jpg']: originalRequestPath = [site] while self.REQUEST.path: originalRequestPath.append(self.REQUEST.path[-1]) self.REQUEST.path.pop() # This is an image, so give it to a DTMLMethod that will # just serve up images self.REQUEST.path.append('ServeImage') self.REQUEST.set('imagePath', join(originalRequestPath, '/')) from ZPublisher import Client from string import split def ServePHP(self, username=None, password=None): req = self.REQUEST if req.environ.has_key('HTTP_COOKIE'): headers = {'Cookie' : req.environ['HTTP_COOKIE']} else: headers = {} if req.environ['REQUEST_METHOD'] == 'POST': rTuple = apply(Client.call, (req['phpScript'], username, password, headers), req.form) else: rTuple = Client.call(req['phpScript'], username, password, headers) resp = req['RESPONSE'] for cookie in rTuple[0].getallmatchingheaders('Set-Cookie'): cookie = cookie[:-1] apply(resp.setHeader, split(cookie, ':', 1)) # not a particularly strong test, maybe Client should pass back status if rTuple[0].has_key('location'): # override base so that relative references work resp.base = rTuple[0]['location'] raise 'Redirect', resp.base #override base so that relative references work resp.base = 'http://www.carbonecho.com/forum/' + req['origScript'] return rTuple[1] from ZPublisher import Client def ServeImage(self): return Client.call(self.REQUEST['imagePath'])[1] From harald.koschinski@friatec.de Wed Sep 6 16:01:38 2000 From: harald.koschinski@friatec.de (Harald Koschinski) Date: Wed, 06 Sep 2000 17:01:38 +0200 Subject: [Zope] Buying Zope for 139 German Marks - =?iso-8859-1?Q?It=B4s?= cheap Message-ID: <39B65C52.8303E97B@friatec.de> Hallo all, maybe its old new´s - maybe not: Zope is part of "SuSE Linux 7.0 Profesional Edititon" and this is printed on the box in the categorie "Features and Highlights". It is indeed a Highlight. Regards Harald From dan@sol.control.com Wed Sep 6 15:13:34 2000 From: dan@sol.control.com (Dan L. Pierson) Date: Wed, 6 Sep 2000 10:13:34 -0400 (EDT) Subject: [Zope] re module & through the web security In-Reply-To: <39B611C4.90C6C957@nipltd.com> References: <39B611C4.90C6C957@nipltd.com> Message-ID: <14774.20750.833937.607164@sol.control.com> Chris Withers writes: > Chris McDonough wrote: > > There's the perception at DC that > > 're' isn't appropriate for through-the-web usage because it's possible to > > write and use regex that sends the Python interpreter thread it's > > operating within into a neverending loop. Sorry. [snip] > It seems like that perception is hobbling Python Methods, in particular, > by removing useful stuff like the re module because the assumption is > being made that people editing TTW code will be untrusted. I think the re module is a good example for arguing that DTML and Python Methods should have different criteria for deciding what modules are available (and separate permissions for users, if they don't already). Somehow, the idea of mixing regexps and DTML gives me chills, but I agree that it is a perfectly reasonable tool to want to use in Python Methods. This relates more the crusade to depricate DTML programming as opposed to DTML report writing than it does to security concerns. From chrism@digicool.com Wed Sep 6 16:17:02 2000 From: chrism@digicool.com (Chris McDonough) Date: Wed, 6 Sep 2000 11:17:02 -0400 Subject: [Zope] re module & through the web security Message-ID: <613145F79272D211914B0020AFF640199E6D58@gandalf.digicool.com> If you're concerned about the availability of various modules within PythonMethods, you should participate in the PythonMethods project wiki, probably at the page http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/CurrentIssues. > -----Original Message----- > From: Dan L. Pierson [mailto:dan@sol.control.com] > Sent: Wednesday, September 06, 2000 10:14 AM > To: Chris Withers > Cc: Chris McDonough; T.J. Mannos; Marcus Mendes; zope@zope.org > Subject: Re: [Zope] re module & through the web security > > > Chris Withers writes: > > Chris McDonough wrote: > > > There's the perception at DC that > > > 're' isn't appropriate for through-the-web usage because > it's possible to > > > write and use regex that sends the Python interpreter thread it's > > > operating within into a neverending loop. Sorry. > > [snip] > > > It seems like that perception is hobbling Python Methods, > in particular, > > by removing useful stuff like the re module because the > assumption is > > being made that people editing TTW code will be untrusted. > > I think the re module is a good example for arguing that DTML and > Python Methods should have different criteria for deciding what > modules are available (and separate permissions for users, if they > don't already). > > Somehow, the idea of mixing regexps and DTML gives me chills, but I > agree that it is a perfectly reasonable tool to want to use > in Python Methods. > This relates more the crusade to depricate DTML programming > as opposed > to DTML report writing than it does to security concerns. > > _______________________________________________ > 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 evan@4-am.com Wed Sep 6 16:16:39 2000 From: evan@4-am.com (Evan Simpson) Date: Wed, 6 Sep 2000 11:16:39 -0400 Subject: [Zope] re module & through the web security References: <39B611C4.90C6C957@nipltd.com> Message-ID: <002f01c01815$74c48570$3e48a4d8@digicool.com> From: Chris Withers > One of Zope's key strengths is its granular security, right? > So why isn't it the reponsibility of the site > designer/maintainer/owner/whatever to ensure that only people he trusts > have the ability to write DTML? Fear not. In the brand new shiny PythonMethods Product coming soon (really!) to a Zope near you, you will have the ability to say: ModuleSecurityInfo('re').protect('compile', 'Use the "re" module') ...and suddenly anyone to whom you grant 'Use the "re" module' permission will be able to 'from re import compile' in their Python Methods. Anyone else will be able to 'import re', but not access any of its contents. Cheers, Evan @ digicool & 4-am From stuartafoster@home.com Wed Sep 6 16:23:57 2000 From: stuartafoster@home.com (Stuart Foster) Date: Wed, 6 Sep 2000 08:23:57 -0700 Subject: [Zope] Form Validation In-Reply-To: <39B5FF5A.7CB96740@qbcon.com> Message-ID: I can't answer your question but have been looking for similar information. Where can I find out more about ":string" and so forth. I haven't been able to locate any information on validation.. Thanks -----Original Message----- From: andreas@qbcon.com [mailto:andreas@qbcon.com]On Behalf Of Andreas Pauley Sent: Wednesday, September 06, 2000 1:25 AM To: Zope Subject: [Zope] Form Validation Hi, I see you can let Zope do basic form validation for you by appending ":string" or ":int" to your form name. The error messages that are displayed are not that clear, however. How can I get more control over what happens when an error occurs? (e.g. I'd like to be able to get back a list/ditionary of errors instead of handling them one by one) Where can I get documentation on all the built-in form validation options at my disposal? (e.g. a field may not be required, but if it is filled in it has to be an integer) Is Zope's built-in form validation sufficient for a complex system? Are there better ways to do form validation? I saw a php program on freshmeat.net the other day that supposedly generates forms complete with client and server-side validation. Do we have a similar product in Zope? Thanks, Andreas. -- In a world without fences, who needs gates? _______________________________________________ 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 flight@mathi.uni-heidelberg.de Wed Sep 6 16:31:00 2000 From: flight@mathi.uni-heidelberg.de (Gregor Hoffleit) Date: Wed, 6 Sep 2000 17:31:00 +0200 Subject: [Zope] Re: =?iso-8859-1?Q?=5BZope=5D_Buying_Zope_for_139_German_Marks_-_It=B4s_chea?= =?iso-8859-1?Q?p?= =?iso-8859-1?Q?p?= In-Reply-To: <39B65C52.8303E97B@friatec.de>; from harald.koschinski@friatec.de on Wed, Sep 06, 2000 at 05:01:38PM +0200 References: <39B65C52.8303E97B@friatec.de> Message-ID: <20000906173100.I5786@mathi.uni-heidelberg.de> On Wed, Sep 06, 2000 at 05:01:38PM +0200, Harald Koschinski wrote: > maybe its old new´s - maybe not: > > Zope is part of "SuSE Linux 7.0 Profesional Edititon" and > > this is printed on the box in the categorie "Features and Highlights". > It is indeed a Highlight. Got a better buy: www.lob.de sells Debian 2.2 for 39,90 DM: The description in the online shop also mentions that Zope is included. IIRC, the LinuxLand Debian box also featured Zope. Just to be fair: Zope is also included since a while in Redhat's PowerTools add-on package. I guess SuSE had no choice anymore ;-) Gregor From dennisw@p-wave.com Wed Sep 6 16:34:39 2000 From: dennisw@p-wave.com (Will Dennis) Date: Wed, 06 Sep 2000 11:34:39 -0400 Subject: [Zope] INSTANCE_HOME problems... Message-ID: <39B6640F.CB7BB04C@p-wave.com> Hello all, I have followed 4am's INSTANCE-HOME How-To, and have set up a Zope Instance. I created the var, import, Extensions and Products directories from scratch. I then put a new product in the new instance's Products directory. When I start my new Zope instance, it sees all of the products that are installed in the base Zope installation, but not the new product in the instance's Products directory. If I put the new product in the base Zope installation, then my new instance sees it. Based on my understanding of the INSTANCE_HOME How-To, I should be able to have separate products in the instance's Products directory, right? Any help on this is greatly appreciated! If you could, please cc: any responses to my email address (willd@p-wave.com) as well as the list, since I am in digest mode. Thanks! BTW, I'm running Zope 2.2.1 on linux2. Thanks again folks, Will Dennis P-Wave, Inc. From kbr@pangea.ca Wed Sep 6 17:05:51 2000 From: kbr@pangea.ca (Kip Rugger) Date: 6 Sep 2000 11:05:51 -0500 Subject: [Zope] supplemental group ids (Linux) References: <8p10qt$6r2$1@rugger.nodomain.ca> <39B4AF86.7F8FA992@libc.org> <8p38r1$ic$1@rugger.nodomain.ca> <39B5E2DB.38FF0593@libc.org> Message-ID: <8p5q0v$2ea$1@rugger.nodomain.ca> >OK, something is not quite right here. >On my unmodified zope, it is properly 'sandboxed'. Perhaps it is the use of >the explicit '-u nobody'? I don't do that on >my system, which causes Zope to run as nobody implicitly. > >(When started as root, unless told otherwise, zope will switch to nobody). > >Try running without the 'u nobody switch, and see what happens. Just out of >curiousity. No difference. I think the point is that Zope does not make any initgroups(3) calls; this will be a problem if the particular system needs it. I have two such systems: Linux 2.2.16 + glibc-2.1.2 NetBSD 1.4 Having reviewed the kernel and libc sources in both cases, I am convinced that set*gid and {init,set,get}groups operate totally independently. At minimum, initgroups is used by login/su to set the primary gid found in /etc/passwd, plus any additional gids associated with the uid in /etc/group, as supplemental gids. Thus, even if there are no supplemental gids in /etc/group, you still have the primary gid in the kernel's list of supplementals. So the primary gid occurs initially in 3 places: the real and effective gids, and one of the supplemental gids. You must get all 3; setgid for real and eff, initgroups for sup. (Additionally in linux you have the `saved' gid and the fsgid, but setgid will modify them.) Under this hypothesis, my question is how could _your_ system work? Why is it that you don't have the original primary gid lingering in the supplemental list? From bkc@murkworks.com Wed Sep 6 18:13:23 2000 From: bkc@murkworks.com (Brad Clements) Date: Wed, 6 Sep 2000 13:13:23 -0400 Subject: [Zope] Proxy roles don't propagate? - bizzare permissions from ZDChart too Message-ID: <39B642E9.15391.46E984E7@localhost> I'm using LoginManager and the loginForm cookie method for security. I want my login form to use the same standard_html_header, stylesheet and so on as my system. My hierarchy is / Strader StyleSheet acl_Users loginForm I've denied anonymous access to Strader and so on, but I want the loginForm to be able to load standard_html_header, which in turn references a few things in Strader Anyway, my loginForm has this: I've given the loginForm a proxy role called "Customer" Customer has full access to Strader and everything in it. It looks like standard_html_header is rendered, but when standard_html_header calls StyleSheet and other objects in the Strader folder, I get the browser login box. Cancelling that shows "access to StyleSheet denied". Its as if the proxy role assigned to loginForm is discarded by standard_html_header, even though I didn't assign standard_html_header any proxy roles. Is this a bug, or by design? -- Also, I see that I have some very strange permissions in my list, looks like an installed product goofed. I see this single character permissions. A C D G Z a d h r s t Ahh.. Looks like ZGDChart hasn't used a tuple where it should... Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements From evan@4-am.com Wed Sep 6 18:14:56 2000 From: evan@4-am.com (Evan Simpson) Date: Wed, 6 Sep 2000 13:14:56 -0400 Subject: [Zope] INSTANCE_HOME problems... References: <39B6640F.CB7BB04C@p-wave.com> Message-ID: <005101c01825$faf8cd80$3e48a4d8@digicool.com> From: Will Dennis > I have followed 4am's INSTANCE-HOME How-To, and have set up a Zope > Instance. I created the var, import, Extensions and Products directories > from scratch. I then put a new product in the new instance's Products > directory. When I start my new Zope instance, it sees all of the > products that are installed in the base Zope installation, but not the > new product in the instance's Products directory. Some sanity checks: - You're starting Zope from inside the INSTANCE_HOME, right? - Can you verify that the Data.fs in the INSTANCE_HOME's var is the one being used? - Can you import from INSTANCE_HOME/import? Cheers, Evan @ digicool & 4-am From Tim Hicks" <003d01c016b8$f135c3c0$0301a8c0@tim> <14773.18322.270790.542419@lindm.dm> Message-ID: <000d01c01827$07217c00$0301a8c0@tim> ----- Original Message ----- From: "Dieter Maurer" To: "Tim Hicks" Cc: Sent: Tuesday, September 05, 2000 9:44 PM Subject: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header) > > The analysis provides a workaround for you. > In your ZClass constructor, add > > before the > .createInObjectManager(REQUEST['id'],REQUEST)"> > Dieter, I tried using the code that you suggested above, but I get the following error from Zope 2.2.1 File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_With.py, line 133, in render (Object: theatre_class.createInObjectManager(REQUEST['id'], REQUEST)) File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: theatre_class.createInObjectManager(REQUEST['id'], REQUEST)) (Info: REQUEST) File <string>, line 0, in ? NameError: theatre_class It would seem that is still raising its head. Any ideas? tim From erik@esol.no Wed Sep 6 19:28:53 2000 From: erik@esol.no (Erik Enge) Date: 06 Sep 2000 20:28:53 +0200 Subject: [Zope] Cut down on the Available Objects list. Message-ID: <87og21pe6y.fsf@src.no> Hi, all. When I create ZClasses I can make the Available Objects shrink to just a couple of available objects via subclasses and so forth. How would I do this with a Python Class in a Python Zope Product? (Let's say an OFS.Folder.Folder class, which would normally could contain all available objects.) Thanks :-) From bill@carbonecho.com Wed Sep 6 20:47:46 2000 From: bill@carbonecho.com (Bill Welch) Date: Wed, 6 Sep 2000 19:47:46 +0000 (GMT) Subject: [Zope] ANN: Serving PHP/Perl from Zope update In-Reply-To: <20000905151647.A8300@corrada.com> Message-ID: Got authorization to work! First, another patch to Client.py to raise 'Unauthorized' when 401 is returned by PHP/Perl: after line that starts with if ec==200 add if ec==401: raise 'Unauthorized' Second, numerous changes to the external method that makes the request and receives the response. Here's the whole thing def ServePHP(self): req = self.REQUEST (username, password) = req._authUserPW() headers = {} if req.environ.has_key('HTTP_COOKIE'): headers = {'Cookie' : req.environ['HTTP_COOKIE']} if req.environ.has_key('HTTP_USER_AGENT'): headers = {'User-Agent' : req.environ['HTTP_USER_AGENT']} if req.environ['REQUEST_METHOD'] == 'POST': rTuple = apply(Client.call, (req['phpScript'], username, password, headers), req.form) else: rTuple = Client.call(req['phpScript'], username, password, headers) resp = req['RESPONSE'] # the first element of the return tuple is dervied from rfc822 for cookie in rTuple[0].getallmatchingheaders('Set-Cookie'): cookie = cookie[:-1] # remove \n - is there an idiom for this? apply(resp.setHeader, split(cookie, ':', 1)) # not a particularly strong test, maybe Client should pass back status if rTuple[0].has_key('location'): # override base so that relative references work resp.base = rTuple[0]['location'] raise 'Redirect', resp.base #override base so that relative references work resp.base = 'http://www.carbonecho.com:10080/forum/' + req['origScript'] return rTuple[1] From bill@carbonecho.com Wed Sep 6 21:14:08 2000 From: bill@carbonecho.com (Bill Welch) Date: Wed, 6 Sep 2000 20:14:08 +0000 (GMT) Subject: [Zope] ANN: Serving PHP/Perl from Zope update In-Reply-To: Message-ID: oops! that should be username, password = req._authUserPW() From andym@ActiveState.com Wed Sep 6 21:58:55 2000 From: andym@ActiveState.com (Andy McKay) Date: Wed, 6 Sep 2000 13:58:55 -0700 Subject: [Zope] Re: [Zope-Perl] Send me your Perl Methods References: Message-ID: <002501c01845$4540d260$ae03a8c0@fork> Or maybe using a perl module that doesnt exist in Python? I was looking at MP3::Napster the other day but Im stuck on Windows. ----- Original Message ----- From: "Gisle Aas" To: "Michel Pelletier" Cc: ; Sent: Wednesday, September 06, 2000 1:33 PM Subject: Re: [Zope-Perl] Send me your Perl Methods > Michel Pelletier writes: > > > Gisle Aas wrote: > > > > > > > > > I'm also looking for interesting examples :-) > > > > > > Do you have any interesting PythonMethod examples? I can probably > > > translate it to perl for you. > > > > Yes, I thought that was a good approach. I don't really have any good > > python methods either, but I can come up with some. > > > > Here's an algorithm I did in the Globbing Lexicon component of Zope. > > This turns a string into 'digrams' Which is a common wild-card searching > > datastructure. So: > > > > bob => ['$b', 'bo', 'ob', 'b$'] > > python => ['$p', 'py', 'yt', 'th', 'ho', 'on', 'n$'] > > > > Dollar signs mark the beginning and ending of the word. > > > > def digram(word): > > """ """ > > digrams = [] > > digrams.append('$' + word[0]) # mark the beginning > > > > for i in range(len(word)): > > digrams.append(word[i:i+2]) > > > > digrams[-1] = digrams[-1] + '$' # mark the end > > > > return digrams > > > > There's probably a better way to do it in Python, and this should be > > Perl's forte. Can someone come up with a reasonably cool Perl method > > that did this? > > sub digram { > my $word = shift; > my @digrams; > push(@digrams, '$' . substr($word, 0, 1)); > push(@digrams, substr($word, $_, 2)) for 0 .. length($word)-1; > $digrams[-1] .= '$'; > return \@digrams; > } > > I'm not so sure about this being perl's forte. There was no way to > use regular expressions here :-) > > I would actually like to see some methods that interact more with the > Zope environment. > > Regards, > Gisle > > _______________________________________________ > Zope-perl maillist - Zope-perl@zope.org > http://lists.zope.org/mailman/listinfo/zope-perl > From dennisw@p-wave.com Wed Sep 6 22:06:51 2000 From: dennisw@p-wave.com (Will Dennis) Date: Wed, 06 Sep 2000 17:06:51 -0400 Subject: [Zope] INSTANCE_HOME problems... References: <39B6640F.CB7BB04C@p-wave.com> <005101c01825$faf8cd80$3e48a4d8@digicool.com> Message-ID: <39B6B1EB.C7BB0255@p-wave.com> Thanks for replying so quickly, Evan! Evan Simpson wrote: > > Some sanity checks: > > - You're starting Zope from inside the INSTANCE_HOME, right? Yes, just as in the How-To instructions. I can provide you with the start script if necessary. > > > - Can you verify that the Data.fs in the INSTANCE_HOME's var is the one > being used? > Yes, the Database Management page in Control Panel says the location is my instance path (/home/zope/p-wave/var/Data.fs) whereas the "base" Zope installation is in /usr/local/zope. > > - Can you import from INSTANCE_HOME/import? > Yes, just tried it and it does import products fine (just imported a self-written product we had exported from another Zope installation.) > > Cheers, > > Evan @ digicool & 4-am Thanks again, Will From aboulanger@ldeo.columbia.edu Wed Sep 6 22:25:14 2000 From: aboulanger@ldeo.columbia.edu (Albert Boulanger) Date: Wed, 06 Sep 2000 17:25:14 -0400 Subject: [Zope] ZDebug Wizzard interference References: <200009051759.NAA03814@ox.ldgo.columbia.edu> Message-ID: <39B6B63A.4B3F1310@ldeo.columbia.edu> Shane wrote > > > http://www.zope.org/Members/hathawsh/ZDebug/index_html > > ZDebug is a set of patches to Zope that help in the deciphering of DTML > errors and authorization exceptions. Because this is the first > release, remember to make a backup before installing. Looks like ZDebug does not work to well with wizards -- I suspect because of ZCallable. I am using a PTK snapshot from today, latest Zope. Did a test with and w/o ZDebug. Wizard works fine w/o. By the way I like where ZDebug is going! This is what happens when you ad a portal.... An exception occurred in a DTML method or document. Error type: exceptions.IndexError Error value: list index out of range Innermost method: /vpatch/PortalWizard/wizard_fillin_fields Namespace Stack (innermost entry at top) ID Type (N/A) mapping with keys: ['document_id', 'document_title'] (N/A) mapping with keys: ['document_id', 'document_title'] PortalWizard InstanceDict REQUEST ZPublisher.HTTPRequest.HTTPRequest Source of /vpatch/PortalWizard/wizard_fillin_fields with fault: "> vPatch Home | Products, Services, and Solutions | Testimonials | Investor Relations | Demos | Login/Registration | Learning Center | Contact Us Traceback (innermost last): File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 187, in publish File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 171, in publish File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/App/Factory.py, line 178, in index_html (Object: RoleManager) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZCallable/__init__.py, line 101, in __call__ (Object: Traversable) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: index_html) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLLocator.py, line 103, in __call__ (Object: index_html) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: index_html) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLDebug.py, line 213, in debug_render_blocks File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLDebug.py, line 210, in debug_render_blocks File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 168, in __call__ (Object: wizard_fillin_fields) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLLocator.py, line 103, in __call__ (Object: wizard_fillin_fields) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: wizard_fillin_fields) File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLDebug.py, line 259, in debug_render_blocks File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLDebug.py, line 192, in debugException (Object: pagevars="_.getattr(wizard_pages[wizard_index], 'wizard_variables', [])") File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLDebug.py, line 257, in debug_render_blocks File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, line 146, in render (Object: pagevars="_.getattr(wizard_pages[wizard_index], 'wizard_variables', [])") File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: _.getattr(wizard_pages[wizard_index], 'wizard_variables', [])) (Info: wizard_pages) File , line 0, in ? File /users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, line 163, in careful_getitem IndexError: (see above) From dennisw@p-wave.com Wed Sep 6 22:44:06 2000 From: dennisw@p-wave.com (Will Dennis) Date: Wed, 06 Sep 2000 17:44:06 -0400 Subject: [Zope] INSTANCE_HOME problems... References: <39B6640F.CB7BB04C@p-wave.com> <005101c01825$faf8cd80$3e48a4d8@digicool.com> Message-ID: <39B6BAA6.C8C7A52E@p-wave.com> Hello all, OK, shoulda tried other products before posting... We just installed two products (LocalFS and ZSMime) in the given instance's Products folder, and they appear in the instance, just as they should! For some reason, however, WorldPilot doesn't show up unless I install it in the base Zope's Products folder... Guess I'll have to email the N&H guys (unless they're on this list!) Thanks for your help, anyways... I'll do more testing next time. Will From aboulanger@ldeo.columbia.edu Wed Sep 6 23:14:38 2000 From: aboulanger@ldeo.columbia.edu (Albert Boulanger) Date: Wed, 06 Sep 2000 18:14:38 -0400 Subject: [Zope] Set Access Rule wish Message-ID: <39B6C1CE.8108C7C2@ldeo.columbia.edu> Its nice that the icon for the method, who is the access rule's target, is changed. However, I think also there needs to be some indicator on the folder involved as well. Over the long weekend, I had accidentally set an access rule (for URL-based SQLSession ID) in the proper folder and also a subfolder (to the same method). Took me several days to discover that other access rule had been set in the subfolder. When your you have mistakes with this kind of stuff, I can be madding and any kind of indicators would be useful. Regards, Albert Boulanger aboulanger@vpatch.com From anderson@boi.hp.com Wed Sep 6 23:25:43 2000 From: anderson@boi.hp.com (Bill Anderson) Date: Wed, 06 Sep 2000 16:25:43 -0600 Subject: [Zope] DateTime.now().iso_week Message-ID: <39B6C467.80FDBD7A@boi.hp.com> In Zope, I need to get the results of the command in the subject. Unfortunately (and somewhat irritatingly...), Zope doesn't seem to use the mxDateTime package, and thus, _.DateTime does _not_ have it. Anyone know how I would go about getting it? Without using an External method? -- Bill Anderson (ARC) Unix/Linux System Administrator HPSO Engineering Productivity Team Wednesday, September 06, 2000 Random Quote: Why can't women put the toilet seat back up? From terry@adroit.net Wed Sep 6 11:27:19 2000 From: terry@adroit.net (Terry Kerr) Date: Wed, 06 Sep 2000 21:27:19 +1100 Subject: [Zope] Re: [ZCommerce] Shopping application for Chinese Restaurant ? References: <2510.968247478@www7.gmx.net> Message-ID: <39B61C07.AA2A40EF@adroit.net> Have you looked at Etailer? It is easy to adapt its python code. Dominic Lakatos wrote: > Dear all, > > we intend to build an online menu card for a Chinese restaurant > (preferably multilingual). Please give us some orientation which of the existing and > free Zope application will make this task easiest ? > > Desired functionalities: > - online ordering by customers > - to be used for in-house accounting ("table 4 had 2 dishes of dumplings > on 24 Oct") > - multilanguage support would be nice > - should allow editing of prices and offers by authenticated maintainer > - should be modular and extensible, as this may be a longer relationship > > We are not afraid of adapting "raw" python where useful. > > Which of the current codebase comes closest to this ? Emarket ? Zcommerce > ? Or would sb rather advocate a non-python solution (minivend comes to our > mind)? > > TIA, > > -- > Dominic Lakatos and Holger Blasum > weigl !interService, Munich, Germany > > Sent through GMX FreeMail - http://www.gmx.net > > _______________________________________________ > ZCommerce Mailing List - ZCommerce@codeit.com > http://lists.codeit.com/mailman/listinfo/zcommerce -- Terry Kerr (terry@adroit.net) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 938 124 ICQ: 79303381 From anderson@boi.hp.com Wed Sep 6 23:46:19 2000 From: anderson@boi.hp.com (Bill Anderson) Date: Wed, 06 Sep 2000 16:46:19 -0600 Subject: [Zope] Major problem involving Multiple zopes on one machine Message-ID: <39B6C93B.1497FEB6@boi.hp.com> This is happening on an HP-UX 11.0 machine. Setup: Two Zope installs, TWO IP adresses. Each install has the -a xx.xx.xx.xx address option passed via the standard start script. problem: occasionally, while working on one, I wind up actually working on the other. Clarification: While in the manage screen for ServerA, I occasionally see the management screen for ServerB. Even wihtout being logged into ServerB. (IE. clean browser session) This sucks. -- Bill Anderson (ARC) Unix/Linux System Administrator HPSO Engineering Productivity Team Wednesday, September 06, 2000 Random Quote: (A)bort, (R)etry, (S)elf-destruct? From mindlace@digicool.com Wed Sep 6 23:56:40 2000 From: mindlace@digicool.com (ethan mindlace fremen) Date: Wed, 06 Sep 2000 18:56:40 -0400 Subject: [Zope] Major problem involving Multiple zopes on one machine References: <39B6C93B.1497FEB6@boi.hp.com> Message-ID: <39B6CBA8.754C214A@digicool.com> Bill Anderson wrote: > Clarification: > While in the manage screen for ServerA, I occasionally see the > management screen for ServerB. Even wihtout being logged into ServerB. > (IE. clean browser session) I have 5 zopes on the same machine & i have never noticed this problem. do the different ip's have different names? what do you get from when you start as far as computing default hoistname goes? ~mindlace From anderson@boi.hp.com Thu Sep 7 00:26:41 2000 From: anderson@boi.hp.com (Bill Anderson) Date: Wed, 06 Sep 2000 17:26:41 -0600 Subject: [Zope] Major problem involving Multiple zopes on one machine References: <39B6C93B.1497FEB6@boi.hp.com> <39B6CBA8.754C214A@digicool.com> Message-ID: <39B6D2B1.7EEB173C@boi.hp.com> ethan mindlace fremen wrote: > > Bill Anderson wrote: > > > Clarification: > > While in the manage screen for ServerA, I occasionally see the > > management screen for ServerB. Even wihtout being logged into ServerB. > > (IE. clean browser session) > > I have 5 zopes on the same machine & i have never noticed this problem. > do the different ip's have different names? what do you get from when > you start as far as computing default hoistname goes? > > ~mindlace As I sit here and play with it, it seems to happen when I restart zope from within the Control panel. I'll look up the hostname part in a few minutes ... I can't restart the server just yet. IIRC, they came up with the correct hostnames ... -- Bill Anderson (ARC) Unix/Linux System Administrator HPSO Engineering Productivity Team Wednesday, September 06, 2000 Random Quote: The world is a stage, but the play is badly cast. From bill@libc.org Thu Sep 7 02:05:06 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 06 Sep 2000 19:05:06 -0600 Subject: [Zope] supplemental group ids (Linux) References: <8p10qt$6r2$1@rugger.nodomain.ca> <39B4AF86.7F8FA992@libc.org> <8p38r1$ic$1@rugger.nodomain.ca> <39B5E2DB.38FF0593@libc.org> <8p5q0v$2ea$1@rugger.nodomain.ca> Message-ID: <39B6E9C2.AB0083BD@libc.org> Kip Rugger wrote: > > >OK, something is not quite right here. > >On my unmodified zope, it is properly 'sandboxed'. Perhaps it is the use of > >the explicit '-u nobody'? I don't do that on > >my system, which causes Zope to run as nobody implicitly. > > > >(When started as root, unless told otherwise, zope will switch to nobody). > > > >Try running without the 'u nobody switch, and see what happens. Just out of > >curiousity. > > No difference. > > I think the point is that Zope does not make any initgroups(3) calls; > this will be a problem if the particular system needs it. > > I have two such systems: > > Linux 2.2.16 + glibc-2.1.2 > NetBSD 1.4 ... > Under this hypothesis, my question is how could _your_ system work? > Why is it that you don't have the original primary gid lingering in > the supplemental list? Not sure. Here is my setup: glibc 2.1.3 Kernel 2.2.15 heavilly modified Redhat 6.2 base. Perhaps it is the kernel? I also have a 2.2.16 (2.1.3 glibc) kernelled machine which exhibits the behavior you see on yours.. I can try it on a 2.2.4test6 kernel too ... -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From bill@libc.org Thu Sep 7 03:59:06 2000 From: bill@libc.org (Bill Anderson) Date: Wed, 06 Sep 2000 20:59:06 -0600 Subject: [Zope] re module & through the web security References: <39B611C4.90C6C957@nipltd.com> <002f01c01815$74c48570$3e48a4d8@digicool.com> Message-ID: <39B7047A.C20081F2@libc.org> Evan Simpson wrote: > > From: Chris Withers > > One of Zope's key strengths is its granular security, right? > > So why isn't it the reponsibility of the site > > designer/maintainer/owner/whatever to ensure that only people he trusts > > have the ability to write DTML? > > Fear not. In the brand new shiny PythonMethods Product coming soon > (really!) to a Zope near you, you will have the ability to say: > > ModuleSecurityInfo('re').protect('compile', 'Use the "re" module') > > ...and suddenly anyone to whom you grant 'Use the "re" module' permission > will be able to 'from re import compile' in their Python Methods. Anyone > else will be able to 'import re', but not access any of its contents. Now THAT! Rocks! -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From twcook@iswt.com Thu Sep 7 05:35:19 2000 From: twcook@iswt.com (Tim Cook) Date: Wed, 06 Sep 2000 23:35:19 -0500 Subject: [Zope] Whitespace in lines property Message-ID: <39B71B07.ED52400@iswt.com> Can anyone tell me why when I edit a lines property I get leading whitespace inserted? The first line gets seven & each one after that gets 10 spaces. I tried stripping it out but this didn't seem to have any effect. ... ... Thanks, -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From bill@carbonecho.com Thu Sep 7 06:14:36 2000 From: bill@carbonecho.com (Bill Welch) Date: Thu, 7 Sep 2000 05:14:36 +0000 (GMT) Subject: [Zope] ANN: Serving PHP/Perl from Zope update In-Reply-To: Message-ID: oops, again :-( headers = {} if req.environ.has_key('HTTP_COOKIE'): headers['Cookie'] = req.environ['HTTP_COOKIE'] if req.environ.has_key('HTTP_USER_AGENT'): headers['User-Agent'] = req.environ['HTTP_USER_AGENT'] Also on my member page - http://zope.org/Members/billw/morePHP From tino@wildenhain.de Thu Sep 7 06:21:41 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 07 Sep 2000 07:21:41 +0200 Subject: [Zope] Whitespace in lines property References: <39B71B07.ED52400@iswt.com> Message-ID: <39B725E5.E2392284@wildenhain.de> Hi Tim, Tim Cook wrote: > > Can anyone tell me why when I edit a lines property I get leading > whitespace inserted? > The first line gets seven & each one after that gets 10 spaces. > > I tried stripping it out but this didn't seem to have any effect. > > ... > > > here marks your whitespaces. try: Ugly code, but... HTH Tino From twcook@iswt.com Thu Sep 7 06:39:06 2000 From: twcook@iswt.com (Tim Cook) Date: Thu, 07 Sep 2000 00:39:06 -0500 Subject: [Zope] Whitespace in lines property References: <39B71B07.ED52400@iswt.com> <39B725E5.E2392284@wildenhain.de> Message-ID: <39B729FA.F192C796@iswt.com> Tino Wildenhain wrote: > > Hi Tim, > > Tim Cook wrote: > > > > Can anyone tell me why when I edit a lines property I get leading > > whitespace inserted? > > The first line gets seven & each one after that gets 10 spaces. > > > > I tried stripping it out but this didn't seem to have any effect. > > > > ... > > > > > > > here marks your whitespaces. > > try: > > > > Ugly code, but... > Well, "realize something NEW everyday!" It never crossed my mind that the space between my code elements would be rendered. DUH! Thanks, -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From tino@wildenhain.de Thu Sep 7 06:46:57 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 07 Sep 2000 07:46:57 +0200 Subject: [Zope] Whitespace in lines property References: <39B71B07.ED52400@iswt.com> <39B725E5.E2392284@wildenhain.de> <39B729FA.F192C796@iswt.com> Message-ID: <39B72BD1.78B7F419@wildenhain.de> Hi Tim, Tim Cook wrote: > > Tino Wildenhain wrote: > > > > Hi Tim, > > > > Tim Cook wrote: > > > > > > Can anyone tell me why when I edit a lines property I get leading > > > whitespace inserted? > > > The first line gets seven & each one after that gets 10 spaces. > > > > > > I tried stripping it out but this didn't seem to have any effect. > > > > > > ... > > > > > > > > > > > here marks your whitespaces. > > > > try: > > > > > > > > Ugly code, but... > > > > Well, "realize something NEW everyday!" > It never crossed my mind that the space between my code elements > would be rendered. DUH! Hehe ;) I'm currently playing with a clean-up tag, to remove whitespaces/empty lines in code. May be I release it, if its fully done. Stay tuned ;-) Regards Tino From egibson@connect.com.au Thu Sep 7 07:08:18 2000 From: egibson@connect.com.au (Evan Gibson) Date: Thu, 7 Sep 2000 17:08:18 +1100 Subject: [Zope] Whitespace in lines property In-Reply-To: <39B72BD1.78B7F419@wildenhain.de>; from Tino Wildenhain on Thu, Sep 07, 2000 at 07:46:57AM +0200 References: <39B71B07.ED52400@iswt.com> <39B725E5.E2392284@wildenhain.de> <39B729FA.F192C796@iswt.com> <39B72BD1.78B7F419@wildenhain.de> Message-ID: <20000907170818.36490@connect.com.au> On Thu, Sep 07, 2000 at 07:46:57AM +0200, Tino Wildenhain wrote: > > > here marks your whitespaces. > > > > > > try: > > > > > > > > > > > > Ugly code, but... > > > > Well, "realize something NEW everyday!" > > It never crossed my mind that the space between my code elements > > would be rendered. DUH! > > Hehe ;) I'm currently playing with a clean-up tag, to remove > whitespaces/empty > lines in code. May be I release it, if its fully done. Stay tuned ;-) I used to get bitten an awful lot by doing: This would cause the spaces to appear _before_ the header information and actually just come up with error messages. Took me some very frustrating hours to realise I just had to get rid of the spaces and format things really badly to fix it. > Regards > Tino -- Evan ~ThunderFoot~ Gibson ~ nihil mutatem, omni deletum ~ All of us are God's creatures... just some are more creature than others. From chrism@digicool.com Thu Sep 7 07:31:50 2000 From: chrism@digicool.com (Chris McDonough) Date: Thu, 7 Sep 2000 02:31:50 -0400 Subject: [Zope] RE: [Zope-dev] date formatting / extracting substrings Message-ID: <613145F79272D211914B0020AFF640199E6D5F@gandalf.digicool.com> Hi Jeff, (I've moved this to the Zope list out of Zope-Dev) ... do something with the result ... Have a look at the Python documentation as it relates to "slicing". > -----Original Message----- > From: Jeff Nielsen / Ugo Fast [mailto:Jeff@UgoFast.com] > Sent: Thursday, September 07, 2000 1:10 AM > To: Zope-Dev@Zope. Org > Subject: [Zope-dev] date formatting / extracting substrings > > > Hello out there in Zope world! > > Again, I'm completely baffled by Zope and the docs are no > help either. I'm > trying to take an input of a date in the form YYYYMM as the > variable MonthID > and create a string in the form Month, YYYY as a variable > named MonthName. > For instance, a MonthID of 200009 should return a MonthName > of "September, > 2000". > > I've been looking in the docs and the emails, but I can't > figure out how to > extract substrings. I think something like this should work > to seperate the > month value from the MonthID, but it doesn't: > > > > Any guidance would be appreciated. > > ----------------------- > Jeff Nielsen > http://www.UgoFast.com/ > "Where U Go Fast" > > > _______________________________________________ > Zope-Dev maillist - Zope-Dev@zope.org > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) > From kcheong@vcn.com.my Thu Sep 7 09:53:28 2000 From: kcheong@vcn.com.my (Kelvin Cheong) Date: Thu, 07 Sep 2000 08:53:28 GMT Subject: [Zope] Using Chinese Characters Message-ID: <20000907085328.26427.qmail@vmail.vcn.com.my> i was wondering how i can use chinese characters with Zpe on Linux. does anyone know how? According to my "mild" research so far, i found out that Big5is a 2-byte code and is a part of ISO-10646/Unicode. It also seems to be the de-facto for traditional chinese characters. There're also Unicode CJK and GB. But GB is for China, which uses simplified chinese characters. And CJK includes both Big5 and GB. The most puzzling thing to me is how all this works. Do i need a special browser, font server, Zope products? And when i can display chinese characters using any one of the standards, how am i going to input it in the first place? And last but not least, how does all this ascii and unicode conversion work together? I've seen a couple of chinese sites running on Zope, and was wondering if I could get some help in here. Anyone have any ideas? VCN - The Leader In Corporate Communication Solutions Visit our website at http://www.vcn.com.my. or http://www.vcnlinux.com From michele@olsen.ch Thu Sep 7 10:17:38 2000 From: michele@olsen.ch (Michele Ravani) Date: Thu, 07 Sep 2000 11:17:38 +0200 Subject: [Zope] Zope 2.2.1 Solaris 8 dumps core Message-ID: <39B75D32.8B2425CC@olsen.ch> Hi I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris 8, built it ok, but when I try run ./start it it dumps core with a segmentation fault. Is this problem known? Anything I can do? I am completely new to both Python and Zope ... Thanks Michele ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #0 initExtensionClass () at ./../Components/ExtensionClass/ExtensionClass.c:3508 3508 ECTypeType.ob_type=&PyType_Type; (gdb) where #0 initExtensionClass () at ./../Components/ExtensionClass/ExtensionClass.c:3508 #1 0x28ddc in _PyImport_LoadDynamicModule (name=0xefff310b "ExtensionClass", pathname=0xefff2c10 "/home/michele/Projects/Zope-2.2.1-src/lib/python/ExtensionClass.so", fp=0xb2fc0) at ./importdl.c:851 #2 0x26ee4 in load_module (name=0xefff310b "ExtensionClass", fp=0xb2fc0, buf=0xefff2c10 "/home/michele/Projects/Zope-2.2.1-src/lib/python/ExtensionClass.so", type=3) at import.c:1210 #3 0x27cf0 in import_submodule (mod=0x9f1dc, subname=0xefff310b "ExtensionClass", fullname=0xefff310b "ExtensionClass") at import.c:1755 #4 0x27870 in load_next (mod=0xe6100, altmod=0x9f1dc, p_name=0xefff310b, buf=0xefff3100 "ZPublisher.ExtensionClass", p_buflen=0xefff30fc) at import.c:1607 #5 0x2742c in import_module_ex (name=0x0, globals=0x185428, locals=0x185428, fromlist=0xe78e0) at import.c:1445 #6 0x275cc in PyImport_ImportModuleEx (name=0x1a2004 "ExtensionClass", globals=0x185428, locals=0x185428, fromlist=0xe78e0) at import.c:1489 #7 0x48dd8 in builtin___import__ (self=0x0, args=0x185ba0) at bltinmodule.c:65 #8 0x1e1d4 in call_builtin (func=0xb45b0, arg=0x185ba0, kw=0x0) at ceval.c:2359 #9 0x1e0a0 in PyEval_CallObjectWithKeywords (func=0xb45b0, arg=0x185ba0, kw=0x0) at ceval.c:2324 #10 0x1c574 in eval_code2 (co=0x1a2570, globals=0x0, locals=0x185428, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, owner=0x0) at ceval.c:1445 #11 0x1a390 in PyEval_EvalCode (co=0x1a2570, globals=0x185428, locals=0x185428) at ceval.c:324 #12 0x26210 in PyImport_ExecCodeModuleEx (name=0xefff42c0 "ZPublisher.BaseRequest", co=0x1a2570, pathname=0xefff38e0 "/home/michele/Projects/Zope-2.2.1-src/lib/python/ZPublisher/BaseRequest.pyc") at import.c:485 #13 0x26744 in load_source_module (name=0xefff42c0 "ZPublisher.BaseRequest", pathname=0xefff38e0 "/home/michele/Projects/Zope-2.2.1-src/lib/python/ZPublisher/BaseRequest.pyc", fp=0x1a2570) at import.c:724 #14 0x26eb4 in load_module (name=0xefff42c0 "ZPublisher.BaseRequest", fp=0xb2fb0, buf=0xefff3dd0 "/home/michele/Projects/Zope-2.2.1-src/lib/python/ZPublisher/BaseRequest.py", type=1) at import.c:1202 #15 0x27cf0 in import_submodule (mod=0xe6100, subname=0xefff42cb "BaseRequest", fullname=0xefff42c0 "ZPublisher.BaseRequest") at import.c:1755 #16 0x2781c in load_next (mod=0xe6100, altmod=0x9f1dc, p_name=0xefff42cb, buf=0xefff42c0 "ZPublisher.BaseRequest", p_buflen=0xefff42bc) at import.c:1603 [...] From soren@roug.org Thu Sep 7 11:00:24 2000 From: soren@roug.org (Soren Roug) Date: Thu, 07 Sep 2000 12:00:24 +0200 Subject: [Zope] Python, persistent objects and caching Message-ID: <39B76738.99E7393D@roug.org> Hi, I'm developing a Python-based product that uses persistent objects in ZODB to store its configuration. No surprises there, but my product is also using volatile attributes to do a bit of caching of its own. The thing is, when ZODB takes a sweep every 60 seconds to flush it's own cache it will quite often flush my product as well, essentially rendering my 15 minute caching ineffective. If there a way I can prevent this from happening? References: http://www.zope.org/Members/MikeP/volatile http://www.zope.org/Members/Zen/tips/VolatileAttributes Soren Roug From khine@bmpublications.co.uk Thu Sep 7 13:05:10 2000 From: khine@bmpublications.co.uk (Norman Khine) Date: Thu, 7 Sep 2000 13:05:10 +0100 Subject: [Zope] ZODB How To please HELP Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C018CC.40B96220 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I am trying to follow the How to on ZODB How To, but I get stuck at the point of when testing the sqlInsertProduct When I submit the query I get the following error Error, exceptions.SyntaxError: unexpected token sequence.near :: '_weight)\012VALUES'*'\012widget,\012Histor' ******************************* current state = 141 expects: '(', ('nomatch1',) current token = ((-8, 'user_defined_name'), 'WIDGET') SQL used: Could not render the query template! Please help Thanks Norman ------=_NextPart_000_0009_01C018CC.40B96220 Content-Type: application/ms-tnef; name="winmail.dat" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="winmail.dat" eJ8+IgoMAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANAHCQAHAA0ABQAAAAQA/QAB A5AGAOwGAAAlAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADADYAAAAAAB4AcAAB AAAAGQAAAFpPREIgSG93IFRvICBwbGVhc2UgSEVMUAAAAAACAXEAAQAAABYAAAABwBjD25pzHlN6 hJ4R1JmEAAAc1gQjAAACAR0MAQAAACAAAABTTVRQOktISU5FQEJNUFVCTElDQVRJT05TLkNPLlVL AAsAAQ4AAAAAQAAGDgD+t9jDGMABAgEKDgEAAAAYAAAAAAAAADSHBPUpPdQRmQwAABzWBCPCgAAA CwAfDgEAAAACAQkQAQAAAJICAACOAgAAkQMAAExaRnUaypQQAwAKAHJjcGcxMjUWMgD4C2BuDhAw MzNPAfcCpAPjAgBjaArAc/BldDAgBxMCgwBQA1T/EMkHbQKDDlAQbwhVB7ICgEp9CoF2CJB3awuA ZJo0DGBjAFALA3NiD0AZAUBzYRgSC7UgSSBAYW0gdHJ5C4BnaRlwbyACEGwJAAfgdHBoZSBIGmIa AAIgIBBaT0RCGsNUbyxYIGJ1BUAZMGcRMCB0c3QXYGsZQAVAGpJwhm8LgAVAb2Ygdxqg9QOgdAeQ dBmzGqEDMRIRxQvwNBzQcWxJAIAEkNR0UANgZBdgdAqiCoQbCzAYtlceUhkwc3Vi9G1pHVRxClAZ kBx1GpLvGiQZsgSQA2ByIPghNhf6ewwwH3ZFJQIcIAxAJOB4lGNlBTBpAiBzLgawuQIwYXgnwwxA EVA6CiDREVAgdW4oYHAFkB6QumQZ4WseYREgI1FuKIAGLipwCsE6OiAnXwB3ZWlnaHQpXARcMA4g VkFMVUWwUycqJy0TA/BkHKEaLC0TSAQAGfByJyDmKi+PMGsgYwhwCXAd4Qcc4B1AGrA9IDE0Mcso USqicyxhKCccIDNgqm4DcXQQ4DEzcCkxd0MrFDJgKCgtOBwgJzp1IEFfAQELgAmAX24RGVBlJyk1 wVdJRLhHRVQ3AArjJYdiBgDsUUwqUBEgZCoCIPoM0CMBQAzQOTU5DMExOYQxOAzBMjg3NwzBkDM4 MzYMwTQ3OrAxDME1NzUXQAzQNjd0MTMMwTc9QA5QDNA4vDYzEhEUghkBCFFsKvC/M8AFQDGxBIEj CR6QbQtRzR6QISD9IQNQbCwQESBSIBqgbHAlSlQQ8G72axCwJVlOBbASYiEDFoECAEYAAAALAAGA CCAGAAAAAADAAAAAAAAARgAAAAADhQAAAAAAAAMAA4AIIAYAAAAAAMAAAAAAAABGAAAAABCFAAAA AAAACwAUgAggBgAAAAAAwAAAAAAAAEYAAAAAgoUAAAEAAAADAByACCAGAAAAAADAAAAAAAAARgAA AABShQAAJ2oBAB4AHYAIIAYAAAAAAMAAAAAAAABGAAAAAFSFAAABAAAABAAAADkuMAALAB6ACCAG AAAAAADAAAAAAAAARgAAAAAGhQAAAAAAAAMAH4AIIAYAAAAAAMAAAAAAAABGAAAAAAGFAAAAAAAA CwAogAggBgAAAAAAwAAAAAAAAEYAAAAADoUAAAAAAAADACmACCAGAAAAAADAAAAAAAAARgAAAAAR hQAAAAAAAAMAK4AIIAYAAAAAAMAAAAAAAABGAAAAABiFAAAAAAAAHgA6gAggBgAAAAAAwAAAAAAA AEYAAAAANoUAAAEAAAABAAAAAAAAAB4AO4AIIAYAAAAAAMAAAAAAAABGAAAAADeFAAABAAAAAQAA AAAAAAAeADyACCAGAAAAAADAAAAAAAAARgAAAAA4hQAAAQAAAAEAAAAAAAAAAgH4DwEAAAAQAAAA NIcE9Sk91BGZDAAAHNYEIwIB+g8BAAAAEAAAADSHBPUpPdQRmQwAABzWBCMCAfsPAQAAAHcAAAAA AAAAOKG7EAXlEBqhuwgAKypWwgAAUFNUUFJYLkRMTAAAAAAAAAAATklUQfm/uAEAqgA32W4AAABD OlxQcm9ncmFtIEZpbGVzXENvbW1vbiBGaWxlc1xTeXN0ZW1cTWFwaVwxMDMzXE5UXG91dGxvb2su cHN0AAADAP4PBQAAAAMADTT9NwAAAgF/AAEAAAA6AAAAPE5FQkJKSkFNREVJSEJJQ0RDTkJPSUVB RkNDQUEua2hpbmVAYm1wdWJsaWNhdGlvbnMuY28udWs+AAAAAwAGELNf2LsDAAcQigEAAAMAEBAA AAAAAwAREAAAAAAeAAgQAQAAAGUAAABJQU1UUllJTkdUT0ZPTExPV1RIRUhPV1RPT05aT0RCSE9X VE8sQlVUSUdFVFNUVUNLQVRUSEVQT0lOVE9GV0hFTlRFU1RJTkdUSEVTUUxJTlNFUlRQUk9EVUNU V0hFTklTVUJNAAAAAMtz ------=_NextPart_000_0009_01C018CC.40B96220-- From Torsten.Eymann@ostsee-zeitung.de Thu Sep 7 13:14:08 2000 From: Torsten.Eymann@ostsee-zeitung.de (Torsten Eymann) Date: Thu, 07 Sep 2000 14:14:08 +0200 Subject: [Zope] generate static html to webserver? Message-ID: <39B78690.B3FC1C5C@ostsee-zeitung.de> Hello, I want generate a static site from zope-folder and his subfolders to put that on an really-internet-server. Can I do that? How? thanks torsten From neeloy_saha@infy.com Thu Sep 7 13:29:26 2000 From: neeloy_saha@infy.com (neeloy_saha) Date: Thu, 7 Sep 2000 17:59:26 +0530 Subject: [Zope] Portal Toolkit and NTUserFolder Message-ID: <8EE756E49A17D21194860008C7F49AFE045290C8@TWRMSG01> Hi all, Can anybody tell me how to integrate the NTUserFolder and the portal toolkit -neeloy From nick@videosystem.co.uk Thu Sep 7 13:59:24 2000 From: nick@videosystem.co.uk (Nick Trout) Date: Thu, 7 Sep 2000 13:59:24 +0100 Subject: [Zope] ZClass base classes Message-ID: <007401c018cb$728c9f20$67c8c8c8@nick> This is a multi-part message in MIME format. ------=_NextPart_000_0071_01C018D3.D442AF40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've looked all throught docs but I cant find anywhere an explanation of = what properties the ZClass base classes give you. Also which order to = inherit them, as the Developers Guide claims the order is important. Can = anyone please enlighten me? Regards, Nick. ------=_NextPart_000_0071_01C018D3.D442AF40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I've looked all throught docs but I = cant find=20 anywhere an explanation of what properties the ZClass base classes give = you.=20 Also which order to inherit them, as the Developers Guide claims the = order is=20 important. Can anyone please enlighten me?
 
Regards,
Nick.
 
 
------=_NextPart_000_0071_01C018D3.D442AF40-- From Brian@digicool.com Thu Sep 7 14:39:35 2000 From: Brian@digicool.com (Brian Lloyd) Date: Thu, 7 Sep 2000 09:39:35 -0400 Subject: [Zope] Python, persistent objects and caching Message-ID: <613145F79272D211914B0020AFF640195A7415@gandalf.digicool.com> > I'm developing a Python-based product that uses persistent objects in > ZODB to store its configuration. No surprises there, but my product is > also using volatile attributes to do a bit of caching of its own. The > thing is, when ZODB takes a sweep every 60 seconds to flush it's own > cache it will quite often flush my product as well, essentially > rendering my 15 minute caching ineffective. > > If there a way I can prevent this from happening? > > References: > http://www.zope.org/Members/MikeP/volatile > http://www.zope.org/Members/Zen/tips/VolatileAttributes > > Soren Roug One approach would be to cache your data in the module's namespace. For ex: mycache={} class MyClassThatKeepsGoingAway: ... def get_data(self, id): if mycache.has_key(id): return mycache[id] else: ... Note that my example is a little contrived, since using a module variable means that you will have to implement this in a way that is safe for a multi-threaded environment. You will also want to make sure that your module-level cache doesn't grow forever and take up a lot of memory. Hope this helps! Brian Lloyd (brian@digicool.com) From troy.farrell@wilcom.com Thu Sep 7 15:24:16 2000 From: troy.farrell@wilcom.com (Farrell, Troy) Date: Thu, 7 Sep 2000 09:24:16 -0500 Subject: [Zope] ZODB How To please HELP Message-ID: Could you send the SQL you used? Also, what platform and Database are you using? > -----Original Message----- > From: Norman Khine [mailto:khine@bmpublications.co.uk] > Sent: Thursday, September 07, 2000 7:05 AM > To: zope@zope.org > Subject: [Zope] ZODB How To please HELP > > I am trying to follow the How to on ZODB How To, but I get stuck at the > point of when testing the sqlInsertProduct > When I submit the query I get the following error > > Error, exceptions.SyntaxError: unexpected token sequence.near :: > '_weight)\012VALUES'*'\012widget,\012Histor' > ******************************* current state = 141 expects: '(', > ('nomatch1',) current token = ((-8, 'user_defined_name'), 'WIDGET') > > SQL used: > Could not render the query template! > > Please help > > Thanks > > Norman From chrism@digicool.com Thu Sep 7 15:40:16 2000 From: chrism@digicool.com (Chris McDonough) Date: Thu, 7 Sep 2000 10:40:16 -0400 Subject: [Zope] ZClass base classes Message-ID: <613145F79272D211914B0020AFF640199E6D62@gandalf.digicool.com> Hi Nick (please don't post HTML mail to the list). I *think* the "Include standard Zope persistent object base classes" check box gives your ZClass the "ZObject" interface which is similar to the SimpleItem interface (see the Zope API docs in the help system - I think it's under Help->Zope Help->API Documentation->ObjectManagerItem). As far as inheritance order, the first base class you add to the ZClass base class list will be ZObject if you use check the "standard base classes" checkbox. The next one will be the first base class you choose (the topmost), the next one will be the one under that, etc. -----Original Message----- From: Nick Trout [mailto:nick@videosystem.co.uk] Sent: Thursday, September 07, 2000 8:59 AM To: Zope Mail list Subject: [Zope] ZClass base classes I've looked all throught docs but I cant find anywhere an explanation of what properties the ZClass base classes give you. Also which order to inherit them, as the Developers Guide claims the order is important. Can anyone please enlighten me? Regards, Nick. From twcook@iswt.com Thu Sep 7 15:33:01 2000 From: twcook@iswt.com (Tim Cook) Date: Thu, 07 Sep 2000 09:33:01 -0500 Subject: [Zope] Folderish Properties Message-ID: <39B7A71D.490F148D@iswt.com> I have a folderish ZClass with a set of properties. When I create an instance via DTML my code doesn't update the properties from REQUEST. I use exactly (names changed of course) the same code to instantiate a document like ZClass and it works fine. So what's the difference between Folderish ZClasses & Document ZClasses in assigning to their properties? (The instance IS created, just the properties aren't assigned values.) I used the howto on adding instances via DTML change to the '_add' methods in both ZClasses. Here's the code FWIW: --- Document-'ish' ---

was added.

Back to Formulary Menu

--- Folder-'ish' ---

was added.

Back to Provider Menu

As Always - Thanks! -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From Vaibhav Goel Thu Sep 7 16:18:23 2000 From: Vaibhav Goel (Vaibhav Goel) Date: Thu, 7 Sep 2000 15:18:23 +0000 Subject: [Zope] [New User]: Investigating Zope...some preliminary questions Message-ID: <20000907151823.B17860@stormbringer.icelandcomplete.is> Hi all: I am currently investigating Zope as a possible "tool" to use for building the back end "engine" for several projects for our company. Some of the sites we are currently doing involve E-commerce, news, etc. It is definitely a very powerful system and I think I have not even scratched the surface. I tried the QuickStart (ZAcme) tutorial and got a feel for whats involved. A few questions came to my mind and maybe I am not getting the "right picture" so to say but I would very much appreciate if someone could take the time to answer these: 1. If we were to go ahead and start using Zope as a "back-end engine" to build websites, basically a team of 3-4 people would be involved. Do they have to have knowledge of Zope? For example, I am the back-end guy....creating, programming the middle tier code for database access and what not. The guy who does the front-end (ie html code, layout ) and graphics guys are not very technical. How will I go about "importing" the front end code within Zope? Are there any modules for DreamWeaver etc (Windows based tools) that integrate with Zope? 2. What about stuff like importing legacy websites? For example, our main website is built using ASP running IIS. I was planning to recode it all in PHP + MySQL. Are there any "straight forward" ways to migrate legacy stuff easily? Again, please accept my apologies if this stuff is covered in the documentation somewhere. So far, I have gone through the Zope Content Manager guide and did not see any details about these questions there. I am in the process of browsing through the mailing list archives and I am sure I will find a lot of info there. Any tips and suggestions are highly appreciated. Regards, VG -- Vaibhav Goel ~ IcelandComplete | vg@icelandcomplete.is GSM: +354 695 6125 | http://www.icelandcomplete.is Office Phone: +354 553 9600 | Grensasvegur 7 Fax: +354 553 8608 | 108 Reykjavik, Iceland From harald.koschinski@friatec.de Thu Sep 7 16:30:33 2000 From: harald.koschinski@friatec.de (Harald Koschinski) Date: Thu, 07 Sep 2000 17:30:33 +0200 Subject: [Zope] Editing of ZClasses using FTP: Access denied Message-ID: <39B7B499.98F36625@friatec.de> Hallo, I am trying to edit methods inside a ZClass. The problem is, that the ZClasse-folder don´t has any permissions via FTP - so there is no chance to come into the folder. Where do I have to change the permission?? Help is really appreciate Thanks Harald From nick@videosystem.co.uk Thu Sep 7 16:43:45 2000 From: nick@videosystem.co.uk (Nick Trout) Date: Thu, 7 Sep 2000 16:43:45 +0100 Subject: [Zope] ZClass base classes References: <613145F79272D211914B0020AFF640199E6D62@gandalf.digicool.com> Message-ID: <00cc01c018e2$680d46f0$67c8c8c8@nick> > (please don't post HTML mail to the list). sorry > I *think* the "Include standard Zope persistent object base classes" > check box gives your ZClass the "ZObject" interface which is similar to > the SimpleItem interface (see the Zope API docs in the help system - I > think it's under Help->Zope Help->API Documentation->ObjectManagerItem). I dont seem to have this in my Zope Help System. Where can I obtain this? I have 2 items in the Contents tab frame: ZeopTutorial and ZopeHelp. The API Documentation I have is very sparse. > As far as inheritance order, the first base class you add to the ZClass > base class list will be ZObject if you use check the "standard base > classes" checkbox. The next one will be the first base class you choose > (the topmost), the next one will be the one under that, etc. But what I need to know is what properties does the derivation give the new object and how does the order affect its behaviour. Ta, Nick > I've looked all throught docs but I cant find anywhere an explanation of > what properties the ZClass base classes give you. Also which order to > inherit them, as the Developers Guide claims the order is important. Can > anyone please enlighten me? From sven.hohage@zeitspringer.de Thu Sep 7 17:02:32 2000 From: sven.hohage@zeitspringer.de (Sven Hohage) Date: Thu, 07 Sep 2000 18:02:32 +0200 Subject: [Zope] wrapped object Message-ID: <39B7BC18.38DC8895@zeitspringer.de> Hallo, while adding ZClass instances by form I get the following traceback: I don't know what's a wrapped object?? And where the problem is. Thanks -->>>>>>> Zope Error Zope has encountered an error while publishing this resource. Error Type: ValueError Error Value: Invalid property value: wrapped object -------------------------------------------------------------------------------- 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 C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Zopppaaa\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Zopppaaa\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: testskript) File C:\Zopppaaa\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: testskript) File C:\Zopppaaa\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: testskript) File C:\Zopppaaa\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: testskript) File C:\Zopppaaa\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: manage_addProduct['DBank']) File C:\Zopppaaa\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: eingang_DB_add (_.None, _, NoRedir=1)) (Info: eingang_DB_add) File , line 0, in ? File C:\Zopppaaa\lib\python\OFS\DTMLMethod.py, line 163, in __call__ (Object: eingang_DB_add) File C:\Zopppaaa\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: eingang_DB_add) File C:\Zopppaaa\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: eingang_DB.createInObjectManager(REQUEST['id'], REQUEST)) File C:\Zopppaaa\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: propertysheets.eingangs_info.manage_editProperties(REQUEST)) (Info: REQUEST) File , line 0, in ? File C:\Zopppaaa\lib\python\OFS\PropertySheets.py, line 456, in manage_editProperties (Object: Traversable) File C:\Zopppaaa\lib\python\OFS\PropertySheets.py, line 255, in _updateProperty (Object: Traversable) File C:\Zopppaaa\lib\python\OFS\PropertySheets.py, line 208, in _wrapperCheck (Object: Traversable) ValueError: (see above) From bill@carbonecho.com Thu Sep 7 17:29:14 2000 From: bill@carbonecho.com (Bill Welch) Date: Thu, 7 Sep 2000 16:29:14 +0000 (GMT) Subject: [Zope] ANN: Serving PHP/Perl from Zope update In-Reply-To: <20000905151647.A8300@corrada.com> Message-ID: Last bug. Promise. # user might not have signed in yet try: username, password = req._authUserPW() except: username = password = None From Tim Hicks" I have created a Zclass, the the _ZClass_for_CatalogAware base class as the first added base class (second in the list of base classes). My zcatalog (named Catalog) is set to 'Find objects of type: "myClass_metatype"' and therefore, when I add a new instance of my class, it is automatically added to the catalog. By that, I mean that once I have added the instance, I can go the the 'Cataloged Objects' view and see it listed there. However, if I try a search using the raw (TextIndex) search outlined in one of the tutorials, the search fails to find words that I *know* are in the zclass that I just added, and that I thought had been cataloged. Clicking on 'Update Catalog' in the 'Cataloged Objects' view and then researching means that the search succeeds in finding the word in the new instance. The question is, do I need to add the equivalent of what is written in 'How-To: Creating a CatalogAware ZClass' for reindexing zclass properties, but for reindexing the actual text? How could I do this? Help much appreciated, tim From bill@libc.org Thu Sep 7 18:03:54 2000 From: bill@libc.org (Bill Anderson) Date: Thu, 07 Sep 2000 11:03:54 -0600 Subject: [Zope] wrapped object References: <39B7BC18.38DC8895@zeitspringer.de> Message-ID: <39B7CA7A.64D714CD@libc.org> Sven Hohage wrote: > > Hallo, > while adding ZClass instances by form I get the following traceback: > I don't know what's a wrapped object?? > And where the problem is. > Thanks > -->>>>>>> > Zope Error > Zope has encountered an error while publishing this resource. > > Error Type: ValueError > Error Value: Invalid property value: wrapped object > I have seen this when trying to pass into a property a mothod or instance, as opposed to the strin representation of it. check your form for dtml objects as input values. You may have a typo. Then again, it could be something completely different. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From dan@sol.control.com Thu Sep 7 18:26:42 2000 From: dan@sol.control.com (Dan L. Pierson) Date: Thu, 7 Sep 2000 13:26:42 -0400 (EDT) Subject: [Zope] re module & through the web security In-Reply-To: <002f01c01815$74c48570$3e48a4d8@digicool.com> References: <39B611C4.90C6C957@nipltd.com> <002f01c01815$74c48570$3e48a4d8@digicool.com> Message-ID: <14775.53202.965077.968151@sol.control.com> Evan Simpson writes: > Fear not. In the brand new shiny PythonMethods Product coming soon > (really!) to a Zope near you, you will have the ability to say: > > ModuleSecurityInfo('re').protect('compile', 'Use the "re" module') > > ...and suddenly anyone to whom you grant 'Use the "re" module' permission > will be able to 'from re import compile' in their Python Methods. Anyone > else will be able to 'import re', but not access any of its contents. Thank you! I was going to follow Chris McDonough's suggestion and add something to the Wiki about this but your solution is just perfect. Of course I have a couple of questions since I couldn't find any mention of this in the Wiki: Does this work for any module or just a semi-safe subset? How are submodules handled? Just put the full path in the ModuleSecurityInfo call? Can you grant permissions for all children of a parent module (scary!)? From evan@4-am.com Thu Sep 7 19:56:59 2000 From: evan@4-am.com (Evan Simpson) Date: Thu, 7 Sep 2000 14:56:59 -0400 Subject: [Zope] re module & through the web security References: <39B611C4.90C6C957@nipltd.com><002f01c01815$74c48570$3e48a4d8@digicool.com> <14775.53202.965077.968151@sol.control.com> Message-ID: <013101c018fd$671c14e0$3e48a4d8@digicool.com> From: Dan L. Pierson > Does this work for any module or just a semi-safe subset? > > How are submodules handled? Just put the full path in the > ModuleSecurityInfo call? Can you grant permissions for all children > of a parent module (scary!)? http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/GuardedImport ...is a good place to start learning about this. Any module can be made available -- it's up to the Zope administrator (or Product author) to decide what they can safely expose, under what terms. Cheers, Evan @ digicool & 4-am From dan@sol.control.com Thu Sep 7 19:09:16 2000 From: dan@sol.control.com (Dan L. Pierson) Date: Thu, 7 Sep 2000 14:09:16 -0400 (EDT) Subject: [Zope] re module & through the web security In-Reply-To: <013101c018fd$671c14e0$3e48a4d8@digicool.com> References: <39B611C4.90C6C957@nipltd.com> <002f01c01815$74c48570$3e48a4d8@digicool.com> <14775.53202.965077.968151@sol.control.com> <013101c018fd$671c14e0$3e48a4d8@digicool.com> Message-ID: <14775.55756.4159.318719@sol.control.com> Evan Simpson writes: > From: Dan L. Pierson > > Does this work for any module or just a semi-safe subset? > > > > How are submodules handled? Just put the full path in the > > ModuleSecurityInfo call? Can you grant permissions for all children > > of a parent module (scary!)? > > http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/GuardedImport I looked there. It says something about how import restrictions will be implemented but nothing at all about what the limitations will be or what the syntax for interacting with the restriction mechanism will be. For example, your email is the only reference I can find to ModuleSecurityInfo. > ...is a good place to start learning about this. Any module can be made > available -- it's up to the Zope administrator (or Product author) to decide > what they can safely expose, under what terms. That seems reasonable. From Eric@Walstads.net Thu Sep 7 20:04:06 2000 From: Eric@Walstads.net (Eric L. Walstad) Date: Thu, 07 Sep 2000 12:04:06 -0700 Subject: [Zope] Java applet with inner classes causing probs in Zope Message-ID: Just a follow-up: Morten Said: // Adding files to Zope through FTP doesn't seem to have the same restrictions. Actually, it did for me. FTP was able to upload all the class files except those with the $ in them (the classes with inner-classes). That's how I found out about the problem. Holger Lehmann said: // What about putting it all in a jar-file ? I tried that, too, but Java would choke on running the Jar file that was served from Zope. If anyone has a working JAR file applet in Zope, I'd love to see the syntax they used! To make my applet work, I had to go into the java code and separate out the inner classes so that every class was in its own file. This turned out to be a lot easier than I expected. Eric. Here's the original message... > Hello all, > > The problem is that inner classes have names like "Parent$Inner.class" > I'm unable to create a Zope file object with a name that includes the dollar > sign. However, the applet won't function without it. > > Has any one overcome this? > > Yes, the applet functions properly when served from apache (but I need to > serve it from Zope). > > Please respond directly to me and mailing list as I am not currently on the > mailing list. > > Thanks, > > Eric. From tino@wildenhain.de Thu Sep 7 20:18:17 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Thu, 07 Sep 2000 21:18:17 +0200 Subject: [Zope] Using Chinese Characters References: <20000907085328.26427.qmail@vmail.vcn.com.my> Message-ID: <39B7E9F9.6F74ABC3@wildenhain.de> Hi Kelvin, Kelvin Cheong wrote: > > i was wondering how i can use chinese characters with Zpe on Linux. does > anyone know how? According to my "mild" research so far, i found out that > Big5is a 2-byte code and is a part of ISO-10646/Unicode. It also seems to > be the de-facto for traditional chinese characters. There're also Unicode > CJK and GB. But GB is for China, which uses simplified chinese characters. > And CJK includes both Big5 and GB. classic zope is built on python 1.52 and does not naturally support unicode. But there is a light on the horizont: http://www.zope.org/Members/htrd/wstring I have a vision of everything working together for localizing and internationalisation ;-) Regards Tino From evan@4-am.com Thu Sep 7 20:34:53 2000 From: evan@4-am.com (Evan Simpson) Date: Thu, 7 Sep 2000 15:34:53 -0400 Subject: [Zope] re module & through the web security References: <39B611C4.90C6C957@nipltd.com><002f01c01815$74c48570$3e48a4d8@digicool.com><14775.53202.965077.968151@sol.control.com><013101c018fd$671c14e0$3e48a4d8@digicool.com> <14775.55756.4159.318719@sol.control.com> Message-ID: <014f01c01902$b20317b0$3e48a4d8@digicool.com> From: Dan L. Pierson > > http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/GuardedImport > > I looked there. Ah, but I was sneaky and went and updated it just before posting ;-) You do have to follow a link or two, but it isn't hard to find (any more). Cheers, Evan @ digicool & 4-am From evan@digicool.com Thu Sep 7 20:39:50 2000 From: evan@digicool.com (Evan Simpson) Date: Thu, 7 Sep 2000 15:39:50 -0400 Subject: [Zope] Call for Python Method opinions Message-ID: <015f01c01903$63062fc0$3e48a4d8@digicool.com> If you want any say in how official Zope Python Methods work, I recommend heading over to: http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/StandardPythonMetho dModule ...soonest. If you have feedback on any part of the project, please contribute, but the link above is the squishiest part of the design, and possibly the most important to many of you. User-style documentation is still scanty, but getting better. Comments on where it needs to be stronger are welcome. Cheers, Evan @ digicool & 4-am From bcoleman@questcon.com Thu Sep 7 20:37:45 2000 From: bcoleman@questcon.com (Coleman, Bryan) Date: Thu, 7 Sep 2000 15:37:45 -0400 Subject: [Zope] DTML Question on lines Message-ID: <919A9AB4EB0DD411B7E700508B9B1366422A@JQCEXCH01> I am trying to itterate through a lines property in the folder so that the options will drop down. I did not think that the following code would work but I could not think of anything else. - Bryan Patrick Coleman Questcon Technologies (336)273-2428 ext-416 bcoleman@questcon.com From rik.hoekstra@inghist.nl Thu Sep 7 20:54:29 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Thu, 7 Sep 2000 21:54:29 +0200 Subject: [Zope] DTML Question on lines References: <919A9AB4EB0DD411B7E700508B9B1366422A@JQCEXCH01> Message-ID: <006901c01905$7fe63ca0$fe5da182@michieltje> > I am trying to itterate through a lines property in the folder so that the > options will drop down. I did not think that the following code would work > but I could not think of anything else. > > > > > try (untested): assuming of course that valid_codes is a list hth Rik From twcook@iswt.com Thu Sep 7 21:12:09 2000 From: twcook@iswt.com (Tim Cook) Date: Thu, 07 Sep 2000 15:12:09 -0500 Subject: [Zope] DTML Question on lines References: <919A9AB4EB0DD411B7E700508B9B1366422A@JQCEXCH01> Message-ID: <39B7F699.981A2701@iswt.com> "Coleman, Bryan" wrote: > > I am trying to itterate through a lines property in the folder so that the > options will drop down. I did not think that the following code would work > but I could not think of anything else. > > > > > Try this Bryan, -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From dieter@handshake.de Thu Sep 7 21:13:42 2000 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 7 Sep 2000 22:13:42 +0200 (CEST) Subject: [Zope] Lock and Transaction in Zope. In-Reply-To: <72451659@toto.iv> Message-ID: <14775.62279.887747.442112@lindm.dm> Aitor Grajal writes: > --=====_9682482706334=_ > Content-Type: text/plain; charset="ISO-8859-1" > Content-Transfer-Encoding: quoted-printable I hate "multipart" or encoded messages to this list (because the digest removes MIME headers (what a stupidity!) and does not give my mail reader a chance to decode them). > ... two requests concurrently accessing the same object ... > The first one crashes, and doesn't finish right.... > I want to know if there is any way to lock ... > about locking resources in Zope. You do strange things... Zope tries hard to avoid locking and uses an optimistic collision policy instead. Several threads can run concurrently on separate copies of an object. If, during commit, a collision is detected, the affected transaction is aborted and (I think I read that) restarted. If you really need locking, you can use Pythons "threading" module (in a package used from an external method). You must be careful, though. Look in the archive for a message from Sean McGrath about the potential problem involved and my reply for a solution. You may also look (as an example) at URL:http://www.dieter.handshake.de/pyprojects/zope/SharedResource.html It uses looks to protect resources shared by several threads. Dieter From dieter@handshake.de Thu Sep 7 20:49:45 2000 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 7 Sep 2000 21:49:45 +0200 (CEST) Subject: [Zope] The Ascetic Superuser In-Reply-To: <61755281@toto.iv> Message-ID: <14775.61357.757183.428481@lindm.dm> ethan mindlace fremen writes: > Now every object excecutes according to the permision of the owner, > *not* the viewer. It can also run as a proxy role. The > super-bootstrap-user lives outside of "normal" zope authentication & has > permission to do anything save that which NotEvenGodShouldDo. > Therefore, it shouldn't own objects. Am I really expected to understand this "Therefore"? In fact, I do not! Does it mean, that a Superuser can execute any method with *ITS* privileges and not the intersection of its priviledges with the owners privileges? I hope (and expect) not! Why is it much worse when an object is owned by Superuser than by a manager? What are the differences with respect to the Trojan Horse or other security issues? Dieter From dieter@handshake.de Thu Sep 7 21:16:43 2000 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 7 Sep 2000 22:16:43 +0200 (CEST) Subject: [Zope] Proxy roles don't propagate? - bizzare permissions from ZDChart too In-Reply-To: <119581274@toto.iv> Message-ID: <14775.63236.959280.189615@lindm.dm> Brad Clements writes: > ... Proxy role does not propagate ... This has been changed starting with Zope 2.2. The callee no longer inherits the proxy role from its caller but must get its own proxy role. Dieter From dieter@handshake.de Thu Sep 7 20:51:42 2000 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 7 Sep 2000 21:51:42 +0200 (CEST) Subject: [Zope] Zope 2.2 & ZopeAttributionButton In-Reply-To: <82604423@toto.iv> Message-ID: <14775.61823.746609.832565@lindm.dm> Ira Hochman writes: > Does anyone know how to set security on ZopeAttributionButton? I do not know how you can directly set permissions for ZopeAttributionButton. But, as a wordaround, you can give "standard_html_footer" an appropriate proxy role. Dieter From dieter@handshake.de Thu Sep 7 20:35:37 2000 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 7 Sep 2000 21:35:37 +0200 (CEST) Subject: [Zope] Re: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header) In-Reply-To: <015601c0178e$644963a0$0301a8c0@tim> References: <14771.60076.951714.881856@lindm.dm> <015601c0178e$644963a0$0301a8c0@tim> Message-ID: <14775.60363.405355.778199@lindm.dm> Tim Hicks writes: > .... I presume that this will only work for all *new* instances of > this class however! I don't suppose you know of a way of remaking all > 44 instances of this Zclass I have using this adjusted constructor? I > have tried (see below), but I think I come up against the same > '' problem that I'm actually trying to counteract! I do -- in principle :-) When you rename an instance, the instance gets a correct id. Now, all operations you can do through the web, can be done programmatically. Either by an external program based on "ZPublisher.Client" or by an internal script. Look in the searchable archive to find a post from me that explains how to determine the necessary function calls from the management source (if you do not know it already). An alternative is to look in the Zope object reference (--> zdp.zope.org). You may use "ZopeFind" to locate all your ZClass objects in order to rename them. Details are left for you. Dieter From dieter@handshake.de Thu Sep 7 20:57:43 2000 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 7 Sep 2000 21:57:43 +0200 (CEST) Subject: [Zope] OSError along with FSSession... In-Reply-To: <39425092@toto.iv> Message-ID: <14775.61923.595992.693077@lindm.dm> Chien-Pin Wang writes: > Zope complains an error type "OSError" and throws the error value > saying [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' > occasionally since a recent upgrade of FSSession product to 0.4.2. > Following that error will be a series of TransactionErrors for each and > every request Zope received. And only a zope restart could help zope > resume its operations. Since this error only comes up occasionally, I'm > completely clueless on solving it. > .... > File /usr/local/zope/lib/python/Products/FSSession/FSSession.py, line > 208, in > final_commit > (Object: FSSession) > OSError: [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' Maybe, a bug in "FSSession.final_commit". Look at line 208 of "FSSession.py". I expect some lines before, a filename is constructed for the above directory and session specific data. For some reason, the session specific data leads to an empty filename. Therefore, the operation in line 208 (probably an "os.rename" or other "os" operation) gets the directory rather than a file path. You have two options: * analyse, why the session data leads to an empty filename (this may be difficult) * add a try: ... except: pass around line 208 and wait for the FSSession author to analyse and fix the problem. Dieter From Brian@digicool.com Thu Sep 7 21:57:52 2000 From: Brian@digicool.com (Brian Lloyd) Date: Thu, 7 Sep 2000 16:57:52 -0400 Subject: [Zope] Zope 2.2.1 Solaris 8 dumps core Message-ID: <613145F79272D211914B0020AFF640195A7425@gandalf.digicool.com> > I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris > 8, built it ok, but when I try run ./start it it dumps core with a > segmentation fault. > Is this problem known? Anything I can do? > I am completely new to both Python and Zope ... I don't know of any problems inherent to running on Sol8. It seems like maybe it could have something to do with your Python installation. One way you could test that is to cd to the lib/python dir of your Zope installation, start your local Python interpreter and try: import ExtensionClass Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations www.digicool.com From bitz@bitdance.com Thu Sep 7 22:04:54 2000 From: bitz@bitdance.com (R. David Murray) Date: Thu, 7 Sep 2000 17:04:54 -0400 (EDT) Subject: [Zope] Editing of ZClasses using FTP: Access denied In-Reply-To: <39B7B499.98F36625@friatec.de> Message-ID: On Thu, 7 Sep 2000, Harald Koschinski wrote: > I am trying to edit methods inside a ZClass. The problem is, that the > ZClasse-folder don´t has any permissions via FTP - so there is no chance > to come into the folder. > > Where do I have to change the permission?? You don't. However, if you specify the URL of the method directly (make sure you use the full URL as shown on the management edit screen), you will be able to access it. At least, so it has been reported on this mailing list in the recent past. --RDM From Anders Eriksson Thu Sep 7 22:03:59 2000 From: Anders Eriksson (Anders Eriksson) Date: Thu, 7 Sep 2000 23:03:59 +0200 Subject: [Zope] PTK - member can reconfigure portal Message-ID: <017330860.20000907230359@swipnet.se> Hello, I am a beginner on Zope so maybe I'm doing something wrong but... I have installed the Portal ToolKit 0.8.2 complete, and most things seem to work except: I have joined the Portal and when I log in as this member and select 'My Stuff', I get a new menu item: 'Re-configure portal'! Which will let this user/member change things that only the owner/super should be able to do!(?) So what have I done wrong? (.or can it be a bug.) I'm running zope 2.2.1 on a Windows NT 4 workstation (SP6a) -- Best regards, Anders mailto:ame@swipnet.se The Romans didn't find algebra very challenging, because X was always 10. From bitz@bitdance.com Thu Sep 7 22:12:03 2000 From: bitz@bitdance.com (R. David Murray) Date: Thu, 7 Sep 2000 17:12:03 -0400 (EDT) Subject: [Zope] Zclass not reindexing (it is CatalogAware) In-Reply-To: <00e801c018f3$660e32e0$0301a8c0@tim> Message-ID: On Thu, 7 Sep 2000, Tim Hicks wrote: > The question is, do I need to add the equivalent of what is written in > 'How-To: Creating a CatalogAware ZClass' for reindexing zclass > properties, but for reindexing the actual text? How could I do this? When is the text created? After it is, you have to call reindex_object. --RDM From Joshua.Brauer@colostate.edu Thu Sep 7 22:53:30 2000 From: Joshua.Brauer@colostate.edu (Joshua Brauer) Date: Thu, 7 Sep 2000 15:53:30 -0600 Subject: [Zope] SiteRoot (SiteAccess) problem Message-ID: I'm running a new server with 2.2.1 and Siteaccess 2.0.0 b3 and I don't get a "SiteRoot" item in the available items list. I can copy site roots and move them, but I cannot create new site roots... After reinstalling SiteAccess (& restarting) I still have problems. Any ideas? General Info: * Zope version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86) * Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 19990314/Linux (egcs- * System Platform: linux-i386 Installed Products: AspSucks (Installed product AspSucks) BTreeFolder (Installed product BTreeFolder (BTreeFolder-0.1.1)) Calendar (Installed product Calendar (calendar-0-9-0)) Confera (Broken product Confera) DemoPortal (Through-the-web Sample Portal) ExternalMethod (Installed product ExternalMethod (External Method-1-0-0)) Fortune (Installed product Fortune) Glossary (Glossary ZClass) Hotfix_06_16_2000 (Installed product Hotfix_06_16_2000) Hotfix_2000-08-17 (Installed product Hotfix_2000-08-17) IMAPAdapter (Broken product IMAPAdapter) KMnetNews (KM|net News) KnowledgeKit LoginManager (Installed product LoginManager (LoginManager-0-3-0)) MIMETools (Installed product MIMETools) MailHost (Installed product MailHost (MailHost-1-2-0)) NewsSyndicate (Installed product NewsSyndicate (NewsCenter 0.0.5)) NotMail (Broken product NotMail) OFSP (Installed product OFSP (OFSP-1-0-0)) PTKBase (Installed product PTKBase) PTKDemo (Installed product PTKDemo) Photo (Installed product Photo (Photo-0-4-0)) Planner (Planner) Poll (Installed product Poll (Poll-0-6-0)) PythonMethod (Installed product PythonMethod (PythonMethod-0-1-7)) Redirector (Installed product Redirector) SiteAccess (Installed product SiteAccess (SiteAccess-2-0-0b3)) Squishdot (Installed product Squishdot (Squishdot-0-7-1)) TinyCal (Installed product TinyCal (calendar-0-9-0)) TinyTable (Installed product TinyTable (TinyTable-0-8-2)) WebPages (WebPages Class) Wizard WorldPilot (Installed product WorldPilot (WorldPilot 1.00.3)) XMLDocument (Installed product XMLDocument (XML Document 1.0a6)) ZCallable (Installed product ZCallable) ZCatalog (Installed product ZCatalog (ZCatalog-2-2-0)) ZFDocument (Installed product ZFDocument) ZGadflyDA (Installed product ZGadflyDA) ZPhotoAlbum (Z Photo Album) ZPyGreSQLDA (Installed product ZPyGreSQLDA (ZPyGreSQLDA-0-0-3)) ZRTChat (HTML Chat for Zope) ZSQLMethods (Installed product ZSQLMethods) ZopeTutorial (Installed product ZopeTutorial (Zope Tutorial 1.0)) beehiveCal (Installed product beehiveCal (Version 0.2.0)) seminarCalendar (Seminar Calendar) -- ------------------------------------------------- Joshua Brauer Computer Support Scientist Department of Biochemistry and Molecular Biology Colorado State University Fort Collins, CO 80523 (970) 491-1080/pager: (970) 498-7995, #5837 ------------------------------------------------- From troy.farrell@wilcom.com Thu Sep 7 23:14:51 2000 From: troy.farrell@wilcom.com (Farrell, Troy) Date: Thu, 7 Sep 2000 17:14:51 -0500 Subject: [Zope] Need help with ZJetDA, Winnt4 and Zope 2.2.1 Message-ID: As you have no doubt heard my cries for help, I figure that very few are running NT4. I am having a permissions difficultie with ZJetDA trying to modify data in an Access97 database. On my server, the DA is able to SELECT * FROM tablename with no problem, but when it comes to INSERT INTO tablename VALUES (...) or UPDATE, I get a Query Error with a value of INVALID OPERATION. I mirror (It is identical, i checked 5+ times) all the objects on my NT4 laptop and it works ok. The databases are Identical, I copied the working one to the non-working server and still no go. The traceback is as follows: Traceback (innermost last): File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\JESTER\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\JESTER\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: browsestates) File C:\PROGRA~1\JESTER\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: browsestates) File C:\PROGRA~1\JESTER\lib\python\OFS\DTMLDocument.py, line 177, in __call__ (Object: browsestates) File C:\PROGRA~1\JESTER\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: browsestates) File C:\PROGRA~1\JESTER\lib\python\Shared\DC\ZRDB\DA.py, line 450, in __call__ (Object: bmsdb_jet_select_browse_state_sub_insert_into_temptablebrowse) File C:\PROGRA~1\JESTER\lib\python\Products\ZJetDA\db.py, line 130, in query Query Error: (see above) Rant: I've been working on this for days. I don't seem to understand the security model since I didn't have any problems before 2.2.x. If I cannot get this resolved, I'll move back to the 2.1.x series. I really want this to work as it is my companie's introduction to open source software. Have a :) day. Thanks. Troy Troy Farrell Video Operations Technician II Williams VYVX Services 918.573.3029 918.573.1441 fax mailto:troy.farrell@wilcom.com http://www.williams.com From dieter@handshake.de Thu Sep 7 21:39:59 2000 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 7 Sep 2000 22:39:59 +0200 (CEST) Subject: [Zope] Python, persistent objects and caching In-Reply-To: <68948408@toto.iv> Message-ID: <14775.64612.769248.782196@lindm.dm> Brian Lloyd writes: > Soren Rough writes > > ... application level cache ... > > ... application objects flushed (including cache) > One approach would be to cache your data in the module's > namespace. For ex: > > mycache={} > > class MyClassThatKeepsGoingAway: > ... > def get_data(self, id): > if mycache.has_key(id): > return mycache[id] > else: > ... > > Note that my example is a little contrived, since using a module > variable means that you will have to implement this in a way that > is safe for a multi-threaded environment. You can use a "SharedResource" for this: URL:http://www.dieter.handshake.de/pyprojects/zope/SharedResource.html Dieter From Tim Hicks" <000d01c01827$07217c00$0301a8c0@tim> <14775.55030.140706.885350@lindm.dm> Message-ID: <007d01c0191a$59f75780$0301a8c0@tim> ----- Original Message ----- From: "Dieter Maurer" To: "Tim Hicks" Sent: Thursday, September 07, 2000 7:00 PM Subject: Re: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header) > Hi Tim > > > NameError: theatre_class > > > > It would seem that is still raising its head. Any ideas? > I do not think so. > You get a name error: Zope does not know your "theatre_class" at > this point. > > It seems more likely, that DC changed to way ZClasses are located > inside the constructor. > > Take the generated ZClass constructor and simply add > the "...REQUEST.set..." before the "createInObjectManager". > OK, I'm so sorry about this, you've been an absolute legend so far, and I really don't want to push my luck, but each time you solve something, I find something else that has broken. This is what my theatre_class_add method looks like (well, an excerpt anyway). \n\n', '')"> When I try to create a new instance of the zclass in the original 'site' folder (or any of its parent folders except for the root), I get this error. I do not receive an error and everything works fine when I create the instance in a new folder on a different 'branch' to the original. Traceback (innermost last): File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 187, in publish (Object: testing) File C:\PROGRA~1\Zope221\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 171, in publish (Object: testing) File C:\PROGRA~1\Zope221\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: theatre_class_add) File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: theatre_class_add) File C:\PROGRA~1\Zope221\lib\python\OFS\DTMLMethod.py, line 172, in __call__ (Object: theatre_class_add) File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: theatre_class_add) File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_With.py, line 133, in render (Object: theatre_class.createInObjectManager(REQUEST['id'], REQUEST)) File C:\PROGRA~1\Zope221\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: theatre_class.createInObjectManager(REQUEST['id'], REQUEST)) (Info: REQUEST) File <string>, line 0, in ? NameError: theatre_class When I try to copy and paste a zclass from this original 'site' folder (or any of its parent folders except for the root), I get this error. I do not receive an error and everything works fine when I copy and paste an instance in a new folder on a different 'branch' to the original. "One or more items referred to in the clipboard data was not found. The item may have been moved or deleted after you copied it." When I try to rename a class that is in the original 'site' folder (or any of its parent folders except for the root), I get this error. I do not receive an error and everything works fine when I rename an instance in a new folder on a different 'branch' to the original. Traceback (innermost last): File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\Zope221\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\Zope221\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_renameObjects) File C:\PROGRA~1\Zope221\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_renameObjects) File C:\PROGRA~1\Zope221\lib\python\OFS\CopySupport.py, line 273, in manage_renameObjects (Object: Traversable) File C:\PROGRA~1\Zope221\lib\python\OFS\CopySupport.py, line 285, in manage_renameObject (Object: Traversable) File C:\PROGRA~1\Zope221\lib\python\OFS\ObjectManager.py, line 236, in _getOb (Object: Traversable) AttributeError: (see above) Like I say, you've been fantastic in helping me. Thanks to you, I now have a solution whereby I know I can redo all of the class instances I have created, and be sure that the error won't reappear. However, I'm sure from what you have said so far, there is a way around this that doesn't involve me 'writing off' all the instances that I have already created. My problem is, I'm a little out of my depth here! I don't understand the different behaviour between different folders. If you haven't already got tired of this, thanks very much. tim From wilson@visi.com Thu Sep 7 23:31:40 2000 From: wilson@visi.com (Timothy Wilson) Date: Thu, 7 Sep 2000 17:31:40 -0500 (CDT) Subject: [Zope] ZClass for PDFs Message-ID: Hi everyone, I'd like to make a large number of PDF files available for download from my site. HTML versions of the files will also be available for online viewing. I could certainly include the PDF files as regular file objects or I could create a ZClass specifically for PDF files. I suspect that this question may be of general interest, so I'm asking for comments about the pros and cons of either approach. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | | http://linux.com/ From dkt@registriesltd.com.au Fri Sep 8 00:38:46 2000 From: dkt@registriesltd.com.au (David Trudgett) Date: Thu, 07 Sep 2000 13:38:46 -1000 Subject: [Zope] Using Chinese Characters In-Reply-To: <39B7E9F9.6F74ABC3@wildenhain.de> References: <20000907085328.26427.qmail@vmail.vcn.com.my> Message-ID: <4.3.1.2.20000907131551.00b2c100@regint> At 2000-09-07 21:18 +0200, Tino Wildenhain wrote: >Hi Kelvin, > >Kelvin Cheong wrote: > > > > i was wondering how i can use chinese characters with Zpe on Linux. does > > anyone know how? According to my "mild" research so far, i found out that > > Big5is a 2-byte code and is a part of ISO-10646/Unicode. It also seems to > > be the de-facto for traditional chinese characters. There're also Unicode > > CJK and GB. But GB is for China, which uses simplified chinese characters. > > And CJK includes both Big5 and GB. > >classic zope is built on python 1.52 and does not naturally support >unicode. >But there is a light on the horizont: > >http://www.zope.org/Members/htrd/wstring > >I have a vision of everything working together for localizing and >internationalisation ;-) It's good to finally see some Unicode support coming through. I'm a bit surprised that Guido didn't mandate Unicode support from the beginning, given that Python is a relative newcomer to the programming scene. I imagine Python 2 will have full Unicode support, right? Or is it already in Python 1.6? Bad news is that Unicode is not good enough. It allows for about 64k characters, yet Chinese alone (Han ideographs) has over 75,000 (maybe a lot more, but that includes old, rare and uncommon characters). When will we see support for UCS (Universal Character System, ISO 10646) which uses (up to) 32 bit (31 bit?) characters. As far as I know, at present the only UCS characters currently defined are those defined by Unicode (about 40,000 of them), but we should be supporting it now in readiness for the future. Food for thought. Zai jian! (Too bad email is plain ASCII or I could use the proper characters!) David Trudgett From Tim Hicks" Message-ID: <00dd01c0191d$98a0e0c0$0301a8c0@tim> ----- Original Message ----- From: "R. David Murray" To: "Tim Hicks" Cc: Sent: Thursday, September 07, 2000 10:12 PM Subject: Re: [Zope] Zclass not reindexing (it is CatalogAware) > On Thu, 7 Sep 2000, Tim Hicks wrote: > > The question is, do I need to add the equivalent of what is written in > > 'How-To: Creating a CatalogAware ZClass' for reindexing zclass > > properties, but for reindexing the actual text? How could I do this? > > When is the text created? After it is, you have to call reindex_object. > So each time there is a change made to the text, I must call reindex_object, is that correct? If so, how do I make it so that each time I hit the 'Change' button at the bottom of the text box, is executed? cheers tim > --RDM > From d98aron@dtek.chalmers.se Fri Sep 8 00:02:12 2000 From: d98aron@dtek.chalmers.se (Fredrik Aronsson) Date: Fri, 8 Sep 2000 01:02:12 +0200 (MEST) Subject: [Zope] Zope 2.2.1 Solaris 8 dumps core In-Reply-To: <200009071900.MAA05081@zope.codeit.com> Message-ID: Hello! I've had a similar problem, with Zope coredumping, but since I recompiled python using the same compiler that I compiled Zope with, Zope works correct. /Fredrik Aronsson (I've included the smallest script I could find that dumped core. If it dumps core for you too, perhaps you have the same problem.) #!/usr/local/bin/python -u import sys sys.path.append('/www/zope/lib/python') print "Content-type: text/plain" print print "Everything OK!" import ExtensionClass print "Still ok!" > > Hi > > I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris > 8, built it ok, but when I try run ./start it it dumps core with a > segmentation fault. > Is this problem known? Anything I can do? > I am completely new to both Python and Zope ... > > > Thanks > Michele > From twcook@iswt.com Fri Sep 8 00:06:22 2000 From: twcook@iswt.com (Tim Cook) Date: Thu, 07 Sep 2000 18:06:22 -0500 Subject: [Zope] ZClass for PDFs References: Message-ID: <39B81F6E.DF500C47@iswt.com> Timothy Wilson wrote: > > Hi everyone, > > I'd like to make a large number of PDF files available for download from my > site. HTML versions of the files will also be available for online viewing. > > I could certainly include the PDF files as regular file objects or I could > create a ZClass specifically for PDF files. > > I suspect that this question may be of general interest, so I'm asking for > comments about the pros and cons of either approach. > Does this not do what you want? http://www.zope.org/Members/gaaros/ZpdfDocument -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From bitz@bitdance.com Fri Sep 8 00:21:51 2000 From: bitz@bitdance.com (R. David Murray) Date: Thu, 7 Sep 2000 19:21:51 -0400 (EDT) Subject: [Zope] Zclass not reindexing (it is CatalogAware) In-Reply-To: <00dd01c0191d$98a0e0c0$0301a8c0@tim> Message-ID: On Thu, 7 Sep 2000, Tim Hicks wrote: > So each time there is a change made to the text, I must call > reindex_object, is that correct? If so, how do I make it so that each > time I hit the 'Change' button at the bottom of the text box, > is executed? If you take a close look at the how-to, it also tells you you have to write your own management 'editForm' method and assign it to the view tab. In the action method for that form, you do the reindex_object. --RDM From deadline@plogic.com Fri Sep 8 03:12:16 2000 From: deadline@plogic.com (Douglas Eadline) Date: Thu, 7 Sep 2000 22:12:16 -0400 (EDT) Subject: [Zope] NEWBIE HELP can not get Zope to start Message-ID: I have tried this 10 times with several versions of Zope and I get the same result - Zope will not let me add a user or log in. Here are my steps: 1. download and install latest RPMS: Zope-2.2.1-1.i386.rpm Zope-zserver-2.2.1-1.i386.rpm 2. Start zope: /etc/rc.d/init.d/zope start 3. login as superuser superuser 123 4. See first Zope Screen 5. Attempt to run the tutorial as described in the Content Managers Guide Zope will not let superuser do this 6. OK, I'll add a user. I go to acl_users and add a user. 7. I quit netscape, and restart and attempt to login as the new user - DOES NOT WORK 8> I check /var/zope/access - no new user added 9. I quit netscape and re-login as superuser. I look at the user I added, now the password field has more stars in it than the password I assigned. The confirm field has 1 star less than the password field. I do not get it. Is there something to read that explains how to start Zope and try the tutorial? Or is this some secret only Zope hackers know? Doug ------------------------------------------------------------------- Paralogic, Inc. | PEAK | Voice:+610.814.2800 130 Webster Street | PARALLEL | Fax:+610.814.5844 Bethlehem, PA 18015 USA | PERFORMANCE | http://www.plogic.com ------------------------------------------------------------------- From wilson@visi.com Fri Sep 8 03:35:53 2000 From: wilson@visi.com (Timothy Wilson) Date: Thu, 7 Sep 2000 21:35:53 -0500 (CDT) Subject: [Zope] ZClass for PDFs In-Reply-To: <39B81F6E.DF500C47@iswt.com> Message-ID: On Thu, 7 Sep 2000, Tim Cook wrote: > Timothy Wilson wrote: > > > > I'd like to make a large number of PDF files available for download from my > > site. HTML versions of the files will also be available for online viewing. > > > > I could certainly include the PDF files as regular file objects or I could > > create a ZClass specifically for PDF files. > > > > I suspect that this question may be of general interest, so I'm asking for > > comments about the pros and cons of either approach. > > > > Does this not do what you want? > > http://www.zope.org/Members/gaaros/ZpdfDocument Thanks for the pointer. It doesn't appear that the ZpdfDocuments is what I'm looking for. ZpdfDocument seems to render PDF on the fly from structured text or HTML. I was interested in simply storing an existing PDF file in the ZODB and making it available for download. Is there a reason to make a PDF ZClass? Would it make things easier? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | | http://linux.com/ From twcook@iswt.com Fri Sep 8 04:07:37 2000 From: twcook@iswt.com (Tim Cook) Date: Thu, 07 Sep 2000 22:07:37 -0500 Subject: [Zope] ZClass for PDFs References: Message-ID: <39B857F9.5FB3FB42@iswt.com> Timothy Wilson wrote: > It doesn't appear that the ZpdfDocuments is what I'm looking for. > ZpdfDocument seems to render PDF on the fly from structured text or HTML. I > was interested in simply storing an existing PDF file in the ZODB and making > it available for download. > > Is there a reason to make a PDF ZClass? Would it make things easier? > I can't think of one. But if you need it then someone else probably does too. -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From mavip1@inet.polyu.edu.hk Fri Sep 8 04:32:39 2000 From: mavip1@inet.polyu.edu.hk (Li Dongfeng) Date: Fri, 8 Sep 2000 11:32:39 +0800 Subject: [Zope] Help: PATH_INFO==>object Message-ID: <000d01c01945$70b63100$efae849e@polyu.edu.hk> I am writing a service for other pages to use as form action. How can I reference the caller object in DTML/python? I can only think of this: First use PARENTS[-1] to get to the root object of the site. Then split the PATH_INFO containing the caller's path, and go down from the root to every subfolder in PATH_INFO and then get to the caller object. But this is not very elegant. Can anyone give better solution to this? From kbr@pangea.ca Fri Sep 8 04:53:27 2000 From: kbr@pangea.ca (Kip Rugger) Date: 7 Sep 2000 22:53:27 -0500 Subject: [Zope] [PATCH] doesn't? Please fix... ;-) References: <399EA5FB.972E2FA2@nipltd.com> <20000904220808.B1642@zeus.theinternet.com.au> <8p0mub$6aj$1@rugger.nodomain.ca> <20000905091103.E1642@zeus.theinternet.com.au> Message-ID: <8p9nrn$194$1@rugger.nodomain.ca> Andrew Kenneth Milton wrote: >+-------[ Kip Rugger ]---------------------- >| >| [snip] >| >| >| crap >| more crap >| >| Lots of crap >| >| >| >| by analogy with the common practice of #if 0 in C > >Won't work, the container will still be parsed for correctness at 'save' time. >The problem isn't getting nested comments per se, we already have that. >The problem is to completely ignore the contents of the comment tag whilst >still allowing nested comments. > >Th second part of the problem is that ChrisW(hinger) really wants it, but, >doesn't want to do what is necessary to do it. So the problem is simplified >to not actually doing anything except talking about doing it. d8) > >Thankyou for playing d8) Since I put my stupid foot into it, I just had to write the patch. For penitence and to learn about DocumentTemplate. This should let you nest arb stuff without any syntactical value being ascribed to the contents. I am too new to Zope to know if this is even desirable :-) so I just offer it as more of an amusement than anything else. Patch against 2.2.1 source. --- DT_String.py.orig Thu Aug 17 08:46:48 2000 +++ DT_String.py Thu Sep 7 22:27:42 2000 @@ -237,7 +237,11 @@ if s: result.append(s) start=l+len(tag) - if hasattr(command,'blockContinuations'): + if command == Comment: + start = self.parse_comment(text, start, result, tagre, tag, l, + command, args) + + elif hasattr(command,'blockContinuations'): start=self.parse_block(text, start, result, tagre, tag, l, args, command) else: @@ -280,7 +284,11 @@ try: tag, args, command, coname= self._parseTag(tagre,scommand,sa) except ParseError, m: self.parse_error(m[0],m[1], text, l) - if command: + if command == Comment: + start=l+len(tag) + start = self.parse_comment(text, start, result, tagre, tag, l, + command, args) + elif command: start=l+len(tag) if hasattr(command, 'blockContinuations'): # New open tag. Need to find closing tag. @@ -325,6 +333,35 @@ start=self.parse_close(text, start, tagre, tag, l, command,args) elif not coname: return start + + def parse_comment(self, text, start, result, tagre, + stag, sloc, sargs, scommand): + nest = 1 + while 1: + + l=tagre.search(text,start) + if l < 0: self.parse_error('No closing tag', stag, text, sloc) + + tag, name = tagre.group(0, 'name') + start = l + len(tag) + if name == 'comment': + try: + end = tagre.group('end') + except: + try: + end = tagre.group('fmt') + if end != ']': end = '' + except: + self.parse_error('Delimiter problems', + stag, text, sloc) + if end == '': + nest = nest + 1 + else: + nest = nest - 1 + + if nest == 0: + start=self.skip_eol(text, start) + return start shared_globals__roles__=() shared_globals={} From lstaffor@dynalogic.com Fri Sep 8 04:44:24 2000 From: lstaffor@dynalogic.com (Loren Stafford) Date: Thu, 7 Sep 2000 20:44:24 -0700 Subject: [Zope] ZClass for PDFs References: Message-ID: <00d501c01947$14bee0c0$2101a8c0@pavilion> From: "Timothy Wilson" > On Thu, 7 Sep 2000, Tim Cook wrote: > > > Timothy Wilson wrote: > > > > > > I'd like to make a large number of PDF files available for download from my > > > site. HTML versions of the files will also be available for online viewing. > > > > > > I could certainly include the PDF files as regular file objects or I could > > > create a ZClass specifically for PDF files. > > > > > > I suspect that this question may be of general interest, so I'm asking for > > > comments about the pros and cons of either approach. > > > > > > > Does this not do what you want? > > > > http://www.zope.org/Members/gaaros/ZpdfDocument > > Thanks for the pointer. > > It doesn't appear that the ZpdfDocuments is what I'm looking for. > ZpdfDocument seems to render PDF on the fly from structured text or HTML. I > was interested in simply storing an existing PDF file in the ZODB and making > it available for download. > > Is there a reason to make a PDF ZClass? Would it make things easier? > > -Tim > > There's an example of a PDF ZClass at http://www.zope.org/Members/lstaffor/zProperties. If all you do in the class is add simple properties as in this example, the arguments are in favor of making a ZClass boil down to: 1. You can enforce the presence of certain properties. 2. In your navigation methods, you can use the metatype to distinguish PDF files from other files and thereby treat them differently. 3. You can help content managers handle PDF files in a consistent manner. ...worthwhile, but not all that compelling arguments. On the other hand, once you have a separate class, it's easier to add functionality; for example, 1. Automatically catalog the content of the PDF by running it thru some converter (like XPDF), 2. Extract the document properties from the PDF identification block. 3. Provide an alternative byte-serving access to large PDFs. -- HTH -- Loren From roche@ybm.co.za Fri Sep 8 06:21:34 2000 From: roche@ybm.co.za (Roch'e Compaan) Date: Fri, 8 Sep 2000 07:21:34 +0200 Subject: [Zope] Squishdot Message-ID: <001301c01954$a767aa30$0102a8c0@roche.up-front.co.za> I've upgraded our Zope Server to 2.2.1 and upgraded squishdot to 7.1. Whenever I post an article on my squishdot sites I get an attribute error: _catalog. It seems like squishdot has trouble putting the article in the catalog. I did modify all references to thread[0] to getThread(0): Traceback (innermost last): File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/2-2-0/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/2-2-0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: addPosting) File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: addPosting) File /usr/local/zope/2-2-0/lib/python/Products/Squishdot/Squishdot.py, line 979, in addPosting (Object: Traversable) File /usr/local/zope/2-2-0/lib/python/Products/Squishdot/Squishdot.py, line 702, in setItem (Object: Traversable) File /usr/local/zope/2-2-0/lib/python/Products/ZCatalog/ZCatalog.py, line 377, in catalog_object (Object: Traversable) AttributeError: (see above) From mj@digicool.com Fri Sep 8 06:59:18 2000 From: mj@digicool.com (Martijn Pieters) Date: Fri, 8 Sep 2000 07:59:18 +0200 Subject: [Zope] NEWBIE HELP can not get Zope to start In-Reply-To: ; from deadline@plogic.com on Thu, Sep 07, 2000 at 10:12:16PM -0400 References: Message-ID: <20000908075917.B6577@zopatista.com> On Thu, Sep 07, 2000 at 10:12:16PM -0400, Douglas Eadline wrote: > 6. OK, I'll add a user. I go to acl_users and add a user. > > 7. I quit netscape, and restart and attempt to login as > the new user - DOES NOT WORK > > 8> I check /var/zope/access - no new user added Only the superuser (more accuratly the bootstrap user now) is defined in the access file. All other users are defined in User objects in the Object Database. You will notice that the file var/Data.fs will have grown. > 9. I quit netscape and re-login as superuser. > I look at the user I added, now the password field > has more stars in it than the password I assigned. > The confirm field has 1 star less than the password field. For security reasons, the page with the password and confirm fields is not rendered with the original password; you can view the source to see this, the password would have to be sent verbatim in order to do that. In stead, the magic values 'password' and' 'confirm' are used, to indicate that you didn't want to change the user password, only the other fields. One possible explanation for the denial of your login is that you filled something in the domains field, which should only be used if you want to limit the domains a user can login from, and made a mistake there. The format is a _space seperated_ list of domains, each of which can use the '*' wildcard for any part between the dots and can be an ip or a name: 10.0.0.* localhost *.mydomain.com If you did fill in that field, clear it, and try again. Also note that both user id and password are case sensitive. Try a simple username and password first, like 'test' and 'test'. Let us know if you succeed! -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio ----------------------------------------------------- From jmce@artenumerica.com Fri Sep 8 08:46:23 2000 From: jmce@artenumerica.com (J M Cerqueira Esteves) Date: Fri, 8 Sep 2000 08:46:23 +0100 Subject: [Zope] NEWBIE HELP can not get Zope to start In-Reply-To: ; from deadline@plogic.com on Thu, Sep 07, 2000 at 10:12:16PM -0400 References: Message-ID: <20000908084621.D2596@esoterica.pt> On Thu, Sep 07, 2000 at 10:12:16PM -0400, Douglas Eadline wrote: > 6. OK, I'll add a user. I go to acl_users and add a user. Did you give it the "manager" role? Best regards J Esteves -- jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/ From phil.harris@zope.co.uk Fri Sep 8 09:14:07 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 8 Sep 2000 09:14:07 +0100 Subject: [Zope] NEWBIE HELP can not get Zope to start References: Message-ID: <005b01c0196c$c2957130$5c773fc1@media1> Douglas, You seem to be doing as expected, however a few points to note: see below: ----- Original Message ----- From: "Douglas Eadline" To: Sent: Friday, September 08, 2000 3:12 AM Subject: [Zope] NEWBIE HELP can not get Zope to start > > I have tried this 10 times with several versions of Zope and > I get the same result - Zope will not let me add a user or log in. > > Here are my steps: > > 1. download and install latest RPMS: > Zope-2.2.1-1.i386.rpm > Zope-zserver-2.2.1-1.i386.rpm > > 2. Start zope: > > /etc/rc.d/init.d/zope start > > 3. login as superuser > > superuser > 123 > > 4. See first Zope Screen > > 5. Attempt to run the tutorial as described in the Content Managers Guide > > Zope will not let superuser do this > > 6. OK, I'll add a user. I go to acl_users and add a user. > > 7. I quit netscape, and restart and attempt to login as > the new user - DOES NOT WORK When you created the user did you give it managment permissions or is it only a 'normal' user? > > 8> I check /var/zope/access - no new user added The new user doesn't get added to the access only superusers are put in there (I think there has been some talk about having multiple su's tho). The new user is put into the ZODB and accessed from there. > > 9. I quit netscape and re-login as superuser. > I look at the user I added, now the password field > has more stars in it than the password I assigned. > The confirm field has 1 star less than the password field. This is pure obfuscation, the password fields are set to a value that zope recognises as you saying 'just change the properties associated with this user, but leave the password alone'. > > I do not get it. Is there something to read that explains > how to start Zope and try the tutorial? As above, the only thing I can think of is that you didn't give the new user the correct permissions. > > Or is this some secret only Zope hackers know? No secrets, we don't have secrets here ;) hth Phil phil.harris@zope.co.uk > > Doug > ------------------------------------------------------------------- > Paralogic, Inc. | PEAK | Voice:+610.814.2800 > 130 Webster Street | PARALLEL | Fax:+610.814.5844 > Bethlehem, PA 18015 USA | PERFORMANCE | http://www.plogic.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 michele@olsen.ch Fri Sep 8 09:21:12 2000 From: michele@olsen.ch (Michele Ravani) Date: Fri, 08 Sep 2000 10:21:12 +0200 Subject: [Zope] Zope 2.2.1 Solaris 8 dumps core References: <613145F79272D211914B0020AFF640195A7425@gandalf.digicool.com> Message-ID: <39B8A178.8FD501C3@olsen.ch> Brian Lloyd wrote: > > I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris > > 8, built it ok, but when I try run ./start it it dumps core with a > > segmentation fault. > > Is this problem known? Anything I can do? > > I am completely new to both Python and Zope ... > > I don't know of any problems inherent to running on Sol8. > It seems like maybe it could have something to do with > your Python installation. One way you could test that is > to cd to the lib/python dir of your Zope installation, > start your local Python interpreter and try: > > import ExtensionClass > > Brian Lloyd brian@digicool.com > Software Engineer 540.371.6909 > Digital Creations www.digicool.com I've tried that and it dumped. I'll have to poll the Python knowledge base for that ... Python was built using gcc as Zope was. Thanks anyway Michele From mj@digicool.com Fri Sep 8 10:01:08 2000 From: mj@digicool.com (Martijn Pieters) Date: Fri, 8 Sep 2000 11:01:08 +0200 Subject: [Zope] Help: PATH_INFO==>object In-Reply-To: <000d01c01945$70b63100$efae849e@polyu.edu.hk>; from mavip1@inet.polyu.edu.hk on Fri, Sep 08, 2000 at 11:32:39AM +0800 References: <000d01c01945$70b63100$efae849e@polyu.edu.hk> Message-ID: <20000908110108.C6577@zopatista.com> On Fri, Sep 08, 2000 at 11:32:39AM +0800, Li Dongfeng wrote: > I am writing a service for other pages to > use as form action. How can I reference > the caller object in DTML/python? > > I can only think of this: First use PARENTS[-1] > to get to the root object of the site. > Then split the PATH_INFO containing the caller's > path, and go down from the root to every subfolder > in PATH_INFO and then get to the caller object. > But this is not very elegant. > > Can anyone give better solution to this? PATH_INFO only tells you something about the service object, not about the calling page. If you use this as a FORM action target, it's the browser that makes the call, not Zope. You can, in many cases, determine the browser URL by looking at HTTP_REFERER, but many people and companies use proxies and firewalls to filter this out nowadays; it is considered sensitive information. If this app is targeted at a intranet or other controlled environment, you could dictate the presence of HTTP_REFERER, and rely on that, otherwise you will have to add a reference as a hidden form field generated by the calling object. Once you have a URL of the calling object, you can use the Traversal interface to turn that URL into an object reference. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio ----------------------------------------------------- From chrisw@nipltd.com Fri Sep 8 10:20:53 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 08 Sep 2000 10:20:53 +0100 Subject: [Zope] Squishdot and _catalog bugs References: <001301c01954$a767aa30$0102a8c0@roche.up-front.co.za> Message-ID: <39B8AF75.6B5CABB4@nipltd.com> Roch'e Compaan wrote: > > I've upgraded our Zope Server to 2.2.1 and upgraded squishdot to 7.1. > Whenever I post an article on my squishdot sites I get an attribute error: > _catalog. It seems like squishdot has trouble putting the article in the > catalog. I did modify all references to thread[0] to getThread(0): Did you hit the 'Update Indexing' button on the 'Options' manage tab? cheers, Chris From rik.hoekstra@inghist.nl Fri Sep 8 10:33:12 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Fri, 08 Sep 2000 11:33:12 +0200 Subject: [Zope] Need help with ZJetDA, Winnt4 and Zope 2.2.1 References: Message-ID: <39B8B258.3A850BD1@inghist.nl> "Farrell, Troy" wrote: > > As you have no doubt heard my cries for help, I figure that very few are > running NT4. More than would admit it, probably. Perhaps no one knows the answer to what seems to be a rather specific situation. For one, I have the impression most people use zodbc connections to access database then use the zjetadapter (so do I, so chances are I might be just blabbering). > I am having a permissions difficultie with ZJetDA trying to > modify data in an Access97 database. On my server, the DA is able to SELECT > * FROM tablename with no problem, but when it comes to INSERT INTO tablename > VALUES (...) or UPDATE, I get a Query Error with a value of INVALID > OPERATION. I mirror (It is identical, i checked 5+ times) all the objects > on my NT4 laptop and it works ok. The databases are Identical, I copied the > working one to the non-working server and still no go. The traceback is as > follows: > hm one stupid question: isn't by accident the working one read-only by accident (this happened to me more than once and it _will_ happen if the access file is not copied properly. Who knows what copying properly is - please speak up). > __call__ > (Object: bmsdb_jet_select_browse_state_sub_insert_into_temptablebrowse) > File C:\PROGRA~1\JESTER\lib\python\Products\ZJetDA\db.py, line 130, in > query > Query Error: (see above) you could try this with the zodbc adapter. Please make sure you odbc connection is made under the system account though. > > Rant: > I've been working on this for days. I don't seem to understand the security > model since I didn't have any problems before 2.2.x. If I cannot get this > resolved, I'll move back to the 2.1.x series. I really want this to work as > it is my companie's introduction to open source software. Have a :) day. hm is the Zope version the same on your laptop and your server then? If so, then the security thing should be the same on both, right? If not - then how can you say all objects are the same? Did you copy you data.fs database from one machine to the other? success, let us know how it goes hth Rik From Eric@Walstads.net Thu Sep 7 19:53:11 2000 From: Eric@Walstads.net (Eric L. Walstad) Date: Thu, 07 Sep 2000 11:53:11 -0700 Subject: [Zope] XML and Zope newbie question... Message-ID: Hi All, I am just getting started in XML and am trying to figure out how it works with Zope. I would like to be able to post some data to Zope in XML format and have Zope parse the data into Zope objects. Is this possible? It seems like I should be able to create the Zclasses and, when Zope receives the post, have Zope automagically create the necessary objects from my classes. Any input on how to do this or pointers to a better way would be fantastic. Please respond to me directly as I am not currently able to handle the list volume. Thanks, Eric. From chrisw@nipltd.com Fri Sep 8 10:52:48 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 08 Sep 2000 10:52:48 +0100 Subject: [Zope] Re: PTK - member can reconfigure portal References: <017330860.20000907230359@swipnet.se> Message-ID: <39B8B6F0.629EEAB0@nipltd.com> Anders Eriksson wrote: > I have joined the Portal and when I log in as this member and select > 'My Stuff', I get a new menu item: 'Re-configure portal'! Which will > let this user/member change things that only the owner/super should be > able to do!(?) This could be one of two things, IIUC: 1. You might still be 'logged in' through HTTP Basic Authentication from when you created the portal. Try closing all your browsers, opening up a new one, joining the portal with that one and see if the problem is still there... 2. ...if it is, it's a bug, stick it in the PTK Tracker: http://www.zope.org/Products/PTK/Tracker cheers, Chris PS: This sort of thing is probably better suited to the zope-ptk@zope.org mailing list. From rik.hoekstra@inghist.nl Fri Sep 8 10:53:28 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Fri, 08 Sep 2000 11:53:28 +0200 Subject: [Zope] Lock and Transaction in Zope. References: <200009051328080333.009041D2@mailhost.teleline.es> <200009061512060709.010EB279@mailhost.teleline.es> <200009061551100729.013276CD@mailhost.teleline.es> Message-ID: <39B8B718.E892439E@inghist.nl> Zope has no built in locking like that, but IIRC there was some hack in the wiki code to prevent simultaneous editing (which wasn't bullet proof). Perhaps you can look there. I doubt whether it will solve the problem you pose, but I don't see why you'd want to do what you pointed out in your mail anyway. Rik From phil.harris@zope.co.uk Fri Sep 8 11:00:37 2000 From: phil.harris@zope.co.uk (Phil Harris) Date: Fri, 8 Sep 2000 11:00:37 +0100 Subject: [Zope] XML and Zope newbie question... References: Message-ID: <00e301c0197b$a30b9150$5c773fc1@media1> Eric, Take a look at the XMLDocument product, available from Zope.org. It already parses the xml into zope objects (they may not be exactly what you want though), but it may give you a start into what you want. hth Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Eric L. Walstad" To: "Zope@Zope. Org" Sent: Thursday, September 07, 2000 7:53 PM Subject: [Zope] XML and Zope newbie question... > Hi All, > > I am just getting started in XML and am trying to figure out how it works > with Zope. I would like to be able to post some data to Zope in XML format > and have Zope parse the data into Zope objects. Is this possible? It seems > like I should be able to create the Zclasses and, when Zope receives the > post, have Zope automagically create the necessary objects from my classes. > > Any input on how to do this or pointers to a better way would be fantastic. > > Please respond to me directly as I am not currently able to handle the list > volume. > > Thanks, > > Eric. > > > _______________________________________________ > 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 maxm@normik.dk Fri Sep 8 11:32:32 2000 From: maxm@normik.dk (=?iso-8859-1?Q?Max_M=F8ller_Rasmussen?=) Date: Fri, 8 Sep 2000 12:32:32 +0200 Subject: [Zope] This must be a namespace problem Message-ID: <7BD10B680501D411B9DF009027E06F32011B98@EXCHANGE> I have a site structure like this: root subfolder Then i have made a dtml document "index_html" in the "root" folder like this: ---------------- test ---------------- Also I have a dtml method "content" in the root folder like this: ----------------

Root folder

this is the content of the root folder ---------------- Then I have made a method "content" in "subfolder" ----------------

Sub folder

this is the content of the sub folder ---------------- all in all: ---------------- root index_html content subFolder content ---------------- When i view "root" folde i see the index_html document just fine, and the content gets inserted like it should. But when I view the "subFolder" I would expect it to look for the "index_html" in the root folder and then the "content" method in the subFolder. But it uses the "root" folder "content". How can I make it us the "content" in the current directory, but the index_html from the root folder. Can this not be done?? Kind regards Max M From knapek@knapek.pvt.net Fri Sep 8 11:41:36 2000 From: knapek@knapek.pvt.net (Petr Knapek) Date: 08 Sep 2000 12:41:36 +0200 Subject: [Zope] Icons in a product Message-ID: <8766o7f9nj.fsf@knapek.pvt.net> Hi Zopists, I would like to know if there is any possibility how to publish an icon on the web which is in www folder of my own created product. That is I want to put some icons into the www folder of my product and to have possibility to show them on the web. The problem with my own stylesheet of my product is similar. Is there any possibility to put it in the product (not ZODB) and later use it. In both cases I don't want put anything into /Control_Panel/Products/myProduct/ over web interface. I use Zope 2.1.6 I need to put any icon into my python product and later have possibility to call this icon on the web. Where to put it in my folder structure on the box and what the URL will be? Thanks for help, Petr -- Petr Knápek NEXTRA Czech Republic, s.r.o., Veveří 102, 659 10 Brno, Czech Republic e-mail: mailto:petr.knapek@nextra.cz tel:+420-5-41 558 394 FAX:+420-5-41 558 390 From rik.hoekstra@inghist.nl Fri Sep 8 11:46:16 2000 From: rik.hoekstra@inghist.nl (Rik Hoekstra) Date: Fri, 08 Sep 2000 12:46:16 +0200 Subject: [Zope] This must be a namespace problem References: <7BD10B680501D411B9DF009027E06F32011B98@EXCHANGE> Message-ID: <39B8C378.F2FFB9A4@inghist.nl> > > But it uses the "root" folder "content". How can I make it us the "content" > in the current directory, but the index_html from the root folder. Can this > not be done?? > This is an acquisition problem we will all be bitten by at one time or another. There is some documentation about this, including Jim Fultons Acquisition Algebra talk (http://www.zope.org/Members/jim/Info/IPC8/AcquisitionAlgebra/index.html) and my Changing Contexts in Zope (http://www.zope.org/Members/Hoekstra/ChangingZopeContexts) a way of showing acquisition is described in: http://www.zope.org/Members/chrisw/showaq Rik From juliodinis@hotmail.com Fri Sep 8 13:05:47 2000 From: juliodinis@hotmail.com (Júlio Dinis Silva) Date: Fri, 08 Sep 2000 12:05:47 WEST Subject: [Zope] MountedFileStorage Message-ID: Hi, Using and reading the MountedFileStorage Product I got the impression that I can mount an existing Data.fs in another Data.fs. Is this possible or is only possible to mount a "create new" Data.fs? Thanx, Júlio Dinis _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From bcoleman@questcon.com Fri Sep 8 12:23:24 2000 From: bcoleman@questcon.com (Coleman, Bryan) Date: Fri, 8 Sep 2000 07:23:24 -0400 Subject: [Zope] Access and accounts NT vs ? Message-ID: <919A9AB4EB0DD411B7E700508B9B1366422D@JQCEXCH01> I am developing an Intranet application for the company I work for. I am trying to come up with an easy way to tie in the Zope security model and users in an external database. Is there a way to manipulate the security access and have those changes reflected in a database such as Gadlfy? I would also like to sync the users with there NT accounts. I have looked at the NTusersfolder and can not quite figure out how it is supposed to work. Being a Unix guy I dont have that much experience with NT. And would it still be feasible to tie it in with a DB? - Bryan Patrick Coleman Questcon Technologies (336)273-2428 ext-416 bcoleman@questcon.com From kayeva@hotmail.com Fri Sep 8 12:26:53 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Fri, 08 Sep 2000 11:26:53 GMT Subject: [Zope] ZCatalog or Traversal question ? Message-ID: Hi, I want to query content built with CatalogAware ZClasses on my site. I am able to get the abstract document ('abstract' method) which is a subobject of the document I want to display (let say 'Document' ZClass). But I don't know how to display the id of the resulting 'Document'. With the following snippet I get a partial solution since I get the url: /../"> How can I get the id or title of (Document) instead of the url ? Many thanks. -- Kamon Ecubateur _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From gryser@cgx.ch Fri Sep 8 12:41:24 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Fri, 8 Sep 2000 13:41:24 +0200 Subject: [Zope] Zope and DreamWeaver Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C0199A.7AFE7B90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi all I installed the Zope-DTML DW3 Extension and loaded in a page with DTML commands. My pc hanged, I have Win NT 4, DW 3.01 and DW UltraDev. The memory blocked by DW was about 780MB. Anyone has an idea what to check Thank you Gottfried Ryser gryser@cgx.ch ------=_NextPart_000_000A_01C0199A.7AFE7B90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=20 all
 
I = installed the=20 Zope-DTML DW3 Extension and loaded in a page with DTML commands. My pc = hanged, I=20 have Win NT 4, DW 3.01 and DW UltraDev. The memory blocked by DW was = about=20 780MB.
 
Anyone = has an idea=20 what to check
 
Thank=20 you

 

Gottfried Ryser gryser@cgx.ch

 

------=_NextPart_000_000A_01C0199A.7AFE7B90-- From steve@spvi.com Fri Sep 8 12:50:20 2000 From: steve@spvi.com (Steve Spicklemire) Date: Fri, 8 Sep 2000 06:50:20 -0500 (EST) Subject: [Zope] NEWBIE HELP can not get Zope to start In-Reply-To: <20000908075917.B6577@zopatista.com> (message from Martijn Pieters on Fri, 8 Sep 2000 07:59:18 +0200) References: <20000908075917.B6577@zopatista.com> Message-ID: <200009081150.GAA03643@mercury.spvi.com> >>>>> "Martijn" == Martijn Pieters writes: >> >> 7. I quit netscape, and restart and attempt to login as the new >> user - DOES NOT WORK >> Martijn> One possible explanation for the denial of your login is Martijn> that you filled something in the domains field, which Martijn> should only be used if you want to limit the domains a Another common problem I've seen is that folks don't select a *role* for their new user.... did you give the new user the 'manager' role? -steve From mj@digicool.com Fri Sep 8 12:54:07 2000 From: mj@digicool.com (Martijn Pieters) Date: Fri, 8 Sep 2000 13:54:07 +0200 Subject: [Zope] NEWBIE HELP can not get Zope to start In-Reply-To: <200009081150.GAA03643@mercury.spvi.com>; from steve@spvi.com on Fri, Sep 08, 2000 at 06:50:20AM -0500 References: <20000908075917.B6577@zopatista.com> <200009081150.GAA03643@mercury.spvi.com> Message-ID: <20000908135407.A8981@zopatista.com> On Fri, Sep 08, 2000 at 06:50:20AM -0500, Steve Spicklemire wrote: > > >>>>> "Martijn" == Martijn Pieters writes: > > >> > >> 7. I quit netscape, and restart and attempt to login as the new > >> user - DOES NOT WORK > >> > Martijn> One possible explanation for the denial of your login is > Martijn> that you filled something in the domains field, which > Martijn> should only be used if you want to limit the domains a > > Another common problem I've seen is that folks don't select a *role* > for their new user.... did you give the new user the 'manager' role? A common error here is to assume that the list of Roles you see are the Roles the USer has been given. In stead, it is a list of _possible_ Roles, you need to select which ones this User will have. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio ----------------------------------------------------- From mavip1@inet.polyu.edu.hk Fri Sep 8 13:01:58 2000 From: mavip1@inet.polyu.edu.hk (Li Dongfeng) Date: Fri, 8 Sep 2000 20:01:58 +0800 Subject: [Zope] Help: PATH_INFO==>object References: <000d01c01945$70b63100$efae849e@polyu.edu.hk> <20000908110108.C6577@zopatista.com> Message-ID: <000b01c0198c$977f6bc0$efae849e@polyu.edu.hk> Thanks for the correction. Now I see that PATH_INFO refers to the current page, not the calling page. I think the hidden input field solution is OK for me. What is the *Traversal interface*? Do you mean the PARENTS enviroment? ----- Original Message ----- From: "Martijn Pieters" To: "Li Dongfeng" Cc: "Zope" Sent: Friday, September 08, 2000 5:01 PM Subject: Re: [Zope] Help: PATH_INFO==>object > On Fri, Sep 08, 2000 at 11:32:39AM +0800, Li Dongfeng wrote: > > I am writing a service for other pages to > > use as form action. How can I reference > > the caller object in DTML/python? > > > > I can only think of this: First use PARENTS[-1] > > to get to the root object of the site. > > Then split the PATH_INFO containing the caller's > > path, and go down from the root to every subfolder > > in PATH_INFO and then get to the caller object. > > But this is not very elegant. > > > > Can anyone give better solution to this? > > PATH_INFO only tells you something about the service object, not about the > calling page. If you use this as a FORM action target, it's the browser > that makes the call, not Zope. > > You can, in many cases, determine the browser URL by looking at > HTTP_REFERER, but many people and companies use proxies and firewalls to > filter this out nowadays; it is considered sensitive information. > > If this app is targeted at a intranet or other controlled environment, you > could dictate the presence of HTTP_REFERER, and rely on that, otherwise > you will have to add a reference as a hidden form field generated by the > calling object. > > Once you have a URL of the calling object, you can use the Traversal > interface to turn that URL into an object reference. > > -- > Martijn Pieters > | Software Engineer mailto:mj@digicool.com > | Digital Creations http://www.digicool.com/ > | Creators of Zope http://www.zope.org/ > | ZopeStudio: http://www.zope.org/Products/ZopeStudio > ----------------------------------------------------- > > _______________________________________________ > 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 chrisw@nipltd.com Fri Sep 8 13:06:50 2000 From: chrisw@nipltd.com (Chris Withers) Date: Fri, 08 Sep 2000 13:06:50 +0100 Subject: [Zope] MetaData? References: Message-ID: <39B8D65A.CE5B7922@nipltd.com> kamon ayeva wrote: > How can I get the id or title of (Document) instead of the url ? Aren't they in the MetaData returned by the catalog query? If they aren't, add them ;-) cheers, Chris From kayeva@hotmail.com Fri Sep 8 13:25:59 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Fri, 08 Sep 2000 12:25:59 GMT Subject: [Zope] MetaData? Message-ID: Hi Chris, >From: Chris Withers >To: kamon ayeva >CC: zope@zope.org >Subject: Re: [Zope] MetaData? >Date: Fri, 08 Sep 2000 13:06:50 +0100 > >kamon ayeva wrote: > > How can I get the id or title of (Document) instead of the url ? > >Aren't they in the MetaData returned by the catalog query? They are. But I guess the text searching is on the 'abstract' method, and what I need is something like PARENTS[] to jump to the container. Or am I missing something about good usage of ZCatalog ? >If they aren't, add them ;-) > >cheers, > >Chris -- Kamon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From kayeva@hotmail.com Fri Sep 8 13:34:13 2000 From: kayeva@hotmail.com (kamon ayeva) Date: Fri, 08 Sep 2000 12:34:13 GMT Subject: [Zope] MetaData? Message-ID: OK, checking the Advanced ZCatalog Howto, I just found I could maybe use something like Method or Document or Anothermetatype:
to solve my problem. Haven't yet tested, so I dunno if it's my best option. -- Kamon >From: Chris Withers >To: kamon ayeva >CC: zope@zope.org >Subject: Re: [Zope] MetaData? >Date: Fri, 08 Sep 2000 13:06:50 +0100 > >kamon ayeva wrote: > > How can I get the id or title of (Document) instead of the url ? > >Aren't they in the MetaData returned by the catalog query? > >If they aren't, add them ;-) > >cheers, > >Chris _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From mj@digicool.com Fri Sep 8 14:05:29 2000 From: mj@digicool.com (Martijn Pieters) Date: Fri, 8 Sep 2000 15:05:29 +0200 Subject: [Zope] Help: PATH_INFO==>object In-Reply-To: <000b01c0198c$977f6bc0$efae849e@polyu.edu.hk>; from mavip1@inet.polyu.edu.hk on Fri, Sep 08, 2000 at 08:01:58PM +0800 References: <000d01c01945$70b63100$efae849e@polyu.edu.hk> <20000908110108.C6577@zopatista.com> <000b01c0198c$977f6bc0$efae849e@polyu.edu.hk> Message-ID: <20000908150529.A9283@zopatista.com> On Fri, Sep 08, 2000 at 08:01:58PM +0800, Li Dongfeng wrote: > Thanks for the correction. Now I see that > PATH_INFO refers to the current page, > not the calling page. I think the hidden input > field solution is OK for me. > > What is the *Traversal interface*? Do you > mean the PARENTS enviroment? The interface defines methods that let you convert a URL path into an object reference. It does the same thing as the ZPublisher does when processing a URL request. The PARENTS list is constructed during such traversal; it is a stack of references to objects that were 'traversed'; asked for a reference to an object given the name of the next URL element. The method you are looking for is restrictedTraverse: restrictedTraverse(path[, default]) where path is a object path seperated by '/' (no http://hostname part!). If the path starts with a '/' it is supposed to be an absolute URL from the site root, otherwise it is a relative path. Parent directory references ('../') are allowed. The method will check for the appropriate access along the way. The optional 'default' will be returned if the traversal fails. You should be able to use restrictedTraverse from DTML in Zope 2.2.1. In Zope 2.2.0 you will need an External Method to access it (this was a bug), and the method isn't implemented in any earlier versions of Zope. If you want to pass along a object reference as a hidden FORM variable, the you should use getPhysicalPath, and use _.string.join to turn the result of that into a useful string: -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio ----------------------------------------------------- From akm@mail.theinternet.com.au Fri Sep 8 14:18:40 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Fri, 8 Sep 2000 23:18:40 +1000 Subject: [Zope] Icons in a product In-Reply-To: <8766o7f9nj.fsf@knapek.pvt.net>; from Petr Knapek on Fri, Sep 08, 2000 at 12:41:36PM +0200 References: <8766o7f9nj.fsf@knapek.pvt.net> Message-ID: <20000908231840.Y1642@zeus.theinternet.com.au> +-------[ Petr Knapek ]---------------------- | Hi Zopists, | I would like to know if there is any possibility how to publish an icon | on the web which is in www folder of my own created product. That is I | want to put some icons into the www folder of my product and to have | possibility to show them on the web. The problem with my own stylesheet | of my product is similar. Is there any possibility to put it in the | product (not ZODB) and later use it. In both cases I don't want put | anything into /Control_Panel/Products/myProduct/ over web interface. I | use Zope 2.1.6 | | I need to put any icon into my python product and later have possibility | to call this icon on the web. Where to put it in my folder structure on | the box and what the URL will be? | | Thanks for help, Petr In your __init__.py; from ImageFile import ImageFile misc_={'iconId': ImageFile('www/icon.gif',globals()).} You then reference it is as:- Please excuse any obvious mistakes in this I'm a little sloshed at the moment d8) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From celio@ic.unicamp.br Fri Sep 8 14:33:17 2000 From: celio@ic.unicamp.br (Celio C. Guimaraes) Date: Fri, 08 Sep 2000 10:33:17 -0300 Subject: [Zope] DCOracle examples Message-ID: <39B8EA9D.13D0B4C7@ic.unicamp.br> I have just installed the DCOracle package to access an Oracle 8.0.5 server with python1.6. I have run with success the test script DCOracle_test.py connecting to the Oracle database. I would like to see some python examples of the DBI API with queries and so on. Could you give any help? Celio Guimaraes Institute of Computing Unicamp - Campinas - Brazil From brocken22@gmx.de Fri Sep 8 14:39:20 2000 From: brocken22@gmx.de (brocken22@gmx.de) Date: Fri, 8 Sep 2000 15:39:20 +0200 (MEST) Subject: [Zope] change_properties Message-ID: <28677.968420360@www17.gmx.net> Hallo, that's the problem: This means I'd like to change in a token property only one value but it's not working. Thanks -- Sent through GMX FreeMail - http://www.gmx.net From dan@sol.control.com Fri Sep 8 14:58:25 2000 From: dan@sol.control.com (Dan L. Pierson) Date: Fri, 8 Sep 2000 09:58:25 -0400 (EDT) Subject: [Zope] re module & through the web security In-Reply-To: <014f01c01902$b20317b0$3e48a4d8@digicool.com> References: <39B611C4.90C6C957@nipltd.com> <002f01c01815$74c48570$3e48a4d8@digicool.com> <14775.53202.965077.968151@sol.control.com> <013101c018fd$671c14e0$3e48a4d8@digicool.com> <14775.55756.4159.318719@sol.control.com> <014f01c01902$b20317b0$3e48a4d8@digicool.com> Message-ID: <14776.61569.389794.731110@sol.control.com> Evan Simpson writes: > Ah, but I was sneaky and went and updated it just before posting ;-) You do > have to follow a link or two, but it isn't hard to find (any more). Thanks a lot! That'll teach me not to refresh the page when I check back :-) It now answers all my questions. From peer@knoll-is.de Fri Sep 8 16:07:05 2000 From: peer@knoll-is.de (Dr. Peer Griebel) Date: Fri, 08 Sep 2000 17:07:05 +0200 Subject: [Zope] Using Zope DB connection from a Python class References: <200006220038.KAA29962@mail.theinternet.com.au> Message-ID: <39B90099.EB190C8@knoll-is.de> Hi, is there anybody who did alter the ZOBCDA to work under Linux using one of the free open source adapters? I would like to share (get ;-) the code. Tnanks! Andrew Kenneth Milton wrote: > > +----[ Tino Wildenhain ]--------------------------------------------- > | Hi Ivan, > | > | > 3. Zope 2.1.7 > | > Z ODBC DA 3.0.3 > | > Solid dev kit 2.3 > | > RedHat Linux 6.1 on i386 > | > | How to use Z ODBC DA on Linux? I only found a windows binary. > > You need to do a few things: > > First the ZODBCDA comes with src for the python ODBC wrapper. > You can alter this src to use your ODBC library rebuild it and > move the .so file up a directory. > > For UNIX ODBC libraries you have some choices:- > > OpenSource > ---------- > iODBC -- works OK > unixODBC -- I had problems with this, but, it's not a very mature product, > I didn't really stick with it at the time either > (time constraints). > -- connection reset by Peer _______________________________________________________________________ Dr. Peer Griebel Tel. +49 7581 4831 23 Geschäftsführer Fax. +49 7581 4831 11 Knoll Informationssysteme GmbH http://www.knoll-is.de Dreiköniggasse 17 mailto:peer@knoll-is.de 88348 Saulgau privat: mailto:peer.griebel@gmx.de From knapek@knapek.pvt.net Fri Sep 8 16:16:52 2000 From: knapek@knapek.pvt.net (Petr Knapek) Date: 08 Sep 2000 17:16:52 +0200 Subject: [Zope] Icons in a product In-Reply-To: Andrew Kenneth Milton's message of "Fri, 8 Sep 2000 23:18:40 +1000" References: <8766o7f9nj.fsf@knapek.pvt.net> <20000908231840.Y1642@zeus.theinternet.com.au> Message-ID: <871yyugbh7.fsf@knapek.pvt.net> >>>>> On Fri, 8 Sep 2000 23:18:40 +1000, Andrew Kenneth Milton said: Hi Andrew, thank you very much for quick answer but I it doesn't work because in my __init__.py I register the product with the initialize(context) function. def initialize(context): try: context.registerClass( ISNG.ISNGDocument, constructors = ( ISNG.manage_addISNGDocumentForm, ISNG.manage_addISNGDocument), icon = 'www/Document_icon.gif' ) except: import sys, traceback, string type, val, tb = sys.exc_info() sys.stderr.write(string.join(traceback.format_exception(type, val, tb), '')) del type, val, tb I think (not sure) that misc_={'iconId': ImageFile('www/icon.gif',globals()).} will work only if product is not registered by the old way (not my case) because I tried to put it on different places of my __init__.py and wasn't succesfull. Please, can anybody help me or give me a URL where the problems noted below are solved. Thanks, Petr AKM> +-------[ Petr Knapek ]---------------------- | Hi Zopists, | I AKM> would like to know if there is any possibility how to publish AKM> an icon | on the web which is in www folder of my own created AKM> product. That is I | want to put some icons into the www folder AKM> of my product and to have | possibility to show them on the AKM> web. The problem with my own stylesheet | of my product is AKM> similar. Is there any possibility to put it in the | product AKM> (not ZODB) and later use it. In both cases I don't want put | AKM> anything into /Control_Panel/Products/myProduct/ over web AKM> interface. I | use Zope 2.1.6 | | I need to put any icon into AKM> my python product and later have possibility | to call this AKM> icon on the web. Where to put it in my folder structure on | AKM> the box and what the URL will be? | | Thanks for help, Petr AKM> In your __init__.py; AKM> from ImageFile import ImageFile AKM> misc_={'iconId': ImageFile('www/icon.gif',globals()).} AKM> You then reference it is as:- AKM> -- Petr Knápek NEXTRA Czech Republic, s.r.o., Veveří 102, 659 10 Brno, Czech Republic e-mail: mailto:petr.knapek@nextra.cz tel:+420-5-41 558 394 FAX:+420-5-41 558 390 From brianw@hilgraeve.com Fri Sep 8 16:14:08 2000 From: brianw@hilgraeve.com (Brian Withun) Date: Fri, 8 Sep 2000 11:14:08 -0400 Subject: [Zope] Not able to render a base class... In-Reply-To: <39B51B02.22613455@earthlink.net> Message-ID: <002b01c019a7$6f510f30$ecdb5bcf@mikew> | -----Original Message----- | From: ender@earthlink.net [mailto:ender@earthlink.net]On Behalf Of Kapil | Thangavelu | Sent: Tuesday, September 05, 2000 12:11 PM | To: Brian Withun | Cc: Zope mailing list | Subject: Re: [Zope] Not able to render a base class... | | | Brian Withun wrote: | > | > ===== :PREFACE: ===== | > | > I have placed the __init.py__ and Renderable.py into | > .\lib\python\Products\Renderable and have restarted Zope | (necessary? ..I'm | > too used to windows ;-) | > | > I made a trivial little Folderish ZClass and am trying to get | it to render | > itself... | > | > I've defined a 'view' tab that represents the ZClass, and it works as | > expected, with 'View' being bound to an 'index_html' method of | my folderish | > ZClass. | > | > I've added one of these ZClasses to a development folder. | > | > The development folder also contains a dtml document named | 'index_html' as | > follows: | > | > | >

| >

| > This is the Document. | >

| > | > | > | > 'test' is my product | > 'testclass' is my ZClass (in the product 'test') | > 'trial' is my development folder | > 'one' is the ZClass instance in the 'trial' folder | > 'Tropical' is an image id in the ZClass | > | > ===== :PROBLEM: ===== | > | > Why does 'trial/index_html' render this: | > | > | > | >

index_html

| >

| > This is the index_html Document. | >

| > | > | > | > ..and how do I turn '' into a | rendering of | > the ZClass instance ? | | | Make sure your zclass inherits from Renderable | make a dtml method called render in your zclass | adjust render to display the zclass as you wish | | | Kapil | Okay, I can make these changes, but when you say 'Make sure your zclass inherits from Renderable,' how do I do that? Should I see 'Renderable' as one of the BASE CLASSES available when I am creating a zclass, or can I somehow modify an existing zclass to all-of-a-sudden inherit from Renderable (and how would one do that??) I was rather expecting to see 'Renderable' as an option in the BASE CLASSES, but it's not there. If it's supposed to be there, can you fathom what I may have done wrong? ------------ Brian Withun From info@hofmann-design.de Fri Sep 8 18:06:16 2000 From: info@hofmann-design.de (Mechtild Hofmann) Date: Fri, 8 Sep 2000 18:06:16 +0100 Subject: [Zope] manage_workspace Message-ID: Hello, I'am looking for the source-code from "manage_workspace". Where do I find this file or is it part of a *.py - file ? Thank you very much for your help Mechtild Hofmann -- http://www.der-schwarzwald-bebt.de/Wolterdingen - in der Heimat passiert was! info@hofmann-design.de T: 07705 / 919391 From troy.farrell@wilcom.com Fri Sep 8 17:44:26 2000 From: troy.farrell@wilcom.com (Farrell, Troy) Date: Fri, 8 Sep 2000 11:44:26 -0500 Subject: [Zope] Need help with ZJetDA, Winnt4 and Zope 2.2.1 Message-ID: I appreciate your response. I had copied the data.fs over to the server with no success. I have the (buzzword alert)"web app" up and running on ZODBCDA. I still haven't solved the ZJetDA problem, but with ODBC, I may well ignore it. I wonder if iODBC or unixODBC is able to connect to access. I will let you know if I figure it out. My Zope versions are the same and I have the same products on each. I think I must have screwed up my permissions somewhere, but I think it might be on the NT side instead of Zope. I say this because the superuser cannot test the adapter successfully with permissions wide open with and without acquisision. More to come. Thanks. Troy -----Original Message----- From: Rik Hoekstra [mailto:rik.hoekstra@inghist.nl] Sent: Friday, September 08, 2000 4:33 AM To: Farrell, Troy Cc: 'zope@zope.org' Subject: Re: [Zope] Need help with ZJetDA, Winnt4 and Zope 2.2.1 "Farrell, Troy" wrote: > > As you have no doubt heard my cries for help, I figure that very few are > running NT4. More than would admit it, probably. Perhaps no one knows the answer to what seems to be a rather specific situation. For one, I have the impression most people use zodbc connections to access database then use the zjetadapter (so do I, so chances are I might be just blabbering). > I am having a permissions difficultie with ZJetDA trying to > modify data in an Access97 database. On my server, the DA is able to SELECT > * FROM tablename with no problem, but when it comes to INSERT INTO tablename > VALUES (...) or UPDATE, I get a Query Error with a value of INVALID > OPERATION. I mirror (It is identical, i checked 5+ times) all the objects > on my NT4 laptop and it works ok. The databases are Identical, I copied the > working one to the non-working server and still no go. The traceback is as > follows: > hm one stupid question: isn't by accident the working one read-only by accident (this happened to me more than once and it _will_ happen if the access file is not copied properly. Who knows what copying properly is - please speak up). > __call__ > (Object: bmsdb_jet_select_browse_state_sub_insert_into_temptablebrowse) > File C:\PROGRA~1\JESTER\lib\python\Products\ZJetDA\db.py, line 130, in > query > Query Error: (see above) you could try this with the zodbc adapter. Please make sure you odbc connection is made under the system account though. > > Rant: > I've been working on this for days. I don't seem to understand the security > model since I didn't have any problems before 2.2.x. If I cannot get this > resolved, I'll move back to the 2.1.x series. I really want this to work as > it is my companie's introduction to open source software. Have a :) day. hm is the Zope version the same on your laptop and your server then? If so, then the security thing should be the same on both, right? If not - then how can you say all objects are the same? Did you copy you data.fs database from one machine to the other? success, let us know how it goes hth Rik _______________________________________________ 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 Joshua.Brauer@colostate.edu Fri Sep 8 17:45:24 2000 From: Joshua.Brauer@colostate.edu (Joshua Brauer) Date: Fri, 8 Sep 2000 10:45:24 -0600 Subject: [Zope] SiteRoot (SiteAccess) problem In-Reply-To: References: Message-ID: No, I unpacked the tarball in the Products directory. Any more ideas? Any idea how to get SiteRoot to show up on the available items list? Josh At 6:20 PM +0200 9/8/00, Wouter van Hilst wrote: >Hi, > >Did you unpacked the tarbal in the Zope-root? Then its not working. You have >to unpack it in the directory: Zope-2.2.1-linux2-x86/lib/python/Products: >then it must work! > >regards, > >Wouter >-------------------------------------------------- >deeldrie >grafische vormgeving - fotografie - interactieve vormgeving >Donker Curtiusstraat 63 >1051 MC Amsterdam >T (020) 681 36 99 >F (020) 681 38 65 > > >> From: Joshua Brauer >> Date: Thu, 7 Sep 2000 15:53:30 -0600 >> To: zope@zope.org >> Subject: [Zope] SiteRoot (SiteAccess) problem >> >> I'm running a new server with 2.2.1 and Siteaccess 2.0.0 b3 and I don't get a >> "SiteRoot" item in the available items list. I can copy site roots and move >> them, but I cannot create new site roots... After reinstalling SiteAccess (& >> restarting) I still have problems. Any ideas? >> >> >> >> >> General Info: >> >> * Zope version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86) >> * Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 >> 19990314/Linux (egcs- >> * System Platform: linux-i386 >> >> Installed Products: >> AspSucks (Installed product AspSucks) >> BTreeFolder (Installed product BTreeFolder (BTreeFolder-0.1.1)) >> Calendar (Installed product Calendar (calendar-0-9-0)) >> Confera (Broken product Confera) >> DemoPortal (Through-the-web Sample Portal) >> ExternalMethod (Installed product ExternalMethod (External Method-1-0-0)) >> Fortune (Installed product Fortune) >> Glossary (Glossary ZClass) >> Hotfix_06_16_2000 (Installed product Hotfix_06_16_2000) >> Hotfix_2000-08-17 (Installed product Hotfix_2000-08-17) >> IMAPAdapter (Broken product IMAPAdapter) >> KMnetNews (KM|net News) >> KnowledgeKit >> LoginManager (Installed product LoginManager (LoginManager-0-3-0)) >> MIMETools (Installed product MIMETools) >> MailHost (Installed product MailHost (MailHost-1-2-0)) >> NewsSyndicate (Installed product NewsSyndicate (NewsCenter 0.0.5)) >> NotMail (Broken product NotMail) >> OFSP (Installed product OFSP (OFSP-1-0-0)) >> PTKBase (Installed product PTKBase) >> PTKDemo (Installed product PTKDemo) >> Photo (Installed product Photo (Photo-0-4-0)) >> Planner (Planner) >> Poll (Installed product Poll (Poll-0-6-0)) >> PythonMethod (Installed product PythonMethod (PythonMethod-0-1-7)) >> Redirector (Installed product Redirector) >> SiteAccess (Installed product SiteAccess (SiteAccess-2-0-0b3)) >> Squishdot (Installed product Squishdot (Squishdot-0-7-1)) >> TinyCal (Installed product TinyCal (calendar-0-9-0)) >> TinyTable (Installed product TinyTable (TinyTable-0-8-2)) >> WebPages (WebPages Class) >> Wizard >> WorldPilot (Installed product WorldPilot (WorldPilot 1.00.3)) >> XMLDocument (Installed product XMLDocument (XML Document 1.0a6)) >> ZCallable (Installed product ZCallable) >> ZCatalog (Installed product ZCatalog (ZCatalog-2-2-0)) >> ZFDocument (Installed product ZFDocument) >> ZGadflyDA (Installed product ZGadflyDA) >> ZPhotoAlbum (Z Photo Album) >> ZPyGreSQLDA (Installed product ZPyGreSQLDA (ZPyGreSQLDA-0-0-3)) >> ZRTChat (HTML Chat for Zope) >> ZSQLMethods (Installed product ZSQLMethods) >> ZopeTutorial (Installed product ZopeTutorial (Zope Tutorial 1.0)) >> beehiveCal (Installed product beehiveCal (Version 0.2.0)) >> seminarCalendar (Seminar Calendar) >> >> -- >> ------------------------------------------------- >> Joshua Brauer >> Computer Support Scientist >> Department of Biochemistry and Molecular Biology >> Colorado State University >> Fort Collins, CO 80523 >> (970) 491-1080/pager: (970) 498-7995, #5837 >> ------------------------------------------------- >> >> _______________________________________________ >> 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 ) -- ------------------------------------------------- Joshua Brauer Computer Support Scientist Department of Biochemistry and Molecular Biology Colorado State University Fort Collins, CO 80523 (970) 491-1080/pager: (970) 498-7995, #5837 ------------------------------------------------- From evan@4-am.com Fri Sep 8 18:00:40 2000 From: evan@4-am.com (Evan Simpson) Date: Fri, 8 Sep 2000 13:00:40 -0400 Subject: [Zope] SiteRoot (SiteAccess) problem References: Message-ID: <00bf01c019b6$511448c0$3e48a4d8@digicool.com> From: Joshua Brauer > I'm running a new server with 2.2.1 and Siteaccess 2.0.0 b3 and I don't get a "SiteRoot" item in the available items list. I can copy site roots and move them, but I cannot create new site roots... After reinstalling SiteAccess (& restarting) I still have problems. Any ideas? Err... if you delete the SiteAccess Product object (not the directory!) from Control Panel/Products and restart, does it come back unbroken? Do the existing SiteRoots do their jobs? > General Info: > > * Zope version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86) > * Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 19990314/Linux (egcs- > * System Platform: linux-i386 > > Installed Products: [snip list of every Zope Product ever made, practically] I ... wow. Speechless, Evan @ digicool & 4-am From evan@4-am.com Fri Sep 8 18:07:30 2000 From: evan@4-am.com (Evan Simpson) Date: Fri, 8 Sep 2000 13:07:30 -0400 Subject: [Zope] Re: Set Access Rule wish References: <39B6C1CE.8108C7C2@ldeo.columbia.edu> Message-ID: <00d901c019b7$45f41eb0$3e48a4d8@digicool.com> From: Albert Boulanger > Its nice that the icon for the method, who is the access rule's target, > is changed. > However, I think also there needs to be some indicator on the folder > involved as well. Unfortunately, the rule icon is already a fragile hack. If you copy, rename, export, or otherwise move an Access Rule, it ceases to be an active rule, but the icon doesn't go away. The only thing which gets rid of it is using Set Access Rule to turn it off. I'd like to come up with something more robust; I'm open to implementation suggestions. Keep in mind that the container and object involved don't know anything about Access Rules. Cheers, Evan @ digicool & 4-am From hungjunglu@hotmail.com Fri Sep 8 18:20:49 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Fri, 08 Sep 2000 10:20:49 PDT Subject: [Zope] Lock and Transaction in Zope. Message-ID: Hi Aitor, (I am posting to the Zope mailing list, too.) >I have Zope in W2000 >Zope 2.2.1 >Internet Explorer 5.0 Ok. I just tried with Zope on Linux, after I tried with Zope on Windows 98. RedHat 6.2 Zope 2.1.6 Internet Explorer 5.0 Guess what? The thread did not hang. The long thread returns, but the value of your "var" was 2. The situation is then: (1) For Zope running on Windows, the long thread hangs and never returns anything to the browser. (2) For Zope running on Linux, the long thread gets into transaction conflict. But Zope was smart enough to abort the transaction and restart the request again. (Just like what other people said.) I think this should be considered as a bug in Zope for the Windows platform. We should submit the bug report to the Zope bug collector. Notice that it happens for Zope 2.1.6 and Zope 2.2.1, I wonder why no one has reported this bug... (or has it been reported but not been fixed?) regards, Hung Jung _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From jfranz@one.net Fri Sep 8 18:23:49 2000 From: jfranz@one.net (Jon Franz) Date: Fri, 8 Sep 2000 13:23:49 -0400 Subject: [Zope] ZClass, acquisition, dtml confusion Message-ID: Hello, Previously I made a DTML method that when used within a DTML Document would modify properties on that document. Having this floating around in root made it visible to the whole site, but seemed 'unclean'. So, I attempted to make the DTML method into a ZClass, and making the index_html method in the ZClass contain the exact same DTML as the method... But it doesn't work. So, I tried again - this time with as simple a method as possible, a very basic counter. The DTML method I made in root increments and displays the 'z_count' property on the page that calls it, and creates the property if it doesn't exist, so using it is as simple as: However, I place the DTML into a new class, and then make a new instance of the class, and it wont work as above. I now have to do this: And, instead of modifying the property of the calling document, it modifies the parent folder's properties. Below is the DTML, can someone please explain what I need to do to get this to work on the calling DTML document instead? If I can't get this simple counter to work I'm going to go mad, since changing properties is something I need to be able to do from many of my planned ZClasses... Thanks in advance! 000001 From gryser@cgx.ch Fri Sep 8 18:29:58 2000 From: gryser@cgx.ch (Gottfried Ryser) Date: Fri, 8 Sep 2000 19:29:58 +0200 Subject: [Zope] Problems with export Message-ID: I tried to export an opject with the import/export function, but I got the following error msg. 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/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_exportObject) File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_exportObject) File /usr/local/Zope2/lib/python/OFS/ObjectManager.py, line 463, in manage_exportObject (Object: Traversable) File /usr/local/Zope2/lib/python/OFS/ObjectManager.py, line 236, in _getOb (Object: Traversable) AttributeError: (see above) Thank you for help Gottfried Ryser From Didier Georgieff Fri Sep 8 19:24:57 2000 From: Didier Georgieff (Didier Georgieff) Date: Fri, 8 Sep 2000 19:24:57 +0100 Subject: [Zope] repost : pb with acl_users "domains" for clients behind a proxy/firewall Message-ID: <39B93D09.10350.286BC3E@localhost> Hello, I'm reposting here, since i couldn't solve this strange problem. Our users are acessing to the Zope server (wich is on the Internet) thru corporate (government) firewall/proxys. Some users in acl_users are declared with a "domain" restriction. wich is a generic "gouv.fr" or "agriculture.gouv.fr". It doesn't seems to be effective and the login is rejected, while the same user without any "domain" restriction works fine. I'm suspecting some changes in the REQUEST made by the corporate proxys. Is there any doc about what REQUEST variable is used in the "domains" restriction ? I have a HTTP_FORWARDED in the REQUEST but with the *proxy* name (unfortunately without the .gouv.fr). I can't find anything on the site and the list either.Thanks in advance. Didier Georgieff. From pavlos@gaaros.com Fri Sep 8 18:52:13 2000 From: pavlos@gaaros.com (Pavlos Christoforou) Date: Fri, 8 Sep 2000 13:52:13 -0400 (EDT) Subject: [Zope] OSError along with FSSession... In-Reply-To: Message-ID: On Wed, 6 Sep 2000, Chien-Pin Wang wrote: > > Dear Zope Users: > > I have upgraded to FSSession 0.4.2 lately and occasionally run into > the same problem several times. Each time it costs me a zope down. I do > really need some help... > > > Zope complains an error type "OSError" and throws the error value > saying [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' > occasionally since a recent upgrade of FSSession product to 0.4.2. I have managed to reproduce the error by setting SessionUID to an empty string before calling FSSession. Check for situations where you clear the REQUEST variables before calling FSSession. In the meantime I will add some checks on the input values of SessionUID. I will probably release a fixed version during the weekend if not sooner. Pavlos From twcook@iswt.com Fri Sep 8 19:17:59 2000 From: twcook@iswt.com (Tim Cook) Date: Fri, 08 Sep 2000 13:17:59 -0500 Subject: [Zope] ZClass, acquisition, dtml confusion References: Message-ID: <39B92D57.FCF12CEF@iswt.com> Jon Franz wrote: > > > However, I place the DTML into a new class, and then make > a new instance of the class, and it wont work as above. > I now have to do this: > > > > > > And, instead of modifying the property of the calling document, > it modifies the parent folder's properties. Below is the DTML, > can someone please explain what I need to do to get this to I hope someone can answer this. I am having a similar problem. I posted yesterday but haven't received an answer yet either. There is a significant difference in the way properties get changed in a ZClass depending on it being a folderish property or a document property. Trouble is I have figured out those differences. Can someone shed some light on this? -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From deadline@plogic.com Fri Sep 8 19:19:53 2000 From: deadline@plogic.com (Douglas Eadline) Date: Fri, 8 Sep 2000 14:19:53 -0400 (EDT) Subject: [Zope] NEWBIE HELP can not get Zope to start In-Reply-To: <20000908075917.B6577@zopatista.com> Message-ID: On Fri, 8 Sep 2000, Martijn Pieters wrote: > On Thu, Sep 07, 2000 at 10:12:16PM -0400, Douglas Eadline wrote: > > 6. OK, I'll add a user. I go to acl_users and add a user. > > > > 7. I quit netscape, and restart and attempt to login as > > the new user - DOES NOT WORK > > > > 8> I check /var/zope/access - no new user added > > Only the superuser (more accuratly the bootstrap user now) is defined in > the access file. All other users are defined in User objects in the Object > Database. You will notice that the file var/Data.fs will have grown. > > > 9. I quit netscape and re-login as superuser. > > I look at the user I added, now the password field > > has more stars in it than the password I assigned. > > The confirm field has 1 star less than the password field. > > For security reasons, the page with the password and confirm fields is not > rendered with the original password; you can view the source to see this, > the password would have to be sent verbatim in order to do that. In stead, > the magic values 'password' and' 'confirm' are used, to indicate that you > didn't want to change the user password, only the other fields. > > One possible explanation for the denial of your login is that you filled > something in the domains field, which should only be used if you want to > limit the domains a user can login from, and made a mistake there. The > format is a _space seperated_ list of domains, each of which can use the > '*' wildcard for any part between the dots and can be an ip or a name: > > 10.0.0.* localhost *.mydomain.com > > If you did fill in that field, clear it, and try again. Also note that > both user id and password are case sensitive. Try a simple username and > password first, like 'test' and 'test'. > > Let us know if you succeed! > > It works now. I needed to highlight the manager Role. Thanks. Doug -- ------------------------------------------------------------------- Paralogic, Inc. | PEAK | Voice:+610.814.2800 130 Webster Street | PARALLEL | Fax:+610.814.5844 Bethlehem, PA 18015 USA | PERFORMANCE | http://www.plogic.com ------------------------------------------------------------------- From drees@the-bridge.net Fri Sep 8 20:18:51 2000 From: drees@the-bridge.net (Steve Drees) Date: Fri, 8 Sep 2000 14:18:51 -0500 Subject: [Zope] Macintosh Zope. In-Reply-To: Message-ID: <001601c019c9$9f652220$e61de618@thebridge.net> Is anybody running zope on a Mac OS 8.x or 9? From dcmorrison@tidewater.net Fri Sep 8 20:39:53 2000 From: dcmorrison@tidewater.net (Dwayne Morrison) Date: Fri, 08 Sep 2000 15:39:53 -0400 Subject: [Zope] NEWBIE QUESTION: Receive TypeError when scheduling Xron events Message-ID: <4.2.0.58.20000908153612.009c6590@mail.maine.rr.com> Hello, I'm having trouble scheduling events with Xron 0.0.9. I try to create a scheduled event as described in the doc: When executed within a DTML method, the code reports this error: Error Type: TypeError Error Value: keyword parameter redefined I found that the 0.0.9 version of Xron added a new parameter, periodDays, to the method. Adding that produced the same error message. I tried naming all parameters also to no avail. Any suggestions would be greatly appreciated. Environment: Zope version: Zope 2.2.0 (binary release, python 1.5.2, solaris-2.6-sparc) Thanks in advance, Dwayne Morrison dcmorrison@tidewater.net From andym@ActiveState.com Fri Sep 8 20:34:35 2000 From: andym@ActiveState.com (Andy McKay) Date: Fri, 8 Sep 2000 12:34:35 -0700 Subject: [Zope] manage_workspace References: <000f01c019b7$bb9fde60$ae03a8c0@fork> Message-ID: <008a01c019cb$d1cc3350$ae03a8c0@fork> I actually found that file by a quick grep through the source. Im not sure I understand what you are trying to do with the management interface there, and with more information I cannot help you. ----- Original Message ----- From: "Mechtild Hofmann" To: "Andy McKay" Sent: Friday, September 08, 2000 1:10 PM Subject: Re: [Zope] manage_workspace > Hello Andy, > > thank you, that was the file I am looking for. > Where can I read such things ? > > I want to create a management-interface to add Links and News outside > the Zope-Management-Screen. Its working well with the new > manage_workspace - file so far, but when I wand to change the Links, > I get error: the url... did not exist ... :-( > > Regards > > Mechtild Hofmann > -- > > http://www.der-schwarzwald-bebt.de/Wolterdingen - in der Heimat > passiert was! > > info@hofmann-design.de > T: 07705 / 919391 > From lstaffor@dynalogic.com Fri Sep 8 20:54:54 2000 From: lstaffor@dynalogic.com (Loren Stafford) Date: Fri, 8 Sep 2000 12:54:54 -0700 Subject: [Zope] Re: Scheduling Xron event reports TypeError References: <4.2.0.58.20000908124943.009ca730@mail.maine.rr.com> Message-ID: <009501c019ce$a8beae40$2101a8c0@pavilion> From: "Dwayne Morrison" > Hi, > > Sorry to mail you directly instead of posting to the zope group, but my > posts are bouncing from egroups.com. egroups is just a mirror. You have to post to zope@zope.org. You can join zope@zope.org from http://www.zope.org/Resources/MailingLists . > > Anyway, I'm having trouble scheduling events with Xron 0.0.9. I try to > create a scheduled event as described in the doc: > > > > > > When executed within a DTML method, the code reports this error: > > Error Type: TypeError > Error Value: keyword parameter redefined > > I found that the 0.0.9 version of Xron added a new parameter, > periodDays, to the method. Adding that produced the same error > message. I tried naming all parameters also to no avail. Any > suggestions would be greatly appreciated. > > Environment: > Zope version: Zope 2.2.0 (binary release, python 1.5.2, solaris-2.6- > sparc) > > Thanks in advance, > The above method works on Zope 2.1.3 but not on Zope 2.2.0. I don't know why there should be a difference. I will check into it and let you know what I find. Maybe someone else on the list has a ready answer? -- Loren From jhrsn@pitt.edu Fri Sep 8 21:44:35 2000 From: jhrsn@pitt.edu (Jim Harrison) Date: Fri, 08 Sep 2000 16:44:35 -0400 Subject: [Zope] Macintosh Zope. In-Reply-To: <001601c019c9$9f652220$e61de618@thebridge.net> Message-ID: on 9/8/00 3:18 PM, Steve Drees at drees@the-bridge.net wrote: > Is anybody running zope on a Mac OS 8.x or 9? Python 1.5.2 and before for Mac is not threaded, so it doesn't support Zope. 1.6 for Mac is reportedly threaded, but there are some remaining problems (i.e., I tried it once and didn't get a successful compile). I haven't had a chance to follow it up further. Mac OS X make make this moot. I haven't had the opportunity to try it yet, but I believe Zope has been run on OS X Server. I don't know whether anyone has tried with the developer releases of OS X, but I'm planning to give it a shot with the beta release when it's available. Jim Harrison University of Pittsburgh From sean@horse101.com Fri Sep 8 21:53:24 2000 From: sean@horse101.com (sean@horse101.com) Date: Fri, 8 Sep 2000 13:53:24 -0700 Subject: [Zope] How does one display document count of a folder? Message-ID: <39B8EF54.4401.104AA002@localhost> I am using a script to display the contents of a folder, but I wonder how I might display a document count of the dtml documents in a folder? Here is the script I use to display folder contents: ">
Thanks in advance! From Joshua.Brauer@colostate.edu Fri Sep 8 21:55:18 2000 From: Joshua.Brauer@colostate.edu (Joshua Brauer) Date: Fri, 8 Sep 2000 14:55:18 -0600 Subject: [Zope] SiteRoot (SiteAccess) problem Message-ID: It's the security stupid! After filtering through the afternoon's posts on Zope-Dev list I finally thought to check security and found that I didn't' have permission to add a site root and thus, I couldn't see it on my list of available objects. Thanks much, Josh (wiping egg from face) At 6:20 PM +0200 9/8/00, Wouter van Hilst wrote: >Hi, > >Did you unpacked the tarbal in the Zope-root? Then its not working. You have >to unpack it in the directory: Zope-2.2.1-linux2-x86/lib/python/Products: >then it must work! > >regards, > >Wouter >-------------------------------------------------- >deeldrie >grafische vormgeving - fotografie - interactieve vormgeving >Donker Curtiusstraat 63 >1051 MC Amsterdam >T (020) 681 36 99 >F (020) 681 38 65 > > >> From: Joshua Brauer >> Date: Thu, 7 Sep 2000 15:53:30 -0600 >> To: zope@zope.org >> Subject: [Zope] SiteRoot (SiteAccess) problem >> >> I'm running a new server with 2.2.1 and Siteaccess 2.0.0 b3 and I don't get a >> "SiteRoot" item in the available items list. I can copy site roots and move >> them, but I cannot create new site roots... After reinstalling SiteAccess (& >> restarting) I still have problems. Any ideas? >> >> >> >> >> General Info: >> >> * Zope version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86) >> * Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 >> 19990314/Linux (egcs- >> * System Platform: linux-i386 >> >> Installed Products: >> AspSucks (Installed product AspSucks) >> BTreeFolder (Installed product BTreeFolder (BTreeFolder-0.1.1)) >> Calendar (Installed product Calendar (calendar-0-9-0)) >> Confera (Broken product Confera) >> DemoPortal (Through-the-web Sample Portal) >> ExternalMethod (Installed product ExternalMethod (External Method-1-0-0)) >> Fortune (Installed product Fortune) >> Glossary (Glossary ZClass) >> Hotfix_06_16_2000 (Installed product Hotfix_06_16_2000) >> Hotfix_2000-08-17 (Installed product Hotfix_2000-08-17) >> IMAPAdapter (Broken product IMAPAdapter) >> KMnetNews (KM|net News) >> KnowledgeKit >> LoginManager (Installed product LoginManager (LoginManager-0-3-0)) >> MIMETools (Installed product MIMETools) >> MailHost (Installed product MailHost (MailHost-1-2-0)) >> NewsSyndicate (Installed product NewsSyndicate (NewsCenter 0.0.5)) >> NotMail (Broken product NotMail) >> OFSP (Installed product OFSP (OFSP-1-0-0)) >> PTKBase (Installed product PTKBase) >> PTKDemo (Installed product PTKDemo) >> Photo (Installed product Photo (Photo-0-4-0)) >> Planner (Planner) >> Poll (Installed product Poll (Poll-0-6-0)) >> PythonMethod (Installed product PythonMethod (PythonMethod-0-1-7)) >> Redirector (Installed product Redirector) >> SiteAccess (Installed product SiteAccess (SiteAccess-2-0-0b3)) >> Squishdot (Installed product Squishdot (Squishdot-0-7-1)) >> TinyCal (Installed product TinyCal (calendar-0-9-0)) >> TinyTable (Installed product TinyTable (TinyTable-0-8-2)) >> WebPages (WebPages Class) >> Wizard >> WorldPilot (Installed product WorldPilot (WorldPilot 1.00.3)) >> XMLDocument (Installed product XMLDocument (XML Document 1.0a6)) >> ZCallable (Installed product ZCallable) >> ZCatalog (Installed product ZCatalog (ZCatalog-2-2-0)) >> ZFDocument (Installed product ZFDocument) >> ZGadflyDA (Installed product ZGadflyDA) >> ZPhotoAlbum (Z Photo Album) >> ZPyGreSQLDA (Installed product ZPyGreSQLDA (ZPyGreSQLDA-0-0-3)) >> ZRTChat (HTML Chat for Zope) >> ZSQLMethods (Installed product ZSQLMethods) >> ZopeTutorial (Installed product ZopeTutorial (Zope Tutorial 1.0)) >> beehiveCal (Installed product beehiveCal (Version 0.2.0)) >> seminarCalendar (Seminar Calendar) >> >> -- >> ------------------------------------------------- >> Joshua Brauer >> Computer Support Scientist >> Department of Biochemistry and Molecular Biology >> Colorado State University >> Fort Collins, CO 80523 >> (970) 491-1080/pager: (970) 498-7995, #5837 >> ------------------------------------------------- >> >> _______________________________________________ >> 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 ) -- ------------------------------------------------- Joshua Brauer Computer Support Scientist Department of Biochemistry and Molecular Biology Colorado State University Fort Collins, CO 80523 (970) 491-1080/pager: (970) 498-7995, #5837 ------------------------------------------------- From dieter@handshake.de Fri Sep 8 21:52:58 2000 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 8 Sep 2000 22:52:58 +0200 (CEST) Subject: [Zope] change parts of list valued properties (was: [Zope] change_properties In-Reply-To: <62020989@toto.iv> Message-ID: <14777.20477.325764.869552@lindm.dm> brocken22@gmx.de writes: > ... changing part of a token property ... > neuesBudget})"> You can try Of cause, you will get an IndexError, if "Budget" is empty. You may need to provide code to handle this case. Dieter From dieter@handshake.de Fri Sep 8 19:24:44 2000 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 8 Sep 2000 20:24:44 +0200 (CEST) Subject: [Zope] strange namespace behaviour (was: Re: ZClass Bug) In-Reply-To: <007d01c0191a$59f75780$0301a8c0@tim> References: <14771.60076.951714.881856@lindm.dm> <007d01c0191a$59f75780$0301a8c0@tim> Message-ID: <14777.9077.373992.51012@lindm.dm> Hi Tim, Tim Hicks writes: > .... > The "theatre_class" ZClass constructor "theatre_class_add" > raises a NameError "theatre_class" in > REQUEST)"> > if called in some folders but not in other folders .... > When I try to copy and paste a zclass in these folders, > I get the error ... > "One or more items referred to in the clipboard data was not found. > The item may have been moved or deleted after you copied it." > ... In the other folders, everything is fine .... > When I try to rename a class in these folders, it raises an > AttributeError in "ObjectManager(236)._getOb", Object "Traversable". > ... In the other folders, everything is fine .... I tried to reproduce the behavior in my vanilla Zope 2.2.1. Not only, I was unable to do that (as I expected). I was also unable to reproduce your original "id" problem! Zope 2.2.1 apparently no longer has the bug, I analysed for Zope 2.1.6. Did you do your 2.2.1 check by exporting your site from 2.1.6 and importing it into Zope 2.2.1? If so, then probably Zope 2.2.1 is very confused by the strange Zope 2.1.6 ZClasses. Please rebuild your "theatre_class" ZClass from scratch in Zope 2.2.1 (at the same place, it is in Zope 2.1.6!). Create an instance and check whether the id bug is still present -- as I said, I do no longer see this bug. If the bug is no longer there, give your ZInstances Id's in Zope 2.1.6 (by renaming). Then export them and reimport into Zope 2.2.1 (you may try with a single one; if it works do it with all). If you still see this strange folder dependent behavior, then, you may have lost parts of your site. Maybe, DC can help you in this case as sites exported from 2.1.6 should be importable into 2.2.1. I will not analyse such an export/import problem (unless I get myself hit). If you *rebuild* your ZInstances *from scratch* in 2.2.1 (start with a few) and you continue to see the strange folder dependent behavior, you may contact me again. Obviously, such a thing should not happen. Dieter From dieter@handshake.de Fri Sep 8 21:45:12 2000 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 8 Sep 2000 22:45:12 +0200 (CEST) Subject: [Zope] DTML Question on lines In-Reply-To: <84488097@toto.iv> Message-ID: <14777.20188.381542.441728@lindm.dm> Tim Cook writes: > "Coleman, Bryan" wrote: > > I am trying to itterate through a lines .... >
"> Export to Download to local machine
Save to file on server XML format?

You may import Zope objects which have been previously exported to a file, by placing the file in the "import" directory of your Zope installation on the server. You should create the "import" directory in the root of your Zope installation if it does not yet exist.

Note that by default, you will become the owner of the objects that you are importing. If you wish the imported objects to retain their existing ownership information, select "retain existing ownership information".

Import file name
Ownership Take ownership of imported objects
Retain existing ownership information
Import file
Ownership Take ownership of imported objects
Retain existing ownership information
--------------371DC902889B4D4A37BBC6D5-- From bitz@bitdance.com Fri Sep 8 23:53:38 2000 From: bitz@bitdance.com (R. David Murray) Date: Fri, 8 Sep 2000 18:53:38 -0400 (EDT) Subject: [Zope] change_properties In-Reply-To: <28677.968420360@www17.gmx.net> Message-ID: On Fri, 8 Sep 2000 brocken22@gmx.de wrote: > neuesBudget})"> > > This means I'd like to change in a token property only one value but it's > not working. I don't think you can do that. I presume that manage_changeProperties uses the variable names passed in to look the property up in the property dictionary, and it isn't going to find a property named 'Budget[0]' in that list. I think you'll have to pass it the whole value of budget with the appropriate cell modified: --RDM From bitz@bitdance.com Fri Sep 8 23:55:51 2000 From: bitz@bitdance.com (R. David Murray) Date: Fri, 8 Sep 2000 18:55:51 -0400 (EDT) Subject: [Zope] Not able to render a base class... In-Reply-To: <002b01c019a7$6f510f30$ecdb5bcf@mikew> Message-ID: On Fri, 8 Sep 2000, Brian Withun wrote: > I was rather expecting to see 'Renderable' as an option in the BASE CLASSES, > but it's not there. If it's supposed to be there, can you fathom what I may > have done wrong? You need to install the Renderable product. --RDM From bitz@bitdance.com Sat Sep 9 00:00:29 2000 From: bitz@bitdance.com (R. David Murray) Date: Fri, 8 Sep 2000 19:00:29 -0400 (EDT) Subject: [Zope] manage_workspace In-Reply-To: Message-ID: On Fri, 8 Sep 2000, Mechtild Hofmann wrote: > I'am looking for the source-code from "manage_workspace". Where do I > find this file or is it part of a *.py - file ? Yes, it's in a .py file. I think the one you are looking for is in lib/python/App/Management.py. --RDM From bill@libc.org Sat Sep 9 00:11:32 2000 From: bill@libc.org (Bill Anderson) Date: Fri, 08 Sep 2000 17:11:32 -0600 Subject: [Zope] Import from file via management-interface References: <39B96AC5.71EB07E9@wildenhain.de> Message-ID: <39B97224.881F870A@libc.org> How about just the patch next time, as opposed ot the whole patched filed? -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. From jholland@gears.linuxave.net Sat Sep 9 02:00:53 2000 From: jholland@gears.linuxave.net (jholland@gears.linuxave.net) Date: Fri, 8 Sep 2000 18:00:53 -0700 (PDT) Subject: [Zope] Is Squishdot ready for prime time? In-Reply-To: <39B96AC5.71EB07E9@wildenhain.de> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm thinking of recommending it for use at work. Is it reliable? John Holland - --------------- Email: jholland@linuxave.net Web: http://jbhsoft.linuxave.net Public key : finger -s or http://jbhsoft.linuxave.net/pubkey.html -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.2 iQA/AwUBObmLxhPWCCE2yAKHEQIsxgCfcl8p7PdI3WWCKGpLNboq7hfZOT4An2LL Sr8S7931nDFoBuNqkibp5mbz =S3k1 -----END PGP SIGNATURE----- From andym@ActiveState.com Sat Sep 9 02:26:31 2000 From: andym@ActiveState.com (Andy McKay) Date: Fri, 8 Sep 2000 18:26:31 -0700 Subject: [Zope] Is Squishdot ready for prime time? References: Message-ID: <002401c019fc$fbadd3a0$ae03a8c0@fork> Absolutely, totally. Could you be a little more specific than "use at work", that could mean anything. ----- Original Message ----- From: To: Sent: Friday, September 08, 2000 6:00 PM Subject: [Zope] Is Squishdot ready for prime time? > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I'm thinking of recommending it for use at work. Is it reliable? > > > John Holland > - --------------- > > Email: jholland@linuxave.net > Web: http://jbhsoft.linuxave.net > Public key : finger -s or > http://jbhsoft.linuxave.net/pubkey.html > > > -----BEGIN PGP SIGNATURE----- > Version: PGP 6.5.2 > > iQA/AwUBObmLxhPWCCE2yAKHEQIsxgCfcl8p7PdI3WWCKGpLNboq7hfZOT4An2LL > Sr8S7931nDFoBuNqkibp5mbz > =S3k1 > -----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 ) > From akm@mail.theinternet.com.au Sat Sep 9 02:44:13 2000 From: akm@mail.theinternet.com.au (Andrew Kenneth Milton) Date: Sat, 9 Sep 2000 11:44:13 +1000 Subject: [Zope] Icons in a product In-Reply-To: <871yyugbh7.fsf@knapek.pvt.net>; from Petr Knapek on Fri, Sep 08, 2000 at 05:16:52PM +0200 References: <8766o7f9nj.fsf@knapek.pvt.net> <20000908231840.Y1642@zeus.theinternet.com.au> <871yyugbh7.fsf@knapek.pvt.net> Message-ID: <20000909114412.Z1642@zeus.theinternet.com.au> +-------[ Petr Knapek ]---------------------- | >>>>> On Fri, 8 Sep 2000 23:18:40 +1000, Andrew Kenneth Milton said: | | Hi Andrew, | thank you very much for quick answer but I it doesn't work because | in my __init__.py I register the product with the initialize(context) | function. It doesn't go inside your initialize function, sorry about that. It's a 'global' variable in your __init__.py etc.. misc_={ 'subagency': ImageFile('subagency.gif',globals()), #little 'SubAgencyIcon': ImageFile('SubAgency.gif',globals()), #big 'agent': ImageFile('agent.gif',globals()), 'company': ImageFile('company.gif', globals()), 'CompanyIcon': ImageFile('CompanyIcon.gif',globals()), 'client': ImageFile('client.gif',globals()), 'ClientIcon':ImageFile('ClientIcon.gif',globals()), } def initialize(context): -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| From morten@esol.no Sat Sep 9 01:57:42 2000 From: morten@esol.no (Morten W. Petersen) Date: 09 Sep 2000 02:57:42 +0200 Subject: [Zope] How does one display document count of a folder? In-Reply-To: <39B8EF54.4401.104AA002@localhost> References: <39B8EF54.4401.104AA002@localhost> Message-ID: [sean@horse101.com] | I am using a script to display the contents of a folder, but I | wonder how I might display a document count of the dtml | documents in a folder? Untested: HTH -Morten From hanse@yeah.net Sat Sep 9 04:53:45 2000 From: hanse@yeah.net (hanse@yeah.net) Date: Sat, 09 Sep 2000 03:53:45 -0000 Subject: [Zope] Get help about variable and entity of Zope. Message-ID: <8pcc89+fgoe@eGroups.com> Hi: I am troubled by a question with DTML. With DTML,I define a variable AA, and let AA equal a object's ID, HOW can I get the object's property through the variable AA? Maybe need a function? Need your help? I want to express as : Thanks with best regards! From hungjunglu@hotmail.com Sat Sep 9 05:06:36 2000 From: hungjunglu@hotmail.com (Hung Jung Lu) Date: Fri, 08 Sep 2000 21:06:36 PDT Subject: [Zope] Import from file via management-interface Message-ID: >I found it very disturbing having to get my .zexp exports >into the subdirectory 'import' of the server and then using >the management-interface to do the actual import. I found it inconvenient, too. (Not disturbing, though.) And I had to implement my own uploading scheme via web. But as anything that is put into the file system, I thought that there must be some security reason. At least I know that's why the Extensions folder is there. Is this (existence of import folder) really a shortcoming of Zope, or is there some security reason why .zexp cannot be uploaded directly from browser? Can someone somehow write a destructive external method, and then upload it via .zexp? regards, Hung Jung _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. From terry@adroit.net Fri Sep 8 17:27:04 2000 From: terry@adroit.net (Terry Kerr) Date: Sat, 09 Sep 2000 03:27:04 +1100 Subject: [Zope] Import from file via management-interface References: Message-ID: <39B91358.128A7C1D@adroit.net> you can write anything destructive, whether it is an external method, a DTML Method, or basically anything. At least if the only way you can import .zexp's is from the import directory, then only people with access to the zope file structure can import stuff...that will usually be restricted to system administrators or superuser people. terry Hung Jung Lu wrote: > >I found it very disturbing having to get my .zexp exports > >into the subdirectory 'import' of the server and then using > >the management-interface to do the actual import. > > I found it inconvenient, too. (Not disturbing, though.) And I had to > implement my own uploading scheme via web. But as anything that is put into > the file system, I thought that there must be some security reason. At least > I know that's why the Extensions folder is there. > > Is this (existence of import folder) really a shortcoming of Zope, or is > there some security reason why .zexp cannot be uploaded directly from > browser? Can someone somehow write a destructive external method, and then > upload it via .zexp? > > regards, > > Hung Jung > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.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 ) -- Terry Kerr (terry@adroit.net) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 708 124 ICQ: 79303381 From jholland@gears.linuxave.net Sat Sep 9 05:34:36 2000 From: jholland@gears.linuxave.net (jholland@gears.linuxave.net) Date: Fri, 8 Sep 2000 21:34:36 -0700 (PDT) Subject: [Zope] Is Squishdot ready for prime time? In-Reply-To: <002401c019fc$fbadd3a0$ae03a8c0@fork> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 use at work = I will recommeend using it and do the work of setting it up on an NT (ugh) box and claim it can be relied upon for a medium level (I don't know how much really) of traffic. Say aren't you guys the people who embrace and extend perl:>????????? John Holland - --------------- Email: jholland@linuxave.net Web: http://jbhsoft.linuxave.net Public key : finger -s or http://jbhsoft.linuxave.net/pubkey.html On Fri, 8 Sep 2000, Andy McKay wrote: Absolutely, totally. Could you be a little more specific than "use at work", that could mean anything. - ----- Original Message ----- From: To: Sent: Friday, September 08, 2000 6:00 PM Subject: [Zope] Is Squishdot ready for prime time? > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I'm thinking of recommending it for use at work. Is it reliable? > > > John Holland > - --------------- > > Email: jholland@linuxave.net > Web: http://jbhsoft.linuxave.net > Public key : finger -s or > http://jbhsoft.linuxave.net/pubkey.html > > > -----BEGIN PGP SIGNATURE----- > Version: PGP 6.5.2 > > iQA/AwUBObmLxhPWCCE2yAKHEQIsxgCfcl8p7PdI3WWCKGpLNboq7hfZOT4An2LL > Sr8S7931nDFoBuNqkibp5mbz > =S3k1 > -----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 ) > _______________________________________________ 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 ) -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.2 iQA/AwUBObm93xPWCCE2yAKHEQJ38wCcDqMSHDUQxT3Vv4jQ2vjf45yl180AoOYv BEz5c6X6sImGQxOL/7BiCbqm =KAnW -----END PGP SIGNATURE----- From ololo@zeus.polsl.gliwice.pl Sat Sep 9 08:15:45 2000 From: ololo@zeus.polsl.gliwice.pl (Aleksander Salwa) Date: Sat, 9 Sep 2000 09:15:45 +0200 (CEST) Subject: [Zope] locale and Splitter.c on FreeBSD - where is the bug ? Message-ID: Some time ago I had a problem with locales on FreeBSD. Finally, I solved it by patching Splitter.c. I added casting of values passed to funtions isalpha, isalnum to type 'unsigned char'. They are declared in Splitter.c as 'char'. On all machines I'm working on, 'char' is signed. On Linux/x86, isalpha and others works fine with positive and negative values of national characters. (For example, one polish character is '\xc6', what can be evaluated as unsigned 198, or signed -58.) But on FreeBSD/x86 these functions work only with values >127. Because 'char' is signed, it needs casting to work with national characters. Now, the question is: is it a bug in Splitter.c or in FreeBSD system libraries ? (or misconfigured system) ololo@zeus.polsl.gliwice.pl /--------------------------------------\ | `long long long' is too long for GCC | \--------------------------------------/ From tino@wildenhain.de Sat Sep 9 08:33:56 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Sat, 09 Sep 2000 09:33:56 +0200 Subject: [Zope] Import from file via management-interface References: <39B96AC5.71EB07E9@wildenhain.de> <39B97224.881F870A@libc.org> Message-ID: <39B9E7E4.AC038B0B@wildenhain.de> Hi Bill, Bill Anderson wrote: > > How about just the patch next time, as opposed ot the whole patched filed? Ah yes, sure. On the other hand its more convient for the windows people, without a patch at hand... regards Tino From tino@wildenhain.de Sat Sep 9 08:39:33 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Sat, 09 Sep 2000 09:39:33 +0200 Subject: [Zope] Import from file via management-interface References: <39B91358.128A7C1D@adroit.net> Message-ID: <39B9E935.9807FB74@wildenhain.de> Hi Terry, Terry Kerr wrote: > > you can write anything destructive, whether it is an external method, a DTML > Method, or basically anything. At least if the only way you can import .zexp's > is from the import directory, then only people with access to the zope file > structure can import stuff...that will usually be restricted to system > administrators or superuser people. Hm. I dont see the point here. First you can restrict the ability to Export/Import in the users role. Second, the either the superuser has to be bothered with imports or you have to grant all the people access to the file system. This would be much lesser security as beeing able to import via web. May be I schould have a deeper look at the ownership-problem. Giving the importing user ownership over all objects (s)he imports as long it is not the superuser, schould do the trick. Regards Tino From mj@digicool.com Sat Sep 9 09:55:51 2000 From: mj@digicool.com (Martijn Pieters) Date: Sat, 9 Sep 2000 10:55:51 +0200 Subject: [Zope] Import from file via management-interface In-Reply-To: <39B9E935.9807FB74@wildenhain.de>; from tino@wildenhain.de on Sat, Sep 09, 2000 at 09:39:33AM +0200 References: <39B91358.128A7C1D@adroit.net> <39B9E935.9807FB74@wildenhain.de> Message-ID: <20000909105551.A26354@zopatista.com> On Sat, Sep 09, 2000 at 09:39:33AM +0200, Tino Wildenhain wrote: > Terry Kerr wrote: > > > > you can write anything destructive, whether it is an external method, a DTML > > Method, or basically anything. At least if the only way you can import .zexp's > > is from the import directory, then only people with access to the zope file > > structure can import stuff...that will usually be restricted to system > > administrators or superuser people. > > Hm. I dont see the point here. First you can restrict the ability to > Export/Import in the users role. > Second, the either the superuser has to be bothered with imports or > you have to grant all the people access to the file system. > This would be much lesser security as beeing able to import via web. > > May be I schould have a deeper look at the ownership-problem. > > Giving the importing user ownership over all objects (s)he imports > as long it is not the superuser, schould do the trick. The problem is not so much ownership of the objects imported, but the type of objects that can be instanciated from a pickle (the export format wether XML or binary, consists of pickled classes). You can create _everything_ from a pickle, as long as there is a class definition for it; including a monitor client. I can open up a high port on your machine that'll let me connect to your Zope process in a python interpreter prompt. Then your server is my oister. Allowing imports from arbitrary paths will let me exploit security holes in other internet daemons on your machine to create a pickle file for import; preferably the /tmp directory as it is world writeable. Restricting imports to one directory allows you to be much more restrictive as to who can write there. You can set up restricted FTP access or even only allow scp (ssh encrypted file transfer) for trusted people to upload exports to the Zope import directory if you need to give others import rights. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio ----------------------------------------------------- From mdanaii@yahoo.com Sat Sep 9 10:52:30 2000 From: mdanaii@yahoo.com (Marc DANAI) Date: Sat, 9 Sep 2000 02:52:30 -0700 (PDT) Subject: [Zope] Request For INFO Message-ID: <20000909095230.9711.qmail@web4006.mail.yahoo.com> Hi, I would like to make a site with the following features but I don't know which products to use: - one editorial part with the list of projects, - new user can register himself, - registrated user can add new project. The project can be on any format (doc,ppt, html, ...), - link for meeting, - link for forum of discussion, - manager is alerted when new user comes, - manager is alerted when new project is added, - link for feed-back, - users and projects are categorized by country, - search box. I see lot of products in Zope site but don't which one(s) are adapted to do this site more easily? Thank's __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ From administrator@consotec.de Sat Sep 9 11:20:14 2000 From: administrator@consotec.de (administrator@consotec.de) Date: 09 Sep 00 10:20:14 UT Subject: [Zope] German version of zzLocale Message-ID: --------------1DD2510B41FE Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello, is someone working on german version of zzLocale? We would like to join. Currently there is a static translation of the whole interface with zzLocale. So it's difficult to change. If you change something in one language you have to change in all other files too. What's about an integration of zzLocale with ZBabel? How could we do that? Regards Arno Gross consotec arno.gross@consotec.de --------------1DD2510B41FE-- From wittern@iis.sinica.edu.tw Sat Sep 9 11:53:53 2000 From: wittern@iis.sinica.edu.tw (Christian Wittern) Date: Sat, 9 Sep 2000 18:53:53 +0800 Subject: [Zope] Using Chinese Characters In-Reply-To: <39B7E9F9.6F74ABC3@wildenhain.de> Message-ID: Hi there, I am using Zope successfully with Chinese (Traditional) on Windows. For forward compatibility, I am storing it as UTF-8, which is one storage format for Unicode/ISO 10646 (aka as UCS). It used to work nice until Zope 2.2, where some of the display got mangled. I submitted a patch to the Collector to fix this problem some weeks ago, so hopefully this will go away in the future. Anothere thing is being able to use ZCatalog: I privately patched the splitter program, which is used to split strings into words. I am not yet satisfied with the solution, that's why I did not go public with it. It's also only tested on my windows box. All the best, Christian > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf > Of Tino Wildenhain > Sent: Friday, September 08, 2000 3:18 AM > To: Kelvin Cheong > Cc: zope@zope.org > Subject: Re: [Zope] Using Chinese Characters > > > Hi Kelvin, > > Kelvin Cheong wrote: > > > > i was wondering how i can use chinese characters with Zpe on Linux. does > > anyone know how? According to my "mild" research so far, i > found out that > > Big5is a 2-byte code and is a part of ISO-10646/Unicode. It > also seems to > > be the de-facto for traditional chinese characters. There're > also Unicode > > CJK and GB. But GB is for China, which uses simplified chinese > characters. > > And CJK includes both Big5 and GB. > > classic zope is built on python 1.52 and does not naturally support > unicode. > But there is a light on the horizont: > > http://www.zope.org/Members/htrd/wstring > > I have a vision of everything working together for localizing and > internationalisation ;-) > > Regards > Tino > > _______________________________________________ > 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 administrator@consotec.de Sat Sep 9 12:25:42 2000 From: administrator@consotec.de (administrator@consotec.de) Date: 09 Sep 00 11:25:42 UT Subject: [Zope] Replace function Message-ID: --------------1DD2510B41FE Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello, how can I replace a expression within a page or a folder? Thanks in advance. Arno Gross consotec arno.gross@consotec.de --------------1DD2510B41FE-- From jasonic@nomadicsltd.com Sat Sep 9 14:17:43 2000 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Sat, 9 Sep 2000 09:17:43 -0400 Subject: [Zope] Looking for Zope vs. Others at-a-glance comparison Message-ID: <001101c01a60$56d42460$c3090740@megapathdsl.net> Hello I need to present the arguments for why we haev chosen Zope vs. Others. Does anyone know of a clear at-a-glance table or anything with the main contenders, features, price, licensing etc. Thanks - Jason ________________________________________________________________ Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director From phd@mail2.phd.pp.ru Sat Sep 9 13:52:40 2000 From: phd@mail2.phd.pp.ru (Oleg Broytmann) Date: Sat, 9 Sep 2000 12:52:40 +0000 (GMT) Subject: [Zope] locale and Splitter.c on FreeBSD - where is the bug ? In-Reply-To: Message-ID: On Sat, 9 Sep 2000, Aleksander Salwa wrote: > Some time ago I had a problem with locales on FreeBSD. > Finally, I solved it by patching Splitter.c. > > I added casting of values passed to funtions isalpha, isalnum to > type 'unsigned char'. They are declared in Splitter.c as 'char'. > > On all machines I'm working on, 'char' is signed. > On Linux/x86, isalpha and others works fine with positive and negative > values of national characters. (For example, one polish character is > '\xc6', what can be evaluated as unsigned 198, or signed -58.) > But on FreeBSD/x86 these functions work only with values >127. > Because 'char' is signed, it needs casting to work with national > characters. > > Now, the question is: is it a bug in Splitter.c or in FreeBSD system > libraries ? (or misconfigured system) It is bug in Linux libraries! They tricked you to think it is right way, but it is actually wrong way. FreeBSD (in this aspect) is better, more strict (there are aspect where Linux clearly wins :). Compile Zope with gcc -funsigned-char on FreeBSD. Oleg. ---- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. From lists@kassube.de Sat Sep 9 14:31:32 2000 From: lists@kassube.de (Nils Kassube) Date: Sat, 9 Sep 2000 15:31:32 +0200 Subject: [Zope] Looking for Zope vs. Others at-a-glance comparison In-Reply-To: <001101c01a60$56d42460$c3090740@megapathdsl.net> Message-ID: Jason Cunliffe wrote: > I need to present the arguments for why we haev chosen Zope vs. Others. > Does anyone know of a clear at-a-glance table or anything with the main > contenders, features, price, licensing etc. You didn't collect this data _before_ choosing Zope? :-) Cheers, Nils -- nika@acm.org nika@kassube.de (preferred) 4kassube@informatik.uni-hamburg.de From tino@wildenhain.de Sat Sep 9 14:54:25 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Sat, 09 Sep 2000 15:54:25 +0200 Subject: [Zope] Import from file via management-interface References: <39B91358.128A7C1D@adroit.net> <39B9E935.9807FB74@wildenhain.de> <20000909105551.A26354@zopatista.com> Message-ID: <39BA4111.45D78267@wildenhain.de> Hi, Martijn Pieters wrote: > > On Sat, Sep 09, 2000 at 09:39:33AM +0200, Tino Wildenhain wrote: > > Terry Kerr wrote: > > > > > > you can write anything destructive, whether it is an external method, a DTML > > > Method, or basically anything. At least if the only way you can import .zexp's > > > is from the import directory, then only people with access to the zope file > > > structure can import stuff...that will usually be restricted to system > > > administrators or superuser people. > > > > Hm. I dont see the point here. First you can restrict the ability to > > Export/Import in the users role. > > Second, the either the superuser has to be bothered with imports or > > you have to grant all the people access to the file system. > > This would be much lesser security as beeing able to import via web. > > > > May be I schould have a deeper look at the ownership-problem. > > > > Giving the importing user ownership over all objects (s)he imports > > as long it is not the superuser, schould do the trick. > > The problem is not so much ownership of the objects imported, but the type > of objects that can be instanciated from a pickle (the export format > wether XML or binary, consists of pickled classes). > > You can create _everything_ from a pickle, as long as there is a class > definition for it; including a monitor client. I can open up a high port > on your machine that'll let me connect to your Zope process in a python > interpreter prompt. Then your server is my oister. Thats badly true, but importing of a whole bunch of objects is also often needed. IIRC does pickle only handle instance data but not class code. (although I see using of marshal in the import code which does in fact import code as oposite to pickle) Importing instance data schould not be a problem since it can only work if the user in question has access to the classes. This access is already handled by permissions. Moreover we could restrict importing via web to the superuser at all. > Allowing imports from arbitrary paths will let me exploit security holes > in other internet daemons on your machine to create a pickle file for > import; preferably the /tmp directory as it is world writeable. > Restricting imports to one directory allows you to be much more > restrictive as to who can write there. > > You can set up restricted FTP access or even only allow scp (ssh encrypted > file transfer) for trusted people to upload exports to the Zope import > directory if you need to give others import rights. Uh, do you know any ssh-daemon for windows? ;-) Regards ;-) Tino From mj@digicool.com Sat Sep 9 17:16:45 2000 From: mj@digicool.com (Martijn Pieters) Date: Sat, 9 Sep 2000 18:16:45 +0200 Subject: [Zope] Import from file via management-interface In-Reply-To: <39BA4111.45D78267@wildenhain.de>; from tino@wildenhain.de on Sat, Sep 09, 2000 at 03:54:25PM +0200 References: <39B91358.128A7C1D@adroit.net> <39B9E935.9807FB74@wildenhain.de> <20000909105551.A26354@zopatista.com> <39BA4111.45D78267@wildenhain.de> Message-ID: <20000909181645.A28609@zopatista.com> On Sat, Sep 09, 2000 at 03:54:25PM +0200, Tino Wildenhain wrote: > > The problem is not so much ownership of the objects imported, but the type > > of objects that can be instanciated from a pickle (the export format > > wether XML or binary, consists of pickled classes). > > > > You can create _everything_ from a pickle, as long as there is a class > > definition for it; including a monitor client. I can open up a high port > > on your machine that'll let me connect to your Zope process in a python > > interpreter prompt. Then your server is my oister. > > Thats badly true, but importing of a whole bunch of objects is also > often needed. IIRC does pickle only handle instance data but not > class code. (although I see using of marshal in the import code > which does in fact import code as oposite to pickle) > Importing instance data schould not be a problem since it can only work > if the user in question has access to the classes. > This access is already handled by permissions. No it isn't. Web access to class instances is handled by permissions. Unpickling will cause class instantiation in the python process, where you have no control over what get's created. You can create a custom unpickling class, but one that would handle the Zope range of objects would be, in Jim's words "tricky". > Moreover we could restrict importing via web to the superuser at all. This would completely defeat your idea that people besides the superuser should be able to import. Apart from being a security risk. > > Allowing imports from arbitrary paths will let me exploit security holes > > in other internet daemons on your machine to create a pickle file for > > import; preferably the /tmp directory as it is world writeable. > > Restricting imports to one directory allows you to be much more > > restrictive as to who can write there. > > > > You can set up restricted FTP access or even only allow scp (ssh encrypted > > file transfer) for trusted people to upload exports to the Zope import > > directory if you need to give others import rights. > > Uh, do you know any ssh-daemon for windows? ;-) Sorry, no, but that's because I never looked. I am sure there are other secure options for file transfer for Win32 available though. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio ----------------------------------------------------- From komunroe@uwimona.edu.jm Sat Sep 9 17:07:40 2000 From: komunroe@uwimona.edu.jm (Karl Munroe) Date: Sat, 9 Sep 2000 11:07:40 -0500 Subject: [Zope] My z Class Message-ID: <000b01c01a78$14a24370$7c0403c4@colonel> I am having problems adding images to my z class I am creating a Z class for a staff profile...I have added an image to the methods of the class. When editing and creating a new profile object I use the following syntax It changes to the MYProfileClass_add_form take place. When I call the above code in the add method......I get an error telling me I do not have access to theMYProfileClass object.. Please I would like some help on how to include other objects in my Z class and how to edit the properties of the included objects. Payng attention to the image example From steve@spvi.com Sat Sep 9 18:00:01 2000 From: steve@spvi.com (Steve Spicklemire) Date: Sat, 9 Sep 2000 12:00:01 -0500 (EST) Subject: [Zope] Macintosh Zope. In-Reply-To: <001601c019c9$9f652220$e61de618@thebridge.net> (drees@the-bridge.net) References: <001601c019c9$9f652220$e61de618@thebridge.net> Message-ID: <200009091700.MAA06250@mercury.spvi.com> HI Steve, I've been running Zope-2.2 on my powerbook under MacOSX DP4 quite happily. My only problem now is lack of MySQL ;-). I don't think there's much hope of Zope on MacOS 8/9 due to the lack of proper thread support. I did manage to get Medusa/Bobo working on MacOS-8, a *long* time ago... but that was before threading was added ... and it was horribly slow. There should be a public beta of MacOS-X out soon.. and it runs Zope just fine. (There is some monkey business with gcc command link options that are different from the defaults (e.g., '-LDFLAGS=undefined-suppress') to make the linker happy... take a look at: http://www.zope.org/Members/jshell/buildingZopeOnMacOSXServer ) Good Luck! -steve From troy.farrell@wilcom.com Sat Sep 9 18:14:23 2000 From: troy.farrell@wilcom.com (Farrell, Troy) Date: Sat, 9 Sep 2000 12:14:23 -0500 Subject: [Zope] Is Squishdot ready for prime time? Message-ID: I don't know about squishdot, but making DA's work with ZOpe on NT has been giving me fits. Plan plenty of setup time. Oh, how I wish i could use *n(u/i)x. I think I'll sneak it on to the dev server. Troy Troy Farrell Video Operations Technician II Williams VYVX Services 918.573.3029 918.573.1441 fax mailto:troy.farrell@wilcom.com http://www.williams.com -----Original Message----- From: jholland@gears.linuxave.net [mailto:jholland@gears.linuxave.net] Sent: Friday, September 08, 2000 11:35 PM To: Andy McKay Cc: zope@zope.org Subject: Re: [Zope] Is Squishdot ready for prime time? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 use at work = I will recommeend using it and do the work of setting it up on an NT (ugh) box and claim it can be relied upon for a medium level (I don't know how much really) of traffic. Say aren't you guys the people who embrace and extend perl:>????????? John Holland - --------------- Email: jholland@linuxave.net Web: http://jbhsoft.linuxave.net Public key : finger -s or http://jbhsoft.linuxave.net/pubkey.html On Fri, 8 Sep 2000, Andy McKay wrote: Absolutely, totally. Could you be a little more specific than "use at work", that could mean anything. - ----- Original Message ----- From: To: Sent: Friday, September 08, 2000 6:00 PM Subject: [Zope] Is Squishdot ready for prime time? > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I'm thinking of recommending it for use at work. Is it reliable? > > > John Holland > - --------------- > > Email: jholland@linuxave.net > Web: http://jbhsoft.linuxave.net > Public key : finger -s or > http://jbhsoft.linuxave.net/pubkey.html > > > -----BEGIN PGP SIGNATURE----- > Version: PGP 6.5.2 > > iQA/AwUBObmLxhPWCCE2yAKHEQIsxgCfcl8p7PdI3WWCKGpLNboq7hfZOT4An2LL > Sr8S7931nDFoBuNqkibp5mbz > =S3k1 > -----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 ) > _______________________________________________ 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 ) -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.2 iQA/AwUBObm93xPWCCE2yAKHEQJ38wCcDqMSHDUQxT3Vv4jQ2vjf45yl180AoOYv BEz5c6X6sImGQxOL/7BiCbqm =KAnW -----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 ) From drees@the-bridge.net Sat Sep 9 18:07:40 2000 From: drees@the-bridge.net (Steve Drees) Date: Sat, 9 Sep 2000 12:07:40 -0500 Subject: [Zope] Import from file via management-interface In-Reply-To: <39B91358.128A7C1D@adroit.net> Message-ID: > you can write anything destructive, whether it is an external method, a DTML > Method, or basically anything. At least if the only way you can import .zexp's > is from the import directory, then only people with access to the zope file > structure can import stuff...that will usually be restricted to system > administrators or superuser people. But if there was a Can Import From Web role than you could control who could import and who couldn't. Granular Security is a strong point of Zope. We should strive to use it. From aboulang@ldeo.columbia.edu Sat Sep 9 19:28:42 2000 From: aboulang@ldeo.columbia.edu (albert boulanger) Date: Sat, 9 Sep 2000 14:28:42 -0400 (EDT) Subject: [Zope] keeping Java Servlets session ids based on url rewriting Message-ID: <200009091828.OAA08504@ox.ldgo.columbia.edu> I am using the latest Zope release using ZServer directly (but will be running under Apache....) I need to coordinate Zope based sessions and servelet sessions. We will be using url rewriting (I know use cookies, but we are doing worst case planning.). As you may know the rewritten urls that the servlet does look like http://foo/bar;$$. I need to retain the stuff after the ;. This seems to be dropped i think in ZServer. I was going to store the servlet sesssion id in a SQLSession object by having the servlet do a response redirect to a dtml method to process the id after the ;. Will Apache frontending and setting the CGI-vars fix this issue? A more general question, has anyone worked on the general cross-session issues like this? I think this is consideration item for the new session support in Zope. Regards, Albert Boulanger aboulanger@vpatch.com From Zope: Try this http://www.zope.org/Members/aboulang/printresponse;fffff aboulang form cookies other AUTHENTICATION_PATH URL0 http://www.zope.org/Members/aboulang/printresponse TraversalRequestNameStack [] SiteRootPATH / VirtualRootPhysicalPath ('',) URL http://www.zope.org/Members/aboulang/printresponse AUTHENTICATED_USER Anonymous User SERVER_URL http://www.zope.org URL0 http://www.zope.org/Members/aboulang/printresponse URL1 http://www.zope.org/Members/aboulang URL2 http://www.zope.org/Members URL3 http://www.zope.org BASE0 http://www.zope.org BASE1 http://www.zope.org BASE2 http://www.zope.org/Members BASE3 http://www.zope.org/Members/aboulang BASE4 http://www.zope.org/Members/aboulang/printresponse environ HTTP_ACCEPT_ENCODING gzip, deflate channel.creation_time 968523573 SERVER_PROTOCOL 1.0 SERVER_PORT 1380 PATH_INFO /Members/aboulang/printresponse HTTP_HOST www.zope.org:1380 REQUEST_METHOD GET PATH_TRANSLATED /Members/aboulang/printresponse SCRIPT_NAME SERVER_SOFTWARE Zope/(unreleased version) ZServer/1.1b1 HTTP_ACCEPT_LANGUAGE en-us REMOTE_ADDR 209.67.167.55 SERVER_NAME localhost.localdomain GATEWAY_INTERFACE CGI/1.1 HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.01; Windows 98) HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */* From snark@ou.edu Sat Sep 9 19:59:28 2000 From: snark@ou.edu (Tim Russell) Date: Sat, 9 Sep 2000 13:59:28 -0500 Subject: [Zope] 2d list manipulation Message-ID: Hey, I'm having trouble accessing variables in a 2-dimensional list. Here's the creation code: This creates a list variable, col, which contains 24 lists, each of which have elements of value 0. I can easily access the value of an element using: However, the difficulty comes when trying to change the value of one of these elements. I've tried a handful of techniques, mostly offshoots of this: to no avail. Does anyone have a solution to this? Thanks much... --Tim From jasonic@nomadicsltd.com Sat Sep 9 19:55:55 2000 From: jasonic@nomadicsltd.com (Jason Cunliffe) Date: Sat, 9 Sep 2000 14:55:55 -0400 Subject: [Zope] Looking for Zope vs. Others at-a-glance comparison References: Message-ID: <002601c01a8f$964c4440$c3090740@megapathdsl.net> > > I need to present the arguments for why we haev chosen Zope vs. Others. > > Does anyone know of a clear at-a-glance table or anything with the main > > contenders, features, price, licensing etc. > > You didn't collect this data _before_ choosing Zope? :-) lol not really.. back then it seemed obvious to me why to try zope what's interesting about it: zope_pros = ['idea', 'free', 'openSource', 'Zserver', 'ZODB', 'x-platform', 'persistence', 'python', 'DTML', 'community', 'zopezen', 'scale and scope', 'easy install', 'External Methods', '.zexp files'] and what's to watch out for zope_cons = ['DTML', 'documentation', 'lack of books', 'lack of demonstrable large commercial or cool sites', 'lack of visual design sense' 'versionitis', 'zopezen', 'learning curve', 'DTML interface/edit-test cycle'] ...to be clearer in a wide context As I see it these are the alternative choices: - Zope - ColdFusion - ASP - Roxen - Vignette - AOLserver/ArsDigita - Manila ? Do you agree? What's missing? For each of above I'd like to fill in the following: {'name':"", 'features':{},'pro':[], 'con':[] } where = {'OS': [], 'Xplatform':[], 'cost':[] , 'sourcecode':[], 'license':[], 'openSource':[] 'version':[], 'scriptinglanguages':[], 'DBconnectivity':[] ) Any takers? If was more adept in DTML was I could put up a comparative poll page though I suspect most here would respond like you Nils. cheers - Jason From snark@ou.edu Sat Sep 9 20:39:06 2000 From: snark@ou.edu (Tim Russell) Date: Sat, 9 Sep 2000 14:39:06 -0500 Subject: [Zope] 2d list manipulation In-Reply-To: <4.3.1.0.20000909141646.00aa1220@198.78.130.6> Message-ID: Nope, still nothing... > > > > Just try it without the single quotes: > > From srichter@cbu.edu Sat Sep 9 21:43:55 2000 From: srichter@cbu.edu (Stephan Richter) Date: Sat, 09 Sep 2000 15:43:55 -0500 Subject: [Zope] 2d list manipulation In-Reply-To: References: <4.3.1.0.20000909152606.00aa5480@198.78.130.6> Message-ID: <4.3.1.0.20000909154046.00a95c60@198.78.130.6> At 03:40 PM 9/9/00 -0500, Tim Russell wrote: >That's the thing -- It doesn't give any errors, it just doesn't have any >effect on the value in the array. Weird, no? > >--Tim > > >Nope, still nothing... > > > > > > > > > > > > > > > > Just try it without the single quotes: > > > > > > > > > > > > Can you send me the traceback? Thinking about it again makes me realize that it will not work, since set just sets a variable, but does not take care of assignments. It is a little bit hard to explain, maybe someone else can do a better job. Here is what you would have to do: This code is tested and works. But you will see that this is far too complicated, thats why I would suggest you use a Python Method or an Eternal Method to solve the issue. Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development & Technical Project Management From zope@philosoft.at Sun Sep 10 03:19:29 2000 From: zope@philosoft.at (Philipp Auersperg) Date: Sun, 10 Sep 2000 04:19:29 +0200 Subject: [Zope] ZClasses - Base classes Message-ID: <200009100419290968.07811B77@192.7.2.223> --=====_96855236918467=_ Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable I know that one cannot change the base classes of a ZClass after it has een= created, but my question: How can I just find out / enmerate the base classes of a ZClass? thanks phil --=====_96855236918467=_ Content-Type: text/html; charset="us-ascii"
I know that one cannot change the base classes of a ZClass after it has een created, but my question:
 
How can I just find out / enmerate the base classes of a ZClass?
 
thanks
phil
--=====_96855236918467=_-- From kthangavelu@earthlink.net Sat Sep 9 21:58:30 2000 From: kthangavelu@earthlink.net (Kapil Thangavelu) Date: Sat, 09 Sep 2000 13:58:30 -0700 Subject: [Zope] keeping Java Servlets session ids based on url rewriting References: <200009091828.OAA08504@ox.ldgo.columbia.edu> Message-ID: <39BAA476.B0B2B92@earthlink.net> albert boulanger wrote: > > I am using the latest Zope release using ZServer directly (but will be > running under Apache....) > > I need to coordinate Zope based sessions and servelet sessions. We > will be using url rewriting (I know use cookies, but we are doing > worst case planning.). As you may know the rewritten urls that the > servlet does look like http://foo/bar;$$. I need to retain > the stuff after the ;. This seems to be dropped i think in ZServer. I > was going to store the servlet sesssion id in a SQLSession object by > having the servlet do a response redirect to a dtml method to process > the id after the ;. > > Will Apache frontending and setting the CGI-vars fix this issue? > > A more general question, has anyone worked on the general > cross-session issues like this? I think this is consideration item for > the new session support in Zope. Would Zope Servlet interaction be useful to you? if so in what form? I'm going to start working next weekend on Zope calls into JServ. I'd like to get some requirements from interested parties before i start coding. Cheers Kapil From chrism@digicool.com Sun Sep 10 03:21:46 2000 From: chrism@digicool.com (Chris McDonough) Date: Sat, 9 Sep 2000 22:21:46 -0400 Subject: [Zope] keeping Java Servlets session ids based on url rewriti ng Message-ID: <613145F79272D211914B0020AFF640199E6D8B@gandalf.digicool.com> Albert, Hmmm.. can you take a step back and restate the problem more generally? What is the goal? > -----Original Message----- > From: Kapil Thangavelu [mailto:kthangavelu@earthlink.net] > Sent: Saturday, September 09, 2000 4:59 PM > To: albert boulanger; zope@zope.org > Subject: Re: [Zope] keeping Java Servlets session ids based on url > rewriting > > > albert boulanger wrote: > > > > I am using the latest Zope release using ZServer directly > (but will be > > running under Apache....) > > > > I need to coordinate Zope based sessions and servelet sessions. We > > will be using url rewriting (I know use cookies, but we are doing > > worst case planning.). As you may know the rewritten urls that the > > servlet does look like http://foo/bar;$$. I need to retain > > the stuff after the ;. This seems to be dropped i think in > ZServer. I > > was going to store the servlet sesssion id in a SQLSession object by > > having the servlet do a response redirect to a dtml method > to process > > the id after the ;. > > > > Will Apache frontending and setting the CGI-vars fix this issue? > > > > A more general question, has anyone worked on the general > > cross-session issues like this? I think this is > consideration item for > > the new session support in Zope. > > > Would Zope Servlet interaction be useful to you? if so in what form? > > I'm going to start working next weekend on Zope calls into JServ. I'd > like to get some requirements from interested parties before i start > coding. > > Cheers > > Kapil > > _______________________________________________ > 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 tino@wildenhain.de Sun Sep 10 04:17:28 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Sun, 10 Sep 2000 05:17:28 +0200 Subject: [Zope] keeping Java Servlets session ids based on url rewriting References: <200009091828.OAA08504@ox.ldgo.columbia.edu> <39BAA476.B0B2B92@earthlink.net> Message-ID: <39BAFD48.578EA9E9@wildenhain.de> Hi, Kapil Thangavelu wrote: *snip* > I'm going to start working next weekend on Zope calls into JServ. I'd > like to get some requirements from interested parties before i start > coding. Oh nice! I've done the jserv part of the german apache book. So if I could help... Regards Tino From twcook@iswt.com Sun Sep 10 05:39:11 2000 From: twcook@iswt.com (Tim Cook) Date: Sat, 09 Sep 2000 23:39:11 -0500 Subject: [Zope] Folderish Properties References: <39B7A71D.490F148D@iswt.com> Message-ID: <39BB106F.D70CC6E8@iswt.com> Tim Cook wrote: > > I have a folderish ZClass with a set of properties. When I create > an instance via DTML my code doesn't update the properties from > REQUEST. > I am sending this for the benefit of the archives. Sorry for the extra traffic. But it may help someone in the future. I know they are important to me. There is no difference between creating 'document-ish' and 'folder-ish' ZClasses. I had failed to make the call to in my constructor method of all my ZClasses after the first one. That's why I THOUGHT there was a difference. -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org From dieter@handshake.de Sat Sep 9 12:06:44 2000 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 9 Sep 2000 13:06:44 +0200 (CEST) Subject: [Zope] manage_workspace In-Reply-To: <98401321@toto.iv> Message-ID: <14778.6523.286047.997646@lindm.dm> Mechtild Hofmann writes: > I'am looking for the source-code from "manage_workspace". Where do I > find this file or is it part of a *.py - file ? It is: OFS.PropertySheets.View.manage_workspace Dieter From dieter@handshake.de Sat Sep 9 12:14:47 2000 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 9 Sep 2000 13:14:47 +0200 (CEST) Subject: [Zope] repost : pb with acl_users "domains" for clients behind a proxy/firewall In-Reply-To: <39265271@toto.iv> Message-ID: <14778.6967.675679.152808@lindm.dm> Didier Georgieff writes: > Our users are acessing to the Zope server (wich is on the Internet) thru > corporate (government) firewall/proxys. > > Some users in acl_users are declared with a "domain" restriction. > wich is a generic "gouv.fr" or "agriculture.gouv.fr". > > It doesn't seems to be effective and the login is rejected, while the same user > without any "domain" restriction works fine. The code handling the "domain" restrictions is in "AccessControl.User.domainSpecMatch". It looks at REMOTE_HOST and REMOTE_ADDR. Thus, your proxy must pass this unchanged. Dieter From dieter@handshake.de Sat Sep 9 12:01:35 2000 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 9 Sep 2000 13:01:35 +0200 (CEST) Subject: [Zope] Problems with export In-Reply-To: <78491117@toto.iv> Message-ID: <14778.6136.251793.685859@lindm.dm> Gottfried Ryser writes: > I tried to export an opject with the import/export function, but I got the > following error msg. > > .... > File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 112, in > call_object > (Object: manage_exportObject) > File /usr/local/Zope2/lib/python/OFS/ObjectManager.py, line 463, in > manage_exportObject > (Object: Traversable) > File /usr/local/Zope2/lib/python/OFS/ObjectManager.py, line 236, in _getOb > (Object: Traversable) > AttributeError: (see above) Tim Hicks (URL:mailto:tim@sitefusion.co.uk) recently reported a very similar looking problem. Maybe, you could join forces, to get this problem fixed. Dieter From dieter@handshake.de Sat Sep 9 12:09:34 2000 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 9 Sep 2000 13:09:34 +0200 (CEST) Subject: [Zope] Problems with Product initialization (was: [Zope] SiteRoot (SiteAccess) problem) In-Reply-To: <84222063@toto.iv> Message-ID: <14778.6613.375152.332245@lindm.dm> Joshua Brauer writes: > No, I unpacked the tarball in the Products directory. > > Any more ideas? Any idea how to get SiteRoot to show up on the available items list? To analyse any problem with product initialization, it is probably best to start Zope with "STUPID_LOG_FILE=". Then you will look at 2 places: * the "traceback" in the product's management screen * these log file Dieter From dieter@handshake.de Sun Sep 10 08:33:58 2000 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 10 Sep 2000 09:33:58 +0200 (CEST) Subject: [Zope] Length of a list (was: [Zope] How does one display document count of a folder?) In-Reply-To: <80538057@toto.iv> Message-ID: <14779.14529.471736.440630@lindm.dm> sean@horse101.com writes: > I am using a script to display the contents of a folder, but I > wonder how I might display a document count of the dtml > documents in a folder? You want to get the length of a list, in your case the return value of "objectIds". This is a FAQ: you use "_.len()" or (insided a dtml-in) "". Dieter From dieter@handshake.de Sun Sep 10 08:05:09 2000 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 10 Sep 2000 09:05:09 +0200 (CEST) Subject: [Zope] locale and Splitter.c on FreeBSD - where is the bug ? In-Reply-To: <127547984@toto.iv> Message-ID: <14779.12773.198070.671985@lindm.dm> Aleksander Salwa writes: > > Some time ago I had a problem with locales on FreeBSD. > .... > On all machines I'm working on, 'char' is signed. > On Linux/x86, isalpha and others works fine with positive and negative > values of national characters. (For example, one polish character is > '\xc6', what can be evaluated as unsigned 198, or signed -58.) > But on FreeBSD/x86 these functions work only with values >127. > Because 'char' is signed, it needs casting to work with national > characters. > > Now, the question is: is it a bug in Splitter.c or in FreeBSD system > libraries ? (or misconfigured system) Probably in the FreeBSD library, because not only "Splitter.c" uses "char" for strings but almost all C modules I know of. Nevertheless, you patch to "splitter" should be welcome as it solves a usability problem on FreeBSD systems. Put it into the collector (URL:http://classic.zope.org/Collector). You may file a problem report to the FreeBSD maintainers in parallel. Dieter From dieter@handshake.de Sun Sep 10 08:24:25 2000 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 10 Sep 2000 09:24:25 +0200 (CEST) Subject: [Zope] Changing list elements (was: [Zope] 2d list manipulation) In-Reply-To: <109294363@toto.iv> Message-ID: <14779.13781.46115.223272@lindm.dm> Tim Russell writes: > .... 2 dimensional list access and modification of elements .... > I can easily access the value of > an element using: > > > > However, the difficulty comes when trying to change the value of one of > these elements.... There is no easy and safe way to do it in DTML (because a list does not have a method to replace a list element. If interested in a hack, you may look at the list methods "remove" and "insert"). The easiest thing is to write an external (or Python) method. Dieter From dieter@handshake.de Sun Sep 10 07:55:29 2000 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 10 Sep 2000 08:55:29 +0200 (CEST) Subject: [Zope] Modification Posts to the list (was: [Zope] Import from file via management-interface) In-Reply-To: <44406997@toto.iv> Message-ID: <14779.11656.566799.613273@lindm.dm> Hi Tino (and other potential patch posters), if possibly, you should not post complete source modules to the list. Instead, you should use either context or uniform differences to the source. Such a difference file is called a patch. Patches have considerable advantages over the complete source: * they are much smaller * they can (usually) be applied to more than one version * they show directly what has been changed, this is essential for a decision whether or not to trust the changes. I will never install any source modules posted to the list. Usually, I will not even look at them. Patches can be created with the "diff" utility. This is a "standard" unix program (i.e. installed on any Unix system). There is an improved GNU version, which is also available for Win/32. There are other Windows implementations for "diff". Patches are applied with the "patch" utility. Again, there is a GNU version, and surely there are versions for Win/32. Dieter From dieter@handshake.de Sun Sep 10 08:30:56 2000 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 10 Sep 2000 09:30:56 +0200 (CEST) Subject: [Zope] Object from Object Id (was: [Zope] Get help about variable and entity of Zope.) In-Reply-To: <98494910@toto.iv> Message-ID: <14779.14356.971480.647741@lindm.dm> hanse@yeah.net writes: > With DTML,I define a variable AA, and let AA equal a object's ID, > HOW can I get the object's property through the variable AA? Maybe > need a function? > Need your help? > > I want to express as : > (Name=1)"> You have an object ID (in your AA variable) and you want to get the object accessible through this object ID. This is an FAQ: you use "_.getitem()" in your case "_.getitem(AA)". Dieter From tino@wildenhain.de Sun Sep 10 09:48:55 2000 From: tino@wildenhain.de (Tino Wildenhain) Date: Sun, 10 Sep 2000 10:48:55 +0200 Subject: [Zope] Re: Modification Posts to the list (was: [Zope] Import from file via management-interface) management-interface) References: <14779.11656.566799.613273@lindm.dm> Message-ID: <39BB4AF7.156DA9A4@wildenhain.de> Hi Dieter, Dieter Maurer wrote: > > Hi Tino (and other potential patch posters), > > if possibly, you should not post complete source modules > to the list. Instead, you should use either context > or uniform differences to the source. Such a difference file is > called a patch. Yes. I know that ;-) (Beside the file size, which was really wrong to send to the list, you can of course diff the post with your version to get the changes) Regards Tino From chris@ncafe.com Sun Sep 10 10:33:33 2000 From: chris@ncafe.com (chris@ncafe.com) Date: Sun, 10 Sep 2000 02:33:33 -0700 Subject: [Zope] Best way to handle SQL update with variable number of fields? Message-ID: Hello, I'm creating a number of ZSQL methods to insert, update and delete records from several Oracle tables. Everything is working fine with the insert forms (creating new records) and the delete (of course). However, the best way to do the * update * without locking the user into a *very* rigid format is eluding me.. The problem - I would like to populate the form with the existing values and then allow the user to change the ones they want to. Some of the fields in the database are empty and it will always be that way. The length of the update statement will change. Nomatter how I do it, I am having problems with the commas. What is the best way to build the necessary logic into the form? Is there a sample in a product or a How-to somewhere that I can look at? I am assuming I need to create a list externally in a method and use that to determine the comma placement. Is that the "correct" direction? Or is there a better way.. Thank you, Chris Beaumont cbeaumon@msri.org From iap@y2fun.com Sun Sep 10 13:59:50 2000 From: iap@y2fun.com (iap_y2fun.com) Date: Sun, 10 Sep 2000 20:59:50 +0800 Subject: [Zope] [HELP] Duplicated Ids? References: Message-ID: <000601c01b27$022927e0$6601a8c0@y2fun.com> I removed a product from Control_Panel/Products by checking the checkbox of that item and clicked "delete" button below. While I tring to reimport that product , zope (2.2.1) complains about "Duplicated Ids". Can anyone give a hand? Thanks a lot. Iap, Singuan http://y2fun.com From lists@kassube.de Sun Sep 10 14:44:50 2000 From: lists@kassube.de (Nils Kassube) Date: Sun, 10 Sep 2000 15:44:50 +0200 Subject: [Zope] Looking for Zope vs. Others at-a-glance comparison In-Reply-To: <002601c01a8f$964c4440$c3090740@megapathdsl.net> Message-ID: Jason Cunliffe wrote: > What's missing? For example, everything with Java (e.g. Apple WebObjects) or Perl (e.g. Mason). There is a good overview of Content Management Systems at http://www.camworld.com/cms/ > For each of above I'd like to fill in the following: > > {'name':"", 'features':{},'pro':[], > 'con':[] } That's a bit difficult to do because we don't know what you want to do with a CMS/web application platform. Manila, for instance, is a nice end-user weblog application but not a replacement for a real web app server. > If was more adept in DTML was I could put up a comparative poll page though > I suspect most here would respond like you Nils. I'm only an innocent Computer Science student who still thinks that in Real Life (tm) outside university you research competing solutions before selecting a product :-) Anyone else seeing the parallel to software mentioned in Douglas Adams' "Dirk Gently's Holistic Detective Agency"? Cheers, Nils -- nika@acm.org nika@kassube.de (preferred) 4kassube@informatik.uni-hamburg.de From nestor@engendro.com Sun Sep 10 14:41:45 2000 From: nestor@engendro.com (Nestor A. Diaz L.) Date: Sun, 10 Sep 2000 08:41:45 -0500 (COT) Subject: [Zope] Emacs and dtml-mode +/- Message-ID: HI, I have installed the dtml-mode that provided http://www.zope.org/Members/alburt under Debian potato, emacs20 and psgml it work so nice but i have a little question, and i don't know if it is possible to resolve, consider the following html code: Check out that i can not insert a