[Zope] ZMethod and language variants
Considering that there aren't (yet) other language variants, and that I would usually use the restricted kind, I would normally just say "ZMethod". Only if there were some potential confusion would I say "Unrestricted zmethod", or the full title. My proposal that ZMethod be used generally for anything that Zope regards as a method would mean that there already are other language variants, such as DTML ZMethod and SQL ZMethod. Hamish Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Cloning a ZClass-Instance
Once again thanks to you, but I can't figure out why cloning it's not possible. The object is a simple zclass with the baseclasses -ZObject, ZObjectManager- Nothing special. I know that cloning a catalogaware zclass it's not working but object-manager?? That's the complete traceback: -- Traceback (innermost last): File C:\Zop\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Zop\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Zop\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Zop\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Zop\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: NewsPruefer) File C:\Zop\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: NewsPruefer) File C:\Zop\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: NewsPruefer) File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: NewsPruefer) File C:\Zop\lib\python\DocumentTemplate\DT_In.py, line 607, in renderwob (Object: objectValues(['news'])) File C:\Zop\lib\python\DocumentTemplate\DT_Let.py, line 147, in render (Object: x="_.getitem('sequence-item')") File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: manage_clone(x,'versuch',REQUEST)) (Info: REQUEST) File string, line 0, in ? File C:\Zop\lib\python\OFS\CopySupport.py, line 321, in manage_clone (Object: holle) File C:\Zop\lib\python\OFS\CopySupport.py, line 402, in _verifyObjectPaste (Object: holle) Copy Error: (see above) Thanks again! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is data.fs corrupted?
Could I just butt in here and try and clarify what I've understood from this thread so far? I'm feeling a bit dumb about it but I'd really like to sort it out. 1) This problem is definitely a programming error 2) It arises when a product has a component which isn't 'registered' as a zope object, so it's not cleaned up when the product is deleted Is that right? What would 'registered as a zope object' mean in this situation? Are there any other circumstances under which you end up with orphaned instances? *how can it be fixed?* What I really don't understand is why seemingly unrelated products fail as a result of the orphan instances. Is is because new products are trying to get an oid which happens to be used by the orphan? If so, I don't think it's really so wrong to call this ZODB corruption, although I take your point about the ZODB being stable. In your perl analogy, it's as if you are using two tables to create a parent / child , one to many relationship. You then deleted a parent row but forgot to delete the corresponding child rows. You data is now corrupted. True to your analogy, this arises in sloppy programming, not in Oracle or whatever. However, when you create the tables in Oracle, you can place constraints on the tables so enforce the integrity of your data, to protect against this kind of programming. In a similar way, I think it's too easy to end up with corrupted data in the ZODB. Or perhaps I'm just particularly unlucky in the products I choose to use? cheers, seb I'd argue that the ZODB is a very independent component of Zope, and it shouldn't be blamed for this. Devil's advocate question: if your Perl application failed because it couldn't find a record in an Oracle database, would you immediately chalk this up to database corruption and Oracle? We do clearly need to work on Zope tools to make it easier to find and clear "orphaned" instances in the ZODB. We should also try to weed out the programming errors which cause interdependencies of seemingly unrelated components of the same Zope instance that cause failures like this. Transactions are only tangentially related to this issue (I'm not sure how the "Added globals" transaction 'referred to' the "Installed product DemoPortal" transaction in your example, BTW). BTW, I'm being sort of pedantic because when people hear "ZODB" and "corruption" in the same sentence, they tend to get scared and think of ZODB as "unstable" which is really not the case... most purported "ZODB corruption" issues are caused by programming errors in Products. This has been the case for at least every one but one (the 2G pointer bug) that I've personally seen. - Original Message - From: "Bill Welch" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 08, 2000 2:59 PM Subject: Re: [Zope] Is data.fs corrupted? In my case, I couldn't import DemoPortal.zexp or Wizard.zexp from PTK because oid 1377 was already in use. The pickle dump that followed contained references to ZDiscussions, which I had deleted some time before. After deleting the offending products and their directories, restarting zope, and packing, I ran tranalyzer -r on my problem Data.fs. I found that the problem oid was in this transaction: "/Control_Panel/Products/manage_importObject import into /var/lib/zope/var/Data.fs from /var/lib/zope/import/ZDiscussions.zexp" referred to by this transaction: "Installed product DemoPortal" in turn, referred to by this tranaction: "Added Globals" I think ZODB corruption when I see a record in one product refer to a record in an independent product and when the transaction of a deleted product doesn't go away. On Wed, 8 Nov 2000, Chris McDonough wrote: I think it is ZODB corruption. This is very unlikely. What makes you think this? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Going Virtual InterBase Database Adapter --gvibDA-- Problems
Hi I'he tried to use gvibDA, all right until I tested with Python Python returned me the message: /\ Python 1.6 (#2, Nov 8 2000, 15:56:49) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Copyright (c) 1995-2000 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved. import gvib Traceback (most recent call last): File "stdin", line 1, in ? File "gvib.py", line 46, in ? import gvibBase ImportError: ./gvibBase.so: undefined symbol: Py_Realloc # pwd /usr/local/lib/python1.6/gvib # \/ I use a linux box with Zope2.2.2 Python1.6 on rh6.2 I don't know Python so anyone who can help me? Thank you in advance Claudio Biasiolo Web Developer www.veniceplaza.net Padova, Italy ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] [JOB] Zope Job in France !
Jeune Start-up dans le monde de l'internet recherche développeurs/chefs de projet Internet / Zope. Diplômé BAC+2/5 (ingénieur ou universitaire), vous avez une première expérience (éventuellement un stage significatif) en développement d'applications avec Zope. Connaissant bien HTML et HTTP, vous maîtrisez parfaitement au moins un langage de programmation objet (Python, Delphi, Java, C++, ...). Vous avez une connaissance de UML et de l'objet en général. Une connaissance de XML et LDAP serait un GROS plus. Vous êtes rigoureux et organisé. De plus, vous avez une bonne connaissance des SGBDR et êtes capable de lire et rédiger des documents en anglais. Votre mission : Vous participez à la conception, au développement et à la gestion du site. Selon votre potentiel, vous évoluerez au sein de la société vers de plus amples responsabilités notamment en prenant une part de plus en plus importante dans le déroulement des projets. Expérience : N'hésitez pas à joindre à votre candidature tout document pouvant démontrer vos compétences (ex : URLs de vos réalisations) Profil : Vous êtes rigoureux et organisé, dynamique et passionné et prêt à travailler dans une équipe jeune et très ambitieuse. Ce poste, basé à Paris-La Défense, est à pourvoir immédiatement dans le cadre d'un CDI. Rémunération proposée : 210KF à 280KF selon profil et expérience. Contact : Merci d'adresser CV et une lettre de motivation à : [EMAIL PROTECTED] Olivier Deckmyn, CTO eXperts-MD.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Yihaw product Catalog error
I have installed the Yihaw product, because I am going to use the Contact class. The changes I have made to the ZClass are minor. I have only changed the Property Sheet of Contact and the appropriate changes to index_html and Contact_addForm. I can add a contact, but after having done that and I click the newly created Contact I get a NameError. Error Type: NameError Error Value: Catalog How to solve this? Regards, Peter I have NT4, Zope 2.2.2 Traceback (innermost last): File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\Zopesite\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: CatalogAware) File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_baseproperties) File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_baseproperties) File C:\PROGRA~1\Zopesite\lib\python\OFS\DTMLMethod.py, line 172, in __call__ (Object: manage_baseproperties) File C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__ (Object: manage_baseproperties) File C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_In.py, line 633, in renderwob (Object: Catalog(meta_type='Yihaw Pointer')) File C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: Catalog(meta_type='Yihaw Pointer')) (Info: Catalog) File lt;stringgt;, line 0, in ? NameError: (see above) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Yihaw product Catalog error [Errata]
I was a fool not to see that. Tired I guess. The link to the README was though somewhat hidden under "Release Information". Sorry for the spamming Zopistas. - Original Message - From: "Søren Roug" [EMAIL PROTECTED] To: "'peter bengtson'" [EMAIL PROTECTED] Sent: Thursday, November 09, 2000 9:59 AM Subject: RE: Yihaw product Catalog error You must have a Z Catalog object in the top folder with the name "Catalog". It's clearly spelled out in the README. || -Original Message- || From: peter bengtson [mailto:[EMAIL PROTECTED]] || Sent: Wednesday, November 08, 2000 20:47 || To: [EMAIL PROTECTED] || Cc: [EMAIL PROTECTED] || Subject: Yihaw product Catalog error || || || I have installed the Yihaw product, because I am going to || use the Contact || class. || The changes I have made to the ZClass are minor. I have only || changed the || Property Sheet of Contact and the appropriate changes to || index_html and || Contact_addForm. || || I can add a contact, but after having done that and I click the newly || created Contact I get a NameError. || || Error Type: NameError || Error Value: Catalog || || How to solve this? || || || || Regards, Peter || || I have NT4, Zope 2.2.2 || || Traceback (innermost last): || File || C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 222, in || publish_module || File || C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 187, in || publish || File C:\PROGRA~1\Zopesite\lib\python\Zope\__init__.py, line 221, in || zpublisher_exception_hook || (Object: CatalogAware) || File || C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 171, in || publish || File C:\PROGRA~1\Zopesite\lib\python\ZPublisher\mapply.py, || line 160, in || mapply || (Object: manage_baseproperties) || File || C:\PROGRA~1\Zopesite\lib\python\ZPublisher\Publish.py, line 112, in || call_object || (Object: manage_baseproperties) || File C:\PROGRA~1\Zopesite\lib\python\OFS\DTMLMethod.py, || line 172, in || __call__ || (Object: manage_baseproperties) || File || C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_String.py, line || 528, in __call__ || (Object: manage_baseproperties) || File || C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_In.py, line 633, || in renderwob || (Object: Catalog(meta_type='Yihaw Pointer')) || File || C:\PROGRA~1\Zopesite\lib\python\DocumentTemplate\DT_Util.py, line || 337, in eval || (Object: Catalog(meta_type='Yihaw Pointer')) || (Info: Catalog) || File lt;stringgt;, line 0, in ? || NameError: (see above) || ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Cloning a ZClass-Instance
Dieter Maurer wrote: I looked at the code of "OFS.CopySupport.manage_clone" and apparently, one of your "news" items (the one with id '973677459') lets its "cb_isCopyable" return false. Unfortunately, I have no idea why. What product is being used to create these news items? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ID = somebody@someserver.com... ?
I am sorry about me being a newbie but can somebody help me with an Email@dress as an ID? I Have tried all kinds of things but none of them worked. I know that I must use url_quote, but how do I do that...? This kind of explains it: ** The add form looks like this ** dtml-var standard_html_header H2Add Job Board Entry/H2 FORM action="entry_addProcessor" TABLE border="0" TRTHFirstName(s)/TH TDinput type=text name=firstnam size="35"/TD /TR TRTHSurName/TH TDinput type=text name=surnam size="35"/TD /TR TRTHEmail Adress/TH TDinput type=text name=eadr size="35"/TD /TR TR TD/TD TD input type=submit value=" Add Subscriber " input type=reset value=" Clear Form "/TD /TR /TABLE /FORM dtml-var standard_html_footer ** And the Processor looks like this ** dtml-var standard_html_header dtml-call "REQUEST.set('firstname', firstnam)" dtml-call "REQUEST.set('surname', surnam)" dtml-call "REQUEST.set('email', eadr)" dtml-call "REQUEST.set('title', firstnam+' '+surnam)" dtml-with "manage_addProduct['nl_3dcomm']" dtml-call "newsl_entry_add(_.None, _, NoRedir=1)" /dtml-with CENTER H2Thank you for your entry/H2 /CENTER dtml-var standard_html_footer ** You see, I need to make "[EMAIL PROTECTED]" into "somebody_somewher.com" or somethiong like that But how Hope to get a quick answer Stoons = ) _ 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 - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] products e windows98
Hi, i'm windows 98 SO and i'm must install the new products (PythonMethod), my problem is that with winzip the file .zar, don't scompact... thisi is the big problem o no !!!??? I'm install the tutorial products how are do install this products... Marco Gianfreda http://www.collepasso.it ICQ: 30953752 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] RE: Wampum Generator
It's a Winzip thing. I'll bet wampum generator is a .tar file, just rename it to a .tgz file and it should open just fine. Just some thoughts/guesses: I'll bet Kathy uses Internet Explorer. Don't know about Netscape, but it becomes more and more difficult to get IE _not_ to try to be "smart" about any file you download. In this case I think there's some kind of transparent mechanism which kicks in and tries to transparently decompress files of type application/x-tar. Guess it's a helper for compressed vrml .wrl.gz (or similar) files. In this case renaming to .tgz works, but I think I saw the same mess the other way around when IE didn't remove the .gz suffix but nonetheless transparently decompressed the file. These things are extremely annoying when dealing with relativly unexperienced clients who, say, just want to _download_ an .avi file with a left-klick. MS has implemented a lot of magic there, AFAIK IE even tries to guess the filetype by its content in some cases and then ignores each and every http-header which might suggest otherwise. Adding "Content-Disposition: attachment" as a http-header seems to help (for the .avi case). cheers, oliver ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZMethod (Safe)
On Wed, 8 Nov 2000, Evan Simpson wrote: We've pretty much settled on restricted/unrestricted here. In honor of the presidential Indecision 2000 race, we're seriously thinking about revamping and rerunning the poll, so ZMethod may well get its moment in the spotlight. Cheers, Evan @ digicool 4-am Enough! Imagine you actually and really do change the name of Python Method or much worse the names of all XY Methods. Would that automatically change all the Guides, How-Tos, Tips, Books, Emails, Articles, Sourcecode and whatever it is we call Documentation? No it would not! I herewith predict that changing the method names will add a layer of confusion Zope just does not need. My 0.02, Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Job offering - England
Zopistas, wanna get paid? :) Zope/Python programmer wanted to work with one of our clients in England. A team from Thingamy (URL:http://www.thingamy.com) have for some months now been developing a Zope application for a client in England. The client's main work is resourcing (ie. matching candidates and clients and typing up contracts). Our client has, of course, got access to the source code - and thus they want to continue developing the application after they recieve it from us. We need a person that can travel to their offices once a week, and spend approximately 2 days a week continuing development of the application (the amount of work depends highly on what our client wants done). The application is written in Python, the interface is in XHTML 1.0 STRICT. You should be an experienced Python programmer, and should have spent your time in the Zope source code :-). I will take you through the source code, and will also be your contact person when questions about the source code, class structure or anything of that sort arrises. It would be desirable if you could overlap with us (ie. start coding one month before we stop, so there would be some feeling of consitency - and it would also give you a great opporunity to ask (nearly) all questions). * Start date: within 2 months (room for discussion). * Salary: up for discussion. If this sounds interesting (or if you want to ask questions) please email me. (Please note that this is not a fulltime job, so it would be benefitial if you lived near their offices and had access to other work aswell. Their offices are 40 minutes by train from Waterloo station.) Thanks :) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ID = somebody@someserver.com... ?
On Thu, 9 Nov 2000, Thomas Søndergaard wrote: I am sorry about me being a newbie but can somebody help me with an Email@dress as an ID? I'm not sure I understand your problem, but couldn't you either use string.replace() or dtml-var eadr url_quote? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] zope.org down from Thu Nov 9 12:00:00 GMT 2000 to present?searchablelist archive not linked to from mailman page; console-based zope development.list archive not linked to from mailman page; console-based zope development.
For the past hour and a half I have only once been able to get through to zope.org. lists.zope.org/mailman/listinfo is accessible, however. A zope.org-status mailing list might be helpful, like the egroups-status list, since Zope work is so dependent on the site. I've been trying to read product descriptions. Is that information available anywhere else? Second, I thought there was a searchable archive of the zope mailing lists. I just found it in my bookmarks: http://zope.nipltd.com/public/lists.html but I was not able to find this link on the lists.zope.org url referenced in the mailing list digests... the list manager might want to change that. Third, I'm trying to figure out ways of managing/developing with Zope from a unix console, using text editors, text browsers and so on. I have no doubt that others would rather not have to use a mouse and GUI to work with Zope. I have already found http://www.zope.org/Members/sf/zopeshell But it says it does not work for 2.2 Could someone please point me to documentation about console-based zope management? If it's easy to find on the zope site, I will find it when I can get through again. thanks, Colin ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is data.fs corrupted?
I just asked the question lately, if it is safe to simply delete a Product in the lib/python/Product folder, if it is not deletable via the Control_Panel. Some told me that it is no problem. Now I am more unsure to delete the stuff. _ 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 - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Support] Problems using the Sybase da with zope
Did you compile the sy_occ module? Can you import that module and do things with it from Python as noted in the docs? (BTW, I moved this to the Zope mail list...) - Original Message - From: "Hans-Christian Prytz" [EMAIL PROTECTED] To: "DC Support List" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, November 09, 2000 4:18 AM Subject: [Support] Problems using the Sybase da with zope Hi, I'm trying to use the SybaseDA module for zope, but I'm having some problems I cant seem to figure out from the documentation. It compiles file, but I can't seem to get it to import into zop (or python for that matter) The logs from zope only says: Zope[7257]: Couldn't import Products.SybaseDAv2. Any suggestions? -- Hans-Christian Prytz [EMAIL PROTECTED] "Harmless is something/a little knowlege is not" Rainmakers ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope.org down from Thu Nov 9 12:00:00 GMT 2000 to present?searchable list archive not linked to from mailman page; console-based zope development. list archive not linked to from mailman page; console-based zope development.
* Colin Leath [EMAIL PROTECTED] [001109 14:00]: I'm trying to figure out ways of managing/developing with Zope from a unix console, using text editors, text browsers and so on. I often work from emacs, accessing the ZODB through the Zope FTP Server on port 8021. The syntax for ange-ftp is /user@localhost 8021:/your/zope/object (you can get the space with C-q space) seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-if newbie question
I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After this, the form action method should reply: - "this is not much" if 1000 was selected, - "this is ok" if 5000 was selected, - "this is very much" if 1 was selected Now my form method looks like this: form action="form_action" How many money? select name="money" option1000 option5000 option1 /select input type="submit" value="checkit" /form and the form_action method is this: dtml-in money dtml-if "1000" This is not much! /dtml-if dtml-if "5000" This is ok! /dtml-if dtml-if "1" This is very much! /dtml-if /dtml-in I am sure that there is an error in my thinking of these tags. TIA -goe- _ 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 - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is data.fs corrupted?
Could I just butt in here and try and clarify what I've understood from this thread so far? I'm feeling a bit dumb about it but I'd really like to sort it out. 1) This problem is definitely a programming error I believe that, yes. 2) It arises when a product has a component which isn't 'registered' as a zope object, so it's not cleaned up when the product is deleted Is that right? What would 'registered as a zope object' mean in this situation? Are there any other circumstances under which you end up with orphaned instances? *how can it be fixed?* Zope objects basically need to inherit from OFS.SimpleItem (or an analogue) for them to be "web manageable". If a non-builtin Python object inherits only from the "Persistent" class, it can be saved into the ZODB, but it will not show up in the web interface unless you define certain methods on it to make it act like a "SimpleItem", and unless you add it to some internal Zope data structures that populate its ZODB container (such as the ObjectManager's "_objects" list). This is generally done for you by Zope and you need not think about it. But problems may happen when an application places instances into the ZODB of non-web-manageable, non-builtin objects as attributes of normal Zope objects. If these instances aren't cleaned up in the process of the deletion of whatever bit of Python code created them, they're "orphaned". When they're orphaned, some application code may attempt to initialize the object's instance (for whatever reason) in order to make use of them, and because the ZODB can't find the class of the instance, it complains. It complains by raising an exception. Zope's supposed to catch this and do the right thing, but it evidently doesn't sometimes. You can "fix it" by restoring whatever class the instance depends on and subsequently use the debugger to delete the instance from the ZODB. But I've had it happen to me where it was just easier to truncate the FileStorage I was working on than figure out exactly what was going on. This is bad. What I really don't understand is why seemingly unrelated products fail as a result of the orphan instances. Neither do I completely. This may be bad exception handling in Zope itself. When a Product is initialized, sometimes you'll see the failure of one Product initialization break others. Usually, it's the case that these Products *are* related in some way. It'd be interesting to investigate some of these failures where the failure to load an object seems to break other "unrelated" objects. I'd imagine we'd find an unobvious relation between the two objects. Is is because new products are trying to get an oid which happens to be used by the orphan? No... the ZODB manages the distribution of oids, Products never need worry about them. If so, I don't think it's really so wrong to call this ZODB corruption, although I take your point about the ZODB being stable. In your perl analogy, it's as if you are using two tables to create a parent / child , one to many relationship. You then deleted a parent row but forgot to delete the corresponding child rows. You data is now corrupted. True to your analogy, this arises in sloppy programming, not in Oracle or whatever. However, when you create the tables in Oracle, you can place constraints on the tables so enforce the integrity of your data, to protect against this kind of programming. In a similar way, I think it's too easy to end up with corrupted data in the ZODB. Or perhaps I'm just particularly unlucky in the products I choose to use? I think it's safe to say that you probably need to pay more attention when writing ZODB-based apps because you don't have things like constraints to prevent you from shooting yourself in the feet with both barrels. :-) That said, it'd probably be more accurate to call the result of this family of errors "Zope corruption" than "ZODB corruption". Again, I don't disagree that this distinction is really superpedantic on some level. It would appear that we need to work on Zope exception handling as well as tools to detect and delete orphaned instances. But we probably do not need to work on "making ZODB more stable" (don't kill the messenger! :-) cheers, seb I'd argue that the ZODB is a very independent component of Zope, and it shouldn't be blamed for this. Devil's advocate question: if your Perl application failed because it couldn't find a record in an Oracle database, would you immediately chalk this up to database corruption and Oracle? We do clearly need to work on Zope tools to make it easier to find and clear "orphaned" instances in the ZODB. We should also try to weed out the programming errors which cause interdependencies of seemingly unrelated components of the same Zope instance that cause failures like this. Transactions are only tangentially related to this issue (I'm not sure how the "Added globals" transaction 'referred to' the
Re: [Zope] PHP/Zope Guru
Another alternative is to create an unholy marriage of the two! See my HOWTO on Serving PHP from Zope at: http://www.zope.org/Members/Mamey/PHP On Wed, Nov 08, 2000 at 09:25:22PM +0100, Vincent - D. Ertner wrote: Any detailed information on how and *why* one or the other solution rulez would be highly appreciated and helpful, as I have to argue the decision for one or the other system with the initiators of the project. -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED] Mamey - Internet Programming www.mamey.com -- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Uploading textfiles into Zope using LoadSite
Hi Vimmers I'd like to do a show-and-tell about how I - uploaded a bunch of textfiles into Zope (by making use of 'load_site.py') - and turned them into ZClasses (using a DTML method). This is not a flashy "here's how to do it" piece -- it's really a request for advice on how to do things better, and a step-by-step from a relative beginner, for other relative beginners. OK, to business. I used 'loadsite-1.4.0-test.tgz'. From the README:: LoadSite version 1.3 Based on load_site.py from Digital Creations Modified by Oleg Broytmann [EMAIL PROTECTED] Modified by Itamar Shtull-Trauring [EMAIL PROTECTED] wxLoadSite uses code written by Amos Latteier, and uses Fredrik Lundh's xmlrpclib. (Is there a newer version available?). I started from a flattext database, with a structure like: ID|penname|pensurname|notes|title|vol|nr|year|printed|text|name|surname|date |nick|email That is: 15 fields, pipe-delimited, containing different kinds of data (strings, multiline text, dates, email, ...). Here is a shortened sample record: 66|Zandra|Bezuidenhout||A room of my ownNee|A room of my own~nl~- garden view,~nl~computer -,|||1998/7/23|zandra|[EMAIL PROTECTED] I wanted to get the individual fields into Zope: for example, as properties of the DTML Documents that LoadSite creates. To do this, I had to hack on LoadSite slightly. I noticed that it found the body attributes and aggregated all of them into one property (in 'htmlutils.py'). I guessed that I could import these attributes as properties. To do so, I made the following changes to 'htmlutils.py'. Originally:: *** 95,98 if not self.seen_startbody: self.seen_startbody = 1 self.accumulator = "" self.bodyattribs = join_attrs(attrs) I changed this as follows:: --- 95,99 if not self.seen_startbody: self.seen_startbody = 1 self.accumulator = "" # njj: self.bodyattribs = join_attrs(attrs) self.bodyattribs = attrs This way, bodyattribs is not changed into a string like 'name="value" [...]', but remains a dictionary { penname:Zandra, pensurname:Bezuidenhout }. Then I had to change how they were fed into Zope. To do this, I changed 'Uploader.py' from:: *** 113,115 if bodyattribs: self.call(object.manage_addProperty, id="loadsite_bodyattribs", type="string", value=bodyattribs) To:: --- 113,128 if bodyattribs: # njj: start for attrname, attrvalue in bodyattribs: if attrname == 'text' or attrname == 'notes': self.call(object.manage_addProperty, id=attrname, type="text", value=attrvalue) elif attrname == 'date': self.call(object.manage_addProperty, id=attrname, type="date", value=attrvalue) else: self.call(object.manage_addProperty, id=attrname, type="string", value=attrvalue) # njj: end # njj: self.call(object.manage_addProperty, # njj: id="loadsite_bodyattribs", type="string", value=bodyattribs) This works :) Unfortunately, it's a hardcoded hack that will only work for this particular database. To be useful, you should be able to tell LoadSite to snarf the attributes of meta tags as properties, paying attention to the ':type' convention of indicating the format of data. But I don't understand sgmllib well enough to do that .. I ran the flattext database through a pre-processor ('http://www.htmlpp.org', for the curious) to get files (named '1.html' and so on) that look like this:: HTMLHEAD TITLEA room of my own -- Zandra Bezuidenhout/TITLE /HEAD body ID="66" penname="Zandra" pensurname="Bezuidenhout" notes="" titel="A room of my own" vol="" nr="" year="" printed="Nee" text="A room of my own - garden view, computer -," name="" surname="" date="1998/7/23" nick="zandra" email="[EMAIL PROTECTED]" /BODY/HTML When uploaded by LoadSite, this creates DTML Documents with 15 properties each. Now to get them into ZClasses. Here is the DTML Method that does this:: dtml-with DTML_texts dtml-call "manage_addFolder('ZClass_texts')" dtml-in "objectItems(['DTML Document'])" dtml-call "REQUEST.set('ID' , ID )" dtml-call "REQUEST.set('penname', penname)" dtml-call "REQUEST.set('pensurname' , pensurname )" dtml-call "REQUEST.set('notes' , notes )" dtml-call "REQUEST.set('title' , title )" dtml-call "REQUEST.set('vol', vol)" dtml-call "REQUEST.set('nr' , nr )"
Re: [Zope] dtml-if newbie question
possibly not the cleanest way of doing it, but this ought to do what you want.. select name="money:int" option value="1000"1000 option value="5000"5000 .. etc.. and dtml if "money == 1000" This is not much! dtml-elif "money == 5000" This is ok! dtml-elif .. etc.. /dtml-if -- Geir Bækholt web-developer/designer [EMAIL PROTECTED] http://www.funcom.com on Thursday, November 09, 2000 Stephan Goeldi wrote : SG I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After SG this, the form action method should reply: SG - "this is not much" if 1000 was selected, SG - "this is ok" if 5000 was selected, SG - "this is very much" if 1 was selected SG Now my form method looks like this: SG form action="form_action" SG How many money? SG select name="money" SG option1000 SG option5000 SG option1 SG /select SG input type="submit" value="checkit" SG /form SG and the form_action method is this: SG dtml-in money SGdtml-if "1000" SG This is not much! SG/dtml-if SGdtml-if "5000" SG This is ok! SG/dtml-if SGdtml-if "1" SG This is very much! SG/dtml-if SG /dtml-in SG I am sure that there is an error in my thinking of these tags. SG TIA SG -goe- SG _ SG Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. SG Share information about yourself, create your own public profile at SG http://profiles.msn.com. SG ___ SG Zope maillist - [EMAIL PROTECTED] SG http://lists.zope.org/mailman/listinfo/zope SG ** No cross posts or HTML encoding! ** SG (Related lists - SG http://lists.zope.org/mailman/listinfo/zope-announce SG http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] dtml-if newbie question
Hallo Stephan you can't iterate over a string! That's working: dtml-if "money=='1000'" This is not much! dtml-elif "money=='5000'" This is ok! dtml-else This is very much! /dtml-if ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Security and Acquistition Problem
Greetings, I had posted about this on Zope-dev because I'm running the CVS version, but no response there. Also more research has yielded more info. I first discovered this issue with LoginManager, but the same problem occurs with standard acl_users too. First, 'Figure 1:' / (Root Folder) / acl_test (ACL Test Folder) acl_users (User Folder) index_html (Test Document) Now, referring to figure 1, changes to security settings for the acl_test folder are having no effect on access to index_html. Only when I change the security settings on index_html itself, can I control access to it. So what this boils down to is that as of v2.2.whatever, an acl_users folder apparently does not protect the folder it's in (parent folder), but only it's sibling objects and below. Meaning that instead of setting permissions on the parent object and being done with it, one now has to set permissions for each sibling. In my case that's 50 or more objects and I'm not done coding yet. Ouch! This *can't* be right, can it? I know there's a lot that's happened with the security model, so I'm really *really* hoping this is just a bug that's crept in. Thanks for any clues, Charlie -- ~ Charlie Wilkinson - [EMAIL PROTECTED] - 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!! http://spam.abuse.net/ Join!! http://www.cauce.org/ ~ QOTD: "Bush is a big corporation disguised as a human being running for president." -- Ralph Nader on David Letterman (9/28/00) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-if newbie question
Another thing you can do, not sure if Im using it right, but the effect is good... dtml-unless first_name dtml-raise type=ValidationError font face="Arial, Helvetica, sans-serif" size="-1" color="#00"bYou must specify a font color="red"First Name/b/font. /font dtml-var tableSeparate dtml-var SupportCallForm /dtml-raise /dtml-unless I have a support call form that is filed and submitted, and after the button is pressed, a seperate validate method is called (can be in any document) which will stop the processing if something isnt there and will show a red error text at the top of the form that still contains the information.] Its nice becuase the info stays there and doesnt take you off to a blank screen with a few words. -- Paz Oratrix Development BV http://www.oratrix.com GRiNS SMIL Editor - Stephan Goeldi wrote: I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After this, the form action method should reply: - "this is not much" if 1000 was selected, - "this is ok" if 5000 was selected, - "this is very much" if 1 was selected Now my form method looks like this: form action="form_action" How many money? select name="money" option1000 option5000 option1 /select input type="submit" value="checkit" /form and the form_action method is this: dtml-in money dtml-if "1000" This is not much! /dtml-if dtml-if "5000" This is ok! /dtml-if dtml-if "1" This is very much! /dtml-if /dtml-in I am sure that there is an error in my thinking of these tags. TIA -goe- _ 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 - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: [Image-SIG] Properly integrating PIL, reportlab, and zope
Ahha! To force zope (and reportlab) to use a different working directory, use: import os os.chdir('/usr/local/zope/differentdir/') still this is a pretty big workaround, but hey... It works! -e- Hello ed, If you figure this out let me know. We tried several times and were unsuccessful. we only have two files (logos) so it wasn't worth fighting with. thanks, Dan ed colmar wrote: Thanks for the help everyone! I'm a few steps closer to solving this one. What I'm doing is pretty much a workaround, since I can't figure out how to pass a image file directly from within the zodb. I have created a seperate field that gets passed to a localFS directory. Right now, I just need to refrence a file that is somewhere other than the /usr/local/zope directory. I've been trying: c.drawInlineImage(str('/home/zope/uploadedimages/' + filename), .5*inch, 10.*inch,4*inch) for some reason it can't find a file anywhere other than the base directory in zope. I cannot use this directory because it will serve as a collection of image files. Any ideas how to force it to look somewhere else for this file? Thanks again! -e- - Original Message - From: "Daniel Rusch" [EMAIL PROTECTED] I have no idea if this will help you. We use PIL, reportlabs and zope to create P.O.'s, to place a logo on the page we use the following line of code: c.drawInlineImage("gclogo_color.gif", .5*inch, 10.*inch,4*inch) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] RE: Wampum Generator (tar in WinZip)
Hi Just want to mention one pitfall in WinZip - by default it CR/LFs all files extracted from a tar archive (unless you turn that option off). Note that the option is NOT on the "extract files" dialog. It hosed 150Mb of .deb files today - and I didn't realise until I had burned them onto a CD. I couldn't believe that was what it was doing at first. "Nah", I thought, "how would it know which files were binaries?" Turns out it doesn't know. It doesn't care either. In case you want to avoid this happening to you, note that PowerArchiver is more or less like WinZip but it can handle bzip2 as well, and it's FREE. Peter This message and any files transmitted with it are confidential. The contents may not be disclosed or used by anyone other than the addressee. If you have received this communication in error, please delete the message and notify JBB (Greater Europe) Plc immediately on 0141-249-6285. The views expressed in this email are not necessarily the views of JBB (Greater Europe) PLC. As it has been transmitted over a public network, JBB (Greater Europe) PLC makes no representation nor accepts any liability for the email's accuracy or completeness unless expressly stated to the contrary. Should you, as the intended recipient, suspect that the message has been intercepted or amended, please notify JBB (Greater Europe) Plc immediately on 0141-249-6285. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] logging for virtual hosts
We are using SiteAccess to have multiple virtual hosts on one Zope Server. We would like to provide our customers with stats reports based on the zope log. But entries in the log don't contain any distinguishing information about the virtual host to which the entry applies. Short of hacking zope, is there a way to modify our zope environment to to have the requested hostname included in the log entry? We know that we can use PCGI thru apache and have apache do the logging. But I'm hoping to avoid that. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-if newbie question
* Stephan Goeldi [EMAIL PROTECTED] [001109 16:49]: dtml-in money dtml-if "1000" This is not much! /dtml-if dtml-if "5000" This is ok! /dtml-if dtml-if "1" This is very much! /dtml-if /dtml-in I am sure that there is an error in my thinking of these tags. yup :) try dtml-if "money==1000" This is not much dtml-elif "money==5000" This is OK dtml-elif "money==1" This is very much dtml-else This is not 1000, 5000, or 1 /dtml-if the dtml-in tag iterates over a list, which isn't appropriate here. seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-if newbie question
HI! I want to select from a select menu, 3 amounts: 1000, 5000 or 1. After this, the form action method should reply: - "this is not much" if 1000 was selected, - "this is ok" if 5000 was selected, - "this is very much" if 1 was selected Now my form method looks like this: form action="form_action" How many money? select name="money" option1000 option5000 option1 /select input type="submit" value="checkit" /form and the form_action method is this: dtml-in money dtml-if "1000" This is not much! /dtml-if dtml-if "5000" This is ok! /dtml-if dtml-if "1" This is very much! /dtml-if /dtml-in I am sure that there is an error in my thinking of these tags. The dtml-in is not right. Use dtml-in if you want to iterate over lists. So in your case you should try: dtml-if "money=='1000'" This is not much! /dtml-if dtml-if "money=='5000'" This is ok! /dtml-if dtml-if "money=='1'" This is very much! /dtml-if (or use dtml-elif in this case) This now makes a string compare as usually form parameters will be passed as strings if you don't tell Zope to do it different. In order to e.g. let it pass integers, you might try in the form: select name="money:int" ... Then you can say dtml-if "money==1000", etc. More information about this "type casting" feature can be found at http://classic.zope.org:8080/Documentation/Reference/ORB cheers, Christian -- COM.lounge http://comlounge.net/ communication design [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Security and Acquisition
Greetings, I know this a very busy list, but I'm hoping someone can take a moment to address this. I had posted about this on Zope-dev because I'm running the CVS version, but no response. Also more research has yielded more info. I first discovered this issue with LoginManager, but the same problem occurs with standard acl_users too. First, 'Figure 1:' / (Root Folder) / acl_test (ACL Test Folder) acl_users (User Folder) index_html (Test Document) Now, referring to figure 1 (above :-), changes to security settings for the acl_test folder are having no effect on access to index_html. Only when I change the security settings on index_html itself, can I control access to it. So what this seemingly boils down to is that as of v2.2.whatever, an acl_users folder does not protect its siblings and their kids by acquisition of security settings from the parent folder. Instead, sibling objects must have their security explicitly set. Meaning that instead of setting permissions on the parent object and being done with it, one now has to set permissions for each and every sibling. In my case that's over 50 objects and I'm not done coding yet. Ouch! This *can't* be right, can it? Thanks for any clues, Charlie -- ~ Charlie Wilkinson - [EMAIL PROTECTED] - 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!! http://spam.abuse.net/ Join!! http://www.cauce.org/ ~ QOTD: "Bush is a big corporation disguised as a human being running for president." -- Ralph Nader on David Letterman (9/28/00) -- ~ Charlie Wilkinson - [EMAIL PROTECTED] - 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!! http://spam.abuse.net/ Join!! http://www.cauce.org/ ~ QOTD: "Bush is a big corporation disguised as a human being running for president." -- Ralph Nader on David Letterman (9/28/00) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope.org down from Thu Nov 9 12:00:00 GMT 2000 to present?searchable list archive not linked to from mailman page; console-based zope development. list archive not linked to from mailman page; console-based zope development.
Hi! * Colin Leath [EMAIL PROTECTED] [001109 14:00]: I'm trying to figure out ways of managing/developing with Zope from a unix console, using text editors, text browsers and so on. I often work from emacs, accessing the ZODB through the Zope FTP Server on port 8021. The syntax for ange-ftp is /user@localhost 8021:/your/zope/object (you can get the space with C-q space) There is also ZopeShell: http://www.zope.org/Members/sf/zopeshell and e.g. Cadaver if you want to use filetransfer via webdav (but lost the url unfortunately, but from webdav.org you should be able to find it). My problem though with all these things is that the file you edit is not automatically uploaded when you save it. Usually you always have to quit the editor and do an ftp upload yourself as the ftp (or ZopeShell) always work on a local copy of the file and do not notice if you save it (well, how should they do it anyway ;-)) So some sort of ftp filesystem would be nice to have :) cheers Christian ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is data.fs corrupted?
* Stephan Goeldi [EMAIL PROTECTED] [001109 13:30]: I just asked the question lately, if it is safe to simply delete a Product in the lib/python/Product folder, if it is not deletable via the Control_Panel. Some told me that it is no problem. Now I am more unsure to delete the stuff. for products that are not ZClass-based, the correct way to remove them is to delete their folder in lib/python/Products. seb. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Security and Acquistition Problem
On Thu, 9 Nov 2000, Charlie Wilkinson wrote: / (Root Folder) / acl_test (ACL Test Folder) acl_users (User Folder) index_html (Test Document) Now, referring to figure 1, changes to security settings for the acl_test folder are having no effect on access to index_html. Only when I change the security settings on index_html itself, can I control access to it. So what this boils down to is that as of v2.2.whatever, an acl_users folder apparently does not protect the folder it's in (parent folder), but only it's sibling objects and below. Meaning that instead of setting permissions on the parent object and being done with it, one now has to set permissions for each sibling. In my case that's 50 or more objects and I'm not done coding yet. Ouch! This *can't* be right, can it? I know there's a lot that's happened with the security model, so I'm really *really* hoping this is just a bug that's crept in. This is the way Zope has always behaved, unless my memory is failing me. Here's a thought to consider: In your model, the root acl_users would have to appear _above_ the root folder (/) in the hierarchy for things to function correctly. As it stands, acl_users in the root folder affects all things in the root folder and below. As it stands, your acl_users (in acl_test) affects all things in your acl_test folder and below. This is consistent. If you have 50 or so objects, and setting permissions is the obstacle, simply write a Python Method (or DTML, if you prefer) to iterate over the 50 and tweak them. Then, you won't have to manually do the work through the management interface. Thanks for any clues, Hope this helps, Charlie --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:[EMAIL PROTECTED] Going Virtual, L.L.C. http://www.goingv.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] products e windows98
Try renaming the file to end with .tar.gz -- Andy McKay, Developer. ActiveState. - Original Message - From: "Marco Gianfreda" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 09, 2000 2:52 AM Subject: [Zope] products e windows98 Hi, i'm windows 98 SO and i'm must install the new products (PythonMethod), my problem is that with winzip the file .zar, don't scompact... thisi is the big problem o no !!!??? I'm install the tutorial products how are do install this products... Marco Gianfreda http://www.collepasso.it ICQ: 30953752 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] ZMethod (Safe)
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Evan Simpson Sent: Wednesday, November 08, 2000 6:14 PM To: [EMAIL PROTECTED] Cc: Jason Cunliffe; Oliver Bleutgen; Chris Withers; [EMAIL PROTECTED] Subject: Re: [Zope] ZMethod (Safe) Moreover, this also fails the concise/'easy to say' test that was used to kick out several other meritorius naming suggestions. Unrestricted Python ZMethod (8 syllables, 26 letters) is a mouthful! True (although some of the alternatives base names were worse). Considering that there aren't (yet) other language variants, and that I would usually use the restricted kind, I would normally just say "ZMethod". Only if there were some potential confusion would I say "Unrestricted zmethod", or the full title. Since you would normally *say* just ZMethod, I like the suggestion of using "Python ZMethod" and "Python ZMethod (Unrestricted)", vs. spelling out the (Restricted) in the first one. After all, are we going to have a "DTML ZMethod (Restricted)", or a "SQL ZMethod (Restricted)"? It make sense to keep the "normal" (restricted) methods, that will/should be used more often than not, labeled as plainly as possible. The unrestricted version could be the exception and labeled as such. For example, if we do decide to create an unrestricted DTML method, it would seem unnecessary to rename DTML ZMethod to include the restricted label. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Security and Acquisition
[Charlie Wilkinson] | Greetings, Hola! | Now, referring to figure 1 (above :-), changes to security settings | for the acl_test folder are having no effect on access to index_html. | Only when I change the security settings on index_html itself, can I | control access to it. Can it have something to do with acquirement of permission settings? (The leftmost column on the security tab). HTH. -Morten ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Yihaw product Catalog error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello peter, Wednesday, November 08, 2000, 8:46:49 PM, you wrote: pb I have installed the Yihaw product, because I am going to use the Contact pb class. pb I can add a contact, but after having done that and I click the newly pb created Contact I get a NameError. pb Error Type: NameError pb Error Value: Catalog Just a guess! You didn't create a ZCatalog named Catalog in the root. - -- Best regards, Andersmailto:[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGP 6.5i iQA/AwUBOgrT1aTtRA/JSm7JEQJmLQCgu64yfkb1Ouj3MWtDQouPuF9S17EAoKSc gBPBWB0Z2mBp/kuVTzt3Z2SU =CIsL -END PGP SIGNATURE- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZMethod (Safe)
From: Ron Bickers [EMAIL PROTECTED] Since you would normally *say* just ZMethod, I like the suggestion of using "Python ZMethod" and "Python ZMethod (Unrestricted)", vs. spelling out the (Restricted) in the first one. Good point. I'll shop this around and see what folks here think. Cheers, Evan @ digicool 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZMethod (Safe)
On Thu, 9 Nov 2000, Evan Simpson wrote: From: Ron Bickers [EMAIL PROTECTED] Since you would normally *say* just ZMethod, I like the suggestion of using "Python ZMethod" and "Python ZMethod (Unrestricted)", vs. spelling out the (Restricted) in the first one. Good point. I'll shop this around and see what folks here think. FWIW, I concur. --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:[EMAIL PROTECTED] Going Virtual, L.L.C. http://www.goingv.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] security dilemma?
please bear with my ignorance, because this is the first couple of day I ever try Zope. It is super cool, but I should say that the documentation is far from satisfaction. Here is my problem: The only API I can find to alter the properties of some object is "manage_changeProperties". However, in order to execute this method in my script, I have to give the "Manage properties" permission to everyone, which may lead to severe security problems because the method "manage_changeProperties" is web accessible, so a malicious user can bypass my script and execute this method to change the properties to whatever he want. My questions are: 1, is there any API that can change properties of some object but can not be accessed from the web? 2, is there any way to store a small piece of persistent data beside using properties? Thanx. Derek ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] zlib.error : huh?
I am trying to understand what exactly is going on when Zope returns an Error -5 page. Normally, this only happens on the left hand navigational menu but today it happened while I was expanding an xml document/tree object from the Examples package for the XML Document product. I've tried searching Google, the Zope site and the mailing list but to no avail. Could someone please explain what's going on here? Is it me? Is it Zope? How exactly do I prevent these errors from happening? Thanks, Error Type: zlib.error Error Value: Error -5 while decompressing data: [] Traceback (innermost last): File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: tree) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: tree) File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in render (Object: test[0]) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in tpRender (Object: Manageable) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in decode_seq zlib.error: (see above) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] FW: [Zope] adding properties to all existing docs
However, I would not make such changes asynchronously. I would use "ZopeFind" to locate all objects that need to be updated and then do it. Maybe, its a matter of personal taste ... Dieter this is an interesting idea. another thing i might try is running the script from Xron and ZopeFinding the objects. in this way the task is completely automated and will free me from having to run it whenever new objects are added. -mike- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zlib.error : huh?
Aaron Straup Cope wrote: I am trying to understand what exactly is going on when Zope returns an Error -5 page. Normally, this only happens on the left hand navigational menu but today it happened while I was expanding an xml document/tree object from the Examples package for the XML Document product. I've tried searching Google, the Zope site and the mailing list but to no avail. Could someone please explain what's going on here? Is it me? Is it Zope? How exactly do I prevent these errors from happening? Here's my guess: you have a complex XML document. As you explore the document, Zope is setting a cookie that reflects the list of branches you have opened. After opening a large number of branches, you reach the limit on the size of a cookie (somewhere in the range of 1024 or 4096 bytes), making it so that the compressed data stored in the cookie gets truncated. zlib then emits this cryptic error message. Shane Thanks, Error Type: zlib.error Error Value: Error -5 while decompressing data: [] Traceback (innermost last): File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: tree) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: tree) File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in render (Object: test[0]) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in tpRender (Object: Manageable) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in decode_seq zlib.error: (see above) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZCatalog Range Weirdness
Hello, We have an interesting situation, here, and I can't seem to put my finger on what's going on. Let's say I have two different classes of objects being cataloged. The first class, Class A, has a floating point attribute myFloat. The second class, Class B, does not. 'myFloat' is an index in the Catalog. Let's say the makeup of class instances in the catalog is 50/50 Class A and Class B: Instance1 (Class A): myFloat = 0.5 Instance2 (Class B) Instance3 (Class A): myFloat = 0.65 Instance4 (Class B) Instance5 (Class A): myFloat = 0.55 Instance6 (Class B) I queried the catalog with: Catalog(myFloat=0.0, myFloat_usage='range:min') Expecting to get record objects representing: Instance1 (Class A): myFloat = 0.5 Instance3 (Class A): myFloat = 0.65 Instance5 (Class A): myFloat = 0.55 Since objects of Class B do not have myFloat, and would not be included in the myFloat index. Instead, I get: Instance1 (Class A): myFloat = 0.5 Instance2 (Class B) Instance3 (Class A): myFloat = 0.65 Instance4 (Class B) Instance5 (Class A): myFloat = 0.55 Instance6 (Class B) In other words, I get all objects back, whether they have a myFloat attribute or not. Interestingly, if I change the query to: Catalog(myFloat=0.5, myFloat_usage='range:min') I get the expected results. Using 0.1, 0.2, 0.3, or 0.4 does not work; 0.5 seems to be the magic number, which I find curious given that 0.5 is the minimum value present in any of the instances of Class A. Can anyone shed some light on what's going on, here? How do I ask the Catalog to return all instances who have a value, any value, for myFloat, but none others? Thanks in advance, --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:[EMAIL PROTECTED] Going Virtual, L.L.C. http://www.goingv.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zlib.error : huh?
Oh yeah, cookies. Okay. Is there a workaround/Product that solves this problem? If it's just a cookie thing, I don't know what it would be but I figure it doesn't hurt to ask. On Thu, 9 Nov 2000, Shane Hathaway wrote: Aaron Straup Cope wrote: I am trying to understand what exactly is going on when Zope returns an Error -5 page. Normally, this only happens on the left hand navigational menu but today it happened while I was expanding an xml document/tree object from the Examples package for the XML Document product. I've tried searching Google, the Zope site and the mailing list but to no avail. Could someone please explain what's going on here? Is it me? Is it Zope? How exactly do I prevent these errors from happening? Here's my guess: you have a complex XML document. As you explore the document, Zope is setting a cookie that reflects the list of branches you have opened. After opening a large number of branches, you reach the limit on the size of a cookie (somewhere in the range of 1024 or 4096 bytes), making it so that the compressed data stored in the cookie gets truncated. zlib then emits this cryptic error message. Shane Thanks, Error Type: zlib.error Error Value: Error -5 while decompressing data: [] Traceback (innermost last): File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope.old/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope.old/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: tree) File /usr/local/zope.old/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: tree) File /usr/local/zope.old/lib/python/OFS/DTMLDocument.py, line 177, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: tree) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 154, in render (Object: test[0]) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 229, in tpRender (Object: Manageable) File /usr/local/zope.old/lib/python/TreeDisplay/TreeTag.py, line 637, in decode_seq zlib.error: (see above) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Products, ZClasses and CatalogAware-ness
Hi, Could someone clarify the following for me: I would like to create a Product that instantiates itself with a ZCatalog and a search interface "built-in". I'd like make all the Product's ZClasses update the catalog whenever they are changed. If I make all the classes catalog-aware and point them to the name of the "root" ZCatalog, will they (re)index the root catalog or a catalog local to the class itself? If the latter, can I force [it] to do the former? Thanks, + Product + ZClass + ZClass + ZCatalog - search/index_html - results + ... ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] img tags, dtml-vars and css
I must be ignoramus, but I can't figure out modify img tags as generated by a image object. I have this: I use dtml-var expr="img.logo_image" to add an image object to a dtml document. How can I add a STYLE="color:silver;" or any other tag the HTML source? Troy Farrell Video Operations Technician III Williams VYVX Services 918.573.3029 918.573.1441 fax mailto:[EMAIL PROTECTED] http://www.williams.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Newbie help - method needs auth anonymous. WHY?
John Wrote: [snip] I am trying to use this method called objectList: ul dtml-in objectValues lidtml-var id/li /dtml-in /ul I've put it in the standard_html_header. [snip] When I try looking at the root page (http://john:8080) I have to provide authentication before the page will display. What your method is doing, is stepping through every object at the root of your Zope server. Not every object there is accessible by anonymous. Even in a fresh Zope installation, Control_Panel is restricted to managers, so that is the likely culprit. To get around this problem, there is an argument for dtml-in called "skip_unauthorized" which will automatically skip over any objects that the current user is not authorized to access. Changing your dtml-in statement to: dtml-in objectValues skip_unauthorized Will prevent this error. However, you will get every little object in your root directory. So, standard_html_header, index_html, standard_html_footer, etc. will appear. If you want to exclude these, specify just the meta types you want to objectValues. For instance, to show only folders try this: dtml-in expr="objectValues(['Folder'])" skip_unauthorized To show folders and DTML documents, try this: dtml-in expr="objectValues(['Folder','DTML Document'])" skip_unauthorized etc., etc. hth, Casey D. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Products, ZClasses and CatalogAware-ness
[..] Hi, Could someone clarify the following for me: I would like to create a Product that instantiates itself with a ZCatalog and a search interface "built-in". I'd like make all the Product's ZClasses update the catalog whenever they are changed. If I make all the classes catalog-aware and point them to the name of the "root" ZCatalog, will they (re)index the root catalog or a catalog local to the class itself? They find the closest item called 'Catalog', which may be the root if there is no other item "closer". If the latter, can I force [it] to do the former? Fiddle around with what Catalog is the closest. -- Andy McKay, Developer. ActiveState. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is data.fs corrupted?
Eyeballing my problem Data.fs (I kept a copy), I see something different than you describe. What I take to be the root object (OID 0) refers to a record in what appears to an instance of something to do with PTK (OID 57). A separate record in the PTK related instance (PRI) refers to a record in what seems to be the ZDiscussions *ZClass*, not an instance of ZDiscussions. Interesting that the first (and problem) record of the PRI has the next OID after that of the last OID of the ZClass. Could it have orginally been part of the ZDiscussions install? I don't remember when I installed what. See snippets of dump and tranlyzer at end of message. N.B., the Data.fs is from an Intel machine (you have to swap bytes on the hex side to read it correctly). I tried the reinstall, delete instances method with no improvement. It didn't seem to me that truncating would have helped me either, considering that I would have had to truncate back to and including the root :-). I recovered by exporting all my objects, starting a new ZODB, and importing my objects. Bill. On Thu, 9 Nov 2000, Chris McDonough wrote: But problems may happen when an application places instances into the ZODB of non-web-manageable, non-builtin objects as attributes of normal Zope objects. If these instances aren't cleaned up in the process of the deletion of whatever bit of Python code created them, they're "orphaned". When they're orphaned, some application code may attempt to initialize the object's instance (for whatever reason) in order to make use of them, and because the ZODB can't find the class of the instance, it complains. It complains by raising an exception. Zope's supposed to catch this and do the right thing, but it evidently doesn't sometimes. You can "fix it" by restoring whatever class the instance depends on and subsequently use the debugger to delete the instance from the ZODB. But I've had it happen to me where it was just easier to truncate the FileStorage I was working on than figure out exactly what was going on. This is bad. TID: 33140200A4749F8 @ 69694 obs 1 len 274 (status 'p') By [Zope] "Added Globals" OID: 0 len 204 2, 57 0069680 7d0b 0c71 2e75 e404 3103 .}q.u..1 0069696 1f40 b8f5 08b6 1a01 0070 @.p. 0069712 000d 4100 6464 6465 4720 6f6c 6162 .Added Globa 0069728 736c 3103 1f40 b8f5 ls.1@... 0069744 08b6 0100 0069760 3e10 cc00 2828 0b55 ...((U. 0069776 6550 7372 7369 6574 636e 7165 5501 5011 Persistenceq.U.P 0069792 7265 6973 7473 6e65 4d74 7061 6970 676e ersistentMapping 0069808 0271 7174 4e03 2e74 717d 5504 5f0a 6f63 q.tq.Nt.}q.U._co 0069824 746e 6961 656e 7172 7d05 0671 5528 5f0a ntainerq.}q.(U._ 0069840 6170 6b63 745f 6d69 7165 4707 cb41 1497 pack_timeq.GA... 0069856 5662 9cc2 0b55 7041 6c70 6369 7461 6f69 bV..U.Applicatio 0069872 716e 2808 0855 0200 0971 nq.(U.q. 0069888 5528 4f0f 5346 412e 7070 696c 6163 6974 (U.OFS.Applicati TID: 3374475482BCF4C @ 3769401 obs 2 len 648 (status 'p') By [Zope] "Installed product DemoPortal" OID: 137f len 456 1377, 43ed, 43f3, 4431 135e, 43f0, 4389, 1568 442e, 1565 OID: 57 len 65 137f 3769392 002e a100 036a 4437 4875 cf2b j.7DuH+. 3769408 004c 0200 7090 1c00 Lp.. 3769424 6e49 7473 6c61 656c 2064 7270 646f 6375 Installed produc 3769440 2074 6544 6f6d 6f50 7472 6c61 t DemoPortal 3769456 7f13 3703 7544 2b48 4ccf .7DuH+.L 3769472 3900 3984 .9.9 3769488 c801 2828 0555 5442 6572 7165 ..((U.BTreeq 3769504 5501 4206 6375 656b 7174 7402 0371 744e .U.Bucketq.tq.Nt 3769520 282e 5528 2a19 3337 6962 7071 4941 5132 .((U.*73biqpAI2Q 3769536 6144 6932 504b 7469 3576 6737 3d3d 0471 Da2iKPitv57g==q. 3769552 1955 432a 5677 2f42 6536 7550 6f33 656b U.*CwVB/6ePu3oke 3769568 4f41 7973 4668 4342 3d51 713d 5505 2a19 AOsyhFBCQ==q.U.* 3769584 614d 6d73 636b 4c45 6977 5851 5833 7669 MasmkcELwiQX3Xiv 3769600 3353 556d 7751 3d3d 0671 1955 592a 502f S3mUQw==q.U.*Y/P 3769616 694c 6f65 5854 6164 6e4a 3871 7672 6f4c LieoTXdaJnq8rvLo 3769632 3358 3d67 713d 5507 2a19 6659 4932 6744 X3g==q.U.*Yf2IDg 3769648 5879 4c70 5346 6e2f 6270 316e 6c37 4135 yXpLFS/npbn17l5A 3769664 3d3d 0871 1955 632a 354a 7161 3463 6a36 ==q.U.*cJ5aqc46j 3769680 3570 634c 494c 5a38 5a6a 5471 3d51 713d p5LcLI8ZjZqTQ==q 3769696 5509 2a19 356a 5a36 6f41 444e 5354 6b2f .U.*j56ZAoNDTS/k 3769712 4772 5330 4330 7363 415a 3d3d 0a71 1955 rG0S0CcsZA==q.U. 3769728 6a2a 3647 3263 7848 4251 734c 4a6b 3153 *jG6c2HxQBLskJS1 3769744 7730 6c61 6e4f 3d77 713d 550b 2a19 5773 0walOnw==q.U.*sW 3769760 5133 6b78 466a 5156 4e50 4d4b 7555 3042 3QxkjFVQPNKMUuB0 3769776 3762
[Zope] still problems w/ SiteAccess 2.0.0b3
I'm curious, you posted a message about SiteAccess. I have the same problem, with Debian (Zope 2.2.2 and I've tried SiteAccess 2.0.0b3 and b4). It producing the same errors you have, but in addition, I have this info from the stupid log file: 2000-11-09T20:09:18 ERROR(200) Zope Couldn't install SiteAccess Traceback (innermost last): File /usr/lib/zope/lib/python/OFS/Application.py, line 488, in install_products (Object: ApplicationDefaultPermissions) (Info: SiteAccess) File /usr/lib/zope/lib/python/Products/SiteAccess/__init__.py, line 12, in initialize File /usr/lib/zope/lib/python/App/ProductContext.py, line 323, in registerHelp OSError: [Errno 2] No such file or directory I have no idea what's going on, and any help from you or the zope mailing list would be appreciated. Ciao! -- A child of five could understand this. fetch me a child of five. -- Groucho Marx The Doctor What: Guru to the Godshttp://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZMethod (Safe)
Hello Linguistas, Shorter is better. In this light, my recommendation was "mod", short for MODule, and / or MethOD, but it didn't get into the Poll List. We've pretty much settled on restricted/unrestricted here. Also, I suggested "strict" as a shortened form of "reSTRICTed". Perhaps to much overloading from compiler directives, but it is the root word, after all. If it's not simple, it will get simplified in use, and then you've got some folks refering to things in "slang", which drives newbies bonkers. "Official slang" is preferable, at least then you have some chance of usage being consistent. Later, Jerry S. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: can we give path of the file to be sent as an attachment
jacintha menezes writes: Hi, Thanks for your mail. I have seen the tags of sendmail mime.Kindly let me know whether we can send a file stored in the hard disk as an attachment by giving it's path. No, you can't unless, you made it accessable from inside Zope. You have various options: * the excellent "LocalFS" product * the "ExternalFile" product (which probably is excellent, too, but I do not know it personally) * an external method returning the content of a file giving its filename (search the list archive to find one - with the associated *security* warning!) Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-if newbie question
Stephan Goeldi writes: ... select name="money" /select ... and the form_action method is this: dtml-in money "money" will come in as a string value not as a list. It would be a list, if you added a "multiple" to your "select". dtml-if "1000" This will always be true. It is constant (an expression without variable, having always the same value independent of context). What you mean is: dtml-if "money == '1000'" This will be true, if "money" has the value "'1000'" in the current context. Note the '...' around 1000! Without special Zope magic, request variables come in as string values. The '...' indicates a string literal. You want to look at the upcoming Zope book to learn more about the possible Zope magic. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Cloning a ZClass-Instance
Sven Hohage writes: Once again thanks to you, but I can't figure out why cloning it's not possible. The object is a simple zclass with the baseclasses -ZObject, ZObjectManager- Nothing special. That's the complete traceback: -- Traceback (innermost last): File C:\Zop\lib\python\OFS\CopySupport.py, line 321, in manage_clone (Object: holle) File C:\Zop\lib\python\OFS\CopySupport.py, line 402, in _verifyObjectPaste (Object: holle) Copy Error: (see above) Your traceback indicates, that the object itself does not object to be copied. It's the destination that does not want the object. The problem occurs in "_verifyObjectPaste". Its source comment says: # Verify whether the current user is allowed to paste the # passed object into self. This is determined by checking # to see if the user could create a new object of the same # meta_type of the object passed in and checking that the # user actually is allowed to access the passed in object # in its existing context. Thus, it is probably a security issue: Either you are not allowed to call the ZClass constructor at the destination, or you are not allowed to access the object to be cloned at the destination. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Can't get dtml-tree to work in a sub-folder.
[EMAIL PROTECTED] writes: I'm trying to make use of the dtml-tree gizmo and it only works in the root directory. What does that mean? In which respect does it not work in lower level folders? Exceptions, does not unfold, seems to be empty, ...? Are you sure, that the "dtml-tree" does *NOT* sit in a DTML document (when it does not work)? I'm trying to create a dynamic navigation display so users can click their way through the sub-directories of files. Kind of a "Zope Explorer". A Zope explorer as you see it in the left frame of the management interface? Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] img tags, dtml-vars and css
[Troy Farrell] | I must be ignoramus, but I can't figure out modify img tags as generated | by a image object. I have this: | I use dtml-var expr="img.logo_image" to add an image object to a dtml | document. | How can I add a STYLE="color:silver;" or any other tag the HTML source? Call it like so: dtml-var "img.logo_image.tag(style='color:silver;')" (See somewhere around line 560 of lib/python/OFS/Image.py for more info.. HTH. -Morten ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Security and Acquisition
[Charlie Wilkinson] | Greetings, Hola! | Now, referring to figure 1 (above :-), changes to security settings | for the acl_test folder are having no effect on access to index_html. | Only when I change the security settings on index_html itself, can I | control access to it. Can it have something to do with acquirement of permission settings? (The leftmost column on the security tab). Hi Morten, Yes. It's acting as if those little boxes were not checked! :) As I was replying to Jeff in a prior message, the mystery goes deeper. I grabbed a fresh copy of the latest CVS version, built it, set a superuser password and ran it. I then tried to visit the default index_html "Welcome to Zope" page and was presented with a BASICAUTH type login box. If I explicitly set anonymous View permissions for the index_html (Welcome to Zope) page, then I get in with no login as expected. That isn't normal is it? Root folder objects would appear to be having the same security setting acquisition problems as I was finding previously with sub-folders and LoginManager. I realize I'm on the bleeding edge of Zope running the CVS version, but I heard the 2.2.3 version is due out RSN and figured maybe a little "new version" pain now would be easier than upgrade pain later. I'd sure rather be saying "Here's a patch" than just "It's broke", but alas I don't grok Python that well yet. ("It's broke" still offers *some* value, right? :-) To the Zope developers: It seems pretty clear that Zope v2.2.cvs is broken in regards to security settings acquisition. Should I post to zope-dev, or is there already a sufficient awareness/understanding of the problem? Thanks, Charlie -- ~ Charlie Wilkinson - [EMAIL PROTECTED] - 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!! http://spam.abuse.net/ Join!! http://www.cauce.org/ ~ QOTD: "Bush is a big corporation disguised as a human being running for president." -- Ralph Nader on David Letterman (9/28/00) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Products, ZClasses and CatalogAware-ness
Thanks. If I a ZClass that is CatalogAware and contains n number of nested ZClasses, am I correct to assume that the children (and their children) inherit the original "awareness" ? Yes you are. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Sybase (again?)
Well, After no one else answered my last email about zope, I've decided to summarize what's going on with the ZSybaseDA so as to see if someone takes interest. STORED PROCEDURES DO NOT WORK. Anything else, however, does. Once a stored procedure was called, the db object is blocked till zope restarts. Any patches, solutions, suggestions? Manuel ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Sybase (again?)
SybaseDA AFAIK does not support stored procedures. "Manuel Amador (Rudd-O)" wrote: Well, After no one else answered my last email about zope, I've decided to summarize what's going on with the ZSybaseDA so as to see if someone takes interest. STORED PROCEDURES DO NOT WORK. Anything else, however, does. Once a stored procedure was called, the db object is blocked till zope restarts. Any patches, solutions, suggestions? Manuel ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- Chris McDonough Digital Creations, Publishers of Zope http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] can multiple users access gadfly database simultaneously ?
Hi, I have developed a product using Gadfly database. In that team members have to fill a form,and the data should go to their leaders database. My problem is more than one user can't enter simultaneously, also they can't submit the form together.How can i solve the problem.Can't multiple users access Gadfly database simultaneously ?. please help me. waiting for your quick reply thanks, bye, jacintha ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZCatalog and random key error
hello all i'm about to venture into building a ZClass that will make use of ZCatalog. is it 'safe' now? i see that my zope2.2.2 now haven't encountered any random key error yet. what about others? also, will iterating through catalog index faster than iterating through ..say.. objectItems('meta-type')? looking for insight, advice, holes to avoid, etc thanks -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine use Zope? then you got HOPE! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is data.fs corrupted?
Bill Welch wrote: Eyeballing my problem Data.fs (I kept a copy), I see something different than you describe. What I take to be the root object (OID 0) refers to a record in what appears to an instance of something to do with PTK (OID 57). Wow, nice dumps... So the root object contains a reference to oid 57, which appears to be an instance in Product land having to do with DemoPortal. For instance, maybe it's the ObjectManager instance related to the Product that goes into the Control_Panel.Products area. So... app.something = app.Control_Panel.Products.DemoPortal get_transaction().commit() ... just for instance. Why would somebody do this? I don't know. BTW, I think object 2 is the child object list. A separate record in the PTK related instance (PRI) refers to a record in what seems to be the ZDiscussions *ZClass*, not an instance of ZDiscussions. That's possible. Still assuming oid 57 is the ObjectManager instance related to the Product: app.Control_Panel.Products.DemoPortal.foo = app.Control_Panel.Products.ZDiscussions.propertysheets.methods.amethod get_transaction().commit() Why? I have no idea. Interesting that the first (and problem) record of the PRI has the next OID after that of the last OID of the ZClass. Could it have orginally been part of the ZDiscussions install? I don't remember when I installed what. To be honest, I have no frigging clue. :-) The "PRI" in your case is created on Zope startup. It's the persistent representation of the on-disk DemoPortal Product in the Control_Panel. Furthermore, it gets re-created every time Zope starts (unless you're using ZEO). There are talks about making on-disk products not have persistent representations in the control panel products folder (not that this would help your issue, but it might make things a little simpler). See snippets of dump and tranlyzer at end of message. N.B., the Data.fs is from an Intel machine (you have to swap bytes on the hex side to read it correctly). I tried the reinstall, delete instances method with no improvement. It didn't seem to me that truncating would have helped me either, considering that I would have had to truncate back to and including the root :-). As I read your problem report, if you wanted to try to solve the problem via truncation, it seems you would have needed to chop the file at the byte previous to the beginning of the transaction which first installed the "PRI". I presume that was too early of a transaction to be feasible? It seems a pretty low number. Also, I presume this was an older version of Zope? You imported an object as superuser, which shouldn't be able to happen under Zope 2.2.X? Was this an older version of the PTK as well? I recovered by exporting all my objects, starting a new ZODB, and importing my objects. Bummer. :-( But I still think your problem was caused by app-level error and not ZODB-level error. If I had time, I'd examine ZDiscussions and the PTK to see if I could spot the problem. But I don't. On Thu, 9 Nov 2000, Chris McDonough wrote: But problems may happen when an application places instances into the ZODB of non-web-manageable, non-builtin objects as attributes of normal Zope objects. If these instances aren't cleaned up in the process of the deletion of whatever bit of Python code created them, they're "orphaned". When they're orphaned, some application code may attempt to initialize the object's instance (for whatever reason) in order to make use of them, and because the ZODB can't find the class of the instance, it complains. It complains by raising an exception. Zope's supposed to catch this and do the right thing, but it evidently doesn't sometimes. You can "fix it" by restoring whatever class the instance depends on and subsequently use the debugger to delete the instance from the ZODB. But I've had it happen to me where it was just easier to truncate the FileStorage I was working on than figure out exactly what was going on. This is bad. TID: 33140200A4749F8 @ 69694 obs 1 len 274 (status 'p') By [Zope] "Added Globals" OID: 0 len 204 2, 57 0069680 7d0b 0c71 2e75 e404 3103 .}q.u..1 0069696 1f40 b8f5 08b6 1a01 0070 @.p. 0069712 000d 4100 6464 6465 4720 6f6c 6162 .Added Globa 0069728 736c 3103 1f40 b8f5 ls.1@... 0069744 08b6 0100 0069760 3e10 cc00 2828 0b55 ...((U. 0069776 6550 7372 7369 6574 636e 7165 5501 5011 Persistenceq.U.P 0069792 7265 6973 7473 6e65 4d74 7061 6970 676e ersistentMapping 0069808 0271 7174 4e03 2e74 717d 5504 5f0a 6f63 q.tq.Nt.}q.U._co 0069824 746e 6961 656e 7172 7d05 0671 5528 5f0a ntainerq.}q.(U._ 0069840 6170 6b63 745f 6d69 7165 4707 cb41 1497 pack_timeq.GA... 0069856 5662 9cc2 0b55 7041 6c70 6369 7461 6f69 bV..U.Applicatio 0069872
[Zope] How do I set the Title property of a File object from a DTML method
I have some of my own ZClass objects that may contain other ZClass objects or Files. Using a form and a method (that calls manage_editProperties(REQUEST)) I can set all the properties of my own ZClass subobjects. But I'm unable to set the Title property of a File object. Is there a secret trick? -Magnus ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] transferring from gadfly to oracle
Hi, Thanks for your response.Kindly let me know how to give connection to oracle(or an other)database from zope.Can i use same ZSQL methods what i used for Gadfly ?.Can i use same dtml tags what i used for Gadfly ?. please help me. waiting for your reply. Thanks, bye, jacintha ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] logging for virtual hosts
hi, I have the same prob. Although I have not implemented it yet, I was thinking of doing a python method that I could pass all the info into and stick in in the site rules. That would probably only do the main hit (perhaps if all pages go through the it will to all of them). j. .. . Jason C. Leach ... University College of the Cariboo. .. On 9 Nov 2000 [EMAIL PROTECTED] wrote: We are using SiteAccess to have multiple virtual hosts on one Zope Server. We would like to provide our customers with stats reports based on the zope log. But entries in the log don't contain any distinguishing information about the virtual host to which the entry applies. Short of hacking zope, is there a way to modify our zope environment to to have the requested hostname included in the log entry? We know that we can use PCGI thru apache and have apache do the logging. But I'm hoping to avoid that. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] security dilemma?
hi, do you have these two: http://www.zope.org/Members/michel/ZB/ http://zdp.zope.org/projects/zqr j. .. . Jason C. Leach ... University College of the Cariboo. .. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] acl_users API
I must be blind... I've been through the whole book (I think), and can't find a shred of info on manipulating acl_users with DTML. In one of the chapters it leads with the tantalizing phrase "we'll see how to give users the ability to change their own passwords later", but the trail goes cold. I'm sure there is a way... Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Anderson Sent: Thursday, 2 November 2000 2:56 To: '[EMAIL PROTECTED]' Subject: Re: [Zope] acl_users API Harris Peter wrote: Hi I have given up trying to manipulate acl_users from DTML for now - I'm sure it's possible because here and there on this list and on the Zope site I see hints that it can be done. However, I can't find (for example) a HOWTO anywhere that describes the API of acl_users and what you can do with it. Try: http://www.zope.org/Members/michel/ZB/ -- E PLURIBUS LINUX ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] still problems w/ SiteAccess 2.0.0b3
* The Doctor What ([EMAIL PROTECTED]) [001109 15:18]: I'm curious, you posted a message about SiteAccess. I have the same problem, with Debian (Zope 2.2.2 and I've tried SiteAccess 2.0.0b3 and b4). It producing the same errors you have, but in addition, I have this info from the stupid log file: 2000-11-09T20:09:18 ERROR(200) Zope Couldn't install SiteAccess Traceback (innermost last): File /usr/lib/zope/lib/python/OFS/Application.py, line 488, in install_products (Object: ApplicationDefaultPermissions) (Info: SiteAccess) File /usr/lib/zope/lib/python/Products/SiteAccess/__init__.py, line 12, in initialize File /usr/lib/zope/lib/python/App/ProductContext.py, line 323, in registerHelp OSError: [Errno 2] No such file or directory I have no idea what's going on, and any help from you or the zope mailing list would be appreciated. I figured it out. With a little help from my friends. This product is missing a 'help' directory. I'm not sure if this is a debian feature or not, but attached is a patch to let zope load it whether the directory exists or not. I basically wrapped a try around the part of the code that looks for the help directory and files within it. This is the file App/ProductContext.py, btw. I'll see about fixing SiteAccess (and Plugin, which has the same problem) for Debian. Ciao! -- Computers are useless. They can only give you answers. -- Pablo Picasso The Doctor What: "What, Doctor What" http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] ZPatterns: Non-ZODB storage and Racks
[rh]I've been following this thread. This may be a bit of a newbie question, but it's been bugging me for a while. I see how I can store propertysheets in Racks using ZClasses and Skinscripts, but the propertysheet term suggests that there should always be an object that the properties are attached to. Is that an actual ZODB object or is it the Specialist object that can 'create' virtual objects on the fly? It's determined by the radio button setting on the Storage tab. If you neglected to set it to "loaded by accessing attribute " and fill in the blank, then your objects have been stored in the ZODB, as well as in the RDBMS. Roche wrote: Thanks. I set "loaded by accessing attribute" to the attribute "id". Storing items in the RDBMS works fine. But when I try to retrieve them with getPersistentItemIDs() nothing is returned? I have a skinsript method getCustomer: WITH getCustomerSQL(CUSTOMER_ID=self.id) COMPUTE id=CUSTOMER_ID, name=NAME and getCustomerSQL is a SQL method. [rh] If I read this right, this suggests that an object stored in a SQL database and 'masquerades' as a Zope object? Or does an object always have to exist in the ZODB (with it's own id that corresponds to the id in the RDB or knows how to retrieve it). In other words, does the ZPatterns framework need an 'anchor' in the ZODB to connect it's properties to, or can you create pure virtual objects, that retrieve all of their properties from a specialist, including the ID. If the last is the case, could someone give an example how to implement it. A very simple one would suffice I suppose (hope). I hope I expressed my question clearly, 'cos this is difficult matter? tia Rik ___ Zope-Dev maillist - [EMAIL PROTECTED] 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-dev] DynPersist for Windows, ZPatterns 0.4.3b1 and Zope 2.2.x
Hi, Just went through the fun of compiling this so thought I'd mail it to the list in case anyone else wants it... Also noticed the Pluggin product is missing a /help folder in the distribution which makes registerHelp() barf unpleasantly. Adding an empty directory of that name makes the problem go away. cheers, Chris PS: Rename the file back to DynPersist.dll and stick it in the ZPatterns directory. DynPersist-0.4.3b1.dll
Re: [Zope-dev] Cache parameters
On Wed, 8 Nov 2000 11:37:51 -0800, "Andy McKay" [EMAIL PROTECTED] wrote: Just wondering what kind of cache parameters people run on their Zope installation. It would seem running a high target size and maximum time between accesses would speed up those requests it can find the cache, but not cached request take longer since more RAM is used in the maintaining of the cache (guess). Has anyone found a sweet spot away from the standard, I guess of course it all depends on the individual Zope site, this one is particulary ZCatalog heavy. Or should I just leave it at the default, which I found seems to work fine. If you are in the mood for experimenting, you might like to try reducing the number of publisher threads. Each thread gets a separate copy of the ZODB object cache, which accounts for a large chunk of Zope's memory usage. You might find that this lets you use a larger cache - with an overall gain in performance. Toby Dickenson [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
RE: [Zope-dev] ZPatterns: Non-ZODB storage and Racks
At 09:18 AM 11/9/00 +0200, Roch'e Compaan wrote: I set "loaded by accessing attribute" to the attribute "id". You should only do that if you want an "infinite rack". That is, one which contains all possible objects. Using "id" means that if the Rack tries to see if an object exists, it will *always* exist, whether it really exists or not. (Because the "id" attribute will always exist.) Given your example SkinScript below, you should probably be using "name" as the attribute to load off of. Then, the rack will only return an object if it exists in the SQL database. (Btw, you should probably be using WITH QUERY in your SkinScript.) Storing items in the RDBMS works fine. But when I try to retrieve them with getPersistentItemIDs() nothing is returned? That's because getPersistentItemIDs() only returns the id's of objects which are stored in the ZODB. That method exists only so you have some way of iterating over objects when you're using the "stored persistently" storage mode. It can also be used to find the id's of objects which have some of their attributes or propertysheets stored persistently. It is *not* a "get me everything in the rack" method. I have a skinsript method getCustomer: WITH getCustomerSQL(CUSTOMER_ID=self.id) COMPUTE id=CUSTOMER_ID, name=NAME and getCustomerSQL is a SQL method. If your objects are stored in an SQL database, then to get a list of objects you need to use an SQL method. Here is the "recommended approach" for iterating over objects in ZPatterns: 1. Define domain-specific retrieval methods in your specialist. For example, "getPastDueToDoItems()" and "getAllToDoItems()". 2. Create methods in your rack(s) which actually implement the retrieval; these may be named the same, or depending on your application, they may be smaller chunks of code which you aggregate or pass parameters to, in order to implement the higher-level functioning. If a given rack uses ZODB storage, its implementation methods may use getPersistentItemIDs(), but they should otherwise be using SQL methods, catalog searches, or other means of retrieving a list of objects. 3. Have the domain-specific methods call the methods in the racks to implement the desired behavior, and have *all* other code call the methods in the Specialist. The key here is to remember that: 1. A Specialist is a singleton object (i.e. only one instance per app) that is responsible for dealing with objects of a particular interface. Specifically, it is responsible for: a) Creating objects which supply that interface, according to given criteria b) Retrieving objects which supply that interface, given an identifier c) Manipulating groups of objects which supply that interface, through a domain-specific API (e.g. getPastDueItems(), purgeCompletedItems(), etc.) d) Providing an application-level UI for all of the above, as/when needed by the application e) Providing UI "snippet" methods to create selectors (e.g. form fields, dropdowns, etc.) for other objects to use in their UI's, so that they can relate to or otherwise interact with objects the Specialist is responsible for. (Notice, by the way, that this list effectively puts everything that an application integrator might want to customize all in one place...) 2. Racks are essentially *private objects* belonging to the Specialist to help it carry out its responsibilities. Each rack is responsible for retrieving objects of a *particular class and storage location* which implement the interface the Specialist serves. Multiple racks are used when there is more than one class that implements the interface in the application. 3. Because Racks belong to the Specialist, it's okay for the Specialist to "know" things about its racks as a whole (e.g. which ones provide what concrete classes, what search order to use, how to combine the results of queries from them, etc.), but it should still delegate the actual *implementation* of behaviors to them wherever possible. If you follow this approach, you will end up with an application whose functioning is cleanly divided, and any developer familiar with ZPatterns will know where to call things, and where to go to change implementations. Further, if that developer needs to change from an SQL database to using the ZODB, or vice versa, or change from one database schema to another, they will be able to do so without changing code outside the racks, or at most, the specialist, and all other application code, including your classes and ZClasses, will be unaffected by the changes. ___ Zope-Dev maillist - [EMAIL PROTECTED] 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-dev] Re: New Name for Python Methods
(CC'ed to zope-dev.) Steve Jibson wrote: I just took the poll for the new name for Python Methods and so far, it looks like people like the existing name. Based on this, I have a suggestion for another name to add to the list: "pyMethod" (or "plMethod" for Perl) The same pattern--standard filename extension + "Method"--could be follwed for any future languages (i.e. cppMethod for C++) It's retains the same appeal as "Python Method" but eliminates some of the confusion. Maybe. What do you think of: "Python ZMethod" "Python Zope Method" "Python Web Method" Here's what the meat of the problem really is, explained well by Jim: Evan's Zope objects named "Python Methods" don't behave or look like methods defined by the Python programming language. There are quite a few people who think this is a problem. Evan has good reasons for wanting the current behavior. If this problem is considered to be significant, there are, a number of possible alternatives: 1. Change the name of Evan's objects, in which case "Python Method" shouldn't be a choice. 2. Change the behavior of Evan's objects to more closely match what Python programmers would recognize as a Python method. Thus the poll did not ask the right question. Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] 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-dev] Python Product Style - on-the-fly objects to DTML
Hi, all I have a project going that requires the users to fill-out many different tabular data forms. So, I thought I would develop yet another table-generator. The main class (descended from OFS.SimpleItem) has a reorderable list of information (MT_ColumnInfo(Persistent)) about the columns (title, name, type, size, etc.) and another reorderable list of information about the rows (MT_RowInfo(Persistent)) (title, name), so that the column names and row names can be put together and I do not have to worry about getting R*C names right for each table. Anyway, I do not want to return any of these classes to DTML for processing. I want another class, CellInfo, which has the concatenated row and column names as name, and the type, size, etc. information from the Column information. A list of these with the title of the Row would be a row_data, so what I have to work with in DTML is the column_headings list and a list of row_data objects containing a list of CellInfos. All of these can be generated on-the-fly, so should not need to be descended from a Persistent Class. Less stuff to change if the table needs to be modified / reordered. But: In my usual trial-and-success blundering about, I find that unless these objects participate in the security system, I get "the login window that will not leave". So, I descend these objects from OFS.SimpleItem and give them default __ac_permissions__. Everything works as expected. Looking closer, I see that the thing really working is: descent from AccessControl.Role.RoleManager and __allow_access_to_unprotected_subobjects__=1. So I make these modifications, and everything seems fine. Allowing access to unprotected subobjects is cool, since these are non-persistent. Now for the question: What happened when I created un-attached Persistent descendents on-the-fly while testing earlier? I presume they garbage-collected away when I was done with them. Is this correct? I have a nagging worry about ghost objects and the types of programming errors that might create them. -- Jim Washington ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] ZPatterns: Non-ZODB storage and Racks
At 10:45 AM 11/9/00 +0100, Rik Hoekstra wrote: [rh]I've been following this thread. This may be a bit of a newbie question, but it's been bugging me for a while. I see how I can store propertysheets in Racks using ZClasses and Skinscripts, but the propertysheet term suggests that there should always be an object that the properties are attached to. Depends on what you mean by "attached". One of the most annoying things about Zope propertysheets is that there are two kinds. ZPatterns implements one of the kinds (WebDAV sheets), but not the one that most people have encountered (the kind used in ZClasses). Although WebDAV sheets are associated with a particular object, they are objects in themselves. ZClass instance sheets are "virtual" and store all their data in the associated object. To do ZClass-style sheets in ZPatterns, all you need to do is implement the attributes; the sheets can take care of themselves. To do WebDAV-style sheets in ZPatterns, you need a SheetProvider or you need to simulate propertysheets using an attribute provider to make an attribute that is actually another object, and which supports appropriate methods. Is that an actual ZODB object or is it the Specialist object that can 'create' virtual objects on the fly? Racks create "virtual" objects when set to "load by accessing attribute ___". [rh] If I read this right, this suggests that an object stored in a SQL database and 'masquerades' as a Zope object? Or does an object always have to exist in the ZODB (with it's own id that corresponds to the id in the RDB or knows how to retrieve it). In other words, does the ZPatterns framework need an 'anchor' in the ZODB to connect it's properties to, or can you create pure virtual objects, that retrieve all of their properties from a specialist, including the ID. When set to store objects persistently, "real" Zope objects are made and stored in the rack. When set to load via an attribute, the rack creates a dummy Zope object with its "id" attribute set appropriately, then tries to access the specified attribute. If the attribute exists (i.e., an attribute provider succeeds in loading the data from the external data source), then the object is considered to "exist" and can be returned. This would be a "pure virtual object" in your question. If the last is the case, could someone give an example how to implement it. A very simple one would suffice I suppose (hope). Roche's situation is an example, at least if he used the "name" attribute as the load attribute, rather than the "id" attribute. ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] ZPatterns: Non-ZODB storage and Racks
snip great explanation Thanks, Phillip, that was enlightening Rik ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] DynPersist for Windows, ZPatterns 0.4.3b1 and Zope 2.2.x
[Phillip J. Eby] | I uploaded the beta 2 release on October 31, but it has strangely | disappeared from Zope.org, along with changes I made to other items that | evening, so I have uploaded it again today. The DynPersist you posted | should still work, since there were no changes to DynPersist.c in beta 2. Same thing happened to me; WRT to objects disappearing. I think somebody said something about ZODB-reset, rollback, or something. -Morten ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] ZCatalog index error
I found this in the archive. Is this the patch I need or is it more complex, it seems strange that it hasnt been implemented... http://zope.nipltd.com/public/lists/dev-archive.nsf/0a8715d5f3c7b6a3802568c1 006328f7/c15eb30d0faf1057802568b8002e1273?OpenDocument [..] In lib/python/SearchIndex/Lexicon.py the set method of the Lexicon class, change: else: self._lexicon[intern(word)] = self.counter self.counter = self.counter + 1 return self.counter to else: self.counter = self.counter + 1 self._lexicon[intern(word)] = self.counter return self.counter groans from the audience -- Andy McKay, Developer. ActiveState. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Christopher Petrilli" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 07, 2000 12:02 PM Subject: Re: [Zope-dev] ZCatalog index error Ah sorry, I have custom CatalogAware class thats been a bit hacked but was written by Mike Pelletier... when he was hanging around at ActiveState for a few days. Theres a link to wiki on it somewhere -- Andy McKay, Developer. ActiveState. - Original Message - From: "Christopher Petrilli" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 07, 2000 10:13 AM Subject: Re: [Zope-dev] ZCatalog index error Well im not sure how much deleting the index and then recreating the index throught the management interface actually does. But I wrote an external method to basically do a find and apply to recatalog bunches of objects. Actually i meant originally, not the second time. Are you using CatalogAware to get objects to automatically index themselves? What exactly are you doing to get them in the Catalog in the first place? Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] 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-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] ZCatalog index error
I have no idea about this, but I know that this isn't all you need - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Christopher Petrilli" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, November 09, 2000 2:31 PM Subject: Re: [Zope-dev] ZCatalog index error I found this in the archive. Is this the patch I need or is it more complex, it seems strange that it hasnt been implemented... http://zope.nipltd.com/public/lists/dev-archive.nsf/0a8715d5f3c7b6a3802568c1 006328f7/c15eb30d0faf1057802568b8002e1273?OpenDocument [..] In lib/python/SearchIndex/Lexicon.py the set method of the Lexicon class, change: else: self._lexicon[intern(word)] = self.counter self.counter = self.counter + 1 return self.counter to else: self.counter = self.counter + 1 self._lexicon[intern(word)] = self.counter return self.counter groans from the audience -- Andy McKay, Developer. ActiveState. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Christopher Petrilli" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 07, 2000 12:02 PM Subject: Re: [Zope-dev] ZCatalog index error Ah sorry, I have custom CatalogAware class thats been a bit hacked but was written by Mike Pelletier... when he was hanging around at ActiveState for a few days. Theres a link to wiki on it somewhere -- Andy McKay, Developer. ActiveState. - Original Message - From: "Christopher Petrilli" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 07, 2000 10:13 AM Subject: Re: [Zope-dev] ZCatalog index error Well im not sure how much deleting the index and then recreating the index throught the management interface actually does. But I wrote an external method to basically do a find and apply to recatalog bunches of objects. Actually i meant originally, not the second time. Are you using CatalogAware to get objects to automatically index themselves? What exactly are you doing to get them in the Catalog in the first place? Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] 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-Dev maillist - [EMAIL PROTECTED] 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-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] Re: New Name for Python Methods
Thus the poll did not ask the right question. To be honest, I was surprised that Python Method was still in the poll list. A new poll is not a good alternative, though. Any plans about what to do - take the second best. Re-polling. Apparently it was a bad day for elections in the US in general ;-) (sorry, couldn't resist) Rik ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] ZCatalog index error
Ah ok. I'll just wait impatiently then. Thanks. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Christopher Petrilli" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, November 09, 2000 12:03 PM Subject: Re: [Zope-dev] ZCatalog index error I have no idea about this, but I know that this isn't all you need - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Christopher Petrilli" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, November 09, 2000 2:31 PM Subject: Re: [Zope-dev] ZCatalog index error I found this in the archive. Is this the patch I need or is it more complex, it seems strange that it hasnt been implemented... http://zope.nipltd.com/public/lists/dev-archive.nsf/0a8715d5f3c7b6a3802568c1 006328f7/c15eb30d0faf1057802568b8002e1273?OpenDocument [..] In lib/python/SearchIndex/Lexicon.py the set method of the Lexicon class, change: else: self._lexicon[intern(word)] = self.counter self.counter = self.counter + 1 return self.counter to else: self.counter = self.counter + 1 self._lexicon[intern(word)] = self.counter return self.counter groans from the audience -- Andy McKay, Developer. ActiveState. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Christopher Petrilli" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 07, 2000 12:02 PM Subject: Re: [Zope-dev] ZCatalog index error Ah sorry, I have custom CatalogAware class thats been a bit hacked but was written by Mike Pelletier... when he was hanging around at ActiveState for a few days. Theres a link to wiki on it somewhere -- Andy McKay, Developer. ActiveState. - Original Message - From: "Christopher Petrilli" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 07, 2000 10:13 AM Subject: Re: [Zope-dev] ZCatalog index error Well im not sure how much deleting the index and then recreating the index throught the management interface actually does. But I wrote an external method to basically do a find and apply to recatalog bunches of objects. Actually i meant originally, not the second time. Are you using CatalogAware to get objects to automatically index themselves? What exactly are you doing to get them in the Catalog in the first place? Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] 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-Dev maillist - [EMAIL PROTECTED] 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-Dev maillist - [EMAIL PROTECTED] 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-dev] Best way to start on ZPatterns ?
OK, I've finally got a little leisure to re-assess my way of making Zope apps (which so far has been 99.9% ZClasses) and it seems the way to go might be ZPatterns. In true Zope tradition the docs (at least the simple docs) seem to leave quite a steep learning curve :-) After searching the zope-dev mail for a while I've happened on the thread from Steve S. describing the simplest example he could think of. Is this still a valid example for the current version of ZPatterns? -- Nigel Head Houbits Hi-Tech Servers [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] 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-dev] Splitter
Providing full-text search is an advantage that Zope over other web app servers. However, the current Zcatalog does not respect the local languages. There is more than 3 splitters which works for different languages already. I do think anyone would see zope being split by this splitter issue. Moreover, building multi-lingual sites is certainly a must of the web age, make survey for the big corps, being globally business you must talk all languages. If zope really want to be the leader, zope must talk all languages. Instead of just taugh zcatalog to listern all language, I would like to see the lang= tag attributes were removed from the Zope source completely. Allowing the zope manager to set lang and encoding as his own will. Moreover, make Zcatalog use unicode internally. (may be turning zope completely a unicode app). Rgs, Kent Sin ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] Re: New Name for Python Methods
On Thu, 09 Nov 2000 10:18:47 -0500, Shane Hathaway [EMAIL PROTECTED] wrote: Here's what the meat of the problem really is, explained well by Jim: Evan's Zope objects named "Python Methods" don't behave or look like methods defined by the Python programming language. There are quite a few people who think this is a problem. They dont behave exactly the same, but Ive not seen a good summary of what differences those people believe to be a problem. Does anyone have a pointer? I can see many differences, but none I would class as a problem. (On the other hand, Im not adverse to using bytecodehacks in my straight python projects too. Perhaps Im just working with a broader definition of 'method') Toby Dickenson [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [zope-dev] Splitter
On Fri, 10 Nov 2000 07:50:21 +0800, "Sin Hang Kin" [EMAIL PROTECTED] wrote: (may be turning zope completely a unicode app). I have patches to give Zope good unicode support (good enough for me ;-) at http://www.zope.org/Members/htrd/wstring No TextIndex support yet though; feel free to contribute some. Toby Dickenson [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )