[Zope-dev] ZClass and ZCatalog

2001-07-06 Thread Tim McLaughlin

Marco,

The other option is to use ZClassEvents which will let you write code that
runs when properties are changed.  Then you can index in 1 or 20 catalogs,
and send emails, whatever.  CatalogAwareness, then, is no longer necessary
(since it is limited to one catalog anyway).

Tim

 -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

_
Tim McLaughlin
iterationZERO - www.iterationzero.com
703-481-2233


___
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 with Zope LDAP Connector

2001-07-06 Thread Cerio Gianluca

I am using a Zope LDAP Connector with a OpenLDAP 2.0.7 server.
It seems to work fine, but aftar a while the conection seems to be
closed?
Did anyone have the same problem or a solution.
Thanks
Gianluca




___
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-06 Thread Dieter Maurer

Marco Nova writes:
  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 ?
You are sure that you understand how indexing works?

  There is a correspondence between the index names and
  attributes (maybe acquired, maybe parameterless method)
  of the index objects.

  Does a ZCatalog image match any of your ZClasses attributes?


Dieter

___
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] ZServerSSL proposal

2001-07-06 Thread Shane Hathaway

Zopistas,

Please support or denounce this proposal.  Integrated HTTPS support in 
Zope would be really nice IMHO.

http://dev.zope.org/Wikis/DevSite/Proposals/ZServerSSLIntegration

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] proxy roles dont jive w/ new security model

2001-07-06 Thread alan runyan

ok.  thanks for a nudge from Martijn I whipped out the trusty debugger and
confirmed my worse fears.

I have a DTML Method that is a view of a object.  I'm using CMF and dont
want the person to have to log in to submit content.  so what I did was..
say ok.  I will create 2 Script (Pythons) that are Proxied at a Management
Role, A) creates a new content object, then displays the edit_form, B)
submits the edit_form and updates the new instances ;).  This is a valid
use-case of the CMF.  How I think this should be done is creating a PUBLIC
user where unreviewed objects go, when they are submitted they are set to
review_status of pending.  when they are published they are moved into
another folder.

My Script (Python) -- which is Proxied w/ all roles: creates the new object
and then calls a method, getEditView (which is accessible by Public) on my
instance, which returns the edit_form, DTML Method called with the instance
as the client and the current REQUEST.  Now when this DTML Method is called
it gets a new SecurityContext.  and the new SecurityContext doesnt care
about my Proxied roles.  (it takes in 0 consideration of this, and this
should be noted in the developer guide).  Because the Context only cares
about *who is calling*, which isnt the Proxy role but the actual user,
Anonymous User. ** Thus when its rendering the DTML Method its rendering as
Anonymous not as my Proxied Script (Python) and when it hits a this() it
horks with a Not Authorized.** - I'm quite sure how True this is.  It
appears that when i'm going through the security machinery the
'anExecutableObject' (which is the DTML Method) *has* my proxies roles.
BTW: I cant call manage_proxy on the DTML Method, because that also only
cares about *who is calling* and the Anonymous Role doesnt do much good for
me (if I try 'Manager' or something it correctly complains that I do not
have that proxy role).

It appears that my DTML Method needs a _customSecurityPolicy.   It seems the
publishing machinery publishes: Script (Python), then MyDTMLMethod, then the
header that MyDTMLMethod uses.  do I need a customSecurityPolicy to attach
to my DTMLMethods so that they can run in the same security context (which I
would like to be, God -- remember they are submitting to a Script(Python)
which is doing all the heavy lifting, the rendering is being returned by the
Script(Python), so it would be fine if I had a lets this Publishing Event
occur as God

Q: when my header says _.hasattr(this(), 'someAttr') - this() is the
dtml_method(client, request) client reference, correct?

this has caused me very much heartache.  ;(   and emotional damage ;'(

I'm very confused and discourgaged right now.  If I told you how long i've
spent on this you would cringe.  My end goal is to make a CMF product where
peopel submit resumes/job postings (this works just fine w/ members logged
in).  but I need people who are not members to be able to submit job
postings.  ( so they need to be able to create and edit the entry for it to
be pushed to a review status.  )  I am trying to do this w/o changing my
Objects because I want to be able to come up w/ a idiom of doing this for
all CMF objects (since you may want people who are not members to submit
Calendar Events, for instance).

if im not giving enough information please help.  I'm willing to spend time
doing this.  I am so far down this road and I've committed to someone i
would have it done.

any help would be appreciated,
~runyaga


___
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] Problem starting Zope

2001-07-06 Thread Dieter Maurer

Jimmie Houchin writes:
  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)'
Someone broke the code near line 288 of z2.py.

Look at it.
You should be especially worried about indentation.
   Convert tab to spaces and see whether the indentation
   is right.


Dieter

___
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] Problem starting Zope

2001-07-06 Thread Jimmie Houchin

Thanks Dieter for the reply.
Sorry for the delay in the reply. The problem was on my home machine and I've
been at work.

I don't know that anyone broke code, other than Netscape breaking my lines in
the message. :)

I duplicated the message by typing it into Netscape.

Look at the reply to myself for more info.

I still don't know where there error is but it doesn't work with the cvs
Python.

Thanks again.

Jimmie Houchin


Dieter Maurer wrote:
 
 Jimmie Houchin writes:
   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)'
 Someone broke the code near line 288 of z2.py.
 
 Look at it.
 You should be especially worried about indentation.
Convert tab to spaces and see whether the indentation
is right.
 
 Dieter
 
 ___
 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] Problem starting Zope

2001-07-06 Thread Jimmie Houchin

Updating my previous message.

The problem must be in the cvs version of Python.
I downloaded the tarball of 2.1, compiled.
Recompiled Zope.
./start
Up and running. :)

In addition to the error below when doing ./z2.py I got this when doing
./start with the cvs Python:

./start
/usr/local/lib/python2.2/FCNTL.py:7: DeprecationWarning: ... (don't want to
type it all)
ditto...
-
2001-07-06... PANIC(300) z2 Startup exception
Traceback ...
  (Object: ZLogger)
  File /usr/local/zope/Zope2/lib/python/Zope/__init__.py, line 95, in ?
  ...
(Object: Transformer)
  ...
  File
/usr/local/zope/Zope2/lib/python/RestrictedPython/compiler/transformer.py,
line 695, in com_node
KeyError: 313


Lots not included.

Hopefully it is enough.
I can duplicate if necessary to provide more information.


Does anyone have a way to copy text from a GnomeTerminal window?
Or is there a better way that I can do this to be able to provide accurate
information?
Anything I can do to assist better, I would be happy to do.

Thanks again.

Jimmie Houchin




Jimmie Houchin wrote:
 
 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 )

___
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] Problem starting Zope

2001-07-06 Thread Andreas Jung

Zope 2.4 will not (yet) run with Python 2.2 because
there is a byte-code related problem. Please use Python 2.1 instead.

Andreas
- Original Message -
From: Jimmie Houchin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 7:03 PM
Subject: Re: [Zope-dev] Problem starting Zope


 Updating my previous message.

 The problem must be in the cvs version of Python.
 I downloaded the tarball of 2.1, compiled.
 Recompiled Zope.
 ./start
 Up and running. :)

 In addition to the error below when doing ./z2.py I got this when doing
 ./start with the cvs Python:

 ./start
 /usr/local/lib/python2.2/FCNTL.py:7: DeprecationWarning: ... (don't want
to
 type it all)
 ditto...
 -
 2001-07-06... PANIC(300) z2 Startup exception
 Traceback ...
   (Object: ZLogger)
   File /usr/local/zope/Zope2/lib/python/Zope/__init__.py, line 95, in ?
   ...
 (Object: Transformer)
   ...
   File
 /usr/local/zope/Zope2/lib/python/RestrictedPython/compiler/transformer.py,
 line 695, in com_node
 KeyError: 313


 Lots not included.

 Hopefully it is enough.
 I can duplicate if necessary to provide more information.


 Does anyone have a way to copy text from a GnomeTerminal window?
 Or is there a better way that I can do this to be able to provide accurate
 information?
 Anything I can do to assist better, I would be happy to do.

 Thanks again.

 Jimmie Houchin




 Jimmie Houchin wrote:
 
  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 )

 ___
 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 )