Module prototypeslg :: Class GSMCALDATE
[show private | hide private]
[frames | no frames]

Type GSMCALDATE

       object --+        
                |        
BaseProtogenClass --+    
                    |    
            CSVSTRING --+
                        |
                       GSMCALDATE

Known Subclasses:
GSMCALTIME

Represent date string with format "YYMMDD*" This format is being used in LG GSM Calendar Evetns
Method Summary
  __init__(self, *args, **kwargs)
A string value can be specified to this constructor, or in the value keyword arg.
  getvalue(self)
Returns the tuple of (year, month, day)
  readfrombuffer(self, buf)
Get our value from the buffer
    Inherited from CSVSTRING
  packetsize(self)
Returns size in bytes that we occupy
  writetobuffer(self, buf)
Scribble ourselves to the buf
    Inherited from BaseProtogenClass
  autologread(self, buf, logtitle)
  autologwrite(self, buf, logtitle)
  iscontainer(self)
Do we contain fields?
  packetspan(self)
Returns tuple of begining,end offsets from last packet we were read or written from.
  update(self, *args, **kwargs)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

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

A string value can be specified to this constructor, or in the value keyword arg.
Keyword Parameters:
constant - (Optional) A constant value. All reads must have this value
terminator - (Default=,) The string terminator (or None). If set there will always be a terminator when writing. The terminator is not returned when getting the value.
quotechar - (Default=Double Quote) Quote character that surrounds string
readescape - (Default=True) Interpret PPP escape char (0x7d)
maxsizeinbytes - (Optional) On writing, truncate strings longer than this (length is before any escaping and quoting
default - (Optional) Our default value
raiseonunterminatedread - (Default True) raise NotTerminatedException if there is no terminator on the value being read in. terminator must also be set.
raiseontruncate - (Default True) raise ValueLengthException if the supplied value is too large to fit within sizeinbytes.
raiseonmissingquotes - (Default True) raise MissingQuotesException if the string does not have quote characters around it
value - (Optional) Value
invalidchars - (Default=quotechar) A string containing invalid characters which would be removed before writing to buffer.
encoding - (Default=None) If specified Unicode charset.
raiseonunicodeerror - (Default=True) raise exception if fail to encode/decode Unicode.
Overrides:
prototypes.CSVSTRING.__init__ (inherited documentation)

getvalue(self)

Returns the tuple of (year, month, day)
Overrides:
prototypes.CSVSTRING.getvalue

readfrombuffer(self, buf)

Get our value from the buffer
Overrides:
prototypes.CSVSTRING.readfrombuffer (inherited documentation)

Generated by Epydoc 2.1 on Fri Aug 15 18:58:27 2008 http://epydoc.sf.net