App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.api.datastore_types._BaseByteType Class Reference
Inheritance diagram for google.appengine.api.datastore_types._BaseByteType:
google.appengine.api.datastore_types.Blob google.appengine.api.datastore_types.ByteString google.appengine.api.datastore_types.EmbeddedEntity

Public Member Functions

def __new__
 
def ToXml
 

Detailed Description

A base class for datastore types that are encoded as bytes.

This behaves identically to the Python str type, except for the
constructor, which only accepts str arguments.

Member Function Documentation

def google.appengine.api.datastore_types._BaseByteType.__new__ (   cls,
  arg = None 
)
Constructor.

We only accept str instances.

Args:
  arg: optional str instance (default '')
def google.appengine.api.datastore_types._BaseByteType.ToXml (   self)
Output bytes as XML.

Returns:
  Base64 encoded version of itself for safe insertion in to an XML document.

The documentation for this class was generated from the following file: