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

[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] http://lists.zope.

[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 mayb

RE: [Zope-dev] calling dtml method with same name up the hierarchy.

2000-11-07 Thread Dieter Maurer
Casey Duncan writes: > The following should work in your nested standard_html_footer to call the > higher level one without infinite recursion: > > > > I fear this solution is very unstable. "PARENTS" is defined by the URL path (loosely spoken). This means, what "PARENTS[1]" is depen

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 Petri

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

2000-11-07 Thread Willow
Thanks Philip >The way Ty and I usually handle "object" properties is to give an object >setter methods (e.g. "setAddress()") that simply set the property (e.g. >self.Address = addr). The only downside is that you have to do this in a >Python base class or an External method. Later, we expect t

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 Cata

[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 up

[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 w

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 - Fro

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] 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

[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 PR

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 wo

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 cr

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

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] 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:

[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 as

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 _pr

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: ==

[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 onl

[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 beca

[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 > /usr/local/Zop

[Zope-dev] ZPatterns and Properties that are objects

2000-11-07 Thread Roch'e Compaan
On the Road: 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 the address object as a "method" of t

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] [mailto:

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