Module Expr Str Expr Str ImportFrom alias alias Import alias Import alias identifier Import alias identifier Import alias identifier ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str attr Str Str Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword Str attr keyword NameLoad attr keyword NameLoad attr Assign NameStore BinOpSub AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr If CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list ClassDef bases body Assign NameStore Str decorator_list decorator_list
N/A N/A 
   Copyright 2010 Daniel Graziotin <daniel.graziotin@acm.org>

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 N/A 
This module holds the Trip model
 django.db models IntegrityError N/A location N/A modality modulemodality N/A preferences modulepreferences N/A participation moduleparticipation Trip N/A N/A models Model N/A N/A 
    Represents a Trip. See `Trip <http://dycapo.org/Protocol#Trip>`_ for more info.
     N/A cannot_update N/A published updated expires locations modality participation N/A published N/A N/A models DateTimeField auto_now_add True blank False null False N/A updated N/A N/A models DateTimeField auto_now True blank False null False N/A expires N/A N/A models DateTimeField blank False null True db_index True N/A active N/A N/A models BooleanField default False db_index True N/A author N/A N/A models ForeignKey Person related_name author blank False null False N/A locations N/A N/A models ManyToManyField N/A location Location blank False N/A modality N/A N/A models ForeignKey N/A modulemodality Modality blank False null False N/A preferences N/A N/A models ForeignKey N/A modulepreferences Preferences null False N/A participation N/A N/A models ManyToManyField Person through Participation related_name participation N/A href N/A N/A models URLField verify_exists False blank True null False __repr__ N/A N/A self N/A N/A N/A N/A str N/A self id N/A __unicode__ N/A N/A self N/A N/A N/A N/A str N/A self id N/A get_destination N/A N/A self N/A N/A N/A 
        Returns the location representing the destination of the Trip
         N/A destination N/A N/A N/A N/A N/A N/A self locations filter point dest only id georss_point N/A 0 N/A destination N/A update_vacancy N/A N/A self N/A N/A N/A 
        Checks how many seats are still available in car and updates the attribute consistently
         N/A participations_for_trip N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self get_participations exclude role driver filter started True filter finished False count N/A vacancy N/A N/A N/A self modality capacity participations_for_trip N/A N/A N/A N/A self modality vacancy vacancy N/A N/A N/A N/A self modality vacancy vacancy N/A N/A N/A N/A self modality save N/A has_vacancy N/A N/A self N/A N/A N/A 
        Returns True if there are emtpy seats available
         N/A N/A N/A self update_vacancy N/A N/A N/A N/A self modality vacancy 0 N/A N/A True N/A False N/A save N/A N/A self N/A args kwargs N/A N/A 
        Ensures integrity.
         N/A N/A N/A N/A self expires N/A N/A self modality N/A N/A self preferences N/A N/A self author N/A N/A N/A IntegrityError Trip objects MUST have expires and content attributes. N/A N/A N/A N/A super Trip self save args kwargs N/A get_participations N/A N/A self N/A N/A N/A 
        Returns all the Participations of the Trip
         N/A participations N/A N/A N/A N/A moduleparticipation Participation objects filter trip N/A self id N/A participations N/A to_xmlrpc N/A N/A self N/A N/A N/A 
        Returns a Python dict that contains just the attributes we want to expose
        in out XML-RPC methods
         N/A locations N/A N/A N/A self locations all N/A locations_dict N/A N/A location locations N/A N/A N/A N/A locations_dict append N/A N/A location to_xmlrpc N/A trip_dict N/A id published updated expires modality preferences locations author N/A self id N/A self published N/A self updated N/A self expires N/A N/A N/A self modality to_xmlrpc N/A N/A N/A self preferences to_xmlrpc locations_dict N/A N/A N/A self author to_xmlrpc N/A trip_dict N/A Meta N/A N/A N/A app_label server N/A N/A