Package trac :: Package notification :: Module model :: Class Subscription

Class Subscription

source code

object --+
         |
        Subscription

Instance Methods
 
__init__(self, env)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
repr(x)
source code
 
__getitem__(self, name) source code
 
__setitem__(self, name, value) source code
 
subscription_tuple(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods
 
add(cls, env, subscription)
id and priority overwritten.
source code
 
delete(cls, env, rule_id, sid=None, authenticated=None) source code
 
move(cls, env, rule_id, priority, sid=None, authenticated=None) source code
 
replace_all(cls, env, sid, authenticated, subscriptions) source code
 
update_format_by_distributor_and_sid(cls, env, distributor, sid, authenticated, format) source code
 
find_by_sid_and_distributor(cls, env, sid, authenticated, distributor) source code
 
find_by_sids_and_class(cls, env, uids, class_)
uids should be a collection to tuples (sid, auth)
source code
 
find_by_class(cls, env, class_) source code
Class Variables
  fields = ('id', 'sid', 'authenticated', 'distributor', 'format...
Properties
  env
  values

Inherited from object: __class__

Method Details

__init__(self, env)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

Class Variable Details

fields

Value:
('id',
 'sid',
 'authenticated',
 'distributor',
 'format',
 'priority',
 'adverb',
 'class')