Login | Register
My pages Projects Community openCollabNet

The Tigris site will receive a major upgrade the evening of Monday, December 1, beginning at 8:30 pm PST. Downtime is projected to be about ten hours. Further details in the announcement

Package commitmessage :: Module attribute
[show private | hide private]
[frames | no frames]

Module commitmessage.attribute

Function Summary
  attribute(attrname, permit, fget, fset, fdel, doc)
returns a property associated with 'attrname'.
  _get_classname()
returns the calling class' name
  _isprivate(attrname)
  _mangle(classname, attrname)
mangles name according to python name-mangling conventions for private variables

Function Details

attribute(attrname, permit='rwd', fget=None, fset=None, fdel=None, doc='')

returns a property associated with 'attrname'.

By default, a simple property with get, set, and delete methods
will be created. Optionally, specific get/set/del methods may be
supplied. You can also choose to omit the creation of one or more
of the default get/set/del methods via the 'permit' flag:
    'r': readable, 'w':writable, 'd':deletable
So, if you want a property that is readable and deletable, but not
writable, use "permit='rd'".

_get_classname()

returns the calling class' name

_mangle(classname, attrname)

mangles name according to python name-mangling conventions for private variables

Generated by Epydoc 2.1 on Thu Jan 06 10:30:34 2005 http://epydoc.sf.net