[Zope] SAP DB with Zope?

2000-11-07 Thread Jonathan (ListServ Account)
Hi all, Will be testing it myself shortly, but has anyone already hooked up Zope to SAP DB? It has been open sourced recently, and there are Python interfaces available (as well as Perl, JDBC, PHP, ODBC and C/C++). For those who are not familiar with it: it's a high end database used for

Re: [Zope] ISPs that host zope

2000-11-07 Thread Jens Grewen
Hi Keith, check out http://www.zope.org/Resources/ZSP Jens Grewen - Original Message - From: "Keith Alperin" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 07, 2000 2:43 AM Subject: [Zope] ISPs that host zope Greetings. I am a complete zope newbie but am enthralled

[Zope] variable length forms...

2000-11-07 Thread zope
Hi. I have tried to implement a variable length form. Yes, I have read http://www.zope.org/Members/jpenny/variable_length_forms/index_html.! I a form, I'm using following form fields: dtml-in "_.range(1, _.string.atoi(form_numpages)+1, 1)" tr align="center" valign="middle"

Re: [Zope] catalog DTML Document

2000-11-07 Thread Chris Withers
Wolfgang Strobl wrote: There is a How-To "Adding ZClass Instances Programmatically", and a lot of gobbledigoop about when, how and why. But I haven't found anything about how to "index" or "reindex" a plain and simple DTML Document. In Python:

RE: [Zope] images in directories

2000-11-07 Thread Pete Prodoehl
I was sort of hoping it would be easier. It would be ideal to have this: dtml-with imagesdtml-var image.gif/dtml-with boiled down to one simple tag that works when I store images in a subfolder *and* use file extensions. But from what I've read so far, it can't be done... Someone suggested

[Zope] uploading to Zope with Mac Browser

2000-11-07 Thread rlanham
Zope list: This zope method for uploading images to server: dtml-call expr="manage_addImage( id=title, file=file, title=title)" ...works great from a PC. But from a Mac (netscape And IE) it does not work. Sometime a file is uploaded, but it is garbage. Apparently the Mac browsers have a

RE: [Zope] Cookies Expiration

2000-11-07 Thread Eric Walstad
Oops, forgot to send this one to the list... -Original Message- From: Eric Walstad [mailto:[EMAIL PROTECTED]] Sent: Friday, November 03, 2000 3:40 PM To: Steve Drees Subject: RE: [Zope] Cookies Expiration Newbie_Alert Hi Steve, Your solution is very cool! I'm going to use it

[Zope] Can't access management page.

2000-11-07 Thread Joel Janosky
I have a small internal site I have been running for about a year. Starting today, when I browse to the base /manage page, I get the normal tree display in the left hand pane. The right hand pane, however, displays the base page in its presentation form rather than showing the list of objects in

[Zope] Stupid Question but...

2000-11-07 Thread Julian
Hi! I'm a new user and I sort of successfully installed the program on my stand-alone computer. But now I'm wondering how do I install the program on a webserver. Actually, I would like to ask for example, I would like to use the KnowledgeKit developed by Bill on my webserver, do I need to

Re: [Zope] Your thoughts about Zope-based database apps

2000-11-07 Thread J. Atwood
From: "Alonso Rhenals" [EMAIL PROTECTED] Subject: [Zope] Your thoughts about Zope-based database apps 1. Is Zope a good tool to quicky build an efficient effective user interface for a database application? Yes. Once you get the hang of it it is all quite easy. I have at least one

[Zope] CGI

2000-11-07 Thread Nicholas Lo
Hi, My problem here seems obvious, but I really dont know how to solve it. I want to use some of my old CGI programs and I dont have much time to convert them into Zope. Does anyone know how to pass a request to a CGI program and get the results back in Zope?I know client.py may be useful,

Re: [Zope] Stupid Question but...

2000-11-07 Thread Andy McKay
Hi! I'm a new user and I sort of successfully installed the program on my stand-alone computer. Installed what program? But now I'm wondering how do I install the program on a webserver. Actually, I would like to ask for example, I would like to use the KnowledgeKit developed by Bill on

[Zope] Persistence triggering

2000-11-07 Thread Max M
When appending to a list in Zope In a persistent class I cannot just do: self.list.append(item) As it will not trigger the persistence mechanism. I can treat it like an imutable, but that is rather tedious: _list = self.list _list.append(item) self.list = _list But can I also do? self.list

Re: [Zope] CGI

2000-11-07 Thread Andy McKay
Are these CGI programs written in perl? If so there is perl for Zope available... -- Andy McKay, Developer. ActiveState. - Original Message - From: "Nicholas Lo" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 07, 2000 8:43 AM Subject: [Zope] CGI Hi, My problem

Re: [Zope] Can't access management page.

2000-11-07 Thread Aleksander Salwa
On Tue, 7 Nov 2000, Joel Janosky wrote: Starting today, when I browse to the base /manage page, I get the normal tree display in the left hand pane. The right hand pane, however, displays the base page in its presentation form rather than showing the list of objects in the base folder.

Re: [Zope] CGI

2000-11-07 Thread Nicholas Lo
Thanks, Andy. Well, they are all written in C. Mostly by my collegues :p That's why I dont want to touch them in the mean time. --Nick - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Nicholas Lo" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, November 08, 2000 1:04

[Zope] PythonMethod and accessing objects in the ZODB

2000-11-07 Thread Hannes Grund
I'm using the PythonMethod product (latest Version) and Zope2.2.2. The method lives inside a ZClass, which has an common instance propertysheet. Also the method gets an 'self' as argument. Question 1: How do i access the attributes stored within this propertysheet within the method, while

[Zope] [Ann] PathHandler 0.9.0 Released!

2000-11-07 Thread Chris Withers
The Path Handler product lets you handle URLs which don't correspond to objects. For example, if 'ph' is a Path Handler, then, in the following URL: http://a.server/ph/1/2/3/4 1, 2, 3 and 4 don't have to be Zope objects, and the '/1/2/3/4' part of the URL will be handled by the method

[Zope] Checking for ID's before creating ZClass

2000-11-07 Thread Ivan Cornell
Hello from rainy England, In my constructor for a ZClass I want to auto generate an ID consisting of a name followed by a incrementing sequence (port0, port1, port2...). How do I check for all existing id's in a folder? I tried doing it in a PythonMethod (or whatever they are called now!),

RE: [Zope] Your thoughts about Zope-based database apps

2000-11-07 Thread Eric Walstad
Hi Alonso, FYI, some of the list members have great difficulty in reading HTML formatted messages. It's best if you set your format to "Plain Text" before submitting to the list. I haven't yet implemented what you are considering, but I am interested in doing so soon. So, I am very interested

Re: [Zope] Persistence triggering

2000-11-07 Thread Chris McDonough
But can I also do? self.list = self.list + [item] Yes... this works because you're treating it immutably. Although this is likely much slower than an .append because the interpreter needs to make a copy of self.list before tacking on your item. You can also do: self.list.append(item)

RE: [Zope] Persistence triggering

2000-11-07 Thread Max M
From: Chris McDonough [mailto:[EMAIL PROTECTED]] You can also do: self.list.append(item) self._p_changed = 1 This explicitly tells the ZODB to include the object represented by self in the current transaction. Yes but I have avoided using it as I wanted to make a class that is "Pure" Python

[Zope] SiteAccess2: How do I suppress all when managing?

2000-11-07 Thread Danny William Adair
How can I suppress the URL generation in the management screens? I've seen the "Z" folder example but it didn't work for me. Everything is fine except the management interface. tia, CU+Prost, .oO( "Du k├Ânntest mal einen bauen" ) Danny ___

[Zope] XMLRPC accessing Zope DTML/SQL methods

2000-11-07 Thread Mayers, Philip J
I'm planning on using Zope as some middleware to an SQL database backend. Zope will implement the per-row ACL checking and such for the database application, and there are two clients - a simple web-based Zope frontend, and a larger standalone Java application. I'd like the Java app to

[Zope] Re: XMLRPC accessing Zope DTML/SQL methods

2000-11-07 Thread Red Pineseed
Since XML-RPC is already built into Zope, you do not need to work about that. You need however to write a java client to access your ZOPE method. There is information and a JAVA client on the xml-rpc site http://www.xmlrpc.com/. You can find enough info to start with. Philip Message: 3

Re: [Zope] Checking for ID's before creating ZClass

2000-11-07 Thread Andy McKay
Perhaps it might be easier just to generate one you know will be unique, eg date-time or use a counter. Anyway dtml-in "objectIds()" should give you a list of ids of the current folder where the object is being created. -- Andy McKay, Developer. ActiveState. - Original Message -

[Zope] [Fwd: [Zope-dev] Vote on the new name for Python Methods!]

2000-11-07 Thread Michel Pelletier
Please vote folks! -Michel Shane Hathaway wrote: Being Election Day in the United States, now is a good time to vote on the new name for Python Methods. Python Methods are a relatively new concept for Zope. They give you the features of DTML, such as through-the-web editing and

[Zope] importing data

2000-11-07 Thread James Sintz
I have created a simple zclass product for a web based newsletter. Each day's newsletter is input into a form and added into the ZODB as instances of this newsletter zclass. My question is... how do I import 2 years worth of newsletters from tab delimited files exported from another database? I

Re: [Zope] Checking for ID's before creating ZClass

2000-11-07 Thread Dieter Maurer
Ivan Cornell writes: How do I check for all existing id's in a folder? The method "objectIds" of a folder returns the list of ids in that folder. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope

Re: [Zope] PythonMethod and accessing objects in the ZODB

2000-11-07 Thread Dieter Maurer
Hannes Grund writes: I'm using the PythonMethod product (latest Version) and Zope2.2.2. The method lives inside a ZClass, which has an common instance propertysheet. Also the method gets an 'self' as argument. Question 1: How do i access the attributes stored within this

Re: [Zope] Cloning a ZClass-Instance

2000-11-07 Thread Dieter Maurer
[EMAIL PROTECTED] writes: Hallo, 'news'is a zclass and when I'm using a hardcoded value for x it's working. that's the cloning-method: -- dtml-in "objectValues(['news'])" dtml-let x=sequence-item dtml-if "now.isCurrentDay()" dtml- call

RE: [Zope] images in directories

2000-11-07 Thread Dieter Maurer
Pete Prodoehl writes: I was sort of hoping it would be easier. It would be ideal to have this: dtml-with imagesdtml-var image.gif/dtml-with boiled down to one simple tag that works when I store images in a subfolder *and* use file extensions. But from what I've read so far,

Re: [Zope] XMLRPC accessing Zope DTML/SQL methods

2000-11-07 Thread Dieter Maurer
Mayers, Philip J writes: I have an SQL query method backed by a persistent DB connection. I want to call that method over XMLRPC remotely. How do I do that? Namely, how do I pass named arguments to the SQL method? I have looked at XMLRPC some time ago, but I forgot most details: If

Re: [Zope] catalog DTML Document

2000-11-07 Thread Dieter Maurer
Wolfgang Strobl writes: I asked about how to perform this function (to spell it out again: _adding_ a _DTML Document_) programmatically, i.e. via DTML, of from Python code. ZCatalog.manage_catalogObjects(self, REQUEST, RESPONSE, URL1, urls=None) """ index all Zope objects that 'urls'

Re: [Zope] importing data

2000-11-07 Thread Andy McKay
Im trying to finish a Product that does a very simplified version of what you want, just sucks all txt html stuff from a file. This can be most easily accomplished using Python reading straight off the file system or xml-rpc or some other system. If you are comfortable with Python its not too

[Zope] acessing parameters in a helper class

2000-11-07 Thread Max M
I have the below class "mxm_guestbook_base" that is subclassed by a zClass. So far so good. But when in a "index_html" dtml-method I try to acces the value "author" of the "aComment" class returned in the "getAllComments" method like so: dtml-in getAllComments dtml-var author dtml-var

[Zope] OO and ZClasses ?

2000-11-07 Thread Douglas Daniel Del Frari
My main doubt using the Zope, is as to implement the OO concepts using the Zclasses. In the Z Classes, the attributes will be created in the " Property Sheets "? The operations will be created in the border " Methods "? The aggregation concept will be used using " Subobjects "? Question 2 is my

Re: [Zope] re: uploading to Zope with Mac Browser

2000-11-07 Thread Richard Lanham
Jeffrey, Thank you soo much. And, yesyes, I was wrong about Mac netscape, that seems to upload fine, I was just not used to how stubbornly mac netscape will cache a page. It's an old mahine too and does wierd things, not a good lab box. oh, sorry to all for accidentally sending that zip file to

[Zope] asked a million times again...

2000-11-07 Thread Chris Trowbridge
Okay, I got the dtml-var filename to work right assuming that that files are arranged properly according to aquistion, but then when I try to get the file from another folder like dtml-var "folder.filename" It displays the code of that page rather thatn recognizing that it is content.

[Zope] How about create another method other than index_html to get content in OFS::File?

2000-11-07 Thread iap_y2fun.com
Dear all, My problem is that : I have a ZClass based on OFS::File. I need to override the default index_html for my own purpose. After I created my own index_html, I found myself can't access the content of that object. Since: 1. I have no way to access the original method index_html of the base

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

2000-11-07 Thread Itamar Shtull-Trauring
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 into the ZODB codebase while you're at

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

2000-11-07 Thread Andy Dawkins
Shane This would be very helpfull to share. One of the reasons I tried the Berkeley Database was because I kept blowing this 2Gb limit. Prehaps if this was released I could finally finish the zope mail archives. :-) Cheers -Andy -Original Message- From: [EMAIL PROTECTED]

[Zope-dev] Segmentation fault when adding new objects

2000-11-07 Thread Morten W. Petersen
I'm having trouble with the adding of new objects; specifically it's adding of rfc822_address objects (contained within the ZopeGUM distribution, http://www.zope.org/Members/morphex/ZopeGUM). I haven't really got a clue what's wrong, have any of you? -- Start debugging session

[Zope-dev] Adding properties in __init__

2000-11-07 Thread Chris Withers
Hi, I have a product class that subclasses SimpleItem and PropertyManager. If I try and add a property in __init__ as so: self.manage_addProperty('AProperty','1\n2\n3','lines') I get the following wonderful error: Error Type: AttributeError Error Value: aq_base I'm guessing that this is

[Zope-dev] timezone for IST

2000-11-07 Thread Philip S Tellis
I've edited DateTime.py and added a timezone for IST: Line 166: (_zlst) was: 'Iran','Israel','Jamaica','Japan','Mexico/BajaNorte', now: 'Iran','Israel','IST','Jamaica','Japan','Mexico/BajaNorte', Line 223: (_zmap) was: inserted new line now: 'ist':'IST', My apps seem to be working, but I am

Re: [Zope-dev] Patch to fix problem

2000-11-07 Thread Chris Withers
Chris Withers wrote: If I try and add a property in __init__ as so: self.manage_addProperty('AProperty','1\n2\n3','lines') I get the following wonderful error: Error Type: AttributeError Error Value: aq_base I made this go away with a patch to PropertyManager.py:

Re: [Zope-dev] Adding properties in __init__

2000-11-07 Thread Itamar Shtull-Trauring
Chris Withers wrote: self.manage_addProperty('AProperty','1\n2\n3','lines') I'm guessing that this is because self isn't an acquisition wrapper in __init__ (even though SimpleItem is Acquisition.Implicit) but what am I supposed to do to add a property in __init__? I usually override

[Zope-dev] Bad General Try and Except

2000-11-07 Thread Chris Withers
Hi Again, Management.py (around line 148) contains one of those nasty general try: except: clauses which mask real problems Anyone know why it's there? With some additions, I found out it was masking an 'index out of range' error in the product I'm developing. I wonder why this was presented

Re: [Zope-dev] Adding properties in __init__

2000-11-07 Thread Toby Dickenson
On Tue, 07 Nov 2000 11:54:57 +, Chris Withers [EMAIL PROTECTED] wrote: I have a product class that subclasses SimpleItem and PropertyManager. If I try and add a property in __init__ as so: self.manage_addProperty('AProperty','1\n2\n3','lines') I get the following wonderful error: Error

Re: [Zope-dev] Adding properties in __init__

2000-11-07 Thread Chris Withers
Toby Dickenson wrote: Your object must have a factory method somewhere I suggest adding an extra method to your object (I always name it '_after_create') and arrange for it to be called by your factory once the new object is installed in its container. ...yurch! ;-) Chris

Re: [Zope-dev] ZCatalog index error

2000-11-07 Thread Christopher Petrilli
How are you getting things indexed and reindexed in the Catalog, if I might ask? Chris - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 06, 2000 6:42 PM Subject: Re: [Zope-dev] ZCatalog index error

Re: [Zope-dev] ZPatterns and Properties that are objects

2000-11-07 Thread Phillip J. Eby
At 01:01 PM 11/7/00 +0200, Roch'e Compaan wrote: I created a couple of ZClasses based on Dataskin. In the way I grok ZOPE, properties that are objects can not go onto property sheets. So if I have a Customer ZClass that has a property Address (a property that is an object) then I would create

Re: [Zope-dev] DataSkins containing DataSkins

2000-11-07 Thread Phillip J. Eby
At 05:39 PM 11/6/00 -0800, John Eikenberry wrote: The base DataSkin will be in a Rack. Would there be any issues in making the embedded DataSkins (contained on the base DataSkins) use this Rack as well? Seems like it might result in the confusion about which DataSkin a PlugIn on the Rack worked

[Zope-dev] Zope Permission's Adjustment

2000-11-07 Thread Keith . Larson
Hello, Does anyone know the file that I can edit to adjust the layout of the Security Tab? I would like to be able to add the Roles Headers to the bottom of the list as well as the top. Keith Larson Web Developer ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] Questions about implementing object models with ZPatterns

2000-11-07 Thread Phillip J. Eby
At 05:19 PM 11/1/00 +1100, Itai Tavor wrote: Ok... I think I get the "Specialist per role, not per class" part. But I still can't make the jump from a class diagram to a ZClass/Specialist setup. A class diagram contains all the roles - they're the lines between the classes. :) Look at it

Re: [Zope-dev] Zope Permission's Adjustment

2000-11-07 Thread Andy McKay
/lib/python/AccessControl/access.dtml contains the dtml for that page. Fiddle away. -- Andy McKay, Developer. ActiveState. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 07, 2000 7:54 AM Subject: [Zope-dev] Zope Permission's Adjustment

Re: [Zope-dev] ZCatalog index error

2000-11-07 Thread Andy McKay
Well im not sure how much deleting the index and then recreating the index throught the management interface actually does. But I wrote an external method to basically do a find and apply to recatalog bunches of objects. -- Andy McKay, Developer. ActiveState. - Original Message -

[Zope-dev] Vote on the new name for Python Methods!

2000-11-07 Thread Shane Hathaway
Being Election Day in the United States, now is a good time to vote on the new name for Python Methods. Python Methods are a relatively new concept for Zope. They give you the features of DTML, such as through-the-web editing and security, while providing a familiar, refined syntax. But before

[Zope-dev] SiteAccess + ZCatalog Project

2000-11-07 Thread Evan Simpson
Those of you who use SiteAccess, or any other virtual hosting solution, with ZCatalog (including Squishdot, ZUBB, and other ZCatalog-dependent products) should check out this new project: http://dev.zope.org/Wikis/DevSite/Projects/ZCatalogVirtualHostFix This proposes a set of changes and an

Re: [Zope-dev] ZCatalog index error

2000-11-07 Thread Christopher Petrilli
Well im not sure how much deleting the index and then recreating the index throught the management interface actually does. But I wrote an external method to basically do a find and apply to recatalog bunches of objects. Actually i meant originally, not the second time. Are you using

Re: [Zope-dev] ZCatalog index error

2000-11-07 Thread Andy McKay
Ah sorry, I have custom CatalogAware class thats been a bit hacked but was written by Mike Pelletier... when he was hanging around at ActiveState for a few days. Theres a link to wiki on it somewhere -- Andy McKay, Developer. ActiveState. - Original Message - From: "Christopher

[Zope-dev] JPython Product?

2000-11-07 Thread Casey Duncan
I have been toying with the idea of creating a Zope product for creating JPython applets within Zope. I thought this might be a way to increase the capabilities of Zope on the client-side while remaining firmly grounded in Python and simultaneously giving me an excuse to play with JPython and

[Zope-dev] dreamWeaver encoding

2000-11-07 Thread Robin Becker
A colleague and I find that the request encoding of dreamWeaver is causing us problems and we can coorect by passing the DW encoded request through urllib.unquote and quote. -- Robin Becker ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Questions about implementing object models withZPatterns

2000-11-07 Thread Itai Tavor
Phillip J. Eby wrote: At 05:19 PM 11/1/00 +1100, Itai Tavor wrote: Ok... I think I get the "Specialist per role, not per class" part. But I still can't make the jump from a class diagram to a ZClass/Specialist setup. A class diagram contains all the roles - they're the lines between the