Package expedient :: Package common :: Package xmlrpc_serverproxy :: Module models :: Class PasswordXMLRPCServerProxy
[hide private]
[frames] | no frames]

Class PasswordXMLRPCServerProxy

source code


Implements a server proxy for XML-RPC calls that checks SSL certs and uses a password to talk to the server. The password is automatically renewed whenever it expires.

Nested Classes [hide private]
  DoesNotExist
  MultipleObjectsReturned

Inherited from django.db.models.base.Model: __metaclass__

Instance Methods [hide private]
 
_reset_proxy(self) source code
 
_check_expiry(self) source code
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
save(self, *args, **kwargs)
Saves the current instance.
source code
 
set_verify_certs(self)
Enable/disable SSL certificate verification.
source code
 
change_password(self, password=None)
Change the remote password
source code
 
ping(self, data) source code
 
is_available(self, get_info=False)
Call the server's ping method, and see if we get a pong
source code
 
install_trusted_ca(self)
Add the CA that signed the certificate for self.url as trusted.
source code
 
get_next_by_password_timestamp(*moreargs, **morekwargs)
 
get_previous_by_password_timestamp(*moreargs, **morekwargs)
 
objects(...)

Inherited from django.db.models.base.Model: __eq__, __hash__, __ne__, __reduce__, __repr__, __str__, clean, clean_fields, date_error_message, delete, full_clean, prepare_database_save, save_base, serializable_value, unique_error_message, validate_unique

Inherited from django.db.models.base.Model (private): _collect_sub_objects, _get_FIELD_display, _get_next_or_previous_by_FIELD, _get_next_or_previous_in_order, _get_pk_val, _get_unique_checks, _perform_date_checks, _perform_unique_checks, _set_pk_val

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

Class Variables [hide private]
  username = models.CharField(max_length= 100, help_text= "Usern...
  password = models.CharField(max_length= get_max_password_len()...
  max_password_age = models.PositiveIntegerField('Max Password a...
  password_timestamp = models.DateTimeField(auto_now_add= True)
  url = models.CharField("Server URL", max_length= 1024)
  verify_certs = models.BooleanField("Verify Certificates?", def...
  _base_manager = <django.db.models.manager.Manager object at 0x...
  _default_manager = <django.db.models.manager.Manager object at...
  _meta = <Options for PasswordXMLRPCServerProxy>
  openflowaggregate = <django.db.models.fields.related.SingleRel...

Inherited from django.db.models.base.Model (private): _deferred

Properties [hide private]

Inherited from django.db.models.base.Model: pk

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

save(self, *args, **kwargs)

source code 

Saves the current instance. Override this in a subclass if you want to control the saving process.

The 'force_insert' and 'force_update' parameters can be used to insist that the "save" must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

Overrides: django.db.models.base.Model.save
(inherited documentation)

Class Variable Details [hide private]

username

Value:
models.CharField(max_length= 100, help_text= "Username to use to acces\
s the remote server.")

password

Value:
models.CharField(max_length= get_max_password_len(), help_text= "Passw\
ord to use to access the remote server.")

max_password_age

Value:
models.PositiveIntegerField('Max Password age (days)', default= 0, hel\
p_text= "If this is set to non-zero, the password " "will automaticall\
y be changed once the password ages past the " "maximum. The new passw\
ord is then randomly generated.")

verify_certs

Value:
models.BooleanField("Verify Certificates?", default= False, help_text=\
 "Disabling this check will still verify that the " "certificate itsel\
f is well-formed. In particular, the " "server's hostname must match t\
he certificate's Common Name.")

_base_manager

Value:
<django.db.models.manager.Manager object at 0x8d63c4c>

_default_manager

Value:
<django.db.models.manager.Manager object at 0x8d63c4c>

openflowaggregate

Value:
<django.db.models.fields.related.SingleRelatedObjectDescriptor object \
at 0x8f74aec>