On Wed, Apr 29, 2009 at 3:05 AM, Norman Khine <nor...@khine.net> wrote:
> hello,
> i have the following code:
>
> if unique_id is not None:
>    training = self.get_site_root()
>    from training import Training
>    # link back to news item
>    root = context.root
>    formats = ['itinerary', 'news']
>    for document in formats:
>        results = root.search(format=document, unique_id=unique_id)

What is root here? What are the allowed parameters for root.search()?

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to