Re: [Zope-dev] Re: [Zope] Container Class questions

2000-10-09 Thread Robin Becker
In article [EMAIL PROTECTED], Kapil Thangavelu [EMAIL PROTECTED] writes ... One of the things I wanted to do was to add a multiple selection property to the default properties in the Thing_add method. In order to do this in multiple zclasses I wanted to have a product wide

[Zope-dev] MailHost Improvements

2000-10-09 Thread Kapil Thangavelu
There has been intermittent talk of improving mailhost's ability to scale. i just wanted to solicit some comments to some ideas for improving mail host performance. Stage I. Persistent Socket 1. make the smtp connection persistent 2. preface sending mail with a 'noop' operation to verify

[Zope-dev] ZPublisher.Client

2000-10-09 Thread Andrew Edmondson
I used to use Client.py quite a lot for calling zope objects through the web from python. However, now that I've upgraded to Zope 2.x it fails. (Zope 2.2 ZPublisher, connecting to Zope 2.1.2) Traceback (innermost last): File "/u/g/aedmondson/backups/pack_db.py", line 22, in ? pack()

[Zope-dev] build Zope on linux

2000-10-09 Thread Sin Hang Kin
When building current zope cvs, cPickle.c want the mymath.h. Where can I get mymath? What devel package I should install for a debian system? Rgs, Kent Sin - kentsin.weblogs.com kentsin.imeme.net ___ Zope-Dev

Re: [Zope-dev] build Zope on linux

2000-10-09 Thread Gregor Hoffleit
On Mon, Oct 09, 2000 at 10:00:52PM +0800, Sin Hang Kin wrote: When building current zope cvs, cPickle.c want the mymath.h. Where can I get mymath? What devel package I should install for a debian system? To compile binary Python extensions with Debian (as Zope needs), you need the python-dev

Re: [Zope-dev] basci properties

2000-10-09 Thread Robin Becker
In message [EMAIL PROTECTED], Paul Erickson [EMAIL PROTECTED] writes Well I was trying to get a self contained class initialisation using a bit of python I had defined a propertsheet called ClassConstants containing a tokens property with "A B C" in my extern method initialiser I was doing

[Zope-dev] Strange permissions in the (built-in) API reference

2000-10-09 Thread Dieter Maurer
I have just thouroughly looked through the API reference which is built in Zope 2.2.2. I found many strange permission statements, e.g.: * all methods of "PropertySheets" can only be used from Python * while "PropertySheet.propertyItems" can be used with permission "Access Contents

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

2000-10-09 Thread Itai Tavor
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

[Zope] Anonymous logins

2000-10-09 Thread Mark Twiddy
Hi all How can i restrict Anonymous logins to a domain. Thanks Mark ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] security quickie

2000-10-09 Thread Seb Bacon
Does Zope security provide a way of restricting what objects are listed to an authenticated user inside the Zope 'manage' interface? I'm getting my head all twisted up over this security / proxy roles /local roles lark. Thanks, seb ___ Zope maillist

RE: [Zope] overriding __str__ method?

2000-10-09 Thread Seb Bacon
Thanks for the reply, Either I don't understand the problem or you're making it too complicated. g I think both, but mostly the latter ;) Explanation MK II: I know how to create a form that does what I want (update properties, whatever). What I don't know is how to include it as part of

Re: [Zope] status of SOAP for Zope?

2000-10-09 Thread Toby Dickenson
On Fri, 6 Oct 2000 11:20:38 -0400, "Brian Lloyd" [EMAIL PROTECTED] wrote: This is a very important point - I think people would rather be able to implement SOAP services selectively rather than by One Big Switch that may expose just about anything. I would very much like to see a project

[Zope] CatalogReindex deletes !!!

2000-10-09 Thread Anders Holmbech Nielsen
Hi, I just got a weird "error" this morning. I have a ZCatalog with some ZClasses which is index in it. But when I use the "Update Catalog" function it deletes ALL entries in the catalog !!! Any ideas ?? No errors returned. Just Nothing. Using Zope 2.2.2 on Linux. I have restarted and

Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-09 Thread Toby Dickenson
On Sat, 07 Oct 2000 01:57:40 +0200, "Ansgar W. Konermann" [EMAIL PROTECTED] wrote: Definitely, yea! I would really be interested in its correct results. We have been stress testing our Zope application on NT and Linux. Our conclusion is that OS is not a factor in Zope performance. Toby

[Zope] Access Control vs Publishing Protocol

2000-10-09 Thread Chris Withers
Toby Dickenson wrote: Those people were concerned that too many things were exposed via ZPublisher also My interpretation was that the issue is one of access control, not publishing protocol. I think the issue is that you can't limit the visibility of objects right now. You can limit

Re: [Zope] CatalogReindex deletes !!!

2000-10-09 Thread Marc Breitenreicher
You're not the only one. My catalog does the same strange things. I got the same Zope version. Perhaps a bug in ZCatalog. Anders Holmbech Nielsen wrote: Hi, I just got a weird "error" this morning. I have a ZCatalog with some ZClasses which is index in it. But when I use the "Update

Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-09 Thread knight
On Sat, 07 Oct 2000 01:57:40 +0200, "Ansgar W. Konermann" [EMAIL PROTECTED] wrote: Definitely, yea! I would really be interested in its correct results. We have been stress testing our Zope application on NT and Linux. Our conclusion is that OS is not a factor in Zope performance.

RE: [Zope] overriding __str__ method?

2000-10-09 Thread Peter Sabaini
so if i'm not mistaken you want to be able to include an object instance with say dtml-var myinstance and, depending on the user being authenticated, have that object render with "edit this" button or without? overriding the __str__ method can afaik only be done inside a python product (read

[Zope] input type=checkbox name not pushed to zsql method namespace

2000-10-09 Thread Beuserie Frédéric (stbrice dsi)
hi, it seems to me that the variable name corresponding to a checkbox into a form is not pushed to the namespace of the SQL query when it's not checked. if it's checked, it works fine. the error reported is related to the argument list entry corresponding to the name of the checkbox into the

[Zope] cookies don't obey me

2000-10-09 Thread Roland Reumerman
I've been experiencing two problems with cookies from Zope: 1) When I set a cookie with the path set to the root dtml-call "RESPONSE.setCookie('account',AUTHENTICATED_USER,path='/')" I'm still not able to click through to another hyperlink once I'm logged in, i.e., I've used

Re: [Zope] input type=checkbox name not pushed to zsql method namespace

2000-10-09 Thread Francisco José Esteban Risueño
this is the standard behaviour in a HTML form. To avoid this problem we include an line like this: dtml-if "REQUEST.has_key('CheckBox_name')" dtml-else dtml-call "REQUEST.set('CheckBox_name', 'N')" /dtml-if in the method that receives the form data. Hope this help

Re: [Zope] Animated GIFs

2000-10-09 Thread Lars Heber
Peter Bengtsson schrieb: [Just checking.] Have you tried to acctually _use_ the animated gif in context with other HTML? I have experienced problem some single time with images (can't remember what the problem/image was) viewed directly from the View management tab. Excuse the childish

Re: [Zope] Animated GIFs

2000-10-09 Thread Lars Heber
Sorry, forgot the html quoting in my last posting... Should work now. Peter Bengtsson schrieb: [Just checking.] Have you tried to acctually _use_ the animated gif in context with other HTML? I have experienced problem some single time with images (can't remember what the problem/image was)

Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-09 Thread Toby Dickenson
We have been stress testing our Zope application on NT and Linux. Our conclusion is that OS is not a factor in Zope performance. Can we see some profiling data from that to support your statement? Its all application-specific, and theres nothing I can release at the moment. Essentially the

[Zope] Displaying zope content on other websites using XML

2000-10-09 Thread blueeye
Hi, Can we display zope content on other web sites via xml or some kind of a script? What I had in mind was something on the lines of moreover news (www.moreover.com) that syndicates its content to other web sites. I'd appreciate any help. Thanks.

RE: [Zope] Animated GIFs

2000-10-09 Thread Seb Bacon
I also tried to name the animGif explicitely animGif.gif instead of animGif - guessed what? - same problem! Any more ideas, please? have you tried doing a diff on the zope and non-zope versions to see if zzope's somehow mangled it? seb ___

[Zope] Re: [Zope-dev] build Zope on linux

2000-10-09 Thread Jim Washington
Hi, Kent Sin dpkg -S tells you what package contains a file: jwashin@vpave5:/$ dpkg -S mymath.h python-dev: /usr/include/python1.5/mymath.h So, it would appear the python-dev package is the one you need. -- Jim Washington Sin Hang Kin wrote: When building current zope cvs, cPickle.c want

Re: [Zope] Animated GIFs

2000-10-09 Thread Lars Heber
Seb Bacon schrieb: I also tried to name the animGif explicitely animGif.gif instead of animGif - guessed what? - same problem! Any more ideas, please? have you tried doing a diff on the zope and non-zope versions to see if zzope's somehow mangled it? seb Yes, I did. They were

Re: [Zope] Access Control vs Publishing Protocol

2000-10-09 Thread Michael Bernstein
Chris Withers wrote: Toby Dickenson wrote: Those people were concerned that too many things were exposed via ZPublisher also My interpretation was that the issue is one of access control, not publishing protocol. I think the issue is that you can't limit the visibility of objects

RE: [Zope] Animated GIFs

2000-10-09 Thread Seb Bacon
right-clicking the image in question and "save image as..." should give you the precise data that zope's storing internally - that's what you did, right? it seems very unlikely to me that zope does mangle images though. and doubly unlikely that it unmangles them again just for your diff. is it

RE: [Zope] Access Control vs Publishing Protocol

2000-10-09 Thread Toby Dickenson
It seems like this can be handled rather well by simply adding a 'XML-RPC access', a 'SOAP access' and a 'WebDAV access' set of permissions. we already have a 'FTP access' permission which works fine. Not quite. That permission controls several methods that are particularly useful for

Re: [Zope] Displaying zope content on other websites using XML

2000-10-09 Thread Danny William Adair
Hi "[EMAIL PROTECTED]"! Have you taken a look at a) Amos Latteier's "RSS Channel" product: http://www.zope.org/Members/Amos/RSSChannel.tgz (and his article on xml.com http://www.xml.com/pub/2000/02/23/zope/index.html) (the product is based on Amos's "XMLDocument product":

Re: [Zope] 'Offline' mailhost

2000-10-09 Thread Jan H. Haul
Michael Bernstein wrote: "Jan H. Haul" wrote: Each of these will be around 42 KByte large. Huh? Why that? you ask. Because in the header of each mail, the whole recipient list will be listed under To: or Cc: [snip] - privacy: You would not like to have "your" recipients end up

Re: [Zope] DTML Method not working

2000-10-09 Thread complaw
Is the code you used in a DTML Method or a DTML Document? I had it in a DTML Method. It was in the standard public interface index_html that is a DTML method. Is it in a DTML Method being called from a DTML Document? No, the standard_html_header calls the method. Actually, I just copied

Re: [Zope] DTML Method not working (Please disregard, I figured it out)

2000-10-09 Thread complaw
Is the code you used in a DTML Method or a DTML Document? I figured out (later) that it was indeed the DTML Method/Document issue on the latter part of my question. Please disregard my last mesage. Thanks for your help. Ron ./. ___ Zope

[Zope] Fw: Re: [Zope] Animated GIFs

2000-10-09 Thread Oliver Bleutgen
Seb Bacon schrieb: I also tried to name the animGif explicitely animGif.gif instead of animGif - guessed what? - same problem! Any more ideas, please? have you tried doing a diff on the zope and non-zope versions to see if zzope's somehow mangled it? seb Yes, I did. They were

[Zope] tell-a-friend product?

2000-10-09 Thread sean
Hi, I am still new to zope and am wondering if there is a tell-a-friend script/product/example floating around for me to look at? If not, and I made my own form with Zope (which I have not done yet), what variable would call the existing page the user was on ? Thanks in advance. --Sean

[Zope] dtml-tree advice, please

2000-10-09 Thread Brian Withun
Consider the following situation: - I have two ZClasses. One ("Album") is folderish, and serves as a photo album. The other ("Photo") isn't and serves as a photo in an Album. Albums can contain only Albums and Photos. I would like to have a dtml-tree

[Zope] Odd SQL errors- HELP

2000-10-09 Thread Jon Franz
Hello, I have Zope 2.2.2 running with a MySQL database, and everything _was_ working fine until I started to play with the new database structure our dba came up with for tracking our recruiting process... anyway, i have a db named recruit, with a MySQLDA connection object to it that works, but

[Zope] ZMysqlDA error, and a workaround

2000-10-09 Thread Jon Franz
This is additional info for the error mentioned in my last email. If I alter the column definitions to use 'int' as opposed to 'mediumint', then everything works fine! So, its the 'mediumint' type that isnt mapping properly... where would i fix this?

Re: [Zope] tell-a-friend product?

2000-10-09 Thread J. Atwood
Sure.. http://fundraising.gotschool.com/tell_a_friend.html Is that what you want? J From: [EMAIL PROTECTED] Date: Mon, 9 Oct 2000 11:02:36 -0700 To: [EMAIL PROTECTED] Subject: [Zope] tell-a-friend product? Hi, I am still new to zope and am wondering if there is a tell-a-friend

RE: [Zope] tell-a-friend product?

2000-10-09 Thread Seb Bacon
Hi, I am still new to zope and am wondering if there is a tell-a-friend script/product/example floating around for me to look at? If not, and I made my own form with Zope (which I have not done yet), what variable would call the existing page the user was on ? The url of the current page

Re: [Zope] dtml-tree advice, please

2000-10-09 Thread Tim Cook
Brian Withun wrote: I need the branches to represent two different meta types, Album and Photo. If I use branches_expr="objectValues('Album') I'll see the tree rendered with only Albums, and no Photos shown. Not sure of the consequences in the tree tag. But objectValues() accepts multiple

[Zope] (Off-Topic) A Haiku

2000-10-09 Thread Christopher J. Kucera
A thousand apologies for such blatantly offtopic drivel, but this leaped into my mind today and I figured if anyone could appreciate it, it'd be somebody on this list. a haiku: request bracket tick base zero tick bracket plus tick

[Zope] expr=id 'index_html issue

2000-10-09 Thread complaw
Okay, this is my second question for the day. Hopefully it won't be as easy as the first -- otherwise, I'll have to stick to practicing law. I'm looking for a way to list the DTML Methods in a folder -- except the index_html method. So far, I've had to do it by using this: dtml-in

Re: [Zope] expr=id 'index_html issue

2000-10-09 Thread Rik Hoekstra
Okay, this is my second question for the day. Hopefully it won't be as easy as the first -- otherwise, I'll have to stick to practicing law. I'm looking for a way to list the DTML Methods in a folder -- except the index_html method. So far, I've had to do it by using this: dtml-in

RE: [Zope] dtml-tree advice, please

2000-10-09 Thread Seb Bacon
branches_expr="objectValues('Album' 'Photo') I think you mean branches_expr="objectValues(['Album','Photo']) seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

[Zope] fmt=structured-text seems wrongish

2000-10-09 Thread Dennis Nichols
Not to throw stones, just trying to understand. WRT dtml-var ... fmt=... It makes sense to me to use "fmt=something" when the something is an instruction on how to format a number or how to format the time. In those cases, I'm simply saying how I want the number or time to appear. But when I

Re: [Zope] expr=id 'index_html issue

2000-10-09 Thread Tino Wildenhain
hi, as usual, if such things happen, "id" is a method. it gets called by zope if you just use dtml-var on it. So either use id() or better, look for title and if not set (dont set a title on html_index then) dont display it. Regards Tino [EMAIL PROTECTED] wrote: Okay, this is my second

Re: [Zope] dtml-tree advice, please

2000-10-09 Thread Tim Cook
Seb Bacon wrote: branches_expr="objectValues('Album' 'Photo') I think you mean branches_expr="objectValues(['Album','Photo']) Ah, what's a bracket here or there? g It may be more correct? But dtml-in "objectValues('DTML Method' 'Folder')" will render as expected. Go figure! --

RE: [Zope] expr=id 'index_html issue

2000-10-09 Thread Seb Bacon
try untested but this is a faq: dtml-in expr="objectValues('DTML Method')" sort="title" dtml-if expr="_[id] 'index_html'" td align="center"a href="dtml-absolute_url;"dtml-var title_or_id/a/td /dtml-if /dtml-in that should be dtml-if expr="_['id'] 'index_html'"

Re: [Zope] tell-a-friend product?

2000-10-09 Thread J. Atwood
Well.. a few extra minutes in my day get you... http://www.zope.org/Members/BwanaZulia/tell_a_friend/index_html Enjoy. J From: [EMAIL PROTECTED] Date: Mon, 9 Oct 2000 12:18:56 -0700 To: "J. Atwood" [EMAIL PROTECTED] Subject: Re: [Zope] tell-a-friend product? Yes, exactly. On 9 Oct

Re: [Zope] tell-a-friend product?

2000-10-09 Thread sean
Now this is service! Thanks a lot for the effort. --Sean On 9 Oct 2000, at 17:41, J. Atwood wrote: Well.. a few extra minutes in my day get you... http://www.zope.org/Members/BwanaZulia/tell_a_friend/index_html Enjoy. J From: [EMAIL PROTECTED] Date: Mon, 9 Oct 2000 12:18:56

Re: [Zope] overriding __str__ method?

2000-10-09 Thread Dieter Maurer
Seb Bacon writes: ... "manage_content" to enable editing all relevant aspects Now I want a way to give the user access to this screen. I could do a new version of the folders tree view (manage_menu), but what I'd really like to do is have a button next to each of these elements

Re: [Zope] tell-a-friend product?

2000-10-09 Thread J. Atwood
Hey... no problem. I have answered a few questions in the past about form validation and since this is a good example of it and a neat little piece of code I thought it could help. Besides, there is probably some sort of good Karma in the world of programming that I will benefit from (or already

Re: [Zope] expr=id 'index_html issue

2000-10-09 Thread Michel Pelletier
Seb Bacon wrote: try untested but this is a faq: dtml-in expr="objectValues('DTML Method')" sort="title" dtml-if expr="_[id] 'index_html'" td align="center"a href="dtml-absolute_url;"dtml-var title_or_id/a/td /dtml-if /dtml-in that should be dtml-if

[Zope] What happened to the Zope IE Editor effort?

2000-10-09 Thread Joachim Werner
Hi! I just got reminded of the Zope Internet Explorer WYSIWYG editor. It still can be found at http://www.zope.org/Members/johanc/ZIE ... and for anybody using IE 5.x it is a very cool thing, even if it is just intended to be a basic demo. I'd like to know if anybody is still working on that

Re: [Zope] ZMysqlDA error, and a workaround

2000-10-09 Thread Steve Spicklemire
I'm guessing it's in db.py in ZMySQLDA, I had to do the same thing with DECMIAL as shown here, I didn't post that since I'm not sure most folks would want this behavior but you should be able to do the same with MEDIUMINT: class DB: defs={ FIELD_TYPE.CHAR: "i",

RE: [Zope] ZMysqlDA error, and a workaround

2000-10-09 Thread Jon Franz
Wow, that looks very diffrent from my ZMySQLDA, what version are you running? I just got mine to work, I had to mod the def section in the db.py and some of the code in the MySQLmodule.c file - I want to make it available for download and whatnot, but I need to look through the setup script

[Zope] ZSQL Method Timings/Profiling or MySQL SQL Execution Timing Statistics

2000-10-09 Thread knight
Greetings, I have a lot of past experience with tuning and timing on Oracle (quite simple), but I seem to have hit a hurdle with timing my sql statements in MySQL. Getting these timings are _incredibly_ important to finding bottlenecks in a web site's performance... Now, first, is it possible

RE: [Zope] ZMysqlDA error, and a workaround

2000-10-09 Thread Jon Franz
doh, I was the one running the odd version - 1.1.3 as opposed to the newer 1.2 - I guess I never updated this when I updated the full zope install. The new version looks like it would of been much easier to fix, if it had the problem in the first place! -Original Message- From: Jon

Re: [Zope] Odd SQL errors- HELP

2000-10-09 Thread Andrew Kenneth Milton
+---[ Jon Franz ]-- | | +---+--+--+-+-++ | | Field | Type | Null | Key | Default | Extra | | +---+--+--+-+-++ | | id| mediumint(8) | | PRI | 0 |

Re: [Zope] ZSQL Method Timings/Profiling or MySQL SQL ExecutionTiming Statistics

2000-10-09 Thread knight
I'm answering myself because I found a solution to my problem, and I wanted to share the results with the list, in case someone is struggling to try to do the same thing... The problem with mysql (go easy, we're not talking about the fact that mysql is primitive and overall does not match up to

[Zope] How: /foo?var=bar equiv to /foo/bar

2000-10-09 Thread Heymann William
I am trying to get rid of those question marks in my urls since it seems to confuse the users but I am not sure really how to do that. I have heard that it can but done but so far I have not found out how it can be done. I want for the last piece of the url to be assigned to the varialbe if a