[Zope-dev] ZWikiZC comments

2000-08-28 Thread Ross Boylan
Two substantive comments, and some editorial ones. You write that you are thinking of different schemes for generating paths and ids. I suggest one of the things you consider is whether your scheme will work if someone cuts the ZWikiZC and pastes it somewhere else in the tree. I'm not

[Zope-dev] inheritedAttribute

2000-08-28 Thread Steve Alexander
In the latest Zope source, I've noticed calls to inheritedAttribute in the Python code. I've found the C source code in ExtensionClass.c, but it doesn't help me understand when I should use it from Python, and why. *reads more source* Ah! About 70 lines further on in ExtensionClass.c:

[Zope-dev] Re: ZWikiZC comments

2000-08-28 Thread Johan Carlsson
Two substantive comments, and some editorial ones. You write that you are thinking of different schemes for generating paths and ids. I suggest one of the things you consider is whether your scheme will work if someone cuts the ZWikiZC and pastes it somewhere else in the tree. Yes, I

[Zope-dev] New version of BTreeFolder

2000-08-28 Thread Shane Hathaway
Hi gang, This version just fixes a bug with the folder contents tab on Windows. For some reason, on Windows 95 (and perhaps other platforms) the Python interpreter behaves differently enough that if you use a class attribute from a different module and put it in your own class, you may in fact

[Zope-dev] Transaction question

2000-08-28 Thread Johan Carlsson
I just want to check if things work the way I think (hope) it does. In a transaction, are objects attributes safe from other threads. self._v_mytemp in my request does not conflict with other requests? (I suppose the have to be otherwise REQUEST's would interfere with each other.) I know that

Re: [Zope-dev] New version of BTreeFolder. Just a Newbie Question

2000-08-28 Thread LEE Kwan Soo
Oh, well, I'd bet this is a silly question. But I can not resist nor find answer by myself. Q: Why don't you BTree-fy all the subclasses of ObjectManager? Is there a reason that anyone but can a newbie see? LEE Kwan Soo. ps. I only hope to be able to make clear statement in English, but i am

Re: [Zope-dev] New version of BTreeFolder. Just a Newbie Question

2000-08-28 Thread Shane Hathaway
LEE Kwan Soo wrote: Oh, well, I'd bet this is a silly question. But I can not resist nor find answer by myself. Q: Why don't you BTree-fy all the subclasses of ObjectManager? Is there a reason that anyone but can a newbie see? Obviously what BTreeFolder does should be available in

Re: [Zope-dev] New version of BTreeFolder

2000-08-28 Thread Kapil Thangavelu
Shane Hathaway wrote: Hi gang, This version just fixes a bug with the folder contents tab on Windows. For some reason, on Windows 95 (and perhaps other platforms) the Python interpreter behaves differently enough that if you use a class attribute from a different module and put it in

RE: [Zope-dev] Transaction question

2000-08-28 Thread Chris McDonough
Using a mutex by way of example, without using anything Zope-specific (the following uses the Python threading module): import threading lock = threading.Lock() myglobal = [] def changeglobal(val): lock.acquire() try: myglobal.append(val) finally: lock.release()

Re: [Zope-dev] Transaction question

2000-08-28 Thread Erik Enge
[Shane Hathaway] | Johan Carlsson wrote: | | I just want to check if things work the way I think (hope) it does. | | In a transaction, are objects attributes safe from other threads. | | self._v_mytemp in my request does not conflict with other requests? | | This is correct (or it's

Re: [Zope-dev] Transaction question

2000-08-28 Thread Shane Hathaway
Erik Enge wrote: [Shane Hathaway] | Johan Carlsson wrote: | | I just want to check if things work the way I think (hope) it does. | | In a transaction, are objects attributes safe from other threads. | | self._v_mytemp in my request does not conflict with other requests? | |

Re: [Zope-dev] Transaction question

2000-08-28 Thread Johan Carlsson
| | I just want to check if things work the way I think (hope) it does. | | In a transaction, are objects attributes safe from other threads. | | self._v_mytemp in my request does not conflict with other requests? | | This is correct (or it's supposed to be.) What do

Re: [Zope-dev] Transaction question

2000-08-28 Thread Erik Enge
[Shane Hathaway] | It means that a correctly operating ZODB will behave this way. Oh, I see. Thanks for clarifying that. :) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

Re: [Zope-dev] New version of BTreeFolder. Just a Newbie Question

2000-08-28 Thread Bill Anderson
Shane Hathaway wrote: LEE Kwan Soo wrote: Oh, well, I'd bet this is a silly question. But I can not resist nor find answer by myself. Q: Why don't you BTree-fy all the subclasses of ObjectManager? Is there a reason that anyone but can a newbie see? Obviously what BTreeFolder does

Re: [Zope-dev] New version of BTreeFolder. Just a Newbie Question

2000-08-28 Thread Shane Hathaway
Bill Anderson wrote: Any chance at a BTree Folder w/customizer support in the near future? :) It should be quite easy to do. I vaguely recall Steve A or Steve S might have done it. Shane ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] New version of BTreeFolder. Just a Newbie Question

2000-08-28 Thread Steve Alexander
Bill Anderson wrote: Any chance at a BTree Folder w/customizer suppor tin the near future? :) I did some work towards this. However, I didn't continue. I realised that I could get the same effect by having a BTreeFolder inside a Customizer Folder. The only downside is a slightly longer URL

Re: [Zope-dev] ZPatterns bug with patch

2000-08-28 Thread Steve Alexander
"Phillip J. Eby" wrote: At 10:22 AM 8/27/00 +0100, Steve Alexander wrote: I've fixed this by adding a test to the start of __set_attr__ of DataSkins.py: def __set_attr__(self,name,val,_v_dm_=_v_dm_): + if name=='id' and val==self.__dict__['id']: + return

Re: [Zope-dev] New version of BTreeFolder

2000-08-28 Thread Shane Hathaway
Steve Alexander wrote: BTreeFolder doesn't do the from Globals import default__class_init__ default__class_init__(BTreeFolder) thing. Does that matter at all? As none of the classes it is derived from have a __init__ method, I guess not. Or, does default__class_init__ do anything

Re: [Zope-dev] ZPatterns bug with patch

2000-08-28 Thread Steve Alexander
"Phillip J. Eby" wrote: try: dm = self.__dict__[_v_dm_] except KeyError: if name=='id' and val==self.__dict__['id']: return raise Hopefully this should only perform the extra computations when the first part fails... Are Python classes derived from DataSkin

Re: [Zope-dev] ZPatterns bug with patch

2000-08-28 Thread Steve Alexander
Steve Alexander wrote: What rubbish! I didn't mean that at all! I think what I meant was this: try: dm = self.__dict__[_v_dm_] except KeyError: if name=='id': if self.__dict__.has_key('id') and val==self.__dict__.['id']: return else:

[Zope-dev] ANN: ZWikiZC version 0.7.3 alpha

2000-08-28 Thread Johan Carlsson
The ZWikiZC version 0.7.3 alpha completely rely on ZCatalog for looking up WikiPages from WikiNames. No references are stored in the ZWikiZG page letting cutpaste, delete and other management actions ignore updating links. I bellew this is a more scalable solution than in the version 0.7.2

Re: [Zope-dev] Re: ANNOUNCE: Zope 2.2.1 released - breaks my zclass instances too.

2000-08-28 Thread Dr. Ross Lazarus
Brian, the tranalyser reported a clean (old) data.fs and I don't use any python base classes for any of my zclasses - however, in the interests of my own sanity, I'm pleased to report success with an old recipe - I started with a fresh Data.fs and cleaned out some cruft from my Products folder.

[Zope-dev] ANN: ZWikiZC version 0.7.3 alpha

2000-08-28 Thread Johan Carlsson
The ZWikiZC version 0.7.3 alpha completely rely on ZCatalog for looking up WikiPages from WikiNames. No references are stored in the ZWikiZG page letting cutpaste, delete and other management actions ignore updating links. I bellew this is a more scalable solution than in the version 0.7.2

Re: [Zope] Email files via a form thru Zope

2000-08-28 Thread Curtis Maloney
On Mon, 28 Aug 2000, Michelle wrote: Hi, I was wondering if anyone can help me. I would like to have people send files through a form so I have created a form: *snip* Now (theoretically) you are supposed to be able to attach a file (either a .doc or a .xls file and it magically gets

Re: [Zope] Calling list.remove() bug

2000-08-28 Thread Kapil Thangavelu
Tim Cook wrote: Kapil Thangavelu wrote: dtml-var "foobar(_.None, _)" this passes it None for a client, and the current namespace as the mapping, and no keyword args. hope that was clearer than mud. So the 'key' to this confusion is that we are passing the 'Zope namespace'

Re: [Zope] OT: Website design / spec / development resources

2000-08-28 Thread Michael Bernstein
"J. Atwood" wrote: Hey Zopers, I am looking for some good guidelines in designing, spec'ing and developing large complex websites. Anything like guidelines, steps, howtos, etc would be much appreciates. From theory to practice. The first book on this subject that opened my eyes was

[Zope] Newbie question: FORM processing in Zope.

2000-08-28 Thread Amit Redij
hi, I am a Perl/CGI programmer, trying out Zope. I am confused right now about HOW TO process FORM variables? and most important thing is how to validate form inputs.(like same thing is best done in PERL using regex) that is, if I have a html having some form variables and a submit button. I

[Zope] Showing the name of a file-type form variable

2000-08-28 Thread Jean Jordaan
Hi Zopers I've got this:: tdinput type="file" name="file" dtml-if file value="dtml-var "file"" /dtml-if /td Which returns:: ZPublisher.HTTPRequest.FileUpload instance at 131dc48 in the input box. I'd really rather have the filename. How does one

[Zope] Smarter Forms (variant example)

2000-08-28 Thread Jean Jordaan
Hi all While playing with jules's nice Smarter Forms example, I've made a (perhaps obvious) slightly elaborated variant of it. dtml-comment njj == Jean Jordaan /dtml-comment dtml-var standard_html_header dtml-comment

[Zope] dedicated folder for each user

2000-08-28 Thread Vincent
Hi, is it possible to creat automatically a folder with the name of the logged user ? Thanks Vincent ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] SOAP (Re: [Zope] Oracle ZODB (Paul's talk in Paris))

2000-08-28 Thread Petru Paler
ps. I've got to ask, Is there any prelim work being done on SOAP? I did write once a patch that worked (i.e. you could call methods inside Zope using SOAP and get the results back; the problems were with some type marshalling and error handling). You can get it from http://www.ppetru.net ,

[Zope] Advice for new zope installation

2000-08-28 Thread Henk Schets
Hi, After reading all the info about zope, I am very impressed with the possibilities it can deliver. However, before I migrate our existing site, I need to be certain about certain topics : - how easy and reliably can I manage my virtual hosts (about 8 sites right now) ? Very important.

Re: [Zope] Running Zope 2.2.1 as NT service

2000-08-28 Thread Wolfgang Strobl
On 27 Aug 2000, 12:50 Alexander Chelnokov wrote: The option seems to be unavailable under W2000. 2.1.6 could be run that way without any trouble. Could you please elaborate? I just installed 2.2.1 final on my developement machine, under win2000 prof us. The installer asked the usual

[Zope] getting parent document

2000-08-28 Thread Anders Holmbech Nielsen
Hi, This should be an easy task but a just cant get it to work. I have a dtml-method called test which I want to use like: someurl/document/test and in the dtml-method I want to include the document in its whole. I have tried something with the URL like: dtml-var dtml-var URL1 this

[Zope] Where is news section how-to?

2000-08-28 Thread Radim Gelner
Hello, few weeks ago, on Zope site I came across a document describing how to build news section with features like displaying with five most recent items from a folder, etc. But now I can't recall, where it was. Can someone point me in a right direction. Thank you, Radim

[Zope] snippets (was RE: [Zope] Where do I find out about cookies?)

2000-08-28 Thread Jean Jordaan
Hi RDM Thanks! That works perfectly, and teaches me about namespaces. I just had to fix '/dtml-else' (I also do that):: dtml-if sort_key dtml-if "REQUEST.form.has_key('sort_key')" dtml-call "RESPONSE.setCookie('sort_key',REQUEST.form['sort_key'])" /dtml-if dtml-else

[Zope] unauthorized when accessing /manage in zope 2.2.1

2000-08-28 Thread Philipp Dunkel
Hia Zopers, I'm totally confused and I couldn't figure it out in 2 working days so here it is: I have a Zope Product that makes use of different nested classes. When I create an instance of this product I always get an "unauthorized" error when clicking the instance in the management interface

Re: [Zope] 2.2.1 and zdiscussion

2000-08-28 Thread J. Atwood
By the way, if I now create a forum with ZUBB, are there any expected migration problems when I upgrade it to your next release? Ummm... ahem no? That is actually one of the things keeping the release back. Mr. Harris did some fine work but it does not upgrade very easily so I am trying to

Re: [Zope] Newbie question: FORM processing in Zope.

2000-08-28 Thread J. Atwood
Easy and hard answer. The easy answer is forget what you know about scripts/cgi and pulling in form variables from some sort of CGI method (perl module). Since Zope is a constant running process it does not require that you point to a script. Hard Answer: The basics are that all you have to do

[Zope] How to Delete ZClass Instances programmatically??

2000-08-28 Thread Jean Jordaan
Hi Zopers I've found the "How-To: Adding ZClass Instances Programmatically", but now I'm looking for the *Deleting ZClass Instances* one! I'm trying this as a beginning (hacked from the Zope management interface):: dtml-if "AUTHENTICATED_USER.has_role('ContentManager')" form

[Zope] dtml-tree question

2000-08-28 Thread Hugo Ramos
Yellow ppl, Is there a way to use my own self made '+' icon in a tree tag? I'dd like to use my own icon only IF i want to... and not change the python source to use my own icon all the time! regards = Hugo Ramos - [EMAIL PROTECTED] ZopersORG - http://www.zopers.org = Do not meddle in

[Zope] Re: [Zope-PTK] Re: [Zope] PTK and Membership product

2000-08-28 Thread Shane Hathaway
Chris McDonough wrote: Forwarding this on from the Zope list to the PTK list albert boulanger wrote: From Friday's 8-25 PTK CVS PTK has logic to support the Membership product, but it seems to be using the old MembershipZ name. I want to use this combination because we

[Zope] rotate Z2.log

2000-08-28 Thread Marcus Mendes
Hello, How can I rotate my Z2.log?? It's very large ! Thanks. Marcus Mendes ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] RE: How to Delete ZClass Instances programmatically??

2000-08-28 Thread RC Compaan
Instead of directing your form to URL0 direct it back to your custom interface. In your form you can evaluate the value of submit to determine the appropriate action: dtml-if "REQUEST['submit'] == 'Delete'" dtml-call "manage_delObjects(ids)" untested. Roché -Original Message-

Re: [Zope] rotate Z2.log

2000-08-28 Thread Marcin Kasperski
Marcus Mendes wrote: Hello, How can I rotate my Z2.log?? It's very large ! Using the same method as for rotating Apache logs. For instance, on my Debian Linux I created the file /etc/cron.daily/zope_daily (made via copying and editing equivalent file for Apache), which rotates

[Zope] updating only zCatalog ?

2000-08-28 Thread Philipp Dunkel
Hi Zopers, I'm really happy that the with the newest zope releases the zCatalog has got more stable. I'd like to use it for my Products, but I don't have the time now to port everything to the new zope version. Is it possible to only use the new catalog and which files do I have to change/update

[Zope] Better Demo Templates

2000-08-28 Thread Chris Withers
Jean Jordaan wrote: I've already made a couple for own use, but will try and make one to be general and comment it, send when I'm done. Great :-) I look forward to it... cheers, Chris ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Newbie question: FORM processing in Zope.

2000-08-28 Thread Loren Stafford
A great resource for newbies is the collection of How-To's http://www.zope.org/Documentation/How-To (or better yet: http://www.zope.org/Members/AlexR/tips/howto_list where you can use browser search to find what you need). Search for "forms" and you will see, for example:

[Zope] List of object's name in a ZClass

2000-08-28 Thread Vincent
Hi, In a Zope folder, I have : - 1 instance of a personnal ZClass A - 10or more instances of ZClass B - a DTML document I would like to call a DTML method (which is implemented in the ZClass A) from the DTML document to display a list of all instances names of ZClasse B If somebody

[Zope] Problem with SiteAccess 1.0.1

2000-08-28 Thread William JOYE
Hello, I have some minor problems with SiteAccess 1.0.1 and Zope 2.1.6 + hotfix. 1. When click on the folder that contain SiteRoot, I need to enter again login and password. Why ? 2. When I delete an object, I have always an script error message. Why ? Are these problems already fixed ? Is the

Re: [Zope] Sub Class Question

2000-08-28 Thread R. David Murray
On Sun, 27 Aug 2000, Loren Stafford wrote: Here's what MJ told me about that case. I'm not sure it applies to your case. Did you try it? Did it work? Thanks for the info. It was the Extension class piece I was missing. I tested it on a regular class, of course grin. The original problem

Re: [Zope] rotate Z2.log

2000-08-28 Thread Andy McKay
You can patch Z2.py so that line 599 (or thereabouts) instead of: lg = logger.file_logger(LOG_PATH) reads: lg = logger.rotating_file_logger(LOG_PATH, freq='daily', maxsize=400) - Original Message - From: "Marcin Kasperski" [EMAIL PROTECTED] To: "Zope List Submission" [EMAIL

[Zope] ZClass -- Product

2000-08-28 Thread Nestor A. Diaz L.
HI, I want to know if there is any utility that let translate a ZClass to a Product, i'm worry using the frames based interface, so i'm considering to switch to a Product a utility that let that would be usefull howevere a HOWTO on doing this would be fine. thanks, Nestor A. Diaz Ingeniero de

Re: [Zope] Problem with SiteAccess 1.0.1

2000-08-28 Thread Evan Simpson
From: William JOYE [EMAIL PROTECTED] I have some minor problems with SiteAccess 1.0.1 and Zope 2.1.6 + hotfix. 1. When click on the folder that contain SiteRoot, I need to enter again login and password. Why ? Most likely, because you have a Base set in your SiteRoot that differs from the

Re: [Zope] FSSession problems...

2000-08-28 Thread Pavlos Christoforou
On Mon, 28 Aug 2000, Curtis Maloney wrote: /dtml-if This was aparently working fine for quite some time (about a month of public usage), until last week. We have examined logs, and seen that one person accidentaly used the system under someone elses ReturnerID, and then rectified

[Zope] Re. Advice for new zope installation

2000-08-28 Thread Spicklemire, Jerry
Henk Schets wonders: - how easy and reliably can I manage my virtual hosts (about 8 sites right now) ? Very important. The SiteAccess product contributed by Evan Simpson is a popular solution. http://www.zope.org/Members/4am/SiteAccess2 - how stable is Zope regarding to

Re: [Zope] Advice for new zope installation

2000-08-28 Thread J. Atwood
From: "Henk Schets" [EMAIL PROTECTED] Date: Mon, 28 Aug 2000 09:08:44 +0200 To: [EMAIL PROTECTED] Subject: [Zope] Advice for new zope installation - how easy and reliably can I manage my virtual hosts (about 8 sites right now) ? Very important. Much easier than you can imagine. I have 5

Re: [Zope] Showing the name of a file-type form variable

2000-08-28 Thread icottee
Hi file.filename should be what you are after. e.g. In my latest project I set a variable myFileName to be the name of the file uploaded using dtml-var "REQUEST.set('myFileName',file.filename)" where file is the name of my file upload control in my form. Ian Original Message --- Hi

Re: [Zope] Cool JavaScript

2000-08-28 Thread Robert Miller
On Mon, 28 Aug 2000, Luis Cortes wrote: Hi, I am looking for some cool Java script sites -- I would like to see how some button effects are done. Anyone got one out there? http://www.google.com/search?q=javascripthl=ensafe=off ___ Zope

[Zope] Re: Automatic creation of searchable documents from Oracle DB tables

2000-08-28 Thread Satheesh Babu
Hi Chris, I've a system, where folks enter data through some HTML forms - DTML methods - Oracle tables. This is mainly used for storing web page content. Then I generate a static document using a chosen template, from the database. I think this is some what similar to your requirement. This is

Re: [Zope] Cool JavaScript

2000-08-28 Thread Kapil Thangavelu
Luis Cortes wrote: Hi, I am looking for some cool Java script sites -- I would like to see how some button effects are done. Anyone got one out there? Thanks ahead of time, Luis. http://www.brainjar.com some of the slickest dhtml i've seen. Kapil

[Zope] Nested dtml???

2000-08-28 Thread Tim Hicks
I am trying to work my way up through folders, checking whether each folder has a property named 'site_root_folder'. Logically (in *my* head anyway), what I have written below is what I want to do, but I'm not sure that I'm really writing this the write way. I vaguely remember reading that I

[Zope] SiteAccess 2.0b3 missing setURL?

2000-08-28 Thread albert boulanger
This seems to be missing in this version of site access. I am followig the url based session howto. There is a file ChangeBehaviors.py in the SiteAcces 1.x versions that seem to be missing in 2.0b3 that defines this function. An oversight or is there a change in API? Zope version: Zope 2.2.1

Re: [Zope] SiteAccess 2.0b3 missing setURL?

2000-08-28 Thread Evan Simpson
From: "albert boulanger" [EMAIL PROTECTED] An oversight or is there a change in API? Change in API; You want REQUEST.setServerURL, which is documented here: http://www.zope.org/Members/michel/Projects/Interfaces/ImplementingVirtualHo sts Cheers, Evan @ 4-am digicool

Re: [Zope] SiteAccess 2.0b3 missing setURL?

2000-08-28 Thread albert boulanger
Change in API; You want REQUEST.setServerURL, which is documented here: http://www.zope.org/Members/michel/Projects/Interfaces/ImplementingVirtualHo sts Ok the doc says: Backward Rewriting Any URLs generated by an application should take virtual hosting into account by replacing

[Zope] ANN: ZWikiZC version 0.7.3 alpha

2000-08-28 Thread Johan Carlsson
The ZWikiZC version 0.7.3 alpha completely rely on ZCatalog for looking up WikiPages from WikiNames. No references are stored in the ZWikiZG page letting cutpaste, delete and other management actions ignore updating links. I bellew this is a more scalable solution than in the version 0.7.2