What does the the rss looks liked at line 150 ? Is the NXLucene server
running on the good port ?

        J.


Hi agin i´ve found the error i used PyLucene Version (2.07). Now i use 1.9.1 and all works fine so far.

This means: i can index my Plone-Site. (I see the contents in luke-java-client.)

I can search in script...

******************************
a=container.portal_catalog
print a

kw={'portal_type': ['Document', 'Event', 'Favorite', 'File', 'Folder', 'Image', 'Large Plone Folder', 'Link', 'News Item', 'Topic'], 'sort_on': 'modified', 'sort_order': 'reverse', 'sort_limit': 5}

rec=a.searchResults(**kw)
print rec
for x in rec:
    print x.Title
    print x.Creator
    print x.ModificationDate
return printed
*************************************

But if i try to access x.ModificationDate i got the following error:

Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 325, in _exec
  Module None, line 10, in BB
   - <PythonScript at /AA/BB>
   - Line 10
AttributeError: ModificationDate

I have registered ModifcationDate in the SchemaTab of my PloneLuceneCatalog Instance in ZMI.

How can i access the ModificationDate?

Question 2:

If i enable these two lines in searchResults Methode

  user = _getAuthenticatedUser(self)
  kw[ 'allowedRolesAndUsers' ] = self._listAllowedRolesAndUsers(user)

my query looks like this:

   ({'id': 'allowedRolesAnsUsers', 'value': ['Manager', 'Authenticated',
     'Anonymous', 'user:cklinger']}, {'id': 'portal_type', 'value':
     ['Document', 'Event', 'Favorite', 'File', 'Folder', 'Image', 'Large
     Plone Folder', 'Link', 'News Item', 'Topic']})

The Value in Luke for allowdRolesAndUsers looks like this:

   Manager#Authenticated#Anonymous

without any user:cklinger string.

Is this correct?

thx

    Christian

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to