[Zope-dev] Python class and ZClass

2000-08-16 Thread Vincent
Hi, I would like to subclass a Python class with a ZClass. I mean that my DTML document will declare ZClass and I would like to be able to access the method declared in the python class (parent of the ZClass). Does anybody knows how to do that ? PS : I read a paper call "SubClassing from

Re: [Zope-dev] hmmm.. wierd permission issues with getPersistentItemIDs()...

2000-08-16 Thread Steve Spicklemire
Hi Steve, Thanks for the reply. Of course as soon as I reported this, I went away for a couple days and I haven't been able to check the list. It appears that the problem is that the BTreeItems object returned by getPersistentObjectIDs isn't currently allowed as an argument of 'in' by itself

[Zope-dev] Caching problems

2000-08-16 Thread Bob Pepin
Hi, I have a problem with a class I wrote where I have a list as an attribute of the class. When I append something to that list, it stays there at first, but only until I restart Zope. It disappears (==is set to the value I assigned to it in __init__) and reappears as well when I hit reload a

[Zope-dev] Funny bug in Zope?

2000-08-16 Thread Erik Enge
I'm not quite sure if this is already reported or not, so I won't give much information on it (I've looked for something similar, but I haven't found it). I'm runnig Zope 2.2.0 under Linux. I have this product I've made myself - called TravelAgent. I add an instance of it to the Zope

Re: [Zope-dev] Caching problems

2000-08-16 Thread Carlos Neves
You directly change a nonpersistence participant object. As stated in http://www.python.org/workshops/2000-01/proceedings/papers/fulton/zodb3.html : quote All sub-objects of persistent objects must be persistent or immutable. This rule is necessary because, without it, the persistence

[Zope] Is this a bug? Posting data to another DTML document

2000-08-16 Thread Jarkko Veijalainen
I developed my project on Zope 2.1.6 on NT environment. Last week i installed Zope 2.2.0 on Solaris 8. i transferred my project to 'new' Zope. But when i try to access my DTML document comes authentication window. I can't authenticate it in any of my usernames. Traceback (innermost last): File

Re: [Zope] Best way to subclass DTML Document and some other ZClassesquestions

2000-08-16 Thread Marcin Kasperski
"R. David Murray" wrote: On Mon, 14 Aug 2000, Marcin Kasperski wrote: 1) How can I set standard DTML Document properties (title!) from my constructor? I created constructor form and constructor method, I succesfully prompt for and set all my properties but I do not know how to set

Re: [Zope] DTML: fetch an object by its url?

2000-08-16 Thread Phil Harris
dtml-var "REQUEST.resolve_url('/some/folder/and/path/wotsit')" - Original Message - From: "Scott Shepherd" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 16, 2000 5:06 AM Subject: [Zope] DTML: fetch an object by its url? In DTML is it possible to get an object using

Re: [Zope] UserDb, GUF, LoginManager, etc, which one?

2000-08-16 Thread Martijn Faassen
[various folks basically suggest using UserDb and give useful tips] Okay, thanks for the suggestions, folks -- UserDb it will be, then! Regards, Martijn ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No

[Zope] Structured Text Rendering and \r

2000-08-16 Thread Chris Withers
Dieter Maurer wrote: Chris Withers writes: I have a list of string.strip'ped strings which I'd like to render using Erk, they weren't actully being stripped, I meant what was supposed to the happening was \r\n and \n\r were both supposed to be replaced by

[Zope] __call__ error message - I gave up

2000-08-16 Thread cuiod-tec Jens Gelhaar
What I like to do is pretty simple, but I don't get it. The following code snippet is simple and what I want to is straightforward: dtml-in "objectItems('DTML Document')" dtml-var sequence-item /dtml-in All DTML Documents in a Folder should be put together in one document. It works fine, if

[Zope] Python class and ZClass

2000-08-16 Thread Vincent
Hi, I would like to subclass a Python class with a ZClass. I mean that my DTML document will declare ZClass and I would like to be able to access the method declared in the python class (parent of the ZClass). Does anybody knows how to do that ? PS : I read a paper call "SubClassing from

Re: [Zope] DTML: fetch an object by its url?

2000-08-16 Thread Peter Bengtsson
What's the difference between: dtml-with "_.string.split(URL,'/')[-2]" (for current folder) or dtml-with "_.string.split(URL,'/')[-1]" (for current object) and dtml-var "REQUEST.resolve_url('/some/folder/and/path/wotsit')" ?? - Original Message - From: "Scott Shepherd" [EMAIL

[Zope] Simple acquisition (?) question

2000-08-16 Thread Jean Jordaan
Hi all I have 'index_html (Welcome to the Mosaic Intranet)' and 'standard_html_header' in '/' (the site root). 'standard_html_header' does the usual:: !--#var title_or_id-- Maybe I shouldn't be, but I was somewhat surprised that this renders the title of '/' instead of the title of

Re: [Zope] __call__ error message - I gave up

2000-08-16 Thread Peter Bengtsson
Maybe you've got the syntax wrong. Have you tried these, and what they return. dtml-in "objectItems(['DTML Document'])" dtml-var sequence-item /dtml-in dtml-in "objectValues(['DTML Document'])" dtml-var sequence-item /dtml-in dtml-in "mycurrentfolder.objectItems(['DTML Document'])"

[Zope] getting rid of PTKDemo

2000-08-16 Thread Tony McDonald
Anyone know how I can get rid of this? I don't have it in my lib/python/Products folder. I don't have it in my Control_Panel/Products folder. I have compacted the database and restarted my server. I still get errors when trying to do selecte the 'Advanced tab' in *any* ZSQL method. Anyone

[Zope] HOWTO (but to be improved) - linking to neighbours

2000-08-16 Thread Marcin Kasperski
[ Below I describe my solution to the problem which seems to me to be fairly frequent. Maybe someone is interested, maybe someone can show me better (faster, shorter) solution ] * Problem The problem: while presenting some page, I would like to automagically add links to 'previous' and 'next'

Re: [Zope] Simple acquisition (?) question

2000-08-16 Thread Geir Bækholt
on Wednesday, August 16, 2000 Jean Jordaan wrote : JJ !--#var title_or_id-- ... JJ What further confuses me is that '/docs' has no title, and it JJ contains 'index_html (Document Warehouse)'. Now JJ 'standard_html_header' renders '/docs/index_html's title. JJ If '/' has no title and

Re: [Zope] __call__ error message - I gave up

2000-08-16 Thread Aleksander Salwa
On Wed, 16 Aug 2000, cuiod-tec Jens Gelhaar wrote: dtml-in "objectItems('DTML Document')" dtml-var sequence-item /dtml-in [...] works fine, if there is no reference to another object. But when I put something like dmtl-var imageobject in one of this DTML Document I get the appended

Re: [Zope] ProxyPass - where ???

2000-08-16 Thread Stephan Goeldi
How about a trailing / after okstudio? VirtualHost 123.45.678.9 ServerName www.mydomaine.com.au ProxyPass / http://demon.server.com.au:8080/okstudio ProxyPassReverse / http://demon.server.com.au:8080/okstudio /VirtualHost

[Zope] Extra spaces on the end of id's?

2000-08-16 Thread Jean Jordaan
Hi Zopers What's with the spaces ('%20') in the following from:: site/Control_Panel/Products/ccDoc/ccDocClass/propertysheets/methods/manage _main FORM ACTION="http://corpcomms/Control_Panel/Products/ccDoc/ccDocClass/propertyshe ets/methods" METHOD="POST" TABLE BORDER="0" CELLSPACING="0"

[Zope] Import classes in External method

2000-08-16 Thread Francois-Regis CHALAOUX
Hi, How to import classes in an External method? I mean, where to place the module where my class is defined. I tried to put it in "lib/python/" or "Zope-2-2-0/lib/python/Shared", or in "/usr/lib/python1.5/" but I always got the same message : The errror === Error Type:

Re: [Zope] DTML: fetch an object by its url?

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Chris Withers wrote: Shame no-one implemented this into the entity syntax :( dtml-/some/folder/and/path/wotsit; would be so nice ;-) Ooo, that's seriously *ugly* looking syntax grin. --RDM ___ Zope maillist - [EMAIL

[Zope] HTTP_ACCEPT

2000-08-16 Thread Spicklemire, Jerry
Greetings Zope Fans, There is a value included in "REQUEST" called HTTP_ACCEPT. Is there a way within Zope to reset this value? The default seems to be "*/*", but our sysadmin says Zope would get along better if we can change it to include the alias that Zope has been assigned by our Proxy

[Zope] zShop

2000-08-16 Thread Stephan Goeldi
I installed zShop according to the installation instructions. When I come to the point where they write: "Click on your newly created Catalog and start adding products and categories." I receive the following error message: Error Type: NameError Error Value: 'CATEGORYSTORAGE' no such relation

[Zope] How can I find memory leaks in External Methods?

2000-08-16 Thread Tony McDonald
I have an External method that is used to upload files to a unix file system. Thing is, it seems to be causing more and more memory to be used by Zope. Can anyone give me some pointers on what might be causing this? TIA Tone -- Dr Tony McDonald, FMCC, Networked Learning Environments

Re: [Zope] Bug zClass subobjects?

2000-08-16 Thread Rik Hoekstra
(Second post) (I speak french, sorry for my english!) I created a ZClass, zRow. This class can contain other ZClass: zField_Text, zField_Date, etc. This let me define the columns contained in a zRow. I then defined a Class zTable, wich contains zRows. Question: - In

Re: [Zope] How to use RESPONSE.redirect ?

2000-08-16 Thread Kapil Thangavelu
"R. David Murray" wrote: On Tue, 15 Aug 2000, Kapil Thangavelu wrote: #example call to above #dtml-call "RESPONSE.redirect(URL1+'?'+url_encode_form_vars(_))" If your original form submits using the GET method, then QUERY_STRING will contain the already URL encoded parameters that the

Re: [Zope] How can I find memory leaks in External Methods?

2000-08-16 Thread Andy McKay
One place to start is /Control_Panel/DebugInfo/manage_main but Im not sure if this will work for External Methods. But it does show the objects in memory and the change over time. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People -

[Zope] Bug zClass subobjects?

2000-08-16 Thread Menard . Jean-Francois
(Second post) (I speak french, sorry for my english!) I created a ZClass, zRow. This class can contain other ZClass: zField_Text, zField_Date, etc. This let me define the columns contained in a zRow. I then defined a Class zTable, wich contains zRows. Question: - In my manage tabs, I

[Zope] Python function within a ZClass...

2000-08-16 Thread Vincent
Is it possible to access Python function within a ZClass ? If yes, how should I do that ? Thanks ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Python function within a ZClass...

2000-08-16 Thread Martijn Pieters
On Wed, Aug 16, 2000 at 06:11:32PM +0100, Vincent wrote: Is it possible to access Python function within a ZClass ? If yes, how should I do that ? Just create an External Method. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations

[Zope] Creating properties with a product.

2000-08-16 Thread jesse
___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )

[Zope] Creating properties with a product.

2000-08-16 Thread jesse
Hello, I recently created a product which adds a folder, with multiple dtmldocuments inside of it, effectivly creating a site immedatly. However, even though I can add folders and documents easiliy, I can't seem to create properties! It keeps giving me the Attribute error: aq_base. Here

Re: [Zope] Creating properties with a product.

2000-08-16 Thread Daniel Rusch
Take a look at the doc string in the class definition of PropertyManager. It states that: An object may specify that it has one or more predefined properties, by specifying an _properties structure in its class:: _properties=({'id':'title', 'type': 'string', 'mode': 'w'},

[Zope] The mysteries of Product icons ?????

2000-08-16 Thread Daniel Rusch
I made an icon form my new product, Zope loaded it correctly. Then someone had the brilliant idea to change it. I can not figure out how to get Zope to load the new icon. I have deleted the product from Product Management at /Control_Panel / Products, rm the *.pyc files, bounced Zope, but it

[Zope] I think, it is a bug in acquisition

2000-08-16 Thread cuiod-tec Jens Gelhaar
Maybe I have found a situation, where images are not working or rather acquisition. For example, you create 2 documents and one image doc1 (DTML Document) contents: "document 1 dtml-var doc2 doc2 (DTML Document) contents: "document 2 dtml-var image image (Image) contents:

[Zope] class name of current object

2000-08-16 Thread Scott Shepherd
Is there a way to get the current object's class name? dtml-var "this.__class__.__name__" doesn't work. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] The mysteries of Product icons ?????

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Daniel Rusch wrote: Then someone had the brilliant idea to change it. I can not figure out how to get Zope to load the new icon. I have deleted the product from Product Management at /Control_Panel / Products, rm the *.pyc files, bounced Zope, but it still hangs on to the

[Zope] modifying/changing DTML properties

2000-08-16 Thread Paul Schreiber
- I have a folder in my zope tree called spam. - spam has one document called "foo" - spam has a property called "eggs" which is set to "green" foo looks like this: hello p!--#var eggs -- ( dtml-eggs; ) I want to be able to change the value of eggs to, say, "blue" like so: !--#if

Re: [Zope] The mysteries of Product icons ?????

2000-08-16 Thread Martijn Pieters
On Wed, Aug 16, 2000 at 02:08:47PM -0500, Daniel Rusch wrote: I made an icon form my new product, Zope loaded it correctly. Then someone had the brilliant idea to change it. I can not figure out how to get Zope to load the new icon. I have deleted the product from Product Management at

Re: [Zope] I think, it is a bug in acquisition

2000-08-16 Thread Rik Hoekstra
Maybe I have found a situation, where images are not working or rather acquisition. For example, you create 2 documents and one image doc1 (DTML Document) contents: "document 1 dtml-var doc2 doc2 (DTML Document) contents: "document 2 dtml-var image image (Image)

Re: [Zope] modifying/changing DTML properties

2000-08-16 Thread Paul Schreiber
--- Rik Hoekstra [EMAIL PROTECTED] wrote: Paul Schreiber wrote: - I have a folder in my zope tree called spam. - spam has one document called "foo" - spam has a property called "eggs" which is set to "green" foo looks like this: hello p!--#var eggs -- ( dtml-eggs; ) I want to

[Zope] EventLogManager1.0

2000-08-16 Thread Dan L. Pierson
Chris McDonough writes: Folks, Available at http://www.zope.org/Members/mcdonc/Products/EventLogManager is my attempt to write a somewhat smarter logging facility for Zope. It supports complex rules processing and configurable targets (syslog and file). It's been tested under Linux

[Zope] Referencing an object in a subfolder

2000-08-16 Thread Smith, Paul
I want to create an "images" directory for a web site and store image objects there that I can reference. How do I get a DTML document in a higher directory to see the images folder and locate the appropriate image? ...Paul ___ Zope maillist -

[Zope] Can't change user roles without password

2000-08-16 Thread David Riggs
Somewhere along the way, the acl_users/Contents form has decided to quit filling in the value of each user's password, so that their roles can only be assigned if a Manager knows their password...I've got new installation running Zope 2.2.0 and a new CVS PTK release on another box that does it

Re: [Zope] modifying/changing DTML properties

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Paul Schreiber wrote: dtml-call "manage_changeProperties('eggs', 'blue')" dtml-call "manage_changeProperties({'eggs': 'blue'})" --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No

RE: [Zope] EventLogManager1.0

2000-08-16 Thread Chris McDonough
They can. :-) -Original Message- From: Dan L. Pierson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 16, 2000 3:38 PM To: Chris McDonough Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: [Zope] EventLogManager1.0 Chris McDonough writes: Folks, Available at

Re: [Zope] HTTP_ACCEPT

2000-08-16 Thread Dieter Maurer
Spicklemire, Jerry writes: There is a value included in "REQUEST" called HTTP_ACCEPT. Is there a way within Zope to reset this value? dtml-call "REQUEST.environ.update({'HTTP_ACCEPT' : whatever_you_want})" The default seems to be "*/*", but our sysadmin says Zope would get along

Re: [Zope] Import classes in External method

2000-08-16 Thread Dieter Maurer
Francois-Regis CHALAOUX writes: How to import classes in an External method? I mean, where to place the module where my class is defined. I tried to put it in "lib/python/" or "Zope-2-2-0/lib/python/Shared", or in "/usr/lib/python1.5/" but I always got the same message : The

Re: [Zope] Managing subobjects

2000-08-16 Thread Dieter Maurer
[EMAIL PROTECTED] writes: I created a ZClass, zRow. This class can contain other ZClass: zField_Text, zField_Date, etc. This let me define the columns contained in a zRow. I then defined a Class zTable, wich contains zRows. Question: - In my manage tabs, I needed a have a

Re: [Zope] intermittent problems downloading portal files

2000-08-16 Thread Dieter Maurer
Lucas Hofman writes: We use PTK as an intranet for a RD company. Users publish their reports as in PDF format using portal file object type. Now and then (enough to be irritating, but not reproducable on demand) the PDF file gets corrupted in the download, resulting in the reader

Re: [Zope] HOWTO (but to be improved) - linking to neighbours

2000-08-16 Thread Dieter Maurer
Marcin Kasperski writes: * Problem The problem: while presenting some page, I would like to automagically add links to 'previous' and 'next' page in the same directory. Say you organize a bunch of HOWTOS and you would like to let the people navigate via 'next' links - without going

Re: [Zope] Best way to subclass DTML Document and some other ZClasses questions

2000-08-16 Thread Dieter Maurer
Marcin Kasperski writes: 1) How can I set standard DTML Document properties (title!) from my constructor? I created constructor form and constructor method, I succesfully prompt for and set all my properties but I do not know how to set properties belonging to DTML Document.

Re: [Zope] The mysteries of Product icons ?????

2000-08-16 Thread Chris Withers
Daniel Rusch wrote: Can anyone out there demystify this for me??? Browser caching perhaps? Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

[Zope] Meet Paul Everitt at the Paris Zope Meeting !

2000-08-16 Thread Maik Roeder
Hi everyone ! The Paris Zope Meeting is a great opportunity for Europe's Zope community to meet Paul Everitt, CEO of Digital Creations, who is currently in France for holidays. It is also a chance to meet Zope developers from England, Germany, Switzerland and of course France. If you want to

Re: [Zope] Newbie Q from non-Newbie: Where does my HTML go?

2000-08-16 Thread J. Atwood
Dead on balls accurate. Works like a charm. Thanks Chris. (now have to figure out why I couldn't figure that out!) :) J From: Chris Withers [EMAIL PROTECTED] Organization: New Information Paradigms Date: Wed, 16 Aug 2000 23:17:01 +0100 To: "J. Atwood" [EMAIL PROTECTED] Cc: [EMAIL

Re: [Zope] Can't change user roles without password

2000-08-16 Thread Andy McKay
The differentiating factor is the version. This was an issue in 2.1.6. Upgrade time :) -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People - Original Message - From: "David Riggs" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [Zope] Referencing an object in a subfolder

2000-08-16 Thread Chris Withers
"Smith, Paul" wrote: I want to create an "images" directory for a web site and store image objects there that I can reference. How do I get a DTML document in a higher directory to see the images folder and locate the appropriate image? dtml-with images_folder dtml-var an_image /dtml-with

[Zope] ZOracleDA problem

2000-08-16 Thread Chris Beaumont
Hello, Ive successfully compiled the DCOracle package and then moved the compiled modules to the DCOracle directory of ZOracleDA, and now the DA shows up as non-broken in my Zope installation.. However, when I try to add a ZOracleDA connection object to my Zope website, I get a "this document

Re: [Zope] Best way to subclass DTML Document and some other ZClasses questions

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Marcin Kasperski wrote: dtml-with "mk_dtml_document.createInObjectManager(REQUEST['id'], REQUEST)" dtml-call "propertysheets.Extra.manage_editProperties(REQUEST)" dtml-comment How can I change original title? /dtml-comment dtml-call reindex_object /dtml-with

Re: [Zope] Best way to subclass DTML Document and some other ZClassesquestions

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Marcin Kasperski wrote: Pass it as an argument to the call that creates the DTML Document. How? Currently my constructor method contains the following (mk_dtml_document is my custom class which subclasses DTML Document, Extra is the name of my custom propertysheet):

Re: [Zope] modifying/changing DTML properties

2000-08-16 Thread R. David Murray
On Wed, 16 Aug 2000, Paul Schreiber wrote: --- "R. David Murray" [EMAIL PROTECTED] wrote: On Wed, 16 Aug 2000, Paul Schreiber wrote: dtml-call "manage_changeProperties('eggs', 'blue')" dtml-call "manage_changeProperties({'eggs': 'blue'})" This: b!--#var eggs --/b dtml-call

[Zope] third party hosting options wihtout long running process

2000-08-16 Thread Bob Horvath
Hi all, I hope this hasn't been asked to death before, but out of lots of related information that I did find, I could not find a direct answer to my question. I have been using and really enjoying Zope on my Debian system at home, but would like to start using it for a couple of web sites that

[Zope] upgrade 2.2.0 to 2.2.1b1

2000-08-16 Thread Bak @ kedai
hello all has anybody encountered problems when upgrading from 2.2.0 to 2.2.1b1? i have problems with some products (kmnetnews), and some of my ZClasses. are there any known issues? things i should have considered? there are also tracebacks "Couldn't load state" when starting zope in

[Zope] ZCatalog key error

2000-08-16 Thread Bak @ kedai
is Zope.org running 2.2.1b1 or CVS? cause i think key error still occurs. check out 'What's New' at Zope.org, and you'll get the error. i might be wrong though thanks ___ Zope maillist - [EMAIL PROTECTED]