| Trees | Index | Help |
|---|
| Package TalkManagement :: Module Talks |
|
Module for the two main Talk management classes: TalkManagement.Talks.Talk and TalkManagement.Talks.FactoredTalks. The two
classes share the main methods for display, namely TalkManagement.Talks.Talk.toHTML and TalkManagement.Talks.Talk.toText.
For a better maintainability, two functions have been separated into
different classes: TalkManagement.Talks.Person and TalkManagement.Talks.Event. In a way, they
should be private, because they are really used only inside... but one
may never know, maybe they might become useful per se at some point.
| Classes | |
|---|---|
Event |
Separate class for an Event, just to make things a bit easier to manage |
FactoredTalks |
Factored talks are a group of talks that happen on the same event. |
Person |
Separate class for a Person (presenter), just to make things a bit easier to manage. |
Talk |
See also the introductory comments for details. |
_phonyNode |
A real hack. |
| Exceptions | |
|---|---|
dataError |
data Error (Exeption). |
| Function Summary | |
|---|---|
| datetime.date |
Return a python date from the literal in the resource |
A stupid utility, really. | |
When generating a text, a decision has to be made whether 'a' or 'an' is used... | |
Generate a fake home page reference for the team; used if there is no /People/ page present in the database. | |
Add the name of an organization, enclosed in a <a> if there is a valid URL. | |
Just a small helper function to generate a Text DOM Node with a language info if necessary with a text. | |
Whether the word 'the' should be added as a text DOM Node. | |
| Variable Summary | |
|---|---|
URIRef |
activity = u'http://www.w3.org/2001/04/roadmap/org#Activ...
|
URIRef |
Cgroup = u'http://www.w3.org/2001/04/roadmap/org#Coordin...
|
str |
consonants = 'aeuioAEUIO'
|
URIRef |
Igroup = u'http://www.w3.org/2001/04/roadmap/org#Interes...
|
Namespace |
ns_actmenu = u'http://www.w3.org/2004/08/TalkManagement#...
|
Namespace |
ns_contact = u'http://www.w3.org/2000/10/swap/pim/contac...
|
Namespace |
ns_foaf = u'http://xmlns.com/foaf/0.1/'
|
Namespace |
ns_ical = u'http://www.w3.org/2002/12/cal/ical#'
|
Namespace |
ns_office = u'http://www.w3.org/Consortium/Offices/Offic...
|
Namespace |
ns_org = u'http://www.w3.org/2001/04/roadmap/org#'
|
Namespace |
ns_talk = u'http://www.w3.org/2004/08/Presentations.owl#...
|
Namespace |
ns_vcard = u'http://www.w3.org/2001/vcard-rdf/3.0#'
|
URIRef |
office = u'http://www.w3.org/Consortium/Offices/Offices....
|
int |
OFFICE_STAFF = 2 |
int |
OTHER = 3 |
int |
TEAM = 0 |
int |
WG_CHAIR = 1 |
URIRef |
Wgroup = u'http://www.w3.org/2001/04/roadmap/org#Working...
|
list |
_noTitle = ['booth', 'lunchtime talk']
|
timedelta |
_oneDay = datetime.timedelta(1)
|
list |
_replace = [(' 01', ' 1'), (' 02', ' 2'), (' 03', ' 3'),...
|
| Function Details |
|---|
getDate(dateR)Return a python date from the literal in the resource
|
sanitizeDate(date, format)A stupid utility, really. The default date.strftime routine of the python library cannot generate a date without a leading zero. Ie, it always generates '02 February' rather than '2 February'. So this here is a routine wrapping around strftime... This routine is based on a pattern " 0X" (note the space) to avoid turning 2004 into 204...
|
_aOrAn(string)When generating a text, a decision has to be made whether 'a' or 'an' is used...
|
_getTeamFakeHome(mbox)Generate a fake home page reference for the team; used if there is no /People/ page present in the database. The fake home page is http://www.w3.org/People/all?pictures=yes#emailaddress.
|
_org(p, org, url)Add the name of an organization, enclosed in a <a> if there is a valid URL.
|
_textWithLanguage(parent, text, lang=None)Just a small helper function to generate a Text DOM Node with a language info if necessary with a text.
|
_theOrNotThe(parent, description)Whether the word 'the' should be added as a text DOM Node. This should not happen if the text afterwards already begins with 'The' or 'the'. If necessary, the Text Node with content 'the' is added to the parent.
|
| Variable Details |
|---|
activity
|
Cgroup
|
consonants
|
Igroup
|
ns_actmenu
|
ns_contact
|
ns_foaf
|
ns_ical
|
ns_office
|
ns_org
|
ns_talk
|
ns_vcard
|
office
|
OFFICE_STAFF
|
OTHER
|
TEAM
|
WG_CHAIR
|
Wgroup
|
_noTitle
|
_oneDay
|
_replace
|
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sat Aug 06 12:38:27 2005 | http://epydoc.sf.net |