[Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Stefano Guglia
Hello everybody.. I have to index some data from a mysql query recordset and all works OK but..I added a keywordIndex to store (with the same url) multiple values related to the above recordset. It seems I cannot use brains (query results are strings). Probably a newbie question, but I really do

Re: [Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Andreas Jung
--On 25. Februar 2008 10:09:00 +0100 Stefano Guglia <[EMAIL PROTECTED]> wrote: Hello everybody.. I have to index some data from a mysql query recordset and all works OK but..I added a keywordIndex to store (with the same url) multiple values related to the above recordset. It seems I cannot

Re: [Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Stefano Guglia
> > You are trying to *index* rows returned from a ZSQL operation. > This make no sense. As said: ZCatalog is designed to deal with > persistent objects (the things you see within your ZODB hierarchy within > the ZMI). And why do you want to index stuff within Zope if you can perform > the sear

Re: [Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Andreas Jung
--On 25. Februar 2008 12:00:24 +0100 Stefano Guglia <[EMAIL PROTECTED]> wrote: You are trying to *index* rows returned from a ZSQL operation. This make no sense. As said: ZCatalog is designed to deal with persistent objects (the things you see within your ZODB hierarchy within the ZMI). A

Re: [Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Stefano Guglia
> > That's not the primary supported usecase of ZCatalog. Perhaps > > > > will help you any further. > > -aj anyway, I do have persistent objects in my plone product, no matter on how I originated them.. the problem is that I have no idea

Re: [Zope] zcatalog, brains & keywordIndex

2008-02-25 Thread Andreas Jung
--On 25. Februar 2008 16:45:51 +0100 Stefano Guglia <[EMAIL PROTECTED]> wrote: That's not the primary supported usecase of ZCatalog. Perhaps will help you any further. -aj anyway, I do have persistent objects in my plone product,

Re: [Zope] Zope Calendar Product?

2008-02-25 Thread Chris Withers
Cliff Ford wrote: events. I know this is a big, complicated field that teams work on for years. Do I expect too much? In a word, yes ;-) Either use Outlook, like the "corporate" world, or soem of the Google calendaring stuff which I have a feeling may be available for uses requiring privacy

[Zope] Acquisition / proxying object

2008-02-25 Thread Joerg Baach
Hi *, I am trying to have a folderish object that acquires from a user object (ldapuserfolder). It should have its own properties and contents, but fall back to the ones of the ldap user. I have created an object, extending Folder, and it behaves nicely in zopectl debug. When I try to access it t

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Peter Sabaini
On Monday 25 February 2008 20:45:37 Joerg Baach wrote: > Hi *, > > I am trying to have a folderish object that acquires from a user object > (ldapuserfolder). It should have its own properties and contents, but > fall back to the ones of the ldap user. > > I have created an object, extending Folder

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Joerg Baach
Hi Peter, > I'm not familiar with LDAPUserFolder (its not really a user object but a user > container, isn't it?) but the error you're getting is a security error -- the > Python Script checks for security attributes before it accesses attributes. > You need to add the appropriate security decla

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Joerg Baach
> I should have mentioned that in order for verbose-security to work you also > need to switch to the python security implementation -- did you do that? Yes, I did. > If yes, you should see lines like these in your event.log: No, don't :-( But somehow I have the feeling it has more to do wit

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Peter Sabaini
On Monday 25 February 2008 22:45:24 Joerg Baach wrote: > > I should have mentioned that in order for verbose-security to work you > > also need to switch to the python security implementation -- did you do > > that? > > Yes, I did. > > > If yes, you should see lines like these in your event.log: >

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Peter Sabaini
On Monday 25 February 2008 21:31:46 Joerg Baach wrote: > Hi Peter, > > > I'm not familiar with LDAPUserFolder (its not really a user object but a > > user container, isn't it?) but the error you're getting is a security > > error -- the Python Script checks for security attributes before it > > acc

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Peter Sabaini
ps.: http://www.zope.org/Documentation/Books/ZDG/current/Security.stx has old but AFAIK still good info On Monday 25 February 2008 22:45:24 Joerg Baach wrote: > > I should have mentioned that in order for verbose-security to work you > > also need to switch to the python security implementation -

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Joerg Baach
Hi again, > 2008-02-25T22:30:18 DEBUG ImplPython Unauthorized: Your user account does not > have the required permission. Access to 'manage' of (Application at ) > denied. Your user account, Anonymous User, exists at /acl_users. Access > requires one of the following roles: ['Manager']. Your r

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Joerg Baach
Hi *, > But somehow I have the feeling it has more to do with the 'and the > container is not wrapped' part of the message. Not that I can make sense > of it ;-) Mmm, after even more searching, and not understanding I found http://www.mail-archive.com/[EMAIL PROTECTED]/msg11438.html and changed