[Zope-DB] Re: Zope-DB Digest, Vol 29, Issue 5

-bhavana - hi.bhavana at gmail.com
Mon Dec 19 01:52:59 EST 2005


hi all,

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?

thankx in advance,
bh


On 12/18/05, zope-db-request at zope.org <zope-db-request at zope.org> wrote:
>
> Send Zope-DB mailing list submissions to
>        zope-db at zope.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mail.zope.org/mailman/listinfo/zope-db
> or, via email, send a message with subject or body 'help' to
>        zope-db-request at zope.org
>
> You can reach the person managing the list at
>        zope-db-owner at zope.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Zope-DB digest..."
>
>
> Today's Topics:
>
>   1. select: 'forgot Session' OR 'cannot concatenate 'str' and
>      'NoneType' objects' (Siegfried Achtermann)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 16 Dec 2005 21:33:58 +0100 (MET)
> From: "Siegfried Achtermann" <siegacht at gmx.de>
> Subject: [Zope-DB] select: 'forgot Session' OR 'cannot concatenate
>        'str' and 'NoneType' objects'
> To: zope-db at zope.org
> Message-ID: <2666.1134765238 at www97.gmx.net>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi together,
>
> At first: Sorry for my funny english (I truancy all too often).
>
> This python-script don't work fine and I've no idea, why?
>
> I just want to add a simple session with this:
>
> request  = container.REQUEST
> session  = request.SESSION
> form     = request.form
> errors = []
> #  ac_name  exists, because login was just before
> auth_name = form.get('__ac_name')
>
> # the data base connect works, definetly
> for i in context.select_rights_from_partner(auth = auth):
>   x_rights = i['rights']
>   session.set('sess_rights', x_rights)
> else:
>   errors.append('Your auth_name is not in database.')
>
> if errors:
>   return context.no_x_rights(errors=errors)
> else:
>   return context.okay()
>
> # END
> My Problem seems to be here:
> for i in context.select_rights_from_partner(auth = auth):
> => than comes:
> Error Value: cannot concatenate 'str' and 'NoneType' objects'
>
> But, when I try this (in the same line:)
> for i in context.select_rights_from_partner(auth = str(auth)):
> => No Session will set.
>
> I have no idea at all.
>
> Thx for help.
>
> Greeting from Germany.
>
> Siggi.
>
>
>
> --
> 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
> +++ GMX - die erste Adresse für Mail, Message, More +++
>
>
> ------------------------------
>
> _______________________________________________
> Zope-DB mailing list
> Zope-DB at zope.org
> http://mail.zope.org/mailman/listinfo/zope-db
>
>
> End of Zope-DB Digest, Vol 29, Issue 5
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-db/attachments/20051219/ddc70a3f/attachment.htm


More information about the Zope-DB mailing list