Erste Seite Zurück Weiter Letzte Seite Übersicht Grafik
Schritt 2: Das Amazon Modul
Wiederverwendung
- Mark Pilgrims Python-Modul:
Zope Produkt
- Zur Verwendung durch Python-Skripte am besten nach lib/python/Products/PyAmazon entpacken
- Für Python Skripte erlauben:
- __init__.py:
- from AccessControl import ModuleSecurityInfo
- ModuleSecurityInfo(„Products.PyAmazon.amazon“).declarePublic(„searchByASIN“)
- erlaubt Zugriff auf die Funktion „searchByASIN“ für TTW-Code
- Zugriff auf Ergebnisdaten erlauben:
- __init__.py:
- from amazon import Bag
- Bag.__allow_access_to_unprotected_subobjects__ = 1
Notizen: