[Zope] Populating a :list variable from the results of a ZSQL method

2000-11-10 Thread Tony McDonald
Hi all, Say I've got a form with this in it select type="checkbox" name="options:list" option value="1"number 1 option value="2"number 2 option value="3"number 3 /select When this is put into an SQL database, the field 'options' is this (string) ['1', '2', '3'] or ['2', '3'] etc. When I get

Re: [Zope] still problems w/ SiteAccess 2.0.0b3

2000-11-10 Thread Mario Olimpio de Menezes
On Thu, 9 Nov 2000, The Doctor What wrote: 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). for some reason, the debian SiteAccess package didn't contains some files of the original SiteAccess tar

[Zope] direct login after signup?

2000-11-10 Thread Philipp Dunkel
Hi zopers, Is there a syntax to login a user in python? i use a python method to add a user to the acl_user folder. When this is done I want to log in the new user directly. Is that possible? TIA Philipp Dunkel

Re: [Zope] XML Document DTML's tree, HiperDOM

2000-11-10 Thread Chris Withers
Shane Hathaway wrote: 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

Re: [Zope] Populating a :list variable from the results of a ZSQL method

2000-11-10 Thread Chris Withers
Tony McDonald wrote: When this is put into an SQL database, the field 'options' is this (string) ['1', '2', '3'] or ['2', '3'] etc. So you're storing the sequence as a string of the type shown above... ...ow ;-) Might be best to change your SQL Schema so your store one row per option...

[Zope] Bulk Mailing How-To!

2000-11-10 Thread Stefan H. Holek
For those who care: I have created a bulk mailing How-To at http://www.zope.org/Members/shh/BulkMailHack/ Cheers, Stefan -- Things work better when plugged in ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope **

Re: [Zope] Populating a :list variable from the results of a ZSQL method

2000-11-10 Thread Geir Bækholt
don't know about inside zope, but in plain python you could just do: new_options = list(options) perhaps an external method would cut it: return list(inputstring) -- Geir Bækholt web-developer/designer [EMAIL PROTECTED] http://www.funcom.com on Friday, November 10, 2000 Tony McDonald

Re: [Zope] ZCatalog and random key error

2000-11-10 Thread Erik Enge
On Fri, 10 Nov 2000, Bak @ kedai wrote: also, will iterating through catalog index faster than iterating through ..say.. objectItems('meta-type')? Much faster. Much, much faster. I tried an objectValues() on 2000 items (in 3 different folder-type objects) and did various calculations on

Re: [Zope] Populating a :list variable from the results of a ZSQL method

2000-11-10 Thread Phil Harris
tone, How about (untested): where 'dboptions' is the string pulled from the DB, and 'options' is the list needed. dtml-call "REQUEST.set('options',[])" dtml-in "_.string.split(dboptions[1:-1],',')" dtml-call "options.append(_.int(_['sequence-item']))" /dtml-in This would then give you take

Re: [Zope] How do I set the Title property of a File object from aDTML method

2000-11-10 Thread Erik Enge
On 10 Nov 2000 [EMAIL PROTECTED] wrote: But I'm unable to set the Title property of a File object. Is it just the title property? All the others you can fiddle around with? Try manage_changeProperties() instead. I know (from lib/python/OFS/Image.py) that the File object has its own

Re: [Zope] Populating a :list variable from the results of a ZSQLmethod

2000-11-10 Thread Tony McDonald
On 10/11/00 10:52 am, "Phil Harris" [EMAIL PROTECTED] wrote: tone, How about (untested): where 'dboptions' is the string pulled from the DB, and 'options' is the list needed. dtml-call "REQUEST.set('options',[])" dtml-in "_.string.split(dboptions[1:-1],',')" dtml-call

Re: [Zope] Populating a :list variable from the results of a ZSQLmethod

2000-11-10 Thread Tony McDonald
On 10/11/00 10:45 am, "Geir Bækholt" [EMAIL PROTECTED] wrote: don't know about inside zope, but in plain python you could just do: new_options = list(options) Yup - trying to do it all in DTML though... perhaps an external method would cut it: return list(inputstring) The code

[Zope] Re: DateTime

2000-11-10 Thread Chris Withers
These aren't really hosting related so I'm moving this to the [EMAIL PROTECTED] list... Thiebaut CHAMPENIER wrote: The official home page for this module is http://starship.python.net/~lemburg/mxDateTime.html (not responding rigth now) IIRC, starship is down 'cos the Python team are moving

[Zope] RE: Zope digest, Vol 1 #1049 - 28 msgs

2000-11-10 Thread Harris Peter
Hi all I am strugging with accessing acl_users from DTML, and maybe someone here can tell me what I'm doing wrong. I am trying to make a page where users can change their own passwords. I have a DTML document with "Manager" proxy role. It is a form that lets the user enter "password" and

Re: [Zope] Re: DateTime

2000-11-10 Thread Jerome Alet
On Fri, 10 Nov 2000, Chris Withers wrote: mxDateTime is _not_ the DateTime in Zope. If only it was It's voting season, so I vote +10 for this one. bye, Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome Fac de Medecine de Nicehttp://wwwmed.unice.fr Tel: (+33) 4 93

Re: [Zope] Is data.fs corrupted?

2000-11-10 Thread Chris Withers
Chris McDonough wrote: I'm going to take a guess. It would appear AFAICT that the ZDiscussions product installed an object which it hung off the root object (the application object) when it was first imported. Don't rememebr seeing anything like this in ZDiscussions when I was looking

Re: [Zope] ZCatalog and random key error

2000-11-10 Thread Chris McDonough
You will still see random key errors until Chris Petrilli puts his ZCatalog fixes into the 2.2 branch (hopefully 2.2.3). - Original Message - From: "Bak @ kedai" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 09, 2000 11:56 PM Subject: [Zope] ZCatalog and random key

Re: [Zope] Is data.fs corrupted?

2000-11-10 Thread Chris McDonough
Maybe it's a Zope-level rather than ZODB level problem? Maybe some of the ZClass machinery or product registration machinery is screwing things up? This is possible. Maybe even likely. Given that people have reported this from more than one product now, I'd be inclined to think it's not

Re: [Zope] Is data.fs corrupted?

2000-11-10 Thread Chris Withers
Chris McDonough wrote: Given that people have reported this from more than one product now, I'd be inclined to think it's not random bits of bad code in products. Maybe there's a method/pattern which used to be okay/recommended which is now causing problems? Some of the product

Re: [Zope] Is data.fs corrupted?

2000-11-10 Thread Stefan H. Holek
On Fri, 10 Nov 2000, Chris Withers wrote: Chris McDonough wrote: I'm going to take a guess. It would appear AFAICT that the ZDiscussions product installed an object which it hung off the root object (the application object) when it was first imported. Don't rememebr seeing

Re: [Zope] Is data.fs corrupted?

2000-11-10 Thread Chris McDonough
FWIW, I can also report this problem with ZDiscussions. In my case it stemmed from not properly deleting the ZDiscussion product before moving my Data.fs from 2.1.6 to 2.2.1 (I think). The symptom then was beeing unable to create ZSQL Methods (!) because of a missing

Re: [Zope] XML Document DTML's tree, HiperDOM

2000-11-10 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: 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

[Zope] querying status in zsql

2000-11-10 Thread Paul Zwarts
Hi Zopers, I have a processing script that takes emails and puts them into a table. I bring up a table for confirmation and then submit the whole thing by a iterative item:records zsql method. My problem is that the table requires a unique primary key and quite regularly there duplicates. So

[Zope] DTML on Linux client

2000-11-10 Thread Stephan Goeldi
I checked my website www.goeldi.com with a SuSE Linux 7 client (Netscape) and discovered, that not all DTML is done right. My index_html file has: dtml-var standard_html_header Welcome to our website. dtml-var actual dtml-var standard_html_footer The header and footer are displayed

Re: [Zope] Is data.fs corrupted?

2000-11-10 Thread Chris Withers
Chris McDonough wrote: FWIW, I can also report this problem with ZDiscussions. In my case it stemmed from not properly deleting the ZDiscussion product before moving my Data.fs from 2.1.6 to 2.2.1 (I think). The symptom then was beeing unable to create ZSQL Methods (!) because of a

Re: [Zope] Is data.fs corrupted?

2000-11-10 Thread Stefan H. Holek
On Fri, 10 Nov 2000, Chris McDonough wrote: FWIW, I can also report this problem with ZDiscussions. In my case it stemmed from not properly deleting the ZDiscussion product before moving my Data.fs from 2.1.6 to 2.2.1 (I think). The symptom then was beeing unable to create ZSQL Methods

Re: [Zope] XML Document DTML's tree, HiperDOM

2000-11-10 Thread Chris Withers
Shane Hathaway wrote: The answer to these questions and more can be found at dev.zope.org. The fishbowl keeps better track of projects than any human. The tempation to say "and the fishbowl confuses more humans than any project can keep track of" was to great ;-) It's not actually true, I

RE: [Zope] XML Document DTML's tree, HiperDOM

2000-11-10 Thread Brian Lloyd
The answer to these questions and more can be found at dev.zope.org. The fishbowl keeps better track of projects than any human. The tempation to say "and the fishbowl confuses more humans than any project can keep track of" was to great ;-) It's not actually true, I guess, except for

[Zope] why DTML confusing

2000-11-10 Thread Irene Barg
Hello All, I do read HOW-TO's, User-Guides, etc., but I think DTML must be made simpler, or better documentation, or more examples. As an example, within an dtml-in loop: 1. You can print the values of sequence-items with: (index=dtml-var sequence-index, number=dtml-var

Re: [Zope] DTML on Linux client

2000-11-10 Thread Phil Harris
My take is that it's a client issue. Since you explicity mention that your using a Linux client, I'd assume you've tried a windows client? If so was it Ie/Netscape/Opera etc. IE and Netscape in particular play by their own rules and render things differently. Maybe your html is causing one of

[Zope] Generating text/csv from DTML method, Mime Type?

2000-11-10 Thread Brad Clements
I'm create a CSV file that I would like browsers to get the "save as" dialog when they select it. I'm using RESPONSE.write() to write out the CSV file, and I set the Content-Type before calling RESPONSE.write Netscape seems to work ok, it pops up a save box for "text/csv" and

Re: [Zope] XML-RPC

2000-11-10 Thread Steve Spicklemire
Hi Jason, I've been working with Flash some lately as well.. with an eye toward useful vector graphics for Zope. There is a library called ming (http://www.opaque.net/ming) with a (SWIG'ed) python extension that I've been slowing working through, adding wrapping fuctions and getting to the

Re: [Zope] DTML on Linux client

2000-11-10 Thread Stephan Goeldi
Sorry, in fact this was a 'cache-problem'. I always have to hit the 'reload' button to get the right content. In Windows the old content was shown, in Linux the actual (because I did not browse before on this page). In the management screens too I always must hit reload after a change of the

[Zope] DataSkin Supplier?

2000-11-10 Thread Chris Withers
Hello... Okay, I'm still staring up at the ZPatterns learning cliff as I write this so forgive my ignorance. I'm looking at ZPatterns WRT to 'dynamically generated dataskins'. You what? Well, okay, I'll try and explain... Firstly, I'm assuming that DataSkins (or their subclasses?) are

Re: [Zope] Generating text/csv from DTML method, Mime Type?

2000-11-10 Thread Oliver Bleutgen
I'm create a CSV file that I would like browsers to get the "save as" dialog when they select it. I'm using RESPONSE.write() to write out the CSV file, and I set the Content-Type before calling RESPONSE.write Netscape seems to work ok, it pops up a save box for "text/csv" and

Re: [Zope] querying status in zsql

2000-11-10 Thread Rik Hoekstra
I have a processing script that takes emails and puts them into a table. I bring up a table for confirmation and then submit the whole thing by a iterative item:records zsql method. My problem is that the table requires a unique primary key and quite regularly there duplicates. So ofcourse

Re: [Zope] Is data.fs corrupted?

2000-11-10 Thread Simon Michael
Thanks for the informative thread. FWIW, I see this problem too. It's preventing me from importing various PTK Membership .zexp's. -Simon ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] why DTML confusing

2000-11-10 Thread peter bengtson
It's a give-and-take I think. I had the same confusion as you have right now, but after a while you learn this syntax pretty well. This is the same as with all syntax, and as soon as you have learned the basics the rest is easy and from then on a matter of learning how to use extensive functions

Re: [Zope] why DTML confusing

2000-11-10 Thread Simon Michael
Irene Barg [EMAIL PROTECTED] writes: 1. You can print the values of sequence-items with: (index=dtml-var sequence-index, number=dtml-var sequence-number, item=dtml-var sequence-item) 2. To test for equality, this does not: dtml-if "sequence-index == 0"

Re: [Zope] why DTML confusing

2000-11-10 Thread The Doctor What
* peter bengtson ([EMAIL PROTECTED]) [001110 10:40]: It's a give-and-take I think. I had the same confusion as you have right now, but after a while you learn this syntax pretty well. This is the same as with all syntax, and as soon as you have learned the basics the rest is easy and from

Re: [Zope] querying status in zsql

2000-11-10 Thread Paul Zwarts
Thanks for that... Although Im not terribly sure what the magic behind the sequence-start is, but it works very well. Cheers, -- Paz Oratrix Development BV http://www.oratrix.com GRiNS SMIL Editor - Rik Hoekstra wrote: I have a processing script that takes emails and puts them into a

RE: [Zope] why DTML confusing

2000-11-10 Thread Steve Drees
It might be that fixing one or both of the above would reduce the DTML pain factor quite a bit. Certainly, it's time to do whatever it takes to banish these "-"-named variables, IMHO. Agreed. But DC always raises objections when this is brought up.

[Zope] Dr.Watson on NT

2000-11-10 Thread Júlio Dinis Silva
Hi all, Is there a NT guru in the house :-) Zope 222 Sometimes Zserver goes Zombie, I login on the machine and I see a DrWatson Window. I close DrWatson window and the process automagically restarts, and everything ok. Whenever this happens two logs are written in EventLogger: -one is a

[Zope] ZClass

2000-11-10 Thread kosh
From inside what object should I inherit from to get a history option for a zclass or what method would I need to write. I have looked at lots of examples of zclasses and so far none of them have a history tab. I am working with the STX_Document type and made a new zclass based on that which

RE: [Zope] Generating text/csv from DTML method, Mime Type?

2000-11-10 Thread Farrell, Troy
I know this sounds silly, but try making the url end with .csv I wrote a perl cgi script some time ago that spit out a csv file. When it ended with .csv, IE seemed to ignore the server's Content-type: text/html header. http://finance.yahoo.com/q?s=WCGd=v1 Look, my stock is falling! Actually,

Re: [Zope] why DTML confusing

2000-11-10 Thread Andy McKay
It might be that fixing one or both of the above would reduce the DTML pain factor quite a bit. Certainly, it's time to do whatever it takes to banish these "-"-named variables, IMHO. I agree, changing the "-" to "_" would remove a whole ton of posts on this list and mean I could chop a

[Zope] restarting zope.org

2000-11-10 Thread ethan mindlace fremen
we'll be back after these messages. ~ethan ___ 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

[Zope] Can Zope use a Different Python?

2000-11-10 Thread Gary Perez
Hi. We've got Zope 2.2.2 installed on a Linux box. We want to be able to use the full-up python that's on the box instead of the python interpreter that comes with Zope for playing with External Methods. Is there any way to circumvent Zope's python in this way? If not, what's the easiest way

RE: [Zope] Generating text/csv from DTML method, Mime Type?

2000-11-10 Thread Oliver Bleutgen
I know this sounds silly, but try making the url end with .csv I wrote a perl cgi script some time ago that spit out a csv file. When it ended with .csv, IE seemed to ignore the server's Content-type: text/html header. http://finance.yahoo.com/q?s=WCGd=v1 Look, my stock is falling!

RE: [Zope] why DTML confusing

2000-11-10 Thread Max M
From: Andy McKay It might be that fixing one or both of the above would reduce the DTML pain factor quite a bit. Certainly, it's time to do whatever it takes to banish these "-"-named variables, IMHO. I agree, changing the "-" to "_" would remove a whole ton of posts on this list and mean I

[Zope] bad expression evaluation

2000-11-10 Thread seb bacon
I'm trying to compare two page titles, using this code: dtml-call "REQUEST.set('my_title',get_page_title)" dtml-in "PARENTS[1].objectValues(['Folder'])" dtml-my_title; : dtml-get_page_title dtml-if "my_title!=get_page_title" dtml-var title_or_id /dtml-if /dtml-in Now I can see on

RE: [Zope] Generating text/csv from DTML method, Mime Type?

2000-11-10 Thread Stefan H. Holek
On Fri, 10 Nov 2000, Farrell, Troy wrote: I know this sounds silly, but try making the url end with .csv I wrote a perl cgi script some time ago that spit out a csv file. When it ended with .csv, IE seemed to ignore the server's Content-type: text/html header. Not silly! I have also seen

Re: [Zope] Can Zope use a Different Python?

2000-11-10 Thread Stefan H. Holek
On Fri, 10 Nov 2000, Gary Perez wrote: We've got Zope 2.2.2 installed on a Linux box. We want to be able to use the full-up python that's on the box instead of the python interpreter that comes with Zope for playing with External Methods. Is there any way to circumvent Zope's python in this

RE: [Zope] Generating text/csv from DTML method, Mime Type?

2000-11-10 Thread Farrell, Troy
I telneted into the link I gave below and here is the RESPONSE: HTTP/1.0 200 OK Date: Fri, 10 Nov 2000 19:26:52 GMT Cache-Control: private Connection: close Content-Type: application/octet-stream Set-Cookie: B=48be9l0t0oivtb=2; expires=Thu, 15 Apr 2010 20:00:00 GMT; path=/; domain=.yahoo.com

RE: [Zope] Generating text/csv from DTML method, Mime Type?

2000-11-10 Thread Eric Walstad
Here's some DTML I use to generate a CSV file on the fly using data returned from a query of a MySQL database: dtml-call "RESPONSE.setHeader('Content-Type', 'application/x-csv')"dtml-in qryAllDB dtml-if sequence-start FirstName,MiddleName,LastName,Address,City,State,Zip,Phone,Fax,Email,URL,Bir

Re: [Zope] why DTML confusing

2000-11-10 Thread Morten W. Petersen
[Max M.] | For once I will send a "me too" to the list. "sequence-item" is a simple and | plain design error. Decapricate it and and let us use "sequence_item" etc. | together with the other for a while and then drop the old form. I'd like to join this mob. ;) It's painful and ugly to use

[Zope] ZClasses inheriting property(sheets) : yes/no?

2000-11-10 Thread Aaron Straup Cope
Hi, If I create a ZClass that inherits another ZClass, do I also inherit the latter's properties/propertysheet? From what I've read so far, I thought the answer was yes but I can't seem to figure out how to *get* at them. I created a ZClass called "Foo" that inherits a ZClass named "Meta". Meta

Re: [Zope] querying status in zsql

2000-11-10 Thread Rik Hoekstra
Thanks for that... Although Im not terribly sure what the magic behind the sequence-start is, but it works very well. A short explanation: sql queries return a result object (so does ZCatalog btw), which you can't address directly in DTML (or at least I wouldn't know how ;-) If it the

[Zope] bookmark importer

2000-11-10 Thread Philipp Dunkel
Hello guys I' have here a pyton file that allows you to import your bookmarks from IE. The following prob is that it works on windows98 zope 2.2.2 and not on a unix system. The file temp.txt stays empty and you get the message 'unable to export favourites' anyone any idea? def

Re: [Zope] why DTML confusing

2000-11-10 Thread Charlie Wilkinson
First Simon, thanks for your message. Yours is one of the most articulate explanations I've seen on this topic. Simon Michael [EMAIL PROTECTED] writes: Irene Barg [EMAIL PROTECTED] writes: [examples of DMTL confusion...] It is confusing. There are two systems of syntax in use here - DTML's

Re: [Zope] ZClasses inheriting property(sheets) : yes/no?

2000-11-10 Thread Jim Washington
Hi, Aaron Yes. If your parent ZClass is constructed properly, you should be able to add the parent class's management tabs by setting a "view". On the "Views" tab, look in the Method list for propertysheets/[ParentClassPropertySheetName]/manage. The properties on that sheet are accessible just

[Zope] why DTML confusing

2000-11-10 Thread Spicklemire, Jerry
Irene says: I get so frustrated with DTML, I want to scream. Please don't tell me to buy the Zope book, DTML should be more intuitive. DTML maybe the heart of Zope, but it's also it's achilles heel. You're right about the confusion, frustration, nor are you alone. Still, DTML isn't

[Zope] Status of HiperDom (Re: XML Document DTML's tree, HiperDOM)

2000-11-10 Thread Lalo Martins
On Fri, Nov 10, 2000 at 10:28:44AM +, Chris Withers wrote: Oh yeah, while I'm here, how's the HiperDOM project getting on? That stuff would be raally useful for a project here... HiperDom is usable right now; we've been quite quiet because we're working on documentation and unit

RE: [zope] sudden ZClass breakage

2000-11-10 Thread James Sintz
Only seen a couple of posts on this and the suggested fixes did NOT work. My ZClass was working fine until I added a new string type property and now my date type property seems broken. At least broken when I attempt creating an instance via my custom add form. If I add an instance via the

Re: [Zope] bookmark importer

2000-11-10 Thread zope
"Philipp Dunkel" [EMAIL PROTECTED] writes: Hello guys I' have here a pyton file that allows you to import your bookmarks from IE. The following prob is that it works on windows98 zope 2.2.2 and not on a unix system. The file temp.txt stays empty and you get the message 'unable to export

Re: [Zope] ZClasses inheriting property(sheets) : yes/no?

2000-11-10 Thread Aaron Straup Cope
Thanks! I have a new question that may (?) be the same old one in a different form: The idea is to have two ZClasses, say Foo and Bar. Bar is a nested class of Foo. The Foo object should be able create n instances of the Bar objects and the Bar object should also be able to create n instances

Re: [Zope] why DTML confusing

2000-11-10 Thread Simon Michael
Charlie Wilkinson [EMAIL PROTECTED] writes: ...or "the python world with some Zope limitations placed on it." ... There's a third world of course, HTML. Most of us probably have that True, true. Actually this sounds like a good structure for a overview doc: "Welcome to Zope.. in which we

[Zope] Are there any man pages out there for these functions?

2000-11-10 Thread jvoth
Howdy Folks, I'm looking for man pages on these dtml functions? I'm finding it terribly difficult and frustration to figure out how to properly program in dtml since I can't do a man on a funtion (ie:man objectValues) and read about what parameters the function is expection from me. I'd

Re: [Zope] Are there any man pages out there for these functions?

2000-11-10 Thread Michel Pelletier
[EMAIL PROTECTED] wrote: Howdy Folks, I'm looking for man pages on these dtml functions? I'm finding it terribly difficult and frustration to figure out how to properly program in dtml since I can't do a man on a funtion (ie:man objectValues) and read about what parameters the function

Re: [Zope] Are there any man pages out there for these functions?

2000-11-10 Thread Phil Harris
John, Have you tried http://zdp.zope.org , in particular the Zope Quick Reference. Every Zope user/developer should use it as their bible. hth Phil [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 11, 2000 12:11 AM Subject:

Re: [Zope] logging for virtual hosts

2000-11-10 Thread zope
Well, I tried the source hacking approach and seem to have found success with relatively little pain. In ZServer/medusa/http_server.py, the "log" method of the class "http_request" can be modified to report the request hostname which is readily available via the get_header method in the same

Re: [Zope] How do I set the Title property of a File object from a DTML method

2000-11-10 Thread magnus
[me] | But I'm unable to set the Title property of a File object. [Erik] | Is it just the title property? All the others you can fiddle around | with? Try manage_changeProperties() instead. I know (from | lib/python/OFS/Image.py) that the File object has its own | manage_edit() method,

Re: [Zope-dev] Observable Interface?

2000-11-10 Thread Chris Withers
Tres Seaver wrote: Chris Withers [EMAIL PROTECTED] asked: Does anyone know what happened to it and how far its implementation got? The preliminary implementaion, DefaultObservabale, landed as a mix-in class in Zope 2.2: $ZOPE_HOME/lib/python/OFS/DefaultObservable.py Mix it in

Re: [Zope-dev] Re: Discussion Story Building Mediums

2000-11-10 Thread Chris Withers
Michael Bernstein wrote: After some more thought, I realized that this really needs to be a three-way gateway betrween a mailing list, a 'blog, and a newsgroup. I'm all up for doing the mailing list/weblog type bits but I have no idea how news _works_ and how it could be integrated into the

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

2000-11-10 Thread Chris Withers
Okay, apologies in advance for picking up a thread that's been dorman for so long ;-) Jim Fulton wrote: Chris Withers wrote: self.id = id self.title = 'Title!' self.anInt = 0 self.aString = 'testing' None of the values above can have a __roles__

Re: [Zope-dev] Observable Interface?

2000-11-10 Thread Tres Seaver
On Fri, 10 Nov 2000, Chris Withers wrote: Tres Seaver wrote: Chris Withers [EMAIL PROTECTED] asked: Does anyone know what happened to it and how far its implementation got? The preliminary implementaion, DefaultObservabale, landed as a mix-in class in Zope 2.2:

Re: [Zope-dev] Observable Interface?

2000-11-10 Thread Chris Withers
Tres Seaver wrote: The docs are in the interfaces wiki: http://www.zope.org/Members/michel/Interfaces/ObserverAndNotification (Note that this actually predates the fishbowl process -- this has been in Zope for a lng time). Actually at:

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

2000-11-10 Thread Jim Fulton
Chris Withers wrote: Okay, apologies in advance for picking up a thread that's been dorman for so long ;-) Jim Fulton wrote: Chris Withers wrote: self.id = id self.title = 'Title!' self.anInt = 0 self.aString = 'testing' None of the

[Zope-dev] Exceptions

2000-11-10 Thread seb bacon
I was just building in some error handling into some UI code, and wanted to catch errors relating to duplicate ids. The problem is that just about every client-side error raises the same kind of Exception, a 'Bad Request'. A quick grep counted 41 different types of 'Bad Request' in my Zope

Re: [Zope-dev] Exceptions

2000-11-10 Thread Chris Withers
Oh if only!!! I love this idea, and comments haev coem from DC along those same lines, btu nothing ever really happened about it... cheers, Chris seb bacon wrote: I was just building in some error handling into some UI code, and wanted to catch errors relating to duplicate ids. The

Re: [Zope-dev] Fw: 2gb file size

2000-11-10 Thread Shane Hathaway
Itamar Shtull-Trauring wrote: Shane Hathaway wrote: Not long ago I created a wrapper around File objects which automatically splits the file before it reached a predefined limit. It could handle any number of partitioned file segements. Yes please! Perhaps it could be integrated

RE: [Zope-dev] Exceptions

2000-11-10 Thread Brian Lloyd
snip good idea about exception hierarchies Oh if only!!! I love this idea, and comments haev coem from DC along those same lines, btu nothing ever really happened about it... If there are people willing to work on this, then a proposal would be most welcome...

[Zope-dev] RFC : ZPatterns Customer Relationship Management Framework

2000-11-10 Thread Roch'e Compaan
Thanks a lot for all the guidance on ZPatterns so far. Our company is building a Customer Relationship Management system using ZOPE and ZPatterns. We have a object model and basic Dataskins and Specialists in place. At this point we thought it a good idea to share the object model with the Zope

[Zope-dev] ZODB, Threads and Persistence

2000-11-10 Thread Magnus Heino (Rivermen)
Hi. Reading from Jims 'Introduction to the Zope Database': "An object's state may be freed at any time by the ZODB to conserve memory usage." What does this mean? That the object can be freed even though there are references to it? The reason I'm asking is becase I want to use threads and

Re: [Zope-dev] Best way to start on ZPatterns ?

2000-11-10 Thread Steve Spicklemire
Hi Nigel, Yes.. the example still works. I am working on an update that incorporates some of the suggestions folks have made and better illustrates some ZPatterns concepts. Basically the example is *too* simple, and it doesn't separate PD, and UI issues very well.. -steve "Nigel" ==

[Zope-dev] [Fwd: [Zope] DataSkin Supplier?]

2000-11-10 Thread Chris Withers
Erk... meant this for zope-dev :-S Chris Withers wrote: Hello... Okay, I'm still staring up at the ZPatterns learning cliff as I write this so forgive my ignorance. I'm looking at ZPatterns WRT to 'dynamically generated dataskins'. You what? Well, okay, I'll try and explain...

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

2000-11-10 Thread Steve Alexander
Jim Fulton wrote: Strings; fine, at least they're secure, and when they become proper objects in Python 2.0, the problem should go away? Will Python 2.0 let you assign string attributes? % python Python 2.0 (#3, Oct 26 2000, 15:07:09) [GCC 2.95.2 19991024 (release)] on sunos5 Type

Re: [Zope-dev] Observable Interface?

2000-11-10 Thread Tres Seaver
On Fri, 10 Nov 2000, Chris Withers wrote: Does this mean all of the classes in the diagram at that URL have been implemented? How come the Catalog doesn't use it so CatalogAware (bleugh!) isn't needed anymore? Heh, because we would have to make far-reaching changes (essentially, add an

Re: [Zope-dev] ZODB, Threads and Persistence

2000-11-10 Thread Chris McDonough
AFAIK, you should be able to spawn a new thread from within any function within Zope and manipulate stuff in the ZODB as long as you lock properly. The number of database connections is fixed, but arbitrary threads can take up a database connection on an ad-hoc basis. If I were you, I'd mess

[Zope-dev] Re: question re problem adding zwiki webs

2000-11-10 Thread Simon Michael
Re this error when adding a zwiki web: Error Type: KeyError Error Value: H?v`H?v$y_?-006412673360557 Content-Disposition: form-data; name="wiki_type" basic Tony McDonald [EMAIL PROTECTED] writes: It is a Mac actually. IE 5.0. I've just asked a colleague to try

Re: [Zope-dev] DTML processing variable

2000-11-10 Thread Paul Erickson
If this is your exact code, it looks like you should be using "sequence-item", instead of "sequence_item". You should also be able to do it without the external method like this: (100% untested) dtml-in expr="_.string.split(acctUsersEmail)" dtml-var name="sequence-item" /dtml-in "David W.

Re: [Zope-dev] ZODB, Threads and Persistence

2000-11-10 Thread Magnus Heino
AFAIK, you should be able to spawn a new thread from within any function within Zope and manipulate stuff in the ZODB as long as you lock properly. I guess I wasn't clear enough, but my application isnt within zope, im just using zodb and some more components out of it. Specifically, an

Re: [Zope-dev] ZODB, Threads and Persistence

2000-11-10 Thread Chris McDonough
But I guess this still will be the same anyway. That is, if an object inhereted from Persistence.Persistance spawns a thread that manipulated data in the object, I will have no problems. The thread will be running just fine, and the data will be stored in the zodb. This is how I've

[Zope-dev] Security/Acquisition Bug? (take two)

2000-11-10 Thread Charlie Wilkinson
I had posted about this previously, but no one has tackled this one, it seems to be a pretty serious issue, plus I've done a *lot* of poking around and learned a few things since I first reported it. What I have *not* found (or been told) is that the below described behavior is normal. First a

[Zope-dev] PythonMethods: Can't Slice context.REQUEST.PARENTS

2000-11-10 Thread The Doctor What
I cannot slice context.REQUEST.PARENTS The reason I want to do this is to travel up the URL tree for a breadcrumb navigation do-hicky. I want to slice it so I can make a copy because if I just do ...reverse() on it, I screw up everything afterwards. It says I'm unauthorized (Guarded.py