[Zope-dev] LoginManager ownership bug!

2000-10-05 Thread Jonas Juselius
Hola, There seems to be a problem with the ownership model in Zope (or ZPatterns). The problem is the following: I have implemented a nice login system based on the LoginManager and SQL methods. I would like to make this acl_users the top level user folder, but... then hell brakes lose...

Re: [Zope-dev] AttributeError: __call__

2000-10-05 Thread Chris Withers
knight wrote: I just installed a fresh copy of 2.2.1 also, and I'm getting the same issue. Any items starting with a subfolder has a __call__ AttributeError. What do you mean by 'starting with a subfolder'? Can you give some exampels and a full traceback? cheers, Chris

Re: [Zope-dev] Strange Error - in collector yet?

2000-10-05 Thread Chris Withers
Lalo Martins wrote: This is on Zope 2.2.1. I'd really appreciate some clues on how to bust these ghosts. Have you put a full description in the bug collector yet? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] AttributeError: __call__

2000-10-05 Thread knight
Chris, Ofcourse, the phenomina disappeared abruptly. However, I intend on using 2.2.2 again within minutes, so I will post a detailed message if the phenomina occurs again. Regards, Knight [EMAIL PROTECTED] On Thu, 5 Oct 2000, Chris Withers wrote: knight wrote: I just installed a

Re: [Zope-dev] RFClarification: Security on Product Attributes

2000-10-05 Thread Chris Withers
"Phillip J. Eby" wrote: IIRC, this stuff got broken by the switch to the new security machinery. ZopeSecurityPolicy doesn't check 'foo__roles__' on the parent object the way ZPublisher does/did. Can anyone say why? cheers, Chris PS: Will the new new security stuff (still in proposal

Re: [Zope-dev] Success! Was: Re: [Zope-dev] How is 'retrieveItem intended to work with TTW Specialists? Specialists?

2000-10-05 Thread Phillip J. Eby
At 09:15 PM 10/4/00 -0500, Steve Spicklemire wrote: This was also nice since in my Specialist I could do things like: dtml-call "RESPONSE.redirect(this().theRealThing.absolute_url())" After the user is finished working in my 'app area' they could get redirected back to the actual object that

Re: [Zope-dev] ZPatterns design questions

2000-10-05 Thread Phillip J. Eby
At 09:49 PM 10/4/00 -0700, Michael Bernstein wrote: While I wouldn't say that there has been an actual 'paradigm shift' between the original RIPP presentation and ZPatterns, What's happened is that there's been a lot of "implementation shift". The goals of RIPP have never changed, but they are

Re: [Zope-dev] Success! Was: Re: [Zope-dev] How is 'retrieveItem intended to work with TTW Specialists? Specialists?

2000-10-05 Thread Steve Spicklemire
Yes.. I see what you mean... this is a 'whitebox customization' that I used as part of the integration of my framework into the 'online catalog' system. This is not 'blackbox' code that is integral to my system In fact, I mis-spoke earlier, it's not in my specialist at all... it only

[Zope-dev] Accessors for DataSkin attributes (was Re: [Zope-dev] Success!Was: Re: [Zope-dev] How is 'retrieveItem intended to work with TTWSpecialists? Was: Re: [Zope-dev] How is 'retrieveItem intended to work with TTW Specialists?

2000-10-05 Thread Phillip J. Eby
At 06:57 AM 10/5/00 -0500, Steve Spicklemire wrote: This brings up another point If I choose 'DataSkin' as a storage class, then my code hits the security system every time a refer to any data (simple types) stored directly in the DataSkin. I can either set

[Zope-dev] Trying to catch up - what are the best Zope tools today?

2000-10-05 Thread Spicklemire, Jerry
Itai asked: "I started reading about ZPatterns but I still can't get my head around it... I'm wondering if I should try to learn it fast enough for this project, or stick to what I already know. What in people's experience is the typical learning curve for ZPatterns? How much am I going

Re: [Zope-dev] ZPatterns design questions

2000-10-05 Thread Michael Bernstein
"Phillip J. Eby" wrote: At 09:49 PM 10/4/00 -0700, Michael Bernstein wrote: While I wouldn't say that there has been an actual 'paradigm shift' between the original RIPP presentation and ZPatterns, What's happened is that there's been a lot of "implementation shift". The goals of RIPP

Re: [Zope-dev] LoginManager ownership bug!

2000-10-05 Thread Michael Bernstein
Jonas Juselius wrote: Another thing which I have tried to do, is to add support for local roles to the LoginManager. At first it looked rather simple, but then I realized that it wasn't really _that_ simple, and dropped it because I don't have time... It would however be nice to have local

[Zope-dev] Re: Zpatterns design questions

2000-10-05 Thread James Johnson
I don't think its possible at this point for a working dtml/ttw example. Several people have asked for a simple dtml/ttw only zpatterns based working example, but none of the people who are "getting" Zpatterns finds the time to write a simple example. I'm not sure I know what I'm

[Zope-dev] Is it possible for a simple dtml/ttw only zpatterns example?

2000-10-05 Thread James Johnson
Is it too complicated? Seems to me it would help out alot of people and help to further the cause. I'm starting to get the feeling that some people are not willing to share in their success. By keeping it complicated and jargon filled prevents me from be able to use it. Is this suppose to

Re: [Zope-dev] ZPatterns design questions

2000-10-05 Thread Steve Spicklemire
OK.. here's the dumbest example I could cook up. It was my first experiment with ZPatterns in July of last summer. It was based on a really early release, I don't remember which, but it seems to work with the latest.. (I just barely testted it... ) Load the Product ToDoProducts.zexp into the

Re: [Zope-dev] RFClarification: Security on Product Attributes

2000-10-05 Thread Jim Fulton
Chris Withers wrote: Hi, If I have the following lines in a Python Product: def __init__(self, id): """initialise a new instance of product""" self.id = id self.title = 'Title!' self.anInt = 0 self.aString = 'testing' Are these

Re: [Zope-dev] RFClarification: Security on Product Attributes

2000-10-05 Thread Jim Fulton
"Phillip J. Eby" wrote: At 12:27 PM 10/4/00 -0400, Brian Lloyd wrote: I've verified (any of my previous comments to the contrary) that simple attributes (python types) do not really play in the permissions machinery. The canonical way to expose such things for now is to expose them

Re: [Zope-dev] Acquisition/cDocumentTemplate bug

2000-10-05 Thread Andy McKay
Does anyone know of any progress on this bug its marked as "pending" in the Collector, so I guess not. http://classic.zope.org:8080/Collector/1441/view - Original Message - From: "Shane Hathaway" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, July 20, 2000

Re: [Zope-dev] Acquisition/cDocumentTemplate bug

2000-10-05 Thread Andy McKay
Sorry ignore me, I thought I was being bitten by this bug, but Im not. It was the old difference between dtml-with foo and dtml-with "foo" in someone else's dtml. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 05, 2000 1:07 PM

Re: [Zope-dev] ZPatterns design questions

2000-10-05 Thread Steve Spicklemire
Ack.. of course I forgot to test creating new instances there was a snippet of code for editing and creating that didn't work with the new propertysheet stuff. I fixed it just now... so it really works. ;-) -steve "Steve" == Steve Spicklemire [EMAIL PROTECTED] writes: Steve OK..

[Zope-dev] intersection of ZCatalog queries on the same index

2000-10-05 Thread Neil K
If there a way to get ZCatalog to give me intersections of results on a single index? All the examples and tutorials I've seen are union (OR) queries. Basically I just want ZCatalog to give me items where keywords contained both 'foo' and 'bar'. I have browsed through Catalog.py and it seems

Re: [Zope-dev] intersection of ZCatalog queries on the same index

2000-10-05 Thread Michel Pelletier
Neil K wrote: If there a way to get ZCatalog to give me intersections of results on a single index? All the examples and tutorials I've seen are union (OR) queries. Basically I just want ZCatalog to give me items where keywords contained both 'foo' and 'bar'. You should use a Keyword

[Zope-dev] Thank you very much SteveS for your efforts and the working zpatterns example.

2000-10-05 Thread James Johnson
At last some meat AND potatoes for us feely touchy zpattern people. It opens up a whole new can of worms that I will take _fishing with me this weekend. Long live Steve Spicklemire! Get your Free E-mail at http://tacoma.zzn.com

Re: [Zope-dev] Thank you very much SteveS for your efforts and the working zpatterns example.

2000-10-05 Thread Steve Spicklemire
I'd love to bask in the glory of having done something really significant. but just remember... it *is* the Worlds Simplest (some might say Dumbest) example! ;- -steve "James" == James Johnson [EMAIL PROTECTED] writes: James At last some meat AND potatoes for us feely touchy

Re: [Zope-dev] ZPatterns design questions

2000-10-05 Thread Michael Bernstein
Steve Spicklemire wrote: Ack.. of course I forgot to test creating new instances there was a snippet of code for editing and creating that didn't work with the new propertysheet stuff. I fixed it just now... so it really works. ;-) I didn't get a chance to play with this today, but

[Zope-dev] Re: [Zope] Re: [Zope-dev] cookies ie5.5 win

2000-10-05 Thread Terry Kerr
I had a problem like this once, and worked out that it was because the system time was incorrect in IE somehow. The time that windows was displaying was correct, but that had been manually changed to take in to account day light savings which started early in Australia this year due to the

RE: [Zope-dev] intersection of ZCatalog queries on the same index

2000-10-05 Thread Neil K
Michel Pelletier [EMAIL PROTECTED] wrote: Catalog.searchResults({'food', ['foo', 'bar']}) ^ I think you meant a : there? would find all of the objects whose food property contained both 'foo' _and_ 'bar'. This is not

Re: [Zope-dev] ZPatterns design questions

2000-10-05 Thread Steve Spicklemire
Again.. this is an embarrassingly trivial example.. but here it goes: First of all there is a ZClass 'ToDoClass'. It needs to have a base class of ZPatterns:DataSkin. You don't need constructor methods, but I don't think they hurt anything if you leave them in. The ToDo needs methods:

Re: [Zope-dev] ZPatterns design questions

2000-10-05 Thread Michael Bernstein
Steve Spicklemire wrote: Again.. this is an embarrassingly trivial example.. but here it goes: [snip details] That's it. I can't imagine anything simpler. ;-) Really! Thanks, I'll be trying this out at work tomorrow. Michael Bernstein. ___

[Zope-dev] ToDoManager ZPatterns example not working

2000-10-05 Thread Itai Tavor
Hi, I installed the ToDoManager/ToDoProduct example (http://www.zope.org/Members/sspickle/DumbZPatternsExample ) but it won't work. System is RedHat 6.1, Zope 2.2.2, ZPatterns-0-4-2a3. I get the following traceback when I try to view /ToDoManager/index_html. Is it a bug somewhere or a

[Zope] Fwd: [Zope] LDAP won't work - yes I've applied the patch

2000-10-05 Thread zope
Hi. In deed, I have the same problem. As an example, my LDAP Method consists of the following filter: uid=* With the following DTML-method, I'm getting data from my LDAP server. dtml-in searchPerson dtml-let counter=sequence-index dtml-var bla: dtml-var "searchPerson[counter]"

RE: [Zope] Product Testing

2000-10-05 Thread Seb Bacon
http://www.zope.org/Members/hathawsh/Refresh is the only way I know of to take away the pain of testing products. Seb -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nestor A. Diaz L. Sent: 05 October 2000 01:06 Cc: [EMAIL PROTECTED] Subject: [Zope]

Re: [Zope-dev] cookies ie5.5 win

2000-10-05 Thread Chris Withers
Sebastian Luehnsdorf wrote: i'm having a strange problem with cookie based user authentication with ms internet explorer 5.5 on windows. it seems that the browser (but only this version and only under windows!) seems to "forget" its cookies, which results in an immediate logout. does anybody

[Zope] In a python method, I want to convert a XML string into a dictionary...

2000-10-05 Thread Frederic Quin
Hi all, I would like to create a python method which take a parameter xml_string and return a dictionary containing all tags, values and attributes. I know that it exists some modules for xml conversions but I don't know very much how to use them. I am novice in Python so it's a little bite

[Zope] Accessing a Zclass' method needs authentication of the superuser

2000-10-05 Thread Nico Grubert
hello, i created a zclass "myzclass" inside a product "myprod". inside of the zclass i created a dtml-method "mymethod_html" which can be found by the tab "Methods". in the root folder i have created a dtml-method "gimme_html" conatinintg the following code to access the method "mymethod_html"

Re: [Zope] database connection problem (halting Zope)

2000-10-05 Thread Francisco José Esteban Risueño
In this document: http://www.zope.org/Members/petrilli/DARoadmap the behaviour of different database adapters in a multithreaded environment is discussed. We've observered in our Zope instalation that a long query via ZODBCDA halts (this is similar in the Czech Republic and in Spain). Howerver,

Re: [Zope] Detecting Roles not working

2000-10-05 Thread Jonathan Cheyne
Thanks to Kapil, Geir and Daniel for their various syntaxes. Very enlightening. I did cure it but by accident while experimenting with the solutions offered (so they *were* worth it) The zclass title is displayed a la slashdot or freshmeat in boxes as clickable links drawn from the catalog. If

RE: [Zope] database connection problem (halting Zope)

2000-10-05 Thread Hrasky Petr
Yes, it is indeed the same here and in Spain, thankfully. I have read the DARoadmap already. And thanks to Ayhan Ergul [EMAIL PROTECTED] I now have binaries for OracleDA which works as supposed - i.e. fine. Is there somebody with nt binaries of SybaseDA? I will probably get it running on Linux

Re: [Zope] Name lookup emulation with a Product

2000-10-05 Thread Pierre-Julien Grizel
Chris Withers wrote: Pierre-Julien Grizel wrote: Hi, I'd like to perform a name lookup inside a product, relying on acquisition, property and REQUEST lookups. Are you talking about a python product's __call__ method, by any chance? Chris Ahem... Not exactly... I want my

Re: [Zope] Name lookup emulation with a Product

2000-10-05 Thread Chris Withers
Pierre-Julien Grizel wrote: I want my product to be callable with two method, say "m1" and "m2", that perform different tasks. How would these methods be called? Chris ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Name lookup emulation with a Product

2000-10-05 Thread Pierre-Julien Grizel
Chris Withers wrote: Pierre-Julien Grizel wrote: I want my product to be callable with two method, say "m1" and "m2", that perform different tasks. How would these methods be called? Chris Well, I've got my product P somewhere in my object hierarchy. Its methods _should_ be

Re: [Zope] A temporary python object defined in a dtml-let tag ???

2000-10-05 Thread Shane Hathaway
Frederic Quin wrote: I wonder if it's possible to create temporary a python object in a dtml-let tag. If someone knows more about how to do this, please, help me... dtml-let myvar="['somevalue']" The first element of myvar is dtml-var expr="myvar[0]" /dtml-let In both the dtml-let and the

[Zope] status of SOAP for Zope?

2000-10-05 Thread Brad Clements
MS has released ROPE for client-side SOAP development (finally). I can't seem to find anything in Zope for doing SOAP, but it was announced in Dec 1999 as "upcoming". What is the status of SOAP on Zope, I need to know if I can use ROPE.. Brad Clements,[EMAIL PROTECTED]

[Zope] ZClass, Product comparison

2000-10-05 Thread Nestor A. Diaz L.
HI, thanks you for the latest answer on testing products, however i have a doubt i know how to make ZClass however i think they are more restrictive, can anyone telling me advantanges or disadvantes of using Zclass instead of products? Thank you, -- Nestor A. Diaz Ingeniero de Desarrollo

[Zope] _ in a product

2000-10-05 Thread Pierre-Julien Grizel
Hi, Correcting my earlier post, I'd "simply" like to have a way to get the _ (namespace) variable in a product method. Currently, I use the following syntax : dtml-var "product.method (_, 'Hello, world !')" to pass _ to my product. It works, but. Reminds me of the great times when my

[Zope] installation error.

2000-10-05 Thread G.Sagar
hi, i installed zope 2.2.0 (src.tgz). when i run the start script, it gives me the foll error : IOError: [Errno 13] Permission denied: '/home/sagar/progs/zope/Zope-2.2.0-src/var/Z2.pid' the ownership of the complete directory is 'root' except "var" which is 'nobody'. any clues on why its

Re: [Zope] _ in a product

2000-10-05 Thread Toby Dickenson
On Thu, 05 Oct 2000 16:03:24 +0200, Pierre-Julien Grizel [EMAIL PROTECTED] wrote: Correcting my earlier post, I'd "simply" like to have a way to get the _ (namespace) variable in a product method. Currently, I use the following syntax : dtml-var "product.method (_, 'Hello, world !')" to pass _

[Zope] Newbie with little questions about Zope

2000-10-05 Thread Antonio Navarro Navarro
Hi All ! I am a newbie in the Zope world. I've benn working several years with IIS, Apache, Perl, ASP, PHP, etc.. in Windows and Unix environments, and want to try Zope, but have some questions about it. 1.- Can I made virtual hosts (www.domain1.com, www.domain2.com, and so on) using the Zope

Re: [Zope] IMAP and Zope!

2000-10-05 Thread Maik Roeder
Hi ! Joachim Werner wrote: Thanks for the input I got! Just a small wrap-up of what I learned: - The NotMail and old IMAP Adapter code don't seem to be seriously used by anybody - WorldPilot could be a solution, but it only if it was more modular. Ryan Hughes promised to

[Zope] redirect to user's folder not working

2000-10-05 Thread Erik Myllymaki
I am using this line in my index_html DTML method in the base root folder to redirect users to their proper folder so content can be specialized for each of them: dtml-call "RESPONSE.redirect(URL1 + '/' + AUTHENTICATED_USER)" I get an error: Error Type: TypeError Error Value: illegal argument

Re: [Zope] In a python method, I want to convert a XML string into a dictionary...

2000-10-05 Thread Philipp Auersperg
0. There is an XML parser in the python standard library (package xmllib, you find it in the python documentation), there also exist alternative xml parsers. 1. Take a look at www.xml-rpc.com, you find a lot of iternnformation there. 2. check out the xmlrpclib by Frederic Lundh (it

[Zope] Subtracting DateTimes?????

2000-10-05 Thread Daniel Rusch
We backup our database every night at 3:00 AM CT. 15 minutes prior to this (i.e. 2:45 AM) I would like to display a warning. How do I compare the current time dtml-var "(ZopeTime()).toZone('US/Central')" to 3:00 AM Central Time ? dtml-if "(ZopeTime()).toZone('US/Central') - 0.3" doesn't

[Zope] Problem with DTML-CALL

2000-10-05 Thread Tim Gildersleeve
Hi I am trying to get a DTML-CALL. to work, but am having a strange problem. The line is dtml-call "REQUEST.set('TOTALDEVIATION',fSTART)" I am trying to create a variable called TOTALDEVIATION and assign the value of fSTART (passed through the documents POST or GET value). If I

[Zope] re: redirect to user's folder not working

2000-10-05 Thread Erik Myllymaki
To answer my own question ;-)) dtml-call "RESPONSE.redirect(URL1+'/'+AUTHENTICATED_USER.getUserName())" -- Erik Myllymaki [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or

Re: [Zope] redirect to user's folder not working

2000-10-05 Thread Andy McKay
AUTHENTICATED_USER is not a string so need to cast it before doing the string operation: dtml-call "RESPONSE.redirect(URL1 + '/' + _.str(AUTHENTICATED_USER))" dtml-var AUTHENTICATED_USER effectively does the same thing, it calls the string representation of AUTHENTICATED_USER. - Original

Re: [Zope] Newbie with little questions about Zope

2000-10-05 Thread J. Atwood
From: Antonio Navarro Navarro [EMAIL PROTECTED] Date: Thu, 05 Oct 2000 16:35:37 +0200 To: [EMAIL PROTECTED] Subject: [Zope] Newbie with little questions about Zope Hi All ! I am a newbie in the Zope world. I've benn working several years with IIS, Apache, Perl, ASP, PHP, etc.. in

Re: [Zope] Site search with squishdot and own products

2000-10-05 Thread Andy McKay
One day with nothing better to do I wrote an external method to merge catalogs, but I got stuck on the simple problem that you still have to load the whole query into memory and realised it got very inefficient. In the end I decided it was easier to have one more catalog do everything. -

Re: [Zope] Detecting Roles not working

2000-10-05 Thread Tres Seaver
Kapil Thangavelu [EMAIL PROTECTED] wrote Jonathan Cheyne wrote: Hi all I have built the basis of a site with full, form-based webediting of objects. Coming round to cleanup time and I wanted to remove certain visible functions from the default object views unless you have already

RE: [Zope] status of SOAP for Zope?

2000-10-05 Thread Brian Lloyd
MS has released ROPE for client-side SOAP development (finally). I can't seem to find anything in Zope for doing SOAP, but it was announced in Dec 1999 as "upcoming". What is the status of SOAP on Zope, I need to know if I can use ROPE.. Hi Brad - SOAP is still something we want to

RE: [Zope] status of SOAP for Zope?

2000-10-05 Thread Brad Clements
Okay, has anything been done at all? Where would I start? What's left to do? Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements

Re: [Zope] Subtracting DateTimes?????

2000-10-05 Thread Ryan M. Dolensek
Try... dtml-if "(ZopeTime()).toZone('US/Central').h_24() == 2 and (ZopeTime()).toZone('US/Central').minute() = 45" dtml-commentTime to show backup warning!/dtml-comment /dtml-if Daniel Rusch wrote: We backup our database every night at 3:00 AM CT. 15 minutes prior to this (i.e. 2:45 AM) I

[Zope] LocalFS manage_addFolder solution?

2000-10-05 Thread jensebaer
Hi all, I want to create an LocalFS object. I use dtml-call "manage_addLocalFS('localfsfolder', 'title', '/home/zope')" but that doesn´t work. Simular to dtml-call "manage_addFolder('Folder', 'Tis is the title')"that works Error Type: NameErrorError Value: manage_addLocalFS

Re: [Zope] status of SOAP for Zope?

2000-10-05 Thread Michel Pelletier
Brian Lloyd wrote: MS has released ROPE for client-side SOAP development (finally). I can't seem to find anything in Zope for doing SOAP, but it was announced in Dec 1999 as "upcoming". What is the status of SOAP on Zope, I need to know if I can use ROPE.. Hi Brad - SOAP is

[Zope] improvement to ZEO/Zope how-to

2000-10-05 Thread Bill Welch
Thanks, kedai, for putting this together - it really helped. Now for an improvement - please note that custom_zodb.py needs to go in INSTANCE_HOME, which is not necessarily the same as the Zope installation directory. ___ Zope maillist - [EMAIL

[Zope] Container Class questions

2000-10-05 Thread geoff
A hopefully simple Zope question from a relative newbie: This is for a project desiged to demonstrate the power of Zopish content management to potential customer, and right now I'm trying to create a simple product with a few attributes and that can contain (or be associated with) an image.

[Zope] sudden ZClass breakage

2000-10-05 Thread Timothy Wilson
Hi everyone, I've been working away on a ZClass-based product that will provide a searchable job board for our Human Resources Dept. here at school. Things were going along fine until, it seemed, out of the blue I started getting an error message about an "Invalid Date-Time String" and a lengthy

Re: [Zope] status of SOAP for Zope?

2000-10-05 Thread Petru Paler
On Thu, Oct 05, 2000 at 01:25:44PM -0700, Michel Pelletier wrote: What is the status of SOAP on Zope, I need to know if I can use ROPE.. Hi Brad - SOAP is still something we want to do, but it is on hold right now (we just don't have the resources at the moment). I've been hoping