Module bpcalendar :: Class CalendarEntry
[hide private]
[frames] | no frames]

Class CalendarEntry

source code

object --+
         |
        CalendarEntry

Instance Methods [hide private]
 
__init__(self, year=None, month=None, day=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
matches(self, rhs) source code
 
get_changed_fields(self, rhs) source code
 
similar(self, rhs) source code
 
replace(self, rhs) source code
 
__eq__(self, rhs) source code
 
__ne__(self, rhs) source code
 
get(self) source code
 
get_db_dict(self) source code
 
set(self, data) source code
 
set_db_dict(self, data) source code
 
is_active(self, y, m, d) source code
 
suppress_repeat_entry(self, y, m, d) source code
 
_set_or_del(self, key, v, v_list=()) source code
 
_get_description(self) source code
 
_set_description(self, desc) source code
 
_get_location(self) source code
 
_set_location(self, location) source code
 
_get_desc_loc(self) source code
 
_set_desc_loc(self, v) source code
 
_get_priority(self) source code
 
_set_priority(self, priority) source code
 
_get_alarm(self) source code
 
_set_alarm(self, alarm) source code
 
_get_allday(self) source code
 
_set_allday(self, allday) source code
 
_get_start(self) source code
 
_set_start(self, datetime) source code
 
_get_start_str(self) source code
 
_get_end(self) source code
 
_set_end(self, datetime) source code
 
_get_end_str(self) source code
 
open_ended(self) source code
 
_get_vibrate(self) source code
 
_set_vibrate(self, v) source code
 
_get_voice(self) source code
 
_set_voice(self, v) source code
 
_get_serials(self) source code
 
_set_serials(self, serials) source code
 
_get_repeat(self) source code
 
_set_repeat(self, repeat) source code
 
_get_id(self) source code
 
_set_id(self, id) source code
 
_get_notes(self) source code
 
_set_notes(self, s) source code
 
_get_categories(self) source code
 
_set_categories(self, s) source code
 
_get_categories_str(self) source code
 
_get_ringtone(self) source code
 
_set_ringtone(self, rt) source code
 
_get_wallpaper(self) source code
 
_set_wallpaper(self, wp) source code
 
_create_id(self)
Create a BitPim serial for this entry
source code
 
_get_print_data(self)
return a list of strings used for printing this event: [0]: start time, [1]: '', [2]: end time, [3]: Description [4]: Repeat Type, [5]: Alarm
source code
 
_summary(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods [hide private]
 
cmp_by_time(cls, a, b)
compare 2 objects by start times.
source code
Class Variables [hide private]
  priority_high = 1
  priority_normal = 5
  priority_low = 10
  no_end_date = (4000, 1, 1)
  _required_attrs = ('description', 'start', 'end')
  _required_attr_names = ('Description', 'Start', 'End')
  _optional_attrs = ('location', 'priority', 'alarm', 'allday', ...
  _optional_attr_names = ('Location', 'Priority', 'Alarm', 'All-...
  _persistrandom = random.Random()
Properties [hide private]
  description
  location
  desc_loc
  priority
  alarm
  allday
  start
  start_str
  end
  end_str
  vibrate
  voice
  serials
  repeat
  id
  notes
  categories
  categories_str
  ringtone
  wallpaper
  print_data
return a list of strings used for printing this event: [0]: start time, [1]: '', [2]: end time, [3]: Description [4]: Repeat Type, [5]: Alarm
  summary

Inherited from object: __class__

Method Details [hide private]

__init__(self, year=None, month=None, day=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

cmp_by_time(cls, a, b)
Class Method

source code 

compare 2 objects by start times. -1 if a<b, 0 if a==b, and 1 if a>b allday is always less than having start times. Mainly used for sorting list of events


Class Variable Details [hide private]

_optional_attrs

Value:
('location',
 'priority',
 'alarm',
 'allday',
 'vibrate',
 'voice',
 'repeat',
 'notes',
...

_optional_attr_names

Value:
('Location',
 'Priority',
 'Alarm',
 'All-Day',
 'Vibrate',
 '',
 'Repeat',
 'Notes',
...

Property Details [hide private]

description

Get Method:
_get_description(self)
Set Method:
_set_description(self, desc)

location

Get Method:
_get_location(self)
Set Method:
_set_location(self, location)

desc_loc

Get Method:
_get_desc_loc(self)
Set Method:
_set_desc_loc(self, v)

priority

Get Method:
_get_priority(self)
Set Method:
_set_priority(self, priority)

alarm

Get Method:
_get_alarm(self)
Set Method:
_set_alarm(self, alarm)

allday

Get Method:
_get_allday(self)
Set Method:
_set_allday(self, allday)

start

Get Method:
_get_start(self)
Set Method:
_set_start(self, datetime)

start_str

Get Method:
_get_start_str(self)

end

Get Method:
_get_end(self)
Set Method:
_set_end(self, datetime)

end_str

Get Method:
_get_end_str(self)

vibrate

Get Method:
_get_vibrate(self)
Set Method:
_set_vibrate(self, v)

voice

Get Method:
_get_voice(self)
Set Method:
_set_voice(self, v)

serials

Get Method:
_get_serials(self)
Set Method:
_set_serials(self, serials)

repeat

Get Method:
_get_repeat(self)
Set Method:
_set_repeat(self, repeat)

id

Get Method:
_get_id(self)
Set Method:
_set_id(self, id)

notes

Get Method:
_get_notes(self)
Set Method:
_set_notes(self, s)

categories

Get Method:
_get_categories(self)
Set Method:
_set_categories(self, s)

categories_str

Get Method:
_get_categories_str(self)

ringtone

Get Method:
_get_ringtone(self)
Set Method:
_set_ringtone(self, rt)

wallpaper

Get Method:
_get_wallpaper(self)
Set Method:
_set_wallpaper(self, wp)

print_data

return a list of strings used for printing this event: [0]: start time, [1]: '', [2]: end time, [3]: Description [4]: Repeat Type, [5]: Alarm

Get Method:
_get_print_data(self) - return a list of strings used for printing this event: [0]: start time, [1]: '', [2]: end time, [3]: Description [4]: Repeat Type, [5]: Alarm

summary

Get Method:
_summary(self)