[Twisted-Python] Removing Perspectives

exarkun at meson.dyndns.org exarkun at meson.dyndns.org
Tue May 28 20:13:25 MDT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


  Yes, I want to remove a perspective.  It seems this hasn't come up
before (at least there is little provisioning for it in the API).  So,
what's the best way to do this?  It seems that cred.service.Service should
have something like removePerspectiveNamed or removePerspectiveRequest
(depending on whether the action can be taken immediately or not) to take
care of this, taking the name of the perspective to squish.  I don't see
any reason that the action shouldn't be able to be taken immediately, so I
would consider removePerspectiveNamed(perspectiveName) preferable, with no
return value and raising a KeyError or something on the case where there
is no perspective of the given name.

  This sound reasonable, or is there more to do / a better way to do it?

  Jp (A PART OF TEH TWISTARD DVELEPER COMUNITE)

- --
It is practically impossible to teach good programming style to
students that have had prior exposure to BASIC: as potential
programmers they are mentally mutilated beyond hope of
regeneration.        -- Dijkstra
- --
 10:10pm up 7 days, 22:50, 0 users, load average: 0.02, 0.13, 0.46
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE89DlJedcO2BJA+4YRAi0DAJ9mi7C3+7aLmXEL4JQH12cZ57wlqwCfatE/
KI0Cb1SghE7DpFKNdsTkJWc=
=MOJi
-----END PGP SIGNATURE-----





More information about the Twisted-Python mailing list