Package TalkManagement :: Module Talks :: Class Event
[show private | hide private]
[frames | no frames]

Class Event


Separate class for an Event, just to make things a bit easier to manage
Method Summary
  __init__(self, resource, triplets, ID)
  compare(self, other)
Compare two events: either the organizers are identical, or the name, city and country are identical.
  toHTML(self, parent)
  toText(self)
Produce a textual output

Method Details

__init__(self, resource, triplets, ID)
(Constructor)

Parameters:
resource - RDF Resource for the event
triplets - the rdf triple store
ID - id for a more readable print if error occurs
Raises:
dataError - raised if neither a description nor an organizer is provided

compare(self, other)

Compare two events: either the organizers are identical, or the name, city and country are identical.
Parameters:
other - another Event
Returns:
Boolean

toHTML(self, parent)

Parameters:
parent - an Element Node instance, to serve as the 'parent' node for all generated Element Nodes
           (type=PyXMLUtils.ElementNode)

toText(self)

Produce a textual output
Returns:
a string version of the name

Generated by Epydoc 2.1 on Sat Aug 06 12:38:26 2005 http://epydoc.sf.net