The source code

The main module

class hitchin.conference.models.ChangeRequestHotel(*args, **kwargs)[source]

ChangeRequestHotel(id, participant_id, author_id, date, arrival, departure, seen, settled, final_comment)

exception DoesNotExist
exception ChangeRequestHotel.MultipleObjectsReturned
ChangeRequestHotel.author
ChangeRequestHotel.get_next_by_arrival(*moreargs, **morekwargs)
ChangeRequestHotel.get_next_by_date(*moreargs, **morekwargs)
ChangeRequestHotel.get_next_by_departure(*moreargs, **morekwargs)
ChangeRequestHotel.get_previous_by_arrival(*moreargs, **morekwargs)
ChangeRequestHotel.get_previous_by_date(*moreargs, **morekwargs)
ChangeRequestHotel.get_previous_by_departure(*moreargs, **morekwargs)
ChangeRequestHotel.hotelfeaturecr_set
ChangeRequestHotel.participant
class hitchin.conference.models.Hotel(*args, **kwargs)[source]

Hotel(id, name, address, url, info, num_reservations, glat1, glat2, price_per_night, price_per_night_dz, price_remarks)

exception DoesNotExist
exception Hotel.MultipleObjectsReturned
Hotel.overbooked()[source]
Hotel.participant_set
class hitchin.conference.models.HotelFeature(*args, **kwargs)[source]

HotelFeature(id, tag, description, help_text)

exception DoesNotExist
exception HotelFeature.MultipleObjectsReturned
HotelFeature.hotelfeaturecr_set
HotelFeature.hotelfeaturepart_set
HotelFeature.participants
class hitchin.conference.models.HotelFeatureCR(*args, **kwargs)[source]

HotelFeatureCR(id, crequ_id, feature_id, notes)

exception DoesNotExist
exception HotelFeatureCR.MultipleObjectsReturned
HotelFeatureCR.crequ
HotelFeatureCR.feature
class hitchin.conference.models.HotelFeaturePart(*args, **kwargs)[source]

HotelFeaturePart(id, participant_id, feature_id, notes)

exception DoesNotExist
exception HotelFeaturePart.MultipleObjectsReturned
HotelFeaturePart.feature
HotelFeaturePart.participant
class hitchin.conference.models.Participant(*args, **kwargs)[source]

Participant(id, user_id, institution, address, country, homepage, password, status, career, arrival, departure, hotel_reservation, hotel_assigned_id, hotel_final, funding_requested_hotel, funding_requested_travel, funding_hotel, funding_hotel_complete, funding_travel, funding_final, sponsor, in_participant_list, accepted, cancelled, time_created, time_lastchanged, added_by_admin, salutation)

exception DoesNotExist
exception Participant.MultipleObjectsReturned
Participant.arrival_le_14()[source]
Participant.changerequesthotel_set
Participant.delete()[source]
Participant.dinner()[source]
Participant.double()[source]
Participant.funding_requested()[source]
Participant.get_career_display(*moreargs, **morekwargs)
Participant.get_duration_of_stay()[source]
Participant.get_full_name()[source]
Participant.get_next_by_arrival(*moreargs, **morekwargs)
Participant.get_next_by_departure(*moreargs, **morekwargs)
Participant.get_next_by_time_created(*moreargs, **morekwargs)
Participant.get_next_by_time_lastchanged(*moreargs, **morekwargs)
Participant.get_participantorgcomments()[source]
Participant.get_participantorgcomments_admin()[source]
Participant.get_participantorgcomments_available()[source]
Participant.get_previous_by_arrival(*moreargs, **morekwargs)
Participant.get_previous_by_departure(*moreargs, **morekwargs)
Participant.get_previous_by_time_created(*moreargs, **morekwargs)
Participant.get_previous_by_time_lastchanged(*moreargs, **morekwargs)
Participant.get_sponsor_display(*moreargs, **morekwargs)
Participant.get_status_display(*moreargs, **morekwargs)
Participant.hotel_assigned
Participant.hotelfeature_set
Participant.hotelfeaturepart_set
Participant.isspeaker()[source]
Participant.late()[source]
Participant.save()[source]
Participant.select()[source]
Participant.socialevent_set
Participant.socialeventpart_set
Participant.special()[source]
Participant.support_granted_as_requested()[source]
Participant.talk_title_given()[source]
Participant.tex_address()[source]
Participant.user
Participant.zechezollv()[source]
class hitchin.conference.models.ParticipantManager[source]
active()[source]
class hitchin.conference.models.SocialEvent(*args, **kwargs)[source]

SocialEvent(id, tag, title, description, date)

exception DoesNotExist
exception SocialEvent.MultipleObjectsReturned
SocialEvent.get_next_by_date(*moreargs, **morekwargs)
SocialEvent.get_previous_by_date(*moreargs, **morekwargs)
SocialEvent.participants
SocialEvent.socialeventpart_set
class hitchin.conference.models.SocialEventPart(*args, **kwargs)[source]

SocialEventPart(id, event_id, participant_id, num_persons)

exception DoesNotExist
exception SocialEventPart.MultipleObjectsReturned
SocialEventPart.event
SocialEventPart.participant
hitchin.conference.models.changes(self)[source]

Messages

class hitchin.messages.models.Message(*args, **kwargs)[source]

messages to participants

sources: * individual messages from edit_admin page * bulk messages from StandardMessage class

as long as sent==False, they have a preview status (and can be edited & sent/discarded in maintenance mode)

exception DoesNotExist
exception Message.MultipleObjectsReturned
Message.get_next_by_date(*moreargs, **morekwargs)
Message.get_previous_by_date(*moreargs, **morekwargs)
Message.participant
Message.send_and_save()[source]
Message.stdmsg
class hitchin.messages.models.MessageManager[source]
preview()[source]
sent()[source]
class hitchin.messages.models.ParticipantComment(*args, **kwargs)[source]

A messages sent from the participant, using the contact page.

exception DoesNotExist
exception ParticipantComment.MultipleObjectsReturned
ParticipantComment.get_next_by_date(*moreargs, **morekwargs)
ParticipantComment.get_previous_by_date(*moreargs, **morekwargs)
ParticipantComment.get_topic_display(*moreargs, **morekwargs)
ParticipantComment.participant
class hitchin.messages.models.ParticipantInvComment(*args, **kwargs)[source]

ParticipantInvComment(id, author_id, participant_id, text, date)

exception DoesNotExist
exception ParticipantInvComment.MultipleObjectsReturned
ParticipantInvComment.author
ParticipantInvComment.get_next_by_date(*moreargs, **morekwargs)
ParticipantInvComment.get_previous_by_date(*moreargs, **morekwargs)
ParticipantInvComment.participant
class hitchin.messages.models.ParticipantOrgComment(*args, **kwargs)[source]

ParticipantOrgComment(id, title, template, filters, date, active)

exception DoesNotExist
exception ParticipantOrgComment.MultipleObjectsReturned
ParticipantOrgComment.get_next_by_date(*moreargs, **morekwargs)
ParticipantOrgComment.get_previous_by_date(*moreargs, **morekwargs)
ParticipantOrgComment.relevant_for(p)[source]
class hitchin.messages.models.ParticipantOrgCommentManager[source]
active()[source]
class hitchin.messages.models.StandardMessage(*args, **kwargs)[source]

StandardMessage(id, sender, slug, subject, template, date, active, preview, filters)

exception DoesNotExist
exception StandardMessage.MultipleObjectsReturned
StandardMessage.get_next_by_date(*moreargs, **morekwargs)
StandardMessage.get_previous_by_date(*moreargs, **morekwargs)
StandardMessage.message_set
StandardMessage.participants
StandardMessage.relevant_ps()[source]
StandardMessage.send_all()[source]
StandardMessage.send_p(p)[source]
StandardMessage.show_ex()[source]
class hitchin.messages.models.StandardMessageManager[source]
active()[source]
hitchin.messages.models.build_query_filter_from_spec(spec, field_mapping=None)[source]

# from http://www.djangosnippets.org/snippets/676/ # fixes by ug

Assemble a django “Q” query filter object from a specification that consists of a possibly-nested list of query filter descriptions. These descriptions themselves specify Django primitive query filters, along with boolean “and”, “or”, and “not” operators. This format can be serialized and deserialized, allowing django queries to be composed client-side and sent across the wire using JSON.

Each filter description is a list. The first element of the list is always the filter operator name. This name is one of either django’s filter operators, “eq” (a synonym for “exact”), or the boolean operators “and”, “or”, and “not”.

Primitive query filters have three elements:

[filteroperator, fieldname, queryarg]

“filteroperator” is a string name like “in”, “range”, “icontains”, etc. “fieldname” is the django field being queried. Any name that django accepts is allowed, including references to fields in foreign keys using the “__” syntax described in the django API reference. “queryarg” is the argument you’d pass to the filter() method in the Django database API.

“and” and “or” query filters are lists that begin with the appropriate operator name, and include subfilters as additional list elements:

[‘or’, [subfilter], ...] [‘and’, [subfilter], ...]

“not” query filters consist of exactly two elements:

[‘not’, [subfilter]]

As a special case, the empty list “[]” or None return all elements.

If field_mapping is specified, the field name provided in the spec is looked up in the field_mapping dictionary. If there’s a match, the result is subsitituted. Otherwise, the field name is used unchanged to form the query. This feature allows client-side programs to use “nice” names that can be mapped to more complex django names. If you decide to use this feature, you’ll probably want to do a similar mapping on the field names being returned to the client.

This function returns a Q object that can be used anywhere you’d like in the django query machinery.

This function raises ValueError in case the query is malformed, or perhaps other errors from the underlying DB code.

Example queries:

[‘and’, [‘contains’, ‘name’, ‘Django’], [‘range’, ‘apps’, [1, 4]]] [‘not’, [‘in’, ‘tags’, [‘colors’, ‘shapes’, ‘animals’]]] [‘or’, [‘eq’, ‘id’, 2], [‘icontains’, ‘city’, ‘Boston’]]

hitchin.messages.models.new_msgs(self)[source]

Return queryset with all new messages.

hitchin.messages.models.on_save_participant(instance, **kwargs)[source]
hitchin.messages.models.on_save_stdmessage(instance, **kwargs)[source]
hitchin.messages.models.seen_msgs(self)[source]
hitchin.messages.models.sent_stdmsgs(self)[source]

Table Of Contents

Previous topic

Sending messages to participants

This Page