[Tutor] loops

Kent Johnson kent37 at tds.net
Wed Apr 29 13:10:04 CEST 2009


On Wed, Apr 29, 2009 at 3:05 AM, Norman Khine <norman at 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


More information about the Tutor mailing list