zope.app.zapi

Software screenshot:
zope.app.zapi
Software ətraflı:
Version: 3.5.0
Tarixi Upload: 12 May 15
Lisenziya: Pulsuz
Məşhurluq: 5

Rating: nan/5 (Total Votes: 0)

zope.app.zapi idxal sadə etmək üçün istifadə olunan API toplusu təmin edir.
Əsasən, burada API başqa idxal olunur. Bir neçə burada təmin olunur.
müdirləri ()
müdirləri üsul identifikasiyası xidmət qaytarır. Heç bir xidmət müəyyən edilir, bir ComponentLookupError qaldırılır:
& Nbsp; >>> zope.app idxal Zapi olan
& Nbsp; >>> zapi.principals () #doctest: + NORMALIZE_WHITESPACE
& Nbsp; Traceback (ən son zəng, son):
& Nbsp; ...
& Nbsp; ComponentLookupError:
& Nbsp; ( '')
Amma biz bir identifikasiyası xidmət təmin əgər:
& Nbsp; >>> idxal zope.interface
& Nbsp; >>> zope.authentication.interfaces IAuthentication idxal
& Nbsp; >>> sinif FakeAuthenticationUtility:
& Nbsp; ... zope.interface.implements (IAuthentication)
& Nbsp; >>> saxta = FakeAuthenticationUtility ()
& Nbsp; >>> zope.app.testing idxal ztapi olan
& Nbsp; >>> ztapi.provideUtility (IAuthentication, saxta)
Sonra biz direktorları üçün xahiş zaman geri xidmət almaq lazımdır:
& Nbsp; >>> zapi.principals () saxta
& Nbsp; True

Bu azad Yeni nədir:

deprecated hissələri (xidmətlərin, MultiViews s)

  • silindi BBB idxal olan belə ən azı bu versiyası tələb zope.component 3.6 çıxarıldı.

  • Depreacted zope.testing.doctest əvəzinə Python doctest modulu istifadə edərək,
  • .

tələblər

  • Python

Geliştirici digər proqram Zope Corporation and Contributors

Şərh zope.app.zapi

Şərhlər tapılmadı
Şərh əlavə
Images yandırın!