<div>hi all,</div>
<div>&nbsp;</div>
<div>i have my ontology in mysql. i connect mysql with zope and plone. and i made search interface also in Plone. Now i want to search my documents and display results according to the ontology. Can anyone suggest how to move forward for this?
</div>
<div>&nbsp;</div>
<div>thankx in advance,</div>
<div>bh</div><br><br>
<div><span class="gmail_quote">On 12/18/05, <b class="gmail_sendername"><a href="mailto:zope-db-request@zope.org">zope-db-request@zope.org</a></b> &lt;<a href="mailto:zope-db-request@zope.org">zope-db-request@zope.org</a>
&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send Zope-DB mailing list submissions to<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:zope-db@zope.org">zope-db@zope.org</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://mail.zope.org/mailman/listinfo/zope-db">http://mail.zope.org/mailman/listinfo/zope-db</a><br>or, via email, send a message with subject or body 'help' to
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:zope-db-request@zope.org">zope-db-request@zope.org</a><br><br>You can reach the person managing the list at<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:zope-db-owner@zope.org">zope-db-owner@zope.org</a><br><br>When replying, please edit your Subject line so it is more specific
<br>than &quot;Re: Contents of Zope-DB digest...&quot;<br><br><br>Today's Topics:<br><br>&nbsp;&nbsp;1. select: 'forgot Session' OR 'cannot concatenate 'str' and<br>&nbsp;&nbsp;&nbsp;&nbsp; 'NoneType' objects' (Siegfried Achtermann)<br><br><br>----------------------------------------------------------------------
<br><br>Message: 1<br>Date: Fri, 16 Dec 2005 21:33:58 +0100 (MET)<br>From: &quot;Siegfried Achtermann&quot; &lt;<a href="mailto:siegacht@gmx.de">siegacht@gmx.de</a>&gt;<br>Subject: [Zope-DB] select: 'forgot Session' OR 'cannot concatenate
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'str' and 'NoneType' objects'<br>To: <a href="mailto:zope-db@zope.org">zope-db@zope.org</a><br>Message-ID: &lt;<a href="mailto:2666.1134765238@www97.gmx.net">2666.1134765238@www97.gmx.net</a>&gt;<br>Content-Type: text/plain; charset=&quot;us-ascii&quot;
<br><br>Hi together,<br><br>At first: Sorry for my funny english (I truancy all too often).<br><br>This python-script don't work fine and I've no idea, why?<br><br>I just want to add a simple session with this:<br><br>request&nbsp;&nbsp;= 
container.REQUEST<br>session&nbsp;&nbsp;= request.SESSION<br>form&nbsp;&nbsp;&nbsp;&nbsp; = request.form<br>errors = []<br>#&nbsp;&nbsp;ac_name&nbsp;&nbsp;exists, because login was just before<br>auth_name = form.get('__ac_name')<br><br># the data base connect works, definetly
<br>for i in context.select_rights_from_partner(auth = auth):<br>&nbsp;&nbsp;x_rights = i['rights']<br>&nbsp;&nbsp;session.set('sess_rights', x_rights)<br>else:<br>&nbsp;&nbsp;errors.append('Your auth_name is not in database.')<br><br>if errors:<br>&nbsp;&nbsp;return 
context.no_x_rights(errors=errors)<br>else:<br>&nbsp;&nbsp;return context.okay()<br><br># END<br>My Problem seems to be here:<br>for i in context.select_rights_from_partner(auth = auth):<br>=&gt; than comes:<br>Error Value: cannot concatenate 'str' and 'NoneType' objects'
<br><br>But, when I try this (in the same line:)<br>for i in context.select_rights_from_partner(auth = str(auth)):<br>=&gt; No Session will set.<br><br>I have no idea at all.<br><br>Thx for help.<br><br>Greeting from Germany.
<br><br>Siggi.<br><br><br><br>--<br>10 GB Mailbox, 100 FreeSMS/Monat <a href="http://www.gmx.net/de/go/topmail">http://www.gmx.net/de/go/topmail</a><br>+++ GMX - die erste Adresse für Mail, Message, More +++<br><br><br>------------------------------
<br><br>_______________________________________________<br>Zope-DB mailing list<br><a href="mailto:Zope-DB@zope.org">Zope-DB@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/zope-db">http://mail.zope.org/mailman/listinfo/zope-db
</a><br><br><br>End of Zope-DB Digest, Vol 29, Issue 5<br>**************************************<br></blockquote></div><br>