[Zope-dev] ZClass and ZCatalog

2001-07-05 Thread Marco Nova

Hello Guys,

I've a problem with a ZClass (JCEvent) I've created and ZCatalog.
Base classes for JCEvent are: ZObject, JCObject, CatalogAwareBase.
JCObject is another ZClass whose base class is ZObject.

Instances of JCEvent are added to a ZCatalog but they are not automatically
indexed by the catalog. The catalog is named 'events'.
How can I automaticallly index them ?


Thanks,

- mn

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



[Zope-dev] Method invocation after Zope restart

2001-07-05 Thread Paulo M. Goncalves


Hi everybody,

Just one question (maybe a newbie question):

After a Zope restart I want to invoke a method from an object instance.
Is there a such mechanism builtin in the Zope startup? Or in a more wide
perspective, how could an object instance be notified of a Zope restart?


Thanks,
Paulo

---
 Paulo Marques Goncalves  CDFtel, Lda  
 Ph. No:  +351.22.3389843 Rua Goncalo Cristovao, 347 - Sala 205
 FAX No:  +351.22.3389845 4000-270 PORTO
 E-mail:  mailto:[EMAIL PROTECTED]Portugal
---


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



RE: [Zope-dev] ZClass and ZCatalog

2001-07-05 Thread Adrian Hungate

Rename the catalog from 'events' to 'Catalog' and CatalogAwareBase should
start working.

Adrian...

-Original Message-
From: Marco Nova [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 05 July 2001 09:47
To: [EMAIL PROTECTED]
Subject: [Zope-dev] ZClass and ZCatalog


Hello Guys,

I've a problem with a ZClass (JCEvent) I've created and ZCatalog.
Base classes for JCEvent are: ZObject, JCObject, CatalogAwareBase.
JCObject is another ZClass whose base class is ZObject.

Instances of JCEvent are added to a ZCatalog but they are not automatically
indexed by the catalog. The catalog is named 'events'.
How can I automaticallly index them ?


Thanks,

- mn

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

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



[Zope-dev] Zope LDAP

2001-07-05 Thread cota


I am trying to use a Zope LDAPConnector to interface with an
OpenLDAPserver 2.0.7.
Icompiled the Python LDAPAPI1.10 alpha3.
Did someone know if there is some problem using this library?
I use Zope 2.3.3 on Linux Suse 7.1
Thanks in advance



--
Alessandro COTA
CSP s.c. a r.l. - INLAB
LaboratorioTecnologie - PA
__
Via Livorno, 60 - 10144 Torino [IT]
[EMAIL PROTECTED]
tel. +39 011 316 5107
__



RE: [Zope-dev] Zope LDAP

2001-07-05 Thread Mariano Moreyra



But 
did the Zope w/LDAP worked finally??
Or did 
you have any problem with that library?


  -Mensaje original-De: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]En nombre de cotaEnviado el: 
  jueves, 05 de julio de 2001 10:59Para: 
  [EMAIL PROTECTED]Asunto: [Zope-dev] Zope LDAPI 
  am trying to use a Zope LDAPConnector to interface with an 
  OpenLDAPserver 2.0.7. Icompiled the Python 
  LDAPAPI1.10 alpha3. Did someone know if there is some problem 
  using this library? I use Zope 2.3.3 on Linux Suse 7.1 Thanks in 
  advance--
Alessandro COTA
CSP s.c. a r.l. - INLAB
LaboratorioTecnologie - PA
__
Via Livorno, 60 - 10144 Torino [IT]
[EMAIL PROTECTED]
tel. +39 011 316 5107
__ 



Re: [Zope-dev] Method invocation after Zope restart

2001-07-05 Thread Chris McDonough

Use the __init__.py of a package inside the Products directory to do
something at startup (e.g. Products/ZCatalog/__init__.py).

Use Python's sys.exitfunc to hook a shutdown.

Paulo M. Goncalves wrote:
 
 Hi everybody,
 
 Just one question (maybe a newbie question):
 
 After a Zope restart I want to invoke a method from an object instance.
 Is there a such mechanism builtin in the Zope startup? Or in a more wide
 perspective, how could an object instance be notified of a Zope restart?
 
 Thanks,
 Paulo
 
 ---
  Paulo Marques Goncalves  CDFtel, Lda
  Ph. No:  +351.22.3389843 Rua Goncalo Cristovao, 347 - Sala 205
  FAX No:  +351.22.3389845 4000-270 PORTO
  E-mail:  mailto:[EMAIL PROTECTED]Portugal
 ---
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

-- 
Chris McDonough Digital Creations, Inc.
Publishers of Zopehttp://www.zope.org

 Killing hundreds of birds with thousands of stones 

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



[Zope-dev] [Announce] Zope Developer's Guide (Zope 2.4 edition) Released

2001-07-05 Thread Amos Latteier

I'm pleased to announce the release of the Zope Developer's Guide
covering Zope 2.4.

  http://www.zope.org/Documentation/ZDG

This is the first polished draft of the guide; gone are the reviewer
comments in the text and most of the typos are fixed.

The guide is available in PDF and downloadable HTML for off-line
reading.

If you have questions, comments, or bug reports, please file a
SourceForge bug report.

  http://sourceforge.net/tracker/?group_id=22339atid=375126

Enjoy, and thanks to everyone how has helped us along the way!

-Amos

--
Amos Latteier mailto:[EMAIL PROTECTED]
Digital Creations http://www.digicool.com

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



RE: [Zope-dev] ZClass and ZCatalog

2001-07-05 Thread Marco Nova

Hello,

I solved my problems adding manage_editCataloger with the name of my
ZCatalog when I add the object.
I've also experimented with the order of the base classes and it doesn't
seems to be of any relevancy, so your ZClass can derive from ZObject,
JCObject, CatalogAwareBase or ZObject, CatalogAwareBase, JCObject but to
make it working, you have to call the manage_editCataloger method in the
constructor.

regards,

- mn

 -Original Message-
 From: Marco Nova [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 05, 2001 2:57 PM
 To: [EMAIL PROTECTED]
 Subject: RE: [Zope-dev] ZClass and ZCatalog
 
 
  Rename the catalog from 'events' to 'Catalog' and 
  CatalogAwareBase should
  start working.
 
 No, it doesn't work. I read from an HOW-TO that the problem may reside
 (beside the name of the catalog) that the first base class id 
 JCObject and
 not CatalogAwareBase.
 Is it true ?
 
 - mn
 
 P.S.
 
 I'm using Zope 2.3.3 on windows, binary release.
 
  -Original Message-
  From: Marco Nova [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, 05 July 2001 09:47
  To: [EMAIL PROTECTED]
  Subject: [Zope-dev] ZClass and ZCatalog
  
  
  Hello Guys,
  
  I've a problem with a ZClass (JCEvent) I've created and ZCatalog.
  Base classes for JCEvent are: ZObject, JCObject, CatalogAwareBase.
  JCObject is another ZClass whose base class is ZObject.
  
  Instances of JCEvent are added to a ZCatalog but they are not 
  automatically
  indexed by the catalog. The catalog is named 'events'.
  How can I automaticallly index them ?
  
  
  Thanks,
  
  - mn
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )
 

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



Re: [Zope-dev] Bug in TransparentFolders ???

2001-07-05 Thread Shane Hathaway

Andre Schubert wrote:
 after searching the soures if found a way the point of disaster.
 in TransparentFolderPatch i changed the line:
 if tpids and not self._v_no_transparent and name[:3] != '_p_' :
 to:
 if tpids and not self._v_no_transparent and name[:3] != '_p_' and
 name[-11:] != '_Permission':
 which means to me the if there is a TransparentFolder then don't acquire
 its Permissions only Acquire its Objects.
 Is this right or did i forgot something???

I see what you're saying.  It really ought to just use name[:1] != '_'
to cover all cases.  I've made the change and I'll test it for a few
days then release another version of TF.

Shane

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



[Zope-dev] Problem starting Zope

2001-07-05 Thread Jimmie Houchin

Hello,

After messing around for a long time, I am finally beginning to develop
my website. :)
I am having problems starting Zope. I've never had problems starting
Zope.

RH 7.1
I have an updated cvs Zope installed.
I have an updated cvs Python installed.
It is the cvs Python which is called on the commandline or via
/usr/local/bin/python.

Installing Zope via wo_pcgi.py and then starting Zope via ./z2.py gives
me this:

the -h output
...
-W port
   The WebDAV: command not found
./z2.py: line 288: syntax error near unexpected token
`sys.path.insert(0,'
./z2.py: line 288: `sys.path.insert(0, '%s/lib/python' % swhome)'

I don't know if I've encountered a bug or did something wrong.
Any suggestions appreciated.

Thanks,

Jimmie Houchin

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